klincecum edit: Please refrain from tagging absolutely everyone on the forum to help you.
Two ComboBox controls, Location and Fault, have been added to the Inspection Processing form. I need to bind these controls to the custom fields PORel.Location_c and PORel.Fault_c.
However, the Inspection Processing form uses PORView, and I am unable to add these custom fields to the view.
Could you please advise on the recommended approach to add PORel.Location_c and PORel.Fault_c to PORView and bind them to the ComboBox controls?
I have added a new view with a PORel relationship to PORView using the following fields: Company, PONum, POLine, and PORelNum. I have also bound the controls to PORel.Location_c and PORel.Fault_c.
Then you can bind your two controls to PORel.Location_c and PORel.Fault_c.
You then need to figure out your trigger for this event. But this should perform the rest call to populate the PORel dataview and return the PO release based on porView’s PONum, Line & Release.
When the purchased items are in Inspection Processing, it is possible (or even probable) that the PO is closed (after it’s been fully received). Have you tested to ensure your UD fields still able to receive data once the PO is closed?
The error is likely that PORel and porView are not the same data view, so when you click a control bound to PORel, it’s going to trigger the event ViewChanging, which then updates the screen.
What may be easiest is to create the Location and Fault fields in porView, then after the rest call to GetByID, copy them from PORel → porView in a row-update. Rebind the controls to porView, and it shouldn’t trigger the event again.
Make sure you can update the fields, if that’s your intent. If so, you’ll also need column change events on porView to copy the values back as they change.