Skip to Content
0

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

Feb 01 at 11:24 AM

64

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Edward Neveux
Feb 13 at 06:27 PM
0

Osama,

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

Hope that helps,

Eddy

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 03 at 12:07 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded