New Form Under Company Object

Discussion in 'Tally Developer' started by Jishnu Surendran, Aug 14, 2022.

    
Tags:
  1. Jishnu Surendran

    Jishnu Surendran New Member


    I am trying to make a new form for creating fixed asset groups. So far I've this:

    [System : UDF]
    AstGrp : Aggregate : 21001
    AstGrpName : String : 21001
    AstGrpParent : String : 21002
    AstDepRate: Number : 21001

    [#Menu : Gateway of Tally]
    Add : Key Item : After : @@locVouchers : Fixed Assets : F : Menu : Fixed Assets

    [Menu : Fixed Assets]
    Item : Create : Menu : Create
    Item : Alter
    Item : Chart of Items
    Item : Acquisition
    Item : Ready To Use : Display : All Asset Groups
    Item : Re-Classify
    Item : Re-Valuation
    Item : Depreciation
    Item : Physical Verification

    [Menu : Create]
    Item : Asset Group : Alter : Asset Group
    Item : Asset Item

    [Report : Asset Group]
    Object : Company : #SVCurrentCompany
    Form : Asset Group
    Title : "Asset Group Creation"

    [Form : Asset Group]
    Part : Ast Parent
    Height : 2 inch
    Width : 4 inch
    Space Top : 0.15 inch
    Horizontal Align : Left
    Vertical Align : Top
    Background : Pale Leaf Green

    [Part : Ast Parent]
    Lines : Ast Grp Titles, Ast Grp Nme
    Repeat : Ast Grp Nme : AstGrp
    Break On : $$IsEmpty:$AstGrpName
    Scroll : Vertical

    [Line : Ast Grp Titles]
    Fields : Ast Grp Nme Title,Ast Grp Parent Title,Ast Grp Dep Title

    [Field : Ast Grp Nme Title]
    Set As : "Asset Group"
    Width : 22
    Align : Center

    [Field : Ast Grp Parent Title]
    Set As : "Under Group"
    Width : 22
    Align : Center

    [Field : Ast Grp Dep Title]
    Set As : "Depreciation Rate"
    Width : 22
    Align : Center

    [Line : Ast Grp Nme]
    Fields : Ast Grp Nme, Ast Grp Parent, Ast Grp Dep Rate

    [Field : Ast Grp Nme]
    Use : Name Field
    Storage : AstGrpName
    Width : 22
    Unique : Yes

    [Field : Ast Grp Parent]
    Use : Name Field
    Storage : AstGrpParent
    Table : Ast Grp Fld Coll,Primary
    Show Table : Always
    Width : 22
    Inactive : $$IsEmpty : $AstGrpName

    [Field : Ast Grp Dep Rate]
    Type : Number
    Format : Decimal : 2,Percentage
    Storage : AstDepRate
    Width : 22
    Inactive : $$IsEmpty : $AstGrpName

    [Collection : Ast Grp Coll]
    Type : AstGrp : Company
    Child Of : #SVCurrentCompany
    Format : $AstGrpName, 20
    Format : $AstGrpParent, 20
    Format : $AstDepRate, 20
    Title : "Asset Groups"

    [Collection : Ast Grp Fld Coll]
    Type : AstGrp : Company
    Child Of : #SVCurrentCompany
    Format : $AstGrpName, 20
    Title : "Asset Groups"

    However, when I open the form, the early stored items also appear. I want to open the form in create mode.
     


  2. Bipin Damania

    Bipin Damania Active Member


    [Menu : Create]
    Item : Asset Group : Create : Asset Group
    Item : Asset Item

    Try this
     


Share This Page