Hi
I've added a button to the Sales Order window ("z") which, when clicked, updates a date field on the screen. The modification of this field triggers a workflow which sends emails off.
I've used a button to do this because its more obvious to users to click a button to trigger these emails rather than just filling in a date field. I only want these emails sent off once and it's not necessarily when the order is created, hence the manual trigger using this field
the code i've added in SPESOH is this:
$EXEBOUT
If BOUT = 'z'
[M:SOH0]YCISDATE=date$
[F:SOH]YCISDATE=date$
Affzo [M:SOH0]YCISDATE
Endif
Return
however, the date field does not get updated to the file unless I force a save of the record (by changing some other field and then saving)
how do I update the new date field and simultaneously update the table on the click of the button
thanks