Unable to Compute UDF Value

Discussion in 'Free Source Codes' started by Bidyut Banerjee, Dec 28, 2019.

    

  1. Need Help.
    Unable to Compute UDF Value.


    Compute : My2AStat505 : $GSTReciSts


    [System: UDF]
    GSTReciSts : String : 30081
     


  2. balajimg

    balajimg Active Member


    depends on which object you have stored the UDF and where exactly you are calling it
     



  3. Its Save or stored with Invoice. and calling in Voucher Collection, Type :Vouchers
     



  4. In Invoice, you UDF can be associated Header Part (ie with InvNo and Date) or with Ledger Entries or with Inventries Entries, Batch etc. Make it clear
     



  5. I
    it not associated with any thing.
    its save the vale voucher wise.
    default value is "Pending"
     



  6. Finally Done
     

    Attached Files:

    • Mi1.jpg
      Mi1.jpg
      File size:
      355 KB
      Views:
      59
    • Mi2.jpg
      Mi2.jpg
      File size:
      624.6 KB
      Views:
      58
    Frz and tejeet like this.


  7. tejeet

    tejeet Member



  8. love

    love Member


    @Bidyut Banerjee
    i modifed a custom purchase inventory explode report(from this forum) and also created a udf in purchase voucher to store clients against whom purchases are done, i am unable to fetch the udf value in the report, kindly guide me to fetch the value to the report
     

    Attached Files:




  9. Unable to understand.
     


  10. Himanshu-2002

    Himanshu-2002 Active Member


    There is 2 Solution for this issue
    1. Add your UDF in Object Voucher
    Example:
    [#Object: Voucher]
    MyUDF: $MyUDF

    Now, You can compute or fetch this UDF

    2. If you Export that Voucher which contains that UDF Then you will find out that There is a collection of UDF which you stored

    Example:
    Walk: MyUDF
    Compute:MyUDF:$MyUDF
     


  11. Himanshu-2002

    Himanshu-2002 Active Member


    I suggest you to choose First Method Because that is the easiest
     


  12. love

    love Member


    ; my udf field

    [Field: VCHorderbyNamedr]
    Use : Name Field
    Storage : VCHorderbyName
    Set as : $VCHorderbyName
    Width : 25
    Table : filterledgerCLIENT, not applicable
    Show Table: Always
    ;Key : Create orderbyName
    Background: "Orchid2"

    ;association with object voucher

    [#Object:voucher]
    vchorderbyname:$vchorderbyname

    [Collection: PQRSalesManVouchersColl]
    Type:Vouchers:VoucherType
    Child Of:$$VchTypePurchase

    Belongs To:Yes
    ;Filter : PQRSaleManVouchers
    ;Filter : SalesManFilter


    ;computing the values thru collection

    [Collection:Sales AllVoucher]
    Source Collection:pQRSalesManVouchersColl
    Walk:Inventory Entries

    Compute : PQRPartySalesMan :$vchorderbyname
    Compute : PQRPartyVchNo :$REFERENCE
    Compute : PQRPartyDate :$Date



    hope this is the way you guided me @Himanshu-2002

    the value is still not fetching plz help
     


  13. narayane88

    narayane88 Active Member


    UDF KO COLLECTION MEAIN FETCH KARNA BHI JARURI HAI WARNA REPORT MAIN NAHI DIKHEGA
     


  14. Himanshu-2002

    Himanshu-2002 Active Member


    In main collection fetch UDF Values as suggested by Narayan Sir
    Example:
    [Collection: MyMainColl]
    Type: Vouchers: VoucherType
    Child of : $$VchTypePurchase
    Belong To: Yes
    Fetch: MyUDFName

    If this didn't work then Export that voucher in xml and Check XML Contains your UDF Or Not
     
    Gagan Jyoti likes this.


  15. Himanshu-2002

    Himanshu-2002 Active Member


    And One More Thing if You compute PartyName as PartyLedgerName Then You will use PartyName as a method Name
    Example:
    Compute:partyName: $PartyLedgerName

    [Field: MyField]
    Set as :$PartyName
     


  16. love

    love Member


    it is fetching in xml ok
    <UDF:VCHORDERBYNAME.LIST DESC="`VCHorderbyName`" ISLIST="YES" TYPE="String" INDEX="375">
    <UDF:VCHORDERBYNAME DESC="`VCHorderbyName`">UDF value stored </UDF:VCHORDERBYNAME>
    </UDF:VCHORDERBYNAME.LIST>

    great learning from xml export thanks for the idea

    one more thing once i have added object voucher to udf it is showing incorrect storage error during voucher entry
     


  17. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [#Object:voucher]
    vchorderbyname:$vchorderbyname

    You cannot have SAME name as your UDF.........
    myvchorderbyname:$vchorderbyname
     


  18. Himanshu-2002

    Himanshu-2002 Active Member


    Oo I don't know about this thing... But what is the logic behind this?
     


  19. love

    love Member


    thnx @narayane @Himanshu-2002 @Amit Kamdar
    with your guidance and knowledge , i am in medium pace learning mode on, amit sir ur tit bit guidance has always been a guiding star for all of us and himanshu sir your knowledge of functions is my envy, hope to grasp functions like you , this part of my project is complete
     


  20. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Same logic .... age old logic ....... differentiation and identification.

    Any definitions in OBKECT is Global. (So diff name to UDF is required)
    Any COMPUTE in Collection is Local. (So same name can be allowed)
     


  21. love

    love Member


    [Collection: PQRSalesManVouchersColl]
    Type:Vouchers:VoucherType
    Child Of:$$VchTypePurchase
    Belongs To:Yes
    Fetch:myvchorderbyname1; UDF

    [Collection:Sales AllVoucher]
    Source Collection:pQRSalesManVouchersColl
    Walk:Inventory Entries

    Compute : PQRNewdisc :$myVCHorderbyName1 ;UDF


    this collection is fetching udfs in a report properly , now when i add

    data source: parent group: selected line

    to the main collection ,every thing other than UDF is fetched, please guide how to fetch the udf in the report collection , coz i have computed as well as made object of the UDFs, still have no answer
     


Share This Page