Expand my Community achievements bar.

SOLVED

How to save data in a list (made with a file, not a list of recipient) in a web Application

Avatar

Level 2

Hello,

 

I'd like to know how to save data generated from a webApp in a temporary table, such as a list of type "File".

 

I already tried :

 

xtk.session.Write(<tempLST111 xtkschema={temp:LST111} _operation="insert" element1={ctx.vars.element1} element2={ctx.vars.element2} element3={ctx.vars.element3} />);

 

But this gives an error while executing the webApp

 

Thank you.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello, 

 

If you just want to store in temporary table. Then you can also do like below: 

1. First create  a schema like cus:tempWebAppName

2.  Define the fields as per your need. You can also add creation date. Define the link with other table if required.

3.  Insert the data in this table with xtk.session.Write in this table. 

4. You can use this data, where you need to use.

5. You can create a workflow to purge the old data which is not required from this table.

 

 

List also create a table. If you want to see the name of this SQL table then go the list and open the XML via option in the top Edit->Edit XML. Then you can see it.

Parvesh_Parmar_1-1654774630461.png

 

 

Parvesh_Parmar_0-1654774550579.png

 

 

 

Thanks. 

Parvesh.

 

 

 

 

View solution in original post

3 Replies

Avatar

Community Advisor

Hello @Sifr 
I have not tried creating a list directly from WebApp.

But you can create a workflow with an external signal and then trigger the workflow from the Webapp and pass the variables. Then use the variables in WF to create a list.


     Manoj
     Find me on LinkedIn

Avatar

Correct answer by
Community Advisor

Hello, 

 

If you just want to store in temporary table. Then you can also do like below: 

1. First create  a schema like cus:tempWebAppName

2.  Define the fields as per your need. You can also add creation date. Define the link with other table if required.

3.  Insert the data in this table with xtk.session.Write in this table. 

4. You can use this data, where you need to use.

5. You can create a workflow to purge the old data which is not required from this table.

 

 

List also create a table. If you want to see the name of this SQL table then go the list and open the XML via option in the top Edit->Edit XML. Then you can see it.

Parvesh_Parmar_1-1654774630461.png

 

 

Parvesh_Parmar_0-1654774550579.png

 

 

 

Thanks. 

Parvesh.

 

 

 

 

Avatar

Administrator

Hi @Sifr,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.


Thanks!



Sukrity Wadhwa