HI Team,
I would like to create an approval tool through REST API linkage with the in-house system using Appsmith.
I want to save the Select value output in API Request to ‘storeValue.approvallist()’
However, only the latest Select values are stored in the code below.
Is there a way to save the value continuously?
my JS Objects configured like belows.
[JS Objects]
export default {
myFun2: async () => {
await storeValue('approvallist',undefined,false);
await storeValue('approvallist',[{
'userinfo' : Select_User.selectedOptionLabel,
'uniqueId' : Select_User.selectedOptionValue
}],false);
return appsmith.store.approvallist;
},
}
{{appsmith.store.approvallist}}
[
{
"userinfo": "UserInfo from REST API",
"uniqueId": "UniqueID from REST API"
}
]
[ I want to make like below ]
[
{
"userinfo": "UserInfo_1",
"uniqueId": "UniqueID_1"
},
{
"userinfo": "UserInfo_2",
"uniqueId": "UniqueID_2"
},
{
"userinfo": "UserInfo_...N",
"uniqueId": "UniqueID_...N"
}
]
I have not been able to resolve this issue for more than 2 weeks.
Please help me solve this problem.