Page 1 of 1

How to control Button display?

PostPosted: Wed Jan 27, 2016 10:24 pm
by Regine
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

Re: How to control Button display?

PostPosted: Thu Jan 28, 2016 10:33 am
by DanW
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!

Re: How to control Button display?

PostPosted: Wed Feb 03, 2016 11:51 pm
by Regine
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

Re: How to control Button display?

PostPosted: Thu Feb 04, 2016 9:01 am
by DanW
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!