Visual Builder

Get Involved. Join the Conversation.

Topic

    Shakila Murugan
    Table Row Selection Listener in VBCS?Answered
    Topic posted August 23, 2019 by Shakila MuruganBronze Medal: 1,250+ Points, tagged Action Flows, Business Objects, Custom Code, UI, Validation 
    19 Views, 3 Comments
    Title:
    Table Row Selection Listener in VBCS?
    Content:

    Hi Team,

    I used below URL to get selected row data. 

    https://blogs.oracle.com/vbcs/accessing-selected-rows-values-in-a-tables-in-visual-builder

    Now when i select a table row once (i get entire row data) but again when i deselect that same row, now i get all data as null.(Error occurs)
    Please refer below image

    Further when i select any other table row i get same issue(data as null).

    Regard,

    Shakila Murugan

    Version:
    19.1.3
    Image:

    Best Comment

    David Konecny

    As Shay said you need to change your action chain to handle cases where selection was removed and selected row data is null. Alternatively oj-table also has "selection-required" property which you could set to true to disable row unselection.

    -David

    Comment

     

    • Shay Shmeltzer

      Which variable are you trying to access?

      If I'm using the {{ "Got This" + $chain.variables.rowKey }} in a notification in the action chain it works ok.

      When there is no record selected it shows null as the rowKey.

      And a second select works fine.

    • David Konecny

      As Shay said you need to change your action chain to handle cases where selection was removed and selected row data is null. Alternatively oj-table also has "selection-required" property which you could set to true to disable row unselection.

      -David

      • Shakila Murugan

        Hi Shay and David ,

        Thank you for your response. In David said , i tried that way, Its working for me.

        Thanks,

        Shakila