cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud SDK : Read Current Selected Record from AdvanceListPanel

Former Member
0 Kudos

Hi Experts,

We have created custom business object and and under that we have created Nodes with multiple value [0,n].

In the Embed component we have created Advance List panel and binding with node and update data based on BO action.


I need to know how to read the selected record in Advance List Pane using BO action .


Column 1Column 2Column 3
1RowData12RowData13
2RowData22RowData23
3RowData32RowData33

Now when i select first row and click on button under BO action I want to read data


Column 1 = 1

Column 2 = RowData12

Column 3 = RowData13


If I select second row from ALP I want to read data .


Column 1 = 2

Column 2 = RowData22

Column 3 = RowData23


Same If select 3rd record


Column 1 = 3

Column 2 = RowData32

Column 3 = RowData33


I want to read data into BO action or any other way to read selected record.


anyone have idea how to achieve it.


Regards,

Mithun



Accepted Solutions (1)

Accepted Solutions (1)

former_member200567
Active Contributor

Hi, Mithun.

               If your BO action is declared in the same node of ALP, you can just use "this." to get the selected record.

Hope this helps.

Regards,

Fred

Former Member
0 Kudos

Hi Fred,

In my custom BO i have declared custom action on node and assign to button.

When I select row from ALP and click on that button in the ABSL code I am getting last entry from the ALP.

Can you please suggest something what can i do or any other method to achieve it.

Regards,

Mithun

former_member200567
Active Contributor
0 Kudos

Hi, Mithun ,

     

       I think, it should work.

       What did you select Instance Binding in Event Handler?

       You should select your node(data list)

Regards,
Fred

Former Member
0 Kudos

Hi Fred,

I have bind event on Data Model -> DataList under the property Events:

-> OnLeadSelectionChnage

-> OnRowCoundChnage

-> OnCommitSection


I have assigned on "OnLeadSelectionChnage" event and check but getting last record.


In My event Handler I have added Node level action and that event i have assigned as mentioned above.


Can you please help me anything missing or wrong in above configuration.


Regards,

Mithun




Former Member
0 Kudos

Hi Fred,

Thanks I have change in BOAction

Instance Binding --> Root/DataList and I am getting current selected value in ABSL code.

Thank you so much....

Regards,

Mithun

former_member200567
Active Contributor
0 Kudos

Glad that I could help.

Regards,

Fred.

A-J-S
Active Participant
0 Kudos

Hi Mithun,

I have a requirement somewhat similar to yours, i want to get the selected Item in Sales quote.

I have extended the Sales Quote BO and now i want to edit some pricing details of the selected item, so in the code i could get all the Items in this.Item. I want to know how i can find out which item is selected in UI.

Thanks and Regards,

Ajith.

Answers (0)