Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Set form dirty
Set form dirty [message #1870797] Mon, 09 September 2024 09:32 Go to next message
Eclipse UserFriend
Hello,
I am creating a copy functionality to copy a record selected on table field.
is the form I keep every think as the selected record excel the unique ID.

The AbstractForm does not detect the change on the Unique ID field.

How to force the AbstractForm to ask for save in this case.

Kind Regards

Re: Set form dirty [message #1870809 is a reply to message #1870797] Mon, 09 September 2024 10:26 Go to previous messageGo to next message
Eclipse UserFriend
I assume that you load the existing data within the form handler in execLoad.

After execLoad is called in a form handler, everything is marked as unchanged via AbstractForm#markSaved in AbstractForm#loadStateInternal. To mark a form as dirty, use AbstractForm#touch in execPostLoad of the form handler (or change the field value in execPostLoad).

Regards
Stephan
Re: Set form dirty [message #1870815 is a reply to message #1870809] Mon, 09 September 2024 11:01 Go to previous message
Eclipse UserFriend
Great, thank you Stephan !
Previous Topic:REST API access without login
Next Topic:On Scout 24.1 Formbased Login fails on Safari
Goto Forum:
  


Current Time: Tue Jun 17 13:26:11 EDT 2025

Powered by FUDForum. Page generated in 0.23913 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top