Skip to Content
avatar image
Former Member

How to pass value from service call form user field to related Returns document user field?

Hello,

How to pass value from Service Call form user field to related Returns document user field?

I'm using UI API and I have added a user field to the Service Call system form.

I also added a user field to the Returns document, and I need to fill this field with the value of the user field from the Service Call form, whenever I add a Returns document to the Related Documents tab.

How can I do this?

Thanks in Advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 13 at 06:27 PM

    Osama,

    Normally you would use the DI API to copy data into a property/field in a user defined field

    Hope that helps,

    Eddy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 03 at 12:07 PM

    Hi Eddy,

    Thank you for your reply.

    I found a solution to my problem using the UI API. On form load for the Return Document, I'm retrieving the open Service Call Form and retrieving the value from the form object:

    formSCL = Application.SBO_Application.Forms.GetForm(Constants.ServiceCallFormType, 1);
    var oDB_SCL = formSCL.DataSources.DBDataSources.Item(Constants.ServiceCallTable);
    string callID = oDB_SCL.GetValue("callID", 0).Trim();
    string claimNo = oDB_SCL.GetValue("U_ClaimNo", 0).Trim();
    

    However, this could cause a problem if more than one Service Call form is open.

    Is there a better way to do this using DI API or otherwise?

    Thanks, Osama

    Add comment
    10|10000 characters needed characters exceeded