How to control Button display?

Notes on the new SeedCode Complete template for FileMaker 13
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Wed Jan 27, 2016 10:24 pm
Hi John and Dan,

I changed the Delete function for the Notes from actual deletion of a record to a strike through function, so the text is still visible but crossed out.

The only problem I am facing now is, that I can't seem to get the buttons displaying correctly for the next action.
ie I am deleting a note with the button Delete and Confirm Deletion and it does it all and goes back to the Project View Panel, but when I then click ie New Note, the button shows the Cancel | Confirm Deletion instead of Cancel | Save | Delete.

I can't work out how to control the button display.

Attached a screen shot of my Deletion script modifications.

Thanks

Kind regards

Regine
Attachments
deletion script.PNG
deletion script.PNG (24.49 KiB) Viewed 8495 times
SeedCode Staff
SeedCode Staff
Posts: 190
Joined: Tue Sep 22, 2015 2:27 pm
PostPosted: Thu Jan 28, 2016 10:33 am
Hi Regine,

Cool modification! It looks like you've uncovered a little error in our "Confirm Delete Project Note" script. The first Set Variable step should have the variable name $$sc_confirmNoteDelete, not $$sc_confirmEventDelete. Making that correction should cause the buttons to display as expected after "deleting" a note.

Thank you!
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Wed Feb 03, 2016 11:51 pm
Hi Dan,

Thanks for the update.

I have updated it and it works fine now.

FYI: It seems to be wrong in other scripts as well:
Confirm Delete Company Note Challenge
Confirm Delete Invoice Note
Confirm Delete PurchaseOrder Note
Confirm Delete Item Note

I don't use the Invoices, Purchase Orders and Items, so have done no testing there.

Thanks

Kind regards

Regine
SeedCode Staff
SeedCode Staff
Posts: 190
Joined: Tue Sep 22, 2015 2:27 pm
PostPosted: Thu Feb 04, 2016 9:01 am
Regine,

Glad to hear that worked for you. And thanks for the note regarding these other scripts -- you are correct. We'll be correcting them in the next update of Complete.

Thanks again!

Return to SeedCode Complete 13

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: