[progress Communities] [progress Openedge Abl] Forum Post: [4.2] - Running Another Object...

  • Thread starter Thread starter IramK
  • Start date Start date
Status
Not open for further replies.
I

IramK

Guest
Hello, I have an object script trigger that sets the date/time value of a date/time field of another (id:12345) record. This trigger is being called from a "Validate Record Data" trigger for the record being created. However when trying to do so, the rbv_api.setFieldValue(...) fails to set the field value for the date/time fields. Could you please let me know when this would be fixed? Validate Record Data trigger: var nameValue = "{!name#text}"; if(nameValue !== ""){ rbv_api.runTrigger("object1", 12345, "setDateValue", true); return 'Name cannot be empty'; } Object Script Trigger: var currentDate = rbv_api.getCurrentDate(); var value = new Date(); rbv_api.setFieldValue("object1", {!id}, "dateTimeField", value); Cheers. Iram

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