Skip to Content
avatar image
Former Member

Change layer by selecting a tablerow

Hi!

I can't find out how to pass data to a BAPI and show the result in a table on a new layer after doing a doubleclick on a tablerow.

As far as I know the doubleclick on a tablerow triggers the 'select' event. Now i need to use this event to change to the next layer to show the output of the BAPI. If I drag the line between my first and my new layer it's named default as '*next'. The line between the first table and the BAPI is named as 'select'.

If i change the event for the next layer to 'select' or '*select', it doesn't show any effect. The BAPI is working fine with the 'select' event and if i place the resulttable on the same layer it's working properly.

The only workaround i've found is to use a button in the toolbar of the first table and trigger the submit event for the BAPI and the next layer. This works fine for both.

But shouldn't work the 'select' event to change the layer as well?

regards

Ralf-J.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 25, 2007 at 01:17 PM

    hey ralf-juergen,

    hope i got you right: here's what you have to do:

    1. connect table output on layer 1 with bapi, using event "select" (will trigger the submit of data)

    2. connect bapi to table on second layer (will display the results)

    3. connect layer 1 to layer 2 using "*selcet" (this will trigger the transition to the second layer which is showing the result-table.)

    hope to help,

    Martin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Martin!

      That's exactly what I've tried. But the '*select' doesn't seem to trigger the transition to the second layer when u click on a table row. I've expected that but it didn't work. The workaround I've described is working for me, so it might be a bug.

      Best regards

      Ralf-J.

  • avatar image
    Former Member
    Feb 26, 2007 at 06:21 AM

    Hi

    > As far as I know the doubleclick on a tablerow

    > triggers the 'select' event.

    <i>Unfortunately, there is no Double Click event in table, only Single click which triggers the select event of table.</i>

    > But shouldn't work the 'select' event to change the

    > layer as well?

    >

    When a table is populated, the first row is initially selected. So if you want the select event to change the layer, it will automatically move to next layer with first row data. Do you want this behaviour??

    There are already some threads regarding this "double click" and "initial select" in the forum. Please make a search in the forum for those threads.

    May be you can use some guard conditions to restrict initial select and some visibility conditions to show the output form(by keeping both table and output screen in the same layer).

    Regards,

    Sooraj

    Add comment
    10|10000 characters needed characters exceeded