on 2018 Feb 01 11:24 AM - last edited on 2024 Feb 04 3:43 AM by postmig_api_4
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Osama,
Normally you would use the DI API to copy data into a property/field in a user defined field
Hope that helps,
Eddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 22 | |
| 15 | |
| 14 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.