Platform
Learn
Community
Support
Partner Center
Sign up
or
Log in
logout
Account Settings
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Learn
Training
Documentation
Evaluation Guide
What's New
Community
Home
Forums
Forge
Ideas
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Sign up
or
Log in
Home
Forums
Forge
Ideas
Members
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Technology & Integration
How to give confirm message before update operation?
Community
›
Forums
›
Technology & Integration
How to give confirm message before update operation?
New Post
New Post
Suraj Borade
Posted on 2016-04-01
Suraj Borade
Rank: #47
Posted on 2016-04-01
Good Afternoon people,
I am importing XML contents into database. Before import, I have applied the check whether record is already present or not.
If record is present I am updating it.
But before update happens, I want to take permission of user. If user clicks "Yes", it should update else it shouldn't update and come out.
How can I give confirm message inside action?
Thanks and Regards,
Suraj Borade
Kilian Hekhuis
mvp_badge
mvp_label
Posted on 2016-04-01
Kilian Hekhuis
mvp_badge
mvp_label
Rank: #9
Posted on 2016-04-01
Solution
You can't, at least not easily. Your action runs Server Side, while your question runs Client Side. What you could do as a work-around, is checking the existence of the record in an action that returns a boolean, and based on that boolean you have either an empty Confirmation Message on the button or the question. There's one catch: the action is run
when the page is rendered
, so if you need to react to input, you need to Ajax Refresh the button before the user clicks it (i.e. when the relevant data changes).
I understand that in your case this might not be feasible, as you are apparently importing and updating in one go, so you may need to do some trickery with hidden buttons and WidgetClicks etc. to get what you want.
Solution
J.
mvp_badge
mvp_label
Posted on 2016-04-01
J.
mvp_badge
mvp_label
Rank: #7
Posted on 2016-04-01
Solution
2 stage import.
first import the xml into a temp-table with a boolean and a status (already exists, UserAllowsUpdate)
then present is on the screen.
user can filter on the records he needs to confirm.
hit the button, and move the data from temp to real table.
Solution
J.
mvp_badge
mvp_label
Posted on 2016-04-01
J.
mvp_badge
mvp_label
Rank: #7
Posted on 2016-04-01
Solution
or make it a BPT-process *shivers*
then you will import the data.
human-interaction
import it for real.
Solution
Quick Reply
attachment
Choose File
No file chosen
Submit
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Community Quick Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...