Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Listview inside listview #14796

@JaiKrish1005

Description

@JaiKrish1005

Jai Krishna Raj
[Wednesday at 3:33 AM]
[vso, app-builder]
Hi team,
I was able to replicate this issue. The inner ListView is fetching and displaying the last row's nested list and displaying it everywhere instead of showing the correct data for each parent row. I've confirmed the outer ListView's listItem context is working correctly, but when the inner ListView tries to use {{listItem.graphs}}, it always resolves to data from the final parent array item regardless of which row it's in.
Hey team, I'm seeing a very strange result with the list view component. I am putting one list view inside another to dynamically generate a collections of graphs for a few categories. The top level array that I am passing into the first list view has this format:
[
{
"section_title: <title>,
"graphs": []
}
]
each object in the graphs array is an object with a single key/value pair, with the value being the JSON config for the graph. The titles are correctly being displayed, but the graphs for each section are all being pulled from the last set of graphs in the top level array
cc: [@manish Kushare] [@noordeen M] [@pratik]

image (4).png

image (4).png

Pratik:

Hey [@manish Kushare] did you get time to check this?

Manish Kushare:

Hi Prakrit , I am on it
Manish Kushare
PR
Issue
Cc: [@johnson] [@noordeen M]

Jai Krishna Raj:

Hi team, just following up. Is this issue resolved? Please update once the changes have been implemented.

Manish Kushare:

I have raised the PR, will get it reviewed and tested

Jai Krishna Raj:

Got it. Thank you.

Johnson:

these fixes involves slightly bigger changes with extensive testing so we don't break existing setup. We will be targeting for next week first half for this for release.

Johnson:

Hi [@jai Krishna Raj] right now, we don't support list view inside list view. This is a bigger architectural change. Missed to inform this in earlier communications.
To suggest a workaround, we need to clarify one detail: Is the maximum number of graphs within each row fixed? (i.e., is there a max limit on the number of graphs per row that need to be shown?)?

Kavin:

Attaching the workaround app
listView-inside-listView.json

Jai Krishna Raj:

To suggest a workaround, we need to clarify one detail: Is the maximum number of graphs within each row fixed? (i.e., is there a max limit on the number of graphs per row that need to be shown?)?
I will confirm this with them before sharing the workaround.
CC: @Pratik (edited)

Jai Krishna Raj:

these fixes involves slightly bigger changes with extensive testing so we don't break existing setup. We will be targeting for next week first half for this for release.
[@johnson] Could you please confirm if this can be implemented or worked on during next week's first half? or should I let them know that listview inside listview is not supported and share the workaround?

Johnson:

Could you please confirm if this can be implemented or worked on during next week's first half?
[@jai Krishna Raj] No, it needs some major changes in the state management architecture.
Lets tell them this is not supported right now. The solution suggested works only if the child list view they are trying to render hsa a predifined max count. Its basically rendering the component one by one instead of a listview. (edited)
Would suggest if u can try it out once yourself first so you have a better idea. Please ping me for any queries

Jai Krishna Raj:

[@johnson] Understood. I will tell them listView inside listView is currently not supported.
To suggest a workaround, we need to clarify one detail: Is the maximum number of graphs within each row fixed? (i.e., is there a max limit on the number of graphs per row that need to be shown?)?
Will confirm this with them and update here

Jai Krishna Raj:

[@johnson] They have replied.
unfortunately the number of graphs is not set, thats why were trying to do it this way. How long will it take to add support for listView inside of listView?

Pratik:

[@johnson] for now I have told them that we need some more time to scope it out properly before sharing any deadline.
Please let us know whenever we have some eta so that we can update them.
[@jai Krishna Raj] please add the customer thread link in the first msg of this thread, so that it is easily accessible.
Also, add this to the customer request board, and share the ticket link here.
Cc [@devang Agarwal]

Johnson:

Got it. Thanks. I will discuss this internally and get back.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions