System Action

This allows you to create a Script that is run prior to displaying a specified screen.  This could, for example, enable you to define what the User can or cannot view in the nominated screen

 

To see how this works you can try the following exercise in which we will substitute the Inquiry - Items screen in place of the Item Master screen.  This will allow the User to View Item Data but not maintain it

 

Go into File>Custom Scripts and add a new System Action Script called (say) ItemView.  From the drop-down list against field System Action select Inventory/Items

 

In the ‘Script’ tab enter the following:

 

begin

If CurrentUser = 'ADMIN' then

OstendoInquiry('Inquiry - Items');

Abort ;

end.

 

The first line defines the user to which this action applies

The second line states that the Inquiry screen 'Inquiry - Items' should be run

The third line aborts the request to display of the Item Master screen.

 

It is important to always include the ABORT statement in the System Action script so that the usual action is not executed.

If this statement is not included, then the normal action will still run AFTER the System Action script is executed.

 

Now go into Inventory>Items and you will see that, because you are currently signed on as ADMIN, you will be directed to the Inquiry - Items screen