In safe X3, there is way to run or trigger the customized code for a particular entry transaction, and then here is the code using which you can trigger the code for a specific entry transaction.
New Stuff : How to Assign Default Values to Crystal Reports
Example:
$ACTION
Case ACTION
When “FIN_LISTE” : Gosub FIN_LISTE
When Default
Endcase
Return
######################################################
$FIN_LISTE
Global Char GMGLNUM
GMGLNUM = TEX(CHOIX)
Return
######################################################
As mentioned in above code,”FIN_LISTE” is the name of action and GMGLNUM is a variable where entry transaction get saved.
TEX(CHOIX) it automatically fetches the entry transaction value.
While working with entry transaction when scenario comes up where the code should trigger for a particular entry transaction then simply use above code in a processing file, so you can restrict to trigger the code for a rest of the entry transaction.
Hope this is fine!
Also Read :
1) Protecting Customized Mod through Code
2) Entry Transaction in X3
3) Entry transaction Validation via Patch
4) Setting Parameters in Actions function in Sage X3
5) Creating a Dynamic Selection Window in Sage ERP X3