Skip to Content

Purchase order number using events issue

Jan 16 at 12:49 PM


avatar image

Dear Experts,

Am trying to retrieve the purchasing order number from script files to create instance on my custom BO, while change or create the Po# is always result as "##1" at runtime, i should validate in creating new instance to my custom BO, 1 instance per one PO should be created, so how can i validate without the info of PO#...


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Schaude
Jan 17 at 12:20 PM

Hello Motaz,

You need a stable key for the PO.

Do you have this information?
Then make this key the AlternativeKey for your BO.
If a create comes in, use this key to retrieve your own BO. If this fails, this instance does not exist and you can create it.

. Horst

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Dear Horist,

thank you, that means that i can not get the exact number of Purchase order to my custom BO using XBO beforesave event ??

- Another question: can i add button to toolbar using ext explorer ADD CUSTOM ACTION option, if yes please send me a documentation, I've tried to use this functionality but i think i have to add action to my XBO associated to the new Button, and purchase order is non-ESF2.



Hello Motaz,

If the PO is drawing its number late, it will be available after the save, Too late for you. :-(
But for this we have stable AlternativeKeys which are determined on the creation of the node instance

Second:"Add Custom Action" refers to an action added to an XBO. As you already noticed this works only for ESF2 BOs.
So, no ESF2 BO, no XBO action, no UI action

. Horst