restricting ledgers under fix group

Discussion in 'Free Source Codes' started by ankitinfo, Aug 26, 2023.

    
  1. ankitinfo

    ankitinfo Member


    Key : Create newpackinghose
    [Key: Create newpackinghouse]
    Key :Alt + C
    Action: CREATE: Ledger
    upon this code new ledger creation page is opened, but how to fix group "packinghouse" as fixed and cannot be changed
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Give reference to the Ledger Master ---i.e. Report : ledger

    At the report level ---- Find out all the details from Part level to Field level to where the GROUP Name is to be given -- then---

    [#Report : Ledger]
    Local: Field : (ParentFieldName) : Set As : "PackingHouse" ---------or whatever your Group name you wish.
    Local : Field : (ParentFieldName) : Skip : yes
     


  3. ankitinfo

    ankitinfo Member


    [#Part: MST LED Explode Sundry]

    Add:Line:After:LED InterestOn: Packinghouse


    [Line:packinghouse]
    Field:medium prompt,PackingHouse
    Local:Field:medium prompt:Info:$$LocaleString:"Packing house "
    Local:Field:medium prompt: Color:blue


    [Field:packingHouse]
    Use:name field
    Set As : $$Value
    Table : packingExtractLedger,Notapplicable
    Show Table : always
    set always : yes
    Storage:packinghouse
    Width:30

    Key : Create newpackinghouse
    [Key: Create newpackinghouse]
    Key :Alt + C
    Action: Create: Ledger


    [Collection : packingExtractLedger]
    Title : $$LocaleString:"List of Packing House"
    type : ledger
    filter : filpacking

    [system : formula]
    filpacking : $Parent:Ledger:$Name = "PackingHouse"




    so now will i have to again define report,part,line,field all again
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    From your initial query -- you need to FIX the GROUP name as "PackingHouse" when you CREATE a new Ledger using your Key and once it goes there -- you need/want/require that the Group Name should come as "Packing House" -- that is what I understood.

    and you code as above is about collection of ledgers, coming under "packingHouse" which is correct.

    So what exactly is the issue and your need?
     


  5. ankitinfo

    ankitinfo Member


    respected amit bhai....everything is running properly but when i press alt + c, new ledger creation page is opened but that group should be fixed as Packinghouse
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    For fixing the Group Name - I have given the guidance in my above Post # 2. Follow that and it will work.
     


  7. ankitinfo

    ankitinfo Member


    Key : Create newpackinghouse
    [Key: Create newpackinghouse]
    Key :Alt + C
    Action: create:ledger1

    [Report : Ledger1]
    form:ledger1
    [form:ledger1]
    part:ledger1
    [part:ledger1]
    line : nameldg, groupldg
    [line: nameldg]
    Fields : Short Prompt, Name Field
    Local : Field : Short Prompt : Info : “Name :”

    Local : Field : Name Field : Storage : Name

    [line:groupldg]
    Fields : Short Prompt, parent
    Local : Field : Short Prompt : Info : “Under :”
    Local: Field : Parent: Set As : "Packinghouse"
    Local : Field : Parent : Skip : yes
    Local : Field : parent : Storage : Parent


    tries this but not working
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You have really not READ the solutions properly -- you need to put more efforts in your skills development. :);)

    [#Form : Ledger]
    Local : Part : MSTLED Advanced : Local : Part : MST LED Parent : Local : Part : MST LED Details : Local : Line : MST Parent : Local: Field : MST Parent : Set As : $$String:"Packing House"
    Local : Part : MSTLED Advanced : Local : Part : MST LED Parent : Local : Part : MST LED Details : Local : Line : MST Parent : Local: Field : MST Parent : Set Always : Yes
    Local : Part : MSTLED Advanced : Local : Part : MST LED Parent : Local : Part : MST LED Details : Local : Line : MST Parent : Local : Field : MST Parent : Skip : yes

    Assuming -- "Packing House" is a GROUP already existing.
     
    ankitinfo likes this.


  9. ankitinfo

    ankitinfo Member


    i did my software coding classes 20 years back with Aptech but as i got involved in my family business left all this and now again started to learn and create something for self use...learning to use in daily working to make it more easier....

    thanks amitbhai for clearing
     


  10. ankitinfo

    ankitinfo Member


    [Field:packingHouse]
    Use:name field
    Set As : $$Value
    Table : packingExtractLedger,Notapplicable
    Show Table : always
    set always : yes
    Storage:packinghouse
    Width:30

    Key : Create newpackinghouse
    [Key: Create newpackinghouse]
    Key :Alt + C
    Action: Create: Ledger

    [#Form : Ledger]
    Local : Part : MSTLED Advanced : Local : Part : MST LED Parent : Local : Part : MST LED Details : Local : Line : MST Parent : Local: Field : MST Parent : Set As : $$String:"PackingHouse"
    Local : Part : MSTLED Advanced : Local : Part : MST LED Parent : Local : Part : MST LED Details : Local : Line : MST Parent : Local: Field : MST Parent : Set Always : Yes
    Local : Part : MSTLED Advanced : Local : Part : MST LED Parent : Local : Part : MST LED Details : Local : Line : MST Parent : Local : Field : MST Parent : Skip : yes










    [Collection : packingExtractLedger]
    Title : $$LocaleString:"List of Packing House"
    type : ledger
    filter : filpacking

    [system : formula]
    filpacking : $Parent:Ledger:$Name = "PackingHouse"
     


  11. ankitinfo

    ankitinfo Member


    in above code ,all create ledgers are blocked....i just wanna trigger when it is on key combination for this i included this code under as follows
     


Share This Page