Skip to Content
author's profile photo Former Member
Former Member

Problem in Ui5

Hello Guys,

I am Developing a Ui5 Application on HANA and i have use SplitApp in it.on Left Side iam showing Header Data, And on Right Side iam Showing Line Item Data,

so when ever User Click on Particular Sale Order Header ! it Should Show LineItems refer to that SaleOrder Id only.

i have done that too, But problem is when ever i am executing that component First Time ( Initial ) it is Showing all the LineItems at once on Initial Load.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 14, 2016 at 12:32 PM

    Hi Shardul,

    How are you fetching your data, and binding your data?

    I assume it has to do something with your bindpath, the binding itself, or with filtering.



    Add a comment
    10|10000 characters needed characters exceeded

    • I do not understand your question..

      In your service?

      In your oData service you can use associations to find all underlaying items per sales order (for example). This has to be built in the service (so, the NetWeaver Gateway, HANA XS, etc)

      In your UI5 code?

      You usually change the bind path of the detailed table, according to the item clicked in the list.

      So for example, when item "10001" is clicked, you change the bindpath of your table to "/10001/items". This way your binding is updated, you trigger a refresh and the correct data will be fetched.

      In order for this to work though, you first need an association in your service, described above.

      Depending on which system you are using as a service provider, you can google what the implementation of an association is for that system.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2016 at 01:38 PM

    Hi Shardul ,

    If you don't need any detail view on initial page load in routing just declare a target with empty view and add this target to exsiting route displaying master page .

    so now your route contains two targets

    1) Left Side showing Header Data

    2) empty page view in right side



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2016 at 12:36 PM

    Hi Shardul,

    by binding your Items table like you did it, you bind your table to the complete item collection.

    " <Table id="idProductsTable" inset="false" items="{/SOItem}" > "

    After clicking a line item on the master page a "bindView" (or something similar) is executed to set the context on the detail view to the actuall clicked header item.

    You have to execute this bindView method on loading the detail view by attaching it to the route matched event via attachPatternMatched.

    Create a master-detail app via WebIDE for an example.



    Add a comment
    10|10000 characters needed characters exceeded

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.