585
Views
6
Comments
Solved
How to add a data loop using ListAppend

I am currently using ListAppend to only add the first data in the database. I want to add all the data in the database and data from other tables. What should I do?

SystemAction.oml
2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello @Naku Sitsu 

This is how you can do list append in a loop - so that you will get all the record in your list, the loop will iterate for the number of records you have - 


And If you want to do it at once you can use list append all action - 


This will append all the record to the destination list on which you want to append the records.

There is a video over here for each list operation, it is a basic how-to video in which every list operation is defined with practical, this will help you in the understanding  
https://www.youtube.com/watch?v=LoUG74HtRng

I hope this will help 

Best Regards
Tousif Khan

UserImage.jpg
Naku Sitsu

Thank you for your reply.

I used to set it this way as you wrote in ListAppendOnclick, but it is not easy to use and cannot add data.

About ListAppendAllOnClick,I followed your settings and clicked the button on the screen, but there was no display. I set it this way to add data on the webpage.


2023-10-21 19-42-11
Tousif Khan
Champion

HELLO

I am not understanding what you are trying to achieve here, and I see you are using the same List in the list and source, why use the same list there?

Can you please elaborate on the issue and what you want to achieve?

Also if you share this in English there will be a wider scope of people will understand your issue.

2021-10-08 05-01-12
Deepa Tiwari

Hi @Naku Sitsu ,

I am seeing you are appending the list in the same List. If you are using a loop so you should have another List and append it or you can use ListAppendAll to add all records at one time.


Hope this will help you.

Regards

Deepa

UserImage.jpg
Naku Sitsu

I tried to write a loop for ForEach, but it's not very useful. Can you tell me how to do it specifically?

UserImage.jpg
Aman Singh Rajput

Hello @Naku Sitsu 

I have attached the OML solving your issue. I have used the ListApppendAll action as mention by @Deepa Tiwari

Please note that ListApppendAll action is used for all the use cases where you want to add elements to list in bulk. Even for your use case in the data from a list is being attached to same list.


Regards,

Aman Singh Rajput

SystemActionSolution.oml
2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello @Naku Sitsu 

This is how you can do list append in a loop - so that you will get all the record in your list, the loop will iterate for the number of records you have - 


And If you want to do it at once you can use list append all action - 


This will append all the record to the destination list on which you want to append the records.

There is a video over here for each list operation, it is a basic how-to video in which every list operation is defined with practical, this will help you in the understanding  
https://www.youtube.com/watch?v=LoUG74HtRng

I hope this will help 

Best Regards
Tousif Khan

UserImage.jpg
Naku Sitsu

Thank you for your reply.

I used to set it this way as you wrote in ListAppendOnclick, but it is not easy to use and cannot add data.

About ListAppendAllOnClick,I followed your settings and clicked the button on the screen, but there was no display. I set it this way to add data on the webpage.


2023-10-21 19-42-11
Tousif Khan
Champion

HELLO

I am not understanding what you are trying to achieve here, and I see you are using the same List in the list and source, why use the same list there?

Can you please elaborate on the issue and what you want to achieve?

Also if you share this in English there will be a wider scope of people will understand your issue.

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