Skip to Content
avatar image
Former Member

Navigating from one view to other view

Dear Experts,

there is requirement to display populated data in table UI element which is in First view on click of one field it will navigate to other Second View.On click on back button which come back to Main view using navigation plugs.Here issue is selected item is displaying at the top records are getting duplicated but on refreshing the application its showing normal.

Please help to sort it out.

Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jun 14, 2017 at 10:39 AM

    Hi Jaipal,

    Please check if your context data is filled over and over again. In that case you may have to use the node method INVALIDATE to clear the node before you refill.

    Second, try to make use of SUPPLY FUNCTION of the node.

    Thank,

    Shalini

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 06, 2017 at 03:48 AM

    Hi Jaipal,

    Please check where you are populating the table. Also check your navigation between the views.

    When you update the table, please use MODIFY statement instead of INSERT.

    Thanks,

    Shalini

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2017 at 03:16 AM

    Dear Mike

    thanks for your reply

    here I have issue when come back from second view to first view the record which i selected to navigate second view is displaying twice.

    ex: First view having 5 records with two columns(ID,Name) on click on ID it will navigate to second view.

    when i select back button in second view it will take me to first view but in the table i can see total 6 records the selected one is displaying twice

    Regards

    Jaipal

    Add comment
    10|10000 characters needed characters exceeded

    • I know that's where you can see it, but have you verified the cause? For the third time I shall ask: is the underlying data correct? Please verify what the context contains at the time you are seeing the issue.

  • Jun 12, 2017 at 10:17 PM

    I am struggling a little to understand the issue. "item is displaying at the top records are getting duplicated" is not clear.

    If duplication is the issue, please check if it is being duplicated in the context. If so, it is a logic issue. If not then it's a control/display problem.

    Refreshing the page is not relevant. It will always fix any such issue, because it reloads and restarts the entire application. It is like starting SE38 from the beginning again.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 14, 2017 at 05:25 PM

    Hi Shalini

    thanks for your input

    let me explain you what exactly issue

    As per below sample when i select one training SAP HANA it will navigate to second view from second to Main its creating additional SAP HANA record in the table.

    From component controller->INIT() method is populating the table.

    Main View

    Training Description Begin Date End Date ABAP 20.06.2017 21.06.2017 ABAP webdynpro 22.06.2017 23.06.2017 SAP Fiori 24.06.2017 25.06.2017 SAP HANA 26.06.2017 27.06.2017
    Add comment
    10|10000 characters needed characters exceeded