on 07-29-2014 5:11 PM
Hi experts,
I'm new to SAP Cloud Applications Studio development and I wondering to know the steps I've to follow to extend the C4C Standard Object "CutomerQuote" (Sales Quotes).
In particular I've to add an EmbeddedComponent that shows up when the user select/add a product into the table i've highlighted in the image pasted below:
I think i've to "bind" informations showed up into that box to the Product-selection (or something like that).
Thanks in advance.
If you need further information don't esitate to ask me.
Regards and thanks all,
M.
Hello Marco,
You need to defiene an Embedded Component which takes as inport the ProductId (or any other identifier needed to find all the requeired data)
Search by the "cloudstudio_howto_ui" tag for some documents.
Bye,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
first of all, thanks for your reply.
I've tried to modify my "test solution" acording to your hint but the result don't match my needs.
Maybe i've made wrong something.
Below i'll show the steps i've done:
First, i've created a custom BusinessObject with this structure
Inside this custom BusinessObject i've created an element testField that will be a "characteristic", specific for each product selected inside the CustomerQuote standard BO.
Inside this EC i've added the two fields declared inside the CustomBO
Then, i've setted up proper DataModel field inside the EC
Finally, i've created an InPort to link the EC to the Item inside the CustomerQuote standard BO:
Inside InPort declaration i've assigned (bind?) the ProductUUID of the CutstomerItemPort to the ProductUUID field of Custom BO.
Next, i've added the embedded component to the CustomerQuote standard screen via UI Designer (i didn't create a BusinessObject extension).
NOTE: i did not set any kind of binding when i've inserted the EC.
Last i've tested my work. But, when i try to add a new product/switch from one to another infos (inside Custom EC) values remain the same (they are not associated with the Product/QuoteItem selected).
Two additional things:
As said before, i'm really new of this kind of development and i can't understand how to fix this issues and achieve my goal.
Hope you (and/or, hopefully, also other persons of comunity) can help me.
Thanks in advance.
Regards,
M.
Hello Marco,
The important topic is: The EC needs to be notified that something has changed. That happens via the OutPort -> InPort binding.
The hosting UI fires the outport, the EC geht's notified about the changes (and event the initial value to something is a change) and then the EC can react.
You may test this with an own UI to get a better feeling.
Bye,
Horst
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.