cancel
Showing results for 
Search instead for 
Did you mean: 

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

gayathri_ramachandran
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

gayathri_ramachandran
Participant
0 Kudos

Hi Saurabh,

Thanks for the response.

I tried to add a event handler

In the event handler I added a BO Action to enable the Action absl.

I ran the application in debug mode and I find the code is not reached on click of any item in the list pane.

Also I found in the Action_CalculateReturn.absl the object doesn't return any elements of the BO.

Thanks

Gayathri

former_member186648
Active Contributor
0 Kudos

Hi Gayathri,

select "OnLeadSelectionChange" event.

Thanks, Pradeep.

gayathri_ramachandran
Participant
0 Kudos

Hi Pradeep & Saurabh,

Thanks for your response.

I placed the event handler to call a BO action CalculateReturn. I had the debug point and I see the debug toggle point is never reached.

Am I doing the right way.

former_member207719
Participant
0 Kudos

Hi Gayathri,

Can you change the Instance Binding to /Root/DataList instead of /Root as below,

Since you are in OWL, proper instance path would be required in order to hit your action, after changing that don't forget to bind the action.

Regards,

Senthil

Answers (3)

Answers (3)

gayathri_ramachandran
Participant
0 Kudos

Hi All,

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

Thanks

Gayathri

gayathri_ramachandran
Participant
0 Kudos

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

gayathri_ramachandran
Participant
0 Kudos

Thanks Saurabh, Senthil, Pradeep

You all made my day.

Thanks again,

Gayathri.R