cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

Former Member
0 Kudos
318

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Eneveux
Product and Topic Expert
Product and Topic Expert
0 Kudos

Osama,

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

Hope that helps,

Eddy