Dabuskol
Apprentice

copy content of listview to another listview

Please advice,

 

I need to copy the content of my listview1 to listview2.

listview1 is readonly with paging

listview2 is add/edit w/o paging.

 

I tried to execute the command below but it only copies the 1st page, the succeding page is ignored. Record count (100). please advice.

 

For ALL rows on listview1 LISTVIEW
then complete the following one after another.
then add a new row to the listview2
transfer data (configure)
then apply the changes made to the row on the listview2 editable list

 

Scenario:

I tried to save record from listview1 using the command below, failed.

listview1, executes the create method for all items that have been added (configure)

Solution:

copy the content of listview1 to listiew2 then run the above command, it works. But failed, if there are multiple pages.

 

For your advice.

 

 

0 Kudos
Reply
7 Replies
Not applicable

Re: copy content of listview to another listview

 Hi Dabuskol,


 


Please see the related article below:


 

Regards,
Sello
Reply
Dabuskol
Apprentice

Re: copy content of listview to another listview

I forgot to mention that listview1 content is still in the fly not yet saved in my DB. data came from excel user added it using import options. That's why I cannot create a SMO to populate listview2.
0 Kudos
Reply
akumar
Apprentice

Re: copy content of listview to another listview

Hello,

 

while you are importing the data from excel sheet, Are you saving the data into Temp table ? If you are saving on temp table then write a proc or rule on view to move the data. 

 

Thanks.

0 Kudos
Reply
Dabuskol
Apprentice

Re: copy content of listview to another listview

Thanks for the reply. Nope, after import from excel data is still in the fly. Awaiting final command to submit record to DB.

That is another option to consider but I don't want t to do it at the moment k2 must / should have the best option to sove the issue. Or atleast guide me to the right workaround.

 

Really appreciate.

0 Kudos
Reply
Prajwal_Shambhu
Apprentice

Re: copy content of listview to another listview

Since, you still have data on the fly without storing at the backend. Can you not have paging disabled on the listview 1 so that you can execute smartobject create method for all the items added on the listview1?

 

Thanks,

Prajwal

0 Kudos
Reply
Ziqing
Apprentice

Re: copy content of listview to another listview

Import from excel to both list views. Why bother transferring data?

0 Kudos
Reply
Luyanda
Apprentice

Re: copy content of listview to another listview

Hi Dabuskol,


 


Please see the link below based on How To: Display Related Data Using One SmartObject:


https://help.k2.com/onlinehelp/K2smartforms/UserGuide/4.7/default.htm#How_Tos/Display_Related_Data_U...


 


Kind Regards


Luyanda


 

Please Note: K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.
0 Kudos
Reply