what is mistake in my tdl

Discussion in 'Tally Developer' started by rajendra mithari, Apr 10, 2014.

    

  1. Dear experts,
    pl find my code
    in receit note columner register my saved udf values not feching why?
    code is -

    [#Part: EI BaseInfo]
    add:Option:At Beginning:gatenoline: @@IsRcptNote

    [!Part:gatenoline]
    Line:gatenoline1
    [Line:gatenoline1]
    Fields:Medium Prompt,gtstr
    Local: Field:Medium Prompt:Info:"Gate No / date :"
    Local: Field:Medium Prompt:Width: 8% Page

    [Field:gtstr]
    use :Name Field
    Set as:$gtstr
    Storage: gtstr
    ;Validate: not $$isempty:$$value
    Style: Normal
    Width: 10% Page


    [System:udf]
    gtstr:String:365


    [#Part: CMP COLBasics]
    Add: Line:AtEnd: showgateno

    [Line:showgateno]
    Fields : Medium Prompt,showfld1
    Local : Field : Medium Prompt : Info : $$LocaleString:"Show Gate No ?" ;;; String displayed Columnar Register Configuration
    [Field:showfld1]
    Use : Logical Field
    Modifies: showfld1

    [Variable:showfld1]
    Type : Logical
    Persistent : Yes

    [System:variable]
    showfld1:""




    [#Line: DSP ColVchTitle]

    Add: Fields: After : DBC VchNo: dspgateno

    Local: Field: Default : Style: Small Italic

    Local: Field: dspgateno: Set As: "Gate No."

    [#Line: DSP ColVchDetail]

    Add: Field: After: DBC VchNo: dspgateno

    [Field: dspgateno]

    Use: Name Field
    SetAs: $gtstr
    Width: 13% Page
    Border: Thin Left
    Style: Small
    Invisible : NOT ##showfld1


    [#Line: DSP ColVchTotal]
    Add: Field: After: DBC VchNo: emptyfld
    Local: Field: dspgateno: Invisible: Yes

    [Field: emptyfld]
    Use: Name Field
    SetAs: ""
    Width: 13% Page

    [#Collection: Columnar Filtered Vouchers of Company]
    Fetch: gtstr

    [#Collection: Columnar Vouchers of Ledgers]
    Fetch: gtstr
     


  2. D Lokesh

    D Lokesh Member




    HI Rajendra....

    i corrected ur file can u check it...

    ;;--------------------------------------------------

    [#Part: EI BaseInfo]
    add:Option:At Beginning:gatenoline: @@IsRcptNote

    [!Part:gatenoline]
    Line:gatenoline1
    [Line:gatenoline1]
    Fields:Medium Prompt,gtstr
    Local: Field:Medium Prompt:Info:"Gate No / date :"
    Local: Field:Medium Prompt:Width: 8% Page

    [Field:gtstr]
    use :Name Field
    Set as:$gtstr
    Storage: gtstr
    ;Validate: not $$isempty:$$value
    Style: Normal
    Width: 10% Page


    [System:udf]
    gtstr:String:365


    [#Part: CMP COLBasics]
    Add: Line:AtEnd: showgateno

    [Line:showgateno]
    Fields : Medium Prompt,showfld1
    Local : Field : Medium Prompt : Info : $$LocaleString:"Show Gate No ?" ;;; String displayed Columnar Register Configuration
    [Field:showfld1]
    Use : Logical Field
    Modifies: showfld1

    [Variable:showfld1]
    Type : Logical
    Persistent : Yes

    [System:variable]
    showfld1:""




    [#Line: DSP ColVchTitle]

    Add: Fields: After : DBC VchNo: dspgateno

    Local: Field: Default : Style: Small Italic

    Local: Field: dspgateno: Set As: "Gate No."

    [#Line: DSP ColVchDetail]

    Add: Field: After: DBC VchNo: dspgateno

    [Field: dspgateno]

    Use: Name Field
    SetAs: $gtstr
    Width: 13% Page
    Border: Thin Left
    Style: Small
    Invisible : NOT ##showfld1


    [#Line: DSP ColVchTotal]
    Add: Field: After: DBC VchNo: emptyfld
    Local: Field: dspgateno: Invisible: Yes

    [Field: emptyfld]
    Use: Name Field
    SetAs: ""
    Width: 13% Page

    ;;------------- Collections

    [#Collection: Columnar Specific Vouchers of Company]
    Fetch: gtstr

    ;;----------------------------------------
     


Share This Page