I tried debugging it and it comes out that changing the way of PO Type causes issues way down in the workflow services.
What I wanted was add more dropdown option to the OrderType and change the OrderNumbering from the POSetup. And the error was coming up when trying to select a vendor that is when the error showed up.,
I did check the Database for the POSetup and other custom fields and they were fine.
Since the requirements for this customization changed.
Now I created a new Field on POOrder : UsrCustomOrderType which would be a drop down list
and then created a RowPersisting event that checks that if there is no orderNbr assigned use the DropDown value and set a numberingID for the orderNbr.
Also thanks for pointing out pasting the code, I will keep that in mind.
Hi @jdeol, Did you make the proper database changes for the POSetup’s DAC Extension so that the bound field would actually have something to bind to?
I tried to reproduce the issue on my end but wasn’t able to get the DomesticRawMatPO option to show up in the Order Type dropdown. I tried to add the code you provided to my project but it didn’t change what I could select in Order Type dropdown. If you can provide more context around how to reproduce your issue perhaps I can take a closer look. Also, in the future, adding your code with the button designed for that would be useful as it allows for easy copy/pasting. Here is an image of the button I'm talking about.
I tried debugging it and it comes out that changing the way of PO Type causes issues way down in the workflow services.
What I wanted was add more dropdown option to the OrderType and change the OrderNumbering from the POSetup. And the error was coming up when trying to select a vendor that is when the error showed up.,
I did check the Database for the POSetup and other custom fields and they were fine.
Since the requirements for this customization changed.
Now I created a new Field on POOrder : UsrCustomOrderType which would be a drop down list
and then created a RowPersisting event that checks that if there is no orderNbr assigned use the DropDown value and set a numberingID for the orderNbr.
Also thanks for pointing out pasting the code, I will keep that in mind.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.