Skip to Content
0
Former Member
Jul 28, 2016 at 07:35 AM

EventHandler for 'onclick' event not triggered for OVS

113 Views

Hello everyone,

I have created a Custom OVS for 'CustomerQuote' Business Object.

This Value Help has been added to 'Sales Order ID' field in the 'Quick Create' screen of my Custom BO.

Whenever the value of this field changes , I want to populate few other fields like 'Sales Document Creation date' etc., using association to CustomerQuote BO.

I can code this in 'Event-AfterModify.absl'. It works perfectly fine.

But my concern is any field change other than 'Sales Order ID' would also cause redetermination and population of fields like

'Sales Document Creation Date' which is not desired.

I want this script to be triggered only on change of 'Sales Order ID'.

So I added an action to my custom BO called 'SalesOrderLookup'.

I generated a script file for this action.

I created an EventHandler and added a BOAction to it.

I bound 'SalesOrderLookup' action to this BOAction.

I called this 'EventHandler' on the 'onclick' event of OVS element.

But it is not getting fired.

Is this the expected behavior ?

I would like to trigger an absl script on change of a specific field in the Quick Create.

The field type here is OVS.

How to achieve this ?

Please suggest.

Regards,

Padmini