Break on Attribute is not working

Discussion in 'Free Source Codes' started by Rishi kumar, Jan 18, 2024.

    
  1. Rishi kumar

    Rishi kumar Member


    Dear Expert
    I have created a sub form for enterning the details where i used Break on attrubute . form working fine saving data but break on attribute is not working.Pls guide me.

    ;; This is the report to Part def.
    [Report:Awb Details]
    Form:Awb Details
    Title: "Awb Details"
    Object: Company

    [Form:Awb Details]
    Part: Form Subtitle, Awb Part
    Local:Field:FormSubtitle:Info:$$LocaleString:"AWB Details of " + ":" + $PartyLedgerName
    Full Height:Yes
    Full Width:Yes

    [Part:Awb Part]
    Lines: Awb Title Line, Awb Details Line
    Repeat:Awb Details Line: Awb Details Coll ;; aggregrate UDF
    Common Border:Yes
    Scroll:Vertical
    Float: No
    Border : Thin Box
    Break On: $$IsEmpty:$AwbAwbNo

    ;;this is the field

    [Field:Awb Sl]
    Use: Number Field
    Set as:$$Line
    Width: 3
    ;;Style: Small
    Border : Thin Right
    Skip:Yes

    [Field:Awb Awb No]
    Use: Name Field
    Storage: AwbAwbNo
    Width:15
    ;;Style:Small
    Border: Thin Right
    Set Always:Yes

    ;; UDF
    [System: UDF]
    AwbAwbNo : String: 31001

    pls guide me where i committing mistake.
    thanks
    rishi
     


  2. parthiban.M

    parthiban.M Member


    Break on : $$Isend:(field storage)
     


  3. Rishi kumar

    Rishi kumar Member


    Not working sir.
     


  4. parthiban.M

    parthiban.M Member


    add this in ur field and check
    Inactive : $$IsEnd:(yourstoragename)
     


  5. Rishi kumar

    Rishi kumar Member


    It's working sir thanks a lot.
    But sir i saw several example regarding custom udf where only break on : $$isempty: udf is used and working fine.
    Why ?
     


  6. parthiban.M

    parthiban.M Member


    Break On: $$IsEmpty:$AwbAwbNo
    for me the above one as u posted itslef wrking fyn...I dontknow why its not wrking for u

    Both the functions are pretty much the same if u have more that 2 fields and in that 2 field will fetch setas automatically..and one field have to store the set as means "Inactive" will comes in use...For easy understand it used to inactive particular fields...
    Break on is simply used as..amoung 5 fields if one field is empty itself then the whole form will be closed...not for particular field as "Inactive"
    Above is my own perspective which I understood from my work.
     


  7. Rishi kumar

    Rishi kumar Member


    OK SIR,
    One more query bcoz i am just learner ....
    sir, i have customised "AWBILL" voucher type under memo vch. I have deleted some parts of vch and add own parts. in own parts i have created field and define seperate udf for every new fields.
    sir, how can i retrive value of these customised field .for your consideration pic is attached.
     

    Attached Files:

    • AWB.png
      AWB.png
      File size:
      72.4 KB
      Views:
      14


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Define your UDFs in [#Object : voucher]
    and then use that ---
     


  9. Rishi kumar

    Rishi kumar Member


    Thanks sir for reply.
    Pls tell me how I define.
    E.g awbbillno , awbbilldate these are two udf how i define...
     


  10. parthiban.M

    parthiban.M Member


    I too dont used objects this far....
    try lyk this..
    [#Object : voucher]
    awbbillno:$awbbillno
     


  11. Rishi kumar

    Rishi kumar Member


    Ok thanks sir
    I try
     


  12. Rishi kumar

    Rishi kumar Member


    Not working sir.
    I have did as u said
    [#object: voucher]
    Awbillno: $awbillno
    After that I have created a coll.

    [Collection: AWB list coll]
    Type:vouchers: voucher type
    Child of: $$vchtypememo
    Belong to: yes
    Fetch: awbillno
    But noting happen sir.
    Pls advice
    Thanks
    Rishi
     


  13. parthiban.M

    parthiban.M Member


    letme check
     


  14. vishnu joshi

    vishnu joshi Member


    Dear Expert
    I have created a sub form for enterning the details where i used Break on attrubute . form working fine saving data but break on attribute is not working.Pls guide me.

    ;; This is the report to Part def.
    [Report:Awb Details]
    Form:Awb Details
    Title: "Awb Details"
    Object: Company

    [Form:Awb Details]
    Part: Form Subtitle, Awb Part
    Local:Field:FormSubtitle:Info:$$LocaleString:"AWB Details of " + ":" + $PartyLedgerName
    Full Height:Yes
    Full Width:Yes

    [Part:Awb Part]
    Lines: Awb Title Line, Awb Details Line
    Repeat:Awb Details Line: Awb Details Coll ;; aggregrate UDF
    Common Border:Yes
    Scroll:Vertical
    Float: No
    Border : Thin Box
    Break On: $$IsEmpty:$AwbAwbNo

    ;;this is the field

    [Field:Awb Sl]
    Use: Number Field
    Set as:$$Line
    Width: 3
    ;;Style: Small
    Border : Thin Right
    Skip:Yes

    [Field:Awb Awb No]
    Use: Name Field
    Storage: AwbAwbNo
    Width:15
    ;;Style:Small
    Border: Thin Right
    Set Always:Yes

    ;; UDF
    [System: UDF]
    AwbAwbNo : String: 31001

    Awb Details Coll:aggregrate:30029

    ;Hello Bhai ..
    ;Your code ok hai but apane aggragate UDF Define Nahi kiya hai..
    ;Ye kardo Ho Jayaga..
     


  15. parthiban.M

    parthiban.M Member


    ur querry have been solved in above post...refer and implement.
     


  16. Rishi kumar

    Rishi kumar Member


    Thanks for your reply bro
    Break on related query solved .
    I have posted second query in the present thread pls see .
    How to add custom udf in object and reterive data.?
     


  17. Hems

    Hems Member


    After define in object voucher

    May be
    Compute that value in collection then use it
     


  18. Rishi kumar

    Rishi kumar Member


    Yes sir it's work.
    Thanks a lot
     


  19. Rishi kumar

    Rishi kumar Member


    Bhai ye query solve ho gye.
    Thanks everyone.
     


Share This Page