on 05-02-2013 2:09 PM
Hi,
We have an embedded component created in a customer solution. We are able to populate the values in the EC, but not able to save it - ie when I go back to the EC after clicking refresh, data I added to the EC's list is gone.
Any advise on how to get the data to save in the backend...?
Thanks,
Vineet.
Hi Vineet,
are you sure you send data changes within your EC back to the ByD data model?
Best regards,
Felix
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vineet,
Just make sure that you're following the same data model as in your own B.O (QA or another one) and just add a new button, that will save your data.
If that doesn't work you can always create an action in your B.O and try to implement what I'll like to call a manual save, that basically will make a CustomBo.Create().
Try to call it within a button in your E.C, and always remember to mark the check box Save After Execution
Regards,
Melvin
Hello there,
I´ve been following the conversation so far.
I have added my embedded component into the "salesorderoifeco" - screen (Sales Order Object Instance Floorplan).
I have created an Inport Parameter "node" which is bound against the node-element of my CustomBO.
I´ve mapped the PublicOutportECSalesOrderItem which is a Parameter having a node structure with my own node Inport-Parameter.
I have success in reading the instances of my bo, but don´t succeed in saving. But saving works, e.g. in Material Master Data UI. Why only there? It also works on the root level of the SalesOrder which has the SalesOrderID as an Outport-Parameter.
Did the retrieve-function work for you? I don´t know how to use it. Because it cannot find the UUID of my customBO (AfterModify).
Is there another possibility?
Thank you!
Best Regards,
Rufat
Hi vineet,
Please clearify in which screen have you added that EC component..?
Have you added it in standard QA or OIF screen..?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok Vineet.
So I got your Problem. Your embedded component is attached to standard QA screen through UUID.
So when you save data and reopen it You dont see your data.
Dont worry, Your data is getting saved in your custom BO binded with EC. but when you reopen it, Standard screen is not identifying your custom BO instance which got saved initially.
So you can do a workaround here.In AfterModify of your custom BO use
CustomBOins = customBO.Retrieve(UUID);
Now fill your custom BO elements again using this.<element1> etc.
I am not sure if it solves your problem. Just give it a try
Thanks Saurabh.
I think the issue we are having is that we are not able to obtain the data that is saved to the database itself...
customBO.Retrieve may give us the data that is added to the UI and not yet saved to the database...
Maybe we should use a query? If yes, is there an example of how to go about it...?
Thanks,
Vineet.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.