please guide me in below image i want to add that field in "Item Description" part

Discussion in 'Tally Developer' started by pramod5542, Aug 3, 2018.

    
  1. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Just as you found the Required PART/LINE/FIELD in your earlier codes....why not find out the relevant names in the Print Report?

    Or does it mean....the earlier codes are not written by you???
     


  2. pramod5542

    pramod5542 Member


    Sir i want to add one more field in "Item Description" table and that value fetch to voucher field....please some hint...
    I add a field but that value not storage

    Untitled.jpg

    [System : UDF ]
    District : String : 10001
    DistNamee: String : 10002

    [#Part: EI DescExplosion]
    Add:BreakOn : $$IsEmpty:$BasicUserDescription or $$IsSysName:$BasicUserDescription

    [#Field: EI Desc]

    Lines : 2
    Max : 1000
    Use : Name Field
    ;Storage : District
    ;Storage : Distname
    Width:22
    Table : List of District,List of District1, EndofList
    Show Table : Always
    ;Trigger : New Name : $$IsSysNameEqual:NewName:$$EditData
    ;Key :Create New Name
    Dynamic :""
    Key:District
    Style: normal

    [Key:District]
    Key:ALT + C
    Action:Alter:DistRep


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [Collection: List of District]

    ;Object : Dist1, Dist2, Dist3, Dist4
    Format : $DistName
    Title : "List of Description"
    Type : DistName : Company
    ChildOf : ##SVCurrentCompany
    ;Collection: Not Applicable
    ;[Object: Dist1]
    ;Name: Nashik,Dharmanagar

    [Collection: List of District1]

    ;Object : Dist1, Dist2, Dist3, Dist4
    Format : $DistNamee
    Title : ""
    Type : DistNamee : Company
    ChildOf : ##SVCurrentCompany
    ;Collection: Not Applicable

    [Report : DistRep]
    Form : DistrictRep
    Object : Company

    [Form : DistrictRep]
    Part : District Part
    Width : 40% screen
    Height : 100% screen

    [Part : District Part]
    Line : Select Dist ,Dist Line
    Repeat : Dist Line : DistName
    Repeat : Dist Line : DistNamee
    Break On : $$IsEmpty:$DistName or $$Line > 1000
    Break On : $$IsEmpty:$DistNamee or $$Line > 1000
    Scroll : Vertical

    [Line : Select Dist]
    Space Bottom : 0.5 cms
    Field : Name Field
    Local : Field : Name Field : Info : $$LocaleString:"List of Description"
    Local : Field : Name Field : Width : 25 cms
    Local : Field: Name Field : Color: Blue
    Local: Field: Name Field : Align: Centre
    Local: Field: Name Field : Border:thick bottom



    [Line : Dist Line]
    Field : Symbol Field , District Field1,District Field11
    Local : Field : Symbol Field : Set as : $$Line
    Local : Field : Symbol Field : Skip : yes
    Local : Field : Symbol Field : Width : 2 cms
    Local : Field : Symbol Field : Indent : 0.2 cms
    Local : Field : Symbol Field : Color: Black
    Local: Field: Symbol Field : Border: thin right
    Local: Field: Symbol Field : Style : Normal


    [Field : District Field1]
    Use : Voucher Name Field
    Width : 23 Cms
    Storage : DistName
    Lines : 2
    Color : Black
    Style : Normal

    [Field : District Field11]
    Use : Voucher Number Field
    Width : 10 Cms
    Storage : DistNamee
    Lines : 2
    Color : Black
    Style : Normal
    [System : UDF]
    DistName : String : 50003 : yes
    DistNamee : String : 50004 : yes
     


  3. Lynch

    Lynch Member


    The repeat appears in the part after the line should have the Collection attribute, whereas, here

    Repeat : Dist Line : DistName
    Repeat : Dist Line : DistNamee

    distname and distnamee are not defined as collections, you should use "List of District and List of District1" instead

    that is first,

    second is the DistNamee was defined twice as a string.,


    May be it will sort out your error
     


  4. pramod5542

    pramod5542 Member


    I will change but its not stored......
    [System : UDF ]
    District : String : 20001
    DistPrice String : 20002

    [#Part: EI DescExplosion]
    Add:BreakOn : $$IsEmpty:$BasicUserDescription or $$IsSysName:$BasicUserDescription

    [#Field: EI Desc]

    Lines : 2
    Max : 1000
    Use : Name Field
    ;Storage : District
    ;Storage : Distname
    Width:22
    Table : distname,DistPrice, EndofList
    Show Table : Always
    ;Trigger : New Name : $$IsSysNameEqual:NewName:$$EditData
    ;Key :Create New Name
    Dynamic :""
    Key:District
    Style: normal

    [Key:District]
    Key:ALT + C
    Action:Alter:DistRep


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [Collection: distname]

    ;Object : Dist1, Dist2, Dist3, Dist4
    Format : $DistName
    Title : "List of Description"
    Type : DistName : Company
    ChildOf : ##SVCurrentCompany
    ;Collection: Not Applicable
    ;[Object: Dist1]
    ;Name: Nashik,Dharmanagar

    [Collection: DistPrice]

    ;Object : Dist1, Dist2, Dist3, Dist4
    Format : $DistPrice
    Title : ""
    Type : DistPrice : Company
    ChildOf : ##SVCurrentCompany
    ;Collection: Not Applicable

    [Report : DistRep]
    Form : DistrictRep
    Object : Company

    [Form : DistrictRep]
    Part : District Part
    Width : 40% screen
    Height : 100% screen

    [Part : District Part]
    Line : Select Dist ,Dist Line
    Repeat : Dist Line : DistName
    Break On : $$IsEmpty:$DistName or $$Line > 1000
    Scroll : Vertical

    [Line : Select Dist]
    Space Bottom : 0.5 cms
    Field : Name Field
    Local : Field : Name Field : Info : $$LocaleString:"List of Description"
    Local : Field : Name Field : Width : 25 cms
    Local : Field: Name Field : Color: Blue
    Local: Field: Name Field : Align: Centre
    Local: Field: Name Field : Border:thick bottom

    [Line : Dist Line]
    Field : Symbol Field , District Field1, District Field11
    Local : Field : Symbol Field : Set as : $$Line
    Local : Field : Symbol Field : Skip : yes
    Local : Field : Symbol Field : Width : 2 cms
    Local : Field : Symbol Field : Indent : 0.2 cms
    Local : Field : Symbol Field : Color: Black
    Local: Field: Symbol Field : Border: thin right
    Local: Field: Symbol Field : Style : Normal


    [Field : District Field1]
    Use : Voucher Name Field
    Width : 23 Cms
    Storage : DistName
    Lines : 2
    Color : Black
    Style : Normal

    [Field : District Field11]
    Use : Voucher Number Field
    Width : 10 Cms
    Storage : DistPrice
    Lines : 2
    Color : Black
    Style : Normal

    [System : UDF]
    DistName : String : 50003 : yes
    DistPrice : String : 50004 : yes
     


Share This Page