Skip to Content

SAP C4C SDK: How to Invoke a query on click of an item in the List to display within the same AdvancedListPane?

We have custom BO as QN and QN Item. They are 2 different BO’s. Where QNItem BO has an element as QN ID.

So the relation is 1 QN has * QN items.

Every QN item has a field called Approve quantity and amount. In QN – OWL I need to perform a sum of all the approve quanity and amount for all its QN items and display it here. (in the box highlighted in red)

My idea was to Create query for the QNItem like this. So this retrieves all the items like this below snapshot.

When I execute this query, I get this result. I thought I will call this query and do a sum of the values and display it here on this field.

Question is:

On the OWL, there is no event triggered on click of an item in AdvancedListPane. So Im not sure how to call the query?

Any clues or suggestions please…

Thanks

Gayathri

pastedImage_2.png (235.5 kB)
pastedImage_3.png (136.1 kB)
pastedImage_4.png (100.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 15, 2016 at 12:09 PM

    Hello Gayathri,

    Yes, you can call your event handler on a selection of a row. Go to the propoertis tab of the DataList of your OWL. On the right hand side you will see lot of events, which can be used for your purpose. You can assign your query handler here.

    Regards,

    Saurabh


    Lead Selection.jpg (82.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 16, 2016 at 01:00 PM

    Thanks Saurabh, Senthil, Pradeep

    You all made my day.

    Thanks again,

    Gayathri.R

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 17, 2016 at 06:11 PM

    Hi All,

    I'm calling the same event handler on click of the facet. At this point, when I click the facet immediately the entire becomes editable and also doesn't allow me to cancel. Is there any property that controls this.

    1) Opening the TI screen, The BO is in read mode

    2) On click of Facet Return QM

    3) Evenhandler configuration

    Please support,

    Thanks

    Gayathri


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 17, 2016 at 06:18 PM

    Hi All,

    Got this just now, replaced the BO operation to WindowAction as Save, I get the Edit screens

    Thanks

    Gayathri

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.