Hello there,
I have two galleries on one screen where I have been facing an issue with updating those gallery data into SQL.
Issue:
The First Gallery data update perfectly into SQL but the 2nd gallery data update becomes blank when I try to update again then it's going to update perfectly.
The code is like below:
ForAll(
Gallery4_1.AllItems,
Patch(
,
{ID:Value(lblAPIS_ID.Text)},
{
api_Regulatory_Status:txtinputgallery4_1.Text
}
));
ForAll(
GalleryAPIB_1.AllItems,
Patch(
Datatable,
{ID:Value(lblgalleryapi.Text)},
{
column :txtinputgalleryapib_1.Text
}
)
);
Please let me now the issue as well as the solution.
Regards,
Manoj Roy
Solved! Go to Solution.
Thank you for your kind response and help to solve this issue.
I solved it yesterday by creating a collection and pulling the data from that collection to update it in SQL.
Regards,
Manoj Roy
Hello @manojrohit16
Is this right?
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @charv3n @BisTekSpace |
Yes it is.
If the first one work, how about removing datatable in 2nd one?
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @charv3n @BisTekSpace |
ForAll(
Gallery4_1.AllItems,
Patch(
SqlDB,
{ID:Value(lblAPIS_ID.Text)},
{
api_Regulatory_Status:txtinputgallery4_1.Text
}
));
ForAll(
GalleryAPIB_1.AllItems,
Patch(
SqlDB,
{ID:Value(lblgalleryapi.Text)},
{
column :txtinputgalleryapib_1.Text
}
)
);
Hello @manojrohit16
Your code should be something like this:
ForAll(
Gallery4_1.AllItems,
Patch(
SqlDB,
LookUp(SqlDB, ID=Value(lblAPIS.Text)),
{
api_Regulatory_Status:txtinputgallery4_1.Text
}
)
);
ForAll(
GalleryAPIB_1.AllItems,
Patch(
SqlDB,
LookUp(SqlDB, ID=Value(lblgalleryapi.Text)),
{
column :txtinputgalleryapib_1.Text
}
)
);
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @charv3n @BisTekSpace |
Yes, you are right.
It worked?
✔️ | Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
🔗 | 🕸bistek.space 🐦 @cha_bistek 📺 @BisTekSpace |
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @charv3n @BisTekSpace |
No, facing the same issue.
Can you please screenshot and annotate the thing that you want to achieve?
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @charv3n @BisTekSpace |
User | Count |
---|---|
126 | |
87 | |
85 | |
75 | |
69 |
User | Count |
---|---|
215 | |
180 | |
139 | |
97 | |
83 |