on 07-19-2016 9:10 AM
Dear All,
I have a requirement, in Account_QC I have created an embedded component that contain AdvancedListPane.
When I click on the Add Row, I can chose RelationShip Type and UUID value.
My requirement is when I want to save this account, these values should be saved and these have to be sent to RelationShip tab of Customer_TI
How can I handle this? in Customer.xbo, before save, I have to write something.. but I do not know how and what
Can any one give me any suggetsion?
Regards
Sin
Hi,
My problem has been solved, actually it was the problem of Binding my embedded component to my QC view,
Thanks a lot for your response guys.
Sin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sin,
In Customer there is the association Customer.Relationship.
Each association has the associated businessParterUUID and a roleCode (BusinessPartnerRelationshipRoleCode).
Try to create this relationship by code in beforeSave. Your code will be executed in every save, so be careful to not duplicate registers and cause any errors.
Regards,
Alexandre.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again Alexandre,
I have done like this:
First I created a node that is elementsof Relationship.:
var CustomerNode : elementsof Customer.Relationship;
CustomerNode.RoleCode = this.Relationship.GetFirst().RoleCode;
CustomerNode.RelationshipBusinessPartnerUUID= this.Relationship.GetFirst().RelationshipBusinessPartnerUUID;
this.Relationship.Create(CustomerNode);
But when I want to debug it, this.Relationship is empty, has no value inside it,
Do you have any idea?
Thanks
Hello Sin,
Sorry, I don't have an enviroment to test the code but you may be in the right way. Try to create a hardcoded relationship for test purpose. Something like this:
var CustomerNode : elementsof Customer.Relationship;
CustomerNode.RoleCode = 1234; // (put some valid role code)
CustomerNode.RelationshipBusinessPartnerUUID= 1i2u3i12u3i1u23i1u32; // (put a valid bp uuid)
this.Relationship.Create(CustomerNode);
Regards,
Alexandre.
Hello Pradeep,
Thanks a lot for your response,
But if I want to drive it from somewhere else, It should be from ACCOUNT_TI.that now in standard we have Relationship in ACCOUNT_TI, but in QC view, when the account is not created yet, I can not drive it from somewhere else.
What do you think?
Regards
Sin
Hello Pradeep,
Actually if I want to edit an existing Account, it works, but if I want to assign the value to the Account that is going to be created (inside QC view), I do not have access to that.
It means that I can add relationship just after the Account has created! I can not assign the Relationship at the same time I create the Account.
Do you know if I can achieve it?
Regards
Sin
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.