on 02-28-2018 8:38 PM
Dear experts,
We would like to have our own values in fields Buyer Responsible ID / Name of Purchase Request. There is some ByD standard functionality that populates these fields (during creating PR), but we want to use our own algorithm. Is that feasible (in principle) to implement via some development?
Thank you.
After all I created my own (extension) fields BuyerResponsibleID2 and BuyerResponsibleName2 to maintain the needed functionality.
Aleksei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lewis,
It does not suit.
We need to prevent creating a Purchase Order by anyone but who we set in the Purchase Request.
P.S. It seems some mess occurred with text types in BO extensions. I am totally confused.
What data type should I now use for Employee Name, for example?
Aleksei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aleksei,
What about trying to change it on the purchase order itself, before it's released?
Lewis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Benny,
Yes, the elements look accessible to modify but
I tried to change the value of field Buyer Responsible ID in a Purchase Request via Root-Event-BeforeSave.absl:
import ABSL;
foreach ( var item in this.Item ) {
if ( item.EmployeeResponsibleItemParty.IsSet() ) {
item.EmployeeResponsibleItemParty.PartyKey.PartyID.content = "7000022";
}
}
Unfortunately, without any effect. There were no changes in the Purchase Request after that.
I also tried changing via element item.ItemParty , or adding and deleting an instance of ItemParty collection, but all the same - no changes.
var itemPartyData : elementsof item.ItemParty;
itemPartyData.PartyKey.PartyID.content = "7000022";
var itemParty = item.ItemParty.Create ( itemPartyData );
//itemParty.PartyKey.PartyTypeCode = "147";
Element itemParty.PartyKey.PartyTypeCode appeared to be Read-Only at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aleksei,
I think it is possible.
The node EmployeeResponsibleItemParty is for the Buyer Responsible in PurchaseRequest.
It depends on your algorithm, and the follow up requirement.
Best Regards,
Benny Huang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.