Repost: On navigation list, I have a list that is populating data in a table instead of an aggregate. So I have to use the count variable but there is none on a list. How can I convert this list to be able to use count. I can't use an aggregate.
I have tried using the length variable of that list but without success, is there any way to make this work around? Thank you very much!
Thank you all for your help, I really appreciate the effort! I found the solution!!
With some external help of course! eheheh
After sometime digging I realize it was the start index of the table widget.
I had to parse the table widget id to integer in order for the pagination to work, the default value was set at 0 as I supposed it was okay. The thing is, since the external list we had, didn't have an id I thought it could be it, so that's why I was wondering around :D
Like always, it was something simple just under my nose, but once again thank you all for time!
Cheers!
Hi Rui,
From what I understood your table records widget has a local variable (type list) as source and not directly an aggregate right? When is your list populated? is it in preparation?
I'm asking this because that should still work as you did it. In fact I just did the same in traditional web in my personal environment using .length for a local list aswell and it works well with pagination. What problem are you facing? Can you share the .oml?
Let me know,
Paulo
Thank you for the answer, and yes it is being populated within the preparation.
I've checked over and over the list paths because I can filter that list as well, so I don't really know what could be wrong. I have 66 records and should display 50 on the first page and 15 on the second, but it is not happening. I am sorry but I cant share the oml as it is a company intellectual property.
As soon as I have this figured I will explain what it was. I must be missing something obvious.
Is there any way to parse to count or, perhaps query my list and get the count from there? I really don't know...
But thank you very much for your attention anyways!
Cheers,
Basically Length should work but if any case it's not working so there is one you can get count it will not come in best practice but you can try this and let's see your problem is resolving or not
Solution:
Create one local variable inside the page name it "Count"
Inside the preparation use foreach loop with same list and assing count value in loop cycle by increasing 1
Count = Count+1
By using this you can get count and check your issue resolved or not
Thanks
Arun
Hey Rui,
Please check the OML . It might help you.
Thanks & Regards,
Sudip Pal