Layout Disable auto-save
in browse mode, the users don't want to save automatically their modification, but should click on a button to save it, how?
In layout setup there's a check box "save record changes automatically". Clear it.
This is just the first step. Users can still commit (save) the record by clicking the laout background. To prevent this, put an empty, invisible web viewer behind all your fields and buttons and sized to cover the entire layout background. Now all you need to do is add a button to do a commit record to save the record. You can also add a cancel button that reverts the record.
The solution you suggested works well in FMP. But, in webdirect , the webviewer shows white fill color automatically ( i couldnt change color)even i set "sent to back". Can you let me know if there is alternate way in filemaker webdirect ?
Try using a button set to do a harmless single step. I use that option in FM Go where you also can’t use an empty web viewer.
I do it in a different way, no need to use overlaping objects.
The suggestion by planteg works for web direct very nicely. I do exactly as he does as a standard practice in web direct.
" if it’s False then I block the commit" - How you write script to block commit here ?
Create an On record commit trigger -
If [$$Commit] <> 1
Set Variable [$$Commit; Value:""]
Exit Script [Text Result:False]
When you want to commit a record use in your script...
Set Variable [$$Commit ; Value: 1]
Commit Record/Requests [With dialog:Off]
Set Variable [$$Commit; Value: ""]
So when a FM or the user tries to commit the current record, if $$Commit <> 1, the commit is blocked, otherwise it will succeed.
Retrieving data ...