HELP NEEDED - TDL ERROR - PLEASE CORRECT MY CODES

Discussion in 'Free Source Codes' started by tejeet, Mar 25, 2020.

    
Tags:
  1. tejeet

    tejeet Member


    help needed - tdl error - please correct my codes - error screen shot is attached below :-

    upload_2020-3-25_14-4-48.png


    my tdl codes are as follows :

    Code:
    [System : UDF]
    udfTerms : String : 21111 ;; Ledger City
    
    ; Terms Master
    
    [#Menu : Accounts Info.]
    Add : Key Item : After : @@locLedgers : "Terms" : Y : Menu : VIT City Menu1
    
    [Menu : VIT City Menu1]
    Title : $$LocaleString:"Terms Master"
    Indent : "Single Terms"
    Item : BLANK
    Key Item : @@locCreate : C : Create Collection : List of ExtractCostCategories1 : @Allowed AND $$Allow:Create:AccountsMasters
    Key Item : @@locDisplay : D : Display Collection : List of ExtractCostCategories1 : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Display:AccountsMasters
    Key Item : @@locAlter : A : Alter Collection : List of ExtractCostCategories1 : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Alter:AccountsMasters
    Item : BLANK
    ;Indent : "Multiple City"
    ;Item : BLANK
    ;Key Item : @@locCreate : R : Create : Multi Cost Category : @Allowed AND $$Allow:Create:AccountsMasters
    ;Key Item : @@locDisplay : I : Display Collection : Multi Cost Category : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Display:AccountsMasters
    ;Key Item : @@locAlter : T : Alter Collection : Multi Cost Category : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Alter:AccountsMasters
    ;Item : BLANK
    Key Item : @@locQuit : Q
    Allowed : $$IsAccountingOn:$$CurrentSimpleCompany
    
    [Collection : List of ExtractCostCategories1]
    Title : $$LocaleString:"List of Terms"
    Filter : NoPrimary
    
    [Collection : Cost Category1]
    Title : $$LocaleString:"List of Terms"
    Filter : NoPrimary
    
    [System : Formula]
    NoPrimary : $Name <> $$PrimaryCostCategory
    
    [Report : List of ExtractCostCategories1]
    Title : $$LocaleString:"Select Terms"
    Local : Field: MV Title : Info : $$LocaleString:"Terms of Payment"
    
    
    
    [Report : SCostCategory1]
    Title : $$LocaleString:"Select Terms"
    Local : Field: MV Title : Info : $$LocaleString:"Terms of Payment"
    
    [System : Formula]
    MultCostCatCreateModeFormat : $$LocaleString:"Multi Terms %s %s"
    
    [Report : Cost Category1]
    Title : $$LocaleString:"Terms" + @@ModeName + @@SubModeName
    
    [Form : List of ExtractCostCategories1]
    Delete : Top Parts : CSTCAT Behaviour
    
    
    [Form : Cost Category1]
    Delete : Top Parts : CSTCAT Behaviour
    
    [Form : Multi Cost Category1]
    Width : 100% Screen
    
    [Part : MCSTCAT1 Body]
    Delete : Lines : MCSTCAT Secondary Titles
    
    [Line : MCSTCAT1 Main Titles]
    Delete : Right Fields : MCSTCAT Allocation Title
    
    [Field : MCSTCAT1 Name Title]
    Info : $$LocaleString:"Terms of Payment"
    
    [Line : MCSTCAT1 Body]
    Delete : Right Fields : CSTCAT ForRevenue, CSTCAT ForNonRevenue
    
    [Collection : MyTerms]
    Type : Cost Category
    Fetch : *
    IsOdbcTable : Yes
    
    ; Ledger
    
    [#Part : LED Mailing Address]
    Add : Bottom Line : Before : LEDState : lnTermsUDF
    
    [#Field : LED Mailing Address]
    Set Always : Yes
    
    [Line : lnTermsUDF]
    Field : Medium Prompt,fldTermsUDF
    Local : Field : Medium Prompt : Set as : "Terms"
    Local : Field : Medium Prompt : Inactive : NOT @@IsDebtorCreditor
    
    [Field : fldTermsUDF]
    Use : Name Field
    Storage : udfTerms
    Max : 40
    Table : Cost Category,Not Applicable
    Show Table : Always
    Key : Create Cost Category
    Style : Small Bold
    Inactive : NOT @@IsDebtorCreditor
    
     


Share This Page