125
Views
11
Comments
Create dummy data
Question

Hello


I created some dummy data and put it in a table,

I want to do pagination etc., but I can't create dummy data well.


Anyone have any suggestions?


I am attaching the oml so hopefully you can see this and understand what I am trying to do.


Thank you.

Dummykun.oml
2025-02-10 17-24-13
Arun Rajput

Hi @kazuma yamagata ,

Can please explain bit more.

1.As understood you have some dummy data and you are showing this data into the table now you want pagination, am I right?

If yes then there is a pagination widget in outsystems you can use that one for achieving pagination

2.If you have lack of data to show pagination in this case you have to create more data than your max record.

Thanks

Arun

UserImage.jpg
kazuma yamagata

Hello Arun


I didn't put any data, so I will attach the oml with the data.


The problem now is that pagination doesn't work well.


Thank you very much.


Kazuma

Dummykun.oml
UserImage.jpg
Puja Rani

Hi @kazuma yamagata ,

Looking at your code, I see problems there.

1. The List which you have bind to table, there is no code written which will append the data into that list. If your data source is your aggregate, you need to create On After fetch action then insert data into your local list.

2. For pagination with local list, check this your own post. OML shared for the paginating with local list . If you have some other requirement, please elaborate.

https://www.outsystems.com/forums/discussion/90260/pagination-without-data/

UserImage.jpg
kazuma yamagata

Hello Puja


I put in the data, but the pagination does not work well.

Is there something wrong?


Attach the updated oml


thank you


Kazuma

Dummykun.oml
UserImage.jpg
Puja Rani

If you checked the previous OML shared in another post, if you understood concept then logic was same. Also here, just to prompt a value in input you don't need to assign local variable, you can add any text which you want to prompt. Attached the updated OML for reference. Hope this helps.

Dummykun (updated).oml
UserImage.jpg
kazuma yamagata


Puja

Thank you is a great demo!

I didn't really understand pagination, and I didn't really know what went wrong.

I would like you to tell me.


Also, I digress a little, but is it possible to pass data between modules?

For example, data from local variables and structures.


Thank you if you have time.

UserImage.jpg
Puja Rani

Below are the places which needed correction

1. Since you are using local list to display data on table & by default you want to show 5 records in one page. so you need to append only 5 rows to the DummyList variable (not all data).This assignment was inserting all records at once.

2. In this action ListClear was missing for the ResponseDataList variable(if not used it would always keep on appending duplicate records on click)

3. the ResponseDataList used to hold all the records of aggregate so it was not necessary to use for loop to append one by one, instead used AppendALL action

4. Used for loop to append data into DummyList & by setting max iteration to max record variable will ensure that loop execute that no of time and insert those no. of data

5. When you click paginate, we start loop from next index . You can check this document to understand better how Pagination widget works.

.

UserImage.jpg
kazuma yamagata


Puja


It's very easy to understand!


Thank you for your careful teaching!

UserImage.jpg
Puja Rani

you're welcome :)

If your issue is solved then you can mark as solution the comment that satisfies your question & close this thread.


2023-02-27 14-18-56
Jaya Kumar S

Hi @kazuma yamagata

Kindly check the OML Attached. In that you can see pagination with database and pagination with local List.

Regards

Jaya Kumar S

Dummy_JK_UI.oml
UserImage.jpg
kazuma yamagata

Thank you! It's a very nice demo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.