Skip to Content

SALV ON_LEAD_SELECT & SORT

Hi guys, here is my problem.

I'm using 2 ALV component usage in my web dynpro application. When the user click on a line on the first ALV, details information is display on the second ALV. I create an event handler method implementing the event on_lead_select to populate my second ALV. My problem is that if we sort the first ALV, the lead selection will change but the event on_lead_select is not called, so my second ALV is displaying wrong information.

Any idea how can achieve that, or how I can I trigger the on_lead_select manually,

thanks

Alex

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 18, 2008 at 10:10 PM

    Do you have to manually populate the second context node? Why not just structure your context such that the secondary table is a non-singleton child node of the first. You can use a supply function if necessary to populate it on demand. But by structuring your contexts in such a way - you don't have program the change of the lead selection - it will be taken care of for you by the framework.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hey Thomas, I found something interresting, maybe it's correct in your release!

      Previously, the reason why it was not working, it was because I was populating my main context after the user click on a search button (this case is not possible to used nested context), but If you have nested context node and your populate your first main node in the WDDOINIT of the component controller, it works!

      Solution: this is not very clean but if I insert a blank line in my main context in the WDDOINIT method, I could use nested context node!

      Alex

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.