Forum Post: How can I update the values of lookup fields on a grid control?

  • Thread starter Thread starter jsniemi79
  • Start date Start date
Status
Not open for further replies.
J

jsniemi79

Guest
I've got a page with a related grid control. When a row is added or updated on the grid, I want to automatically populate the value of two lookup fields based on values from my main object. If you look at this screenshot, I have an account and contact on my main object. Notice the account and contact on the grid row are showing as IDs currently. I'm calling my function oncreate and onupdate of the grid. Here is the code for my function Currently, when I save the record, the related attachment is saved, but it is not being attached to the account or contact. Is this possible and if so, what should the code look like? I'd also like for the values in the grid to be the value, not the ID if that is possible. Thanks in advance for any suggestions.

Continue reading...
 
Status
Not open for further replies.
Back
Top