How do I add a button on an existing form to open another existing form for editing the current record that Im looking in view mode?
I created a Browse and Edit form using the Fast Forms designer. It created the table, and I modified it and adjusted it to my liking. I then did some reading... and more reading... and more... because my though on this was, I do not want some users to be able to EDIT the fields on this table once they have been saved int he database. So I found out how to duplicate (clone) a form by searching and reading the forums and piecing together an answer. I created a "Browse" clone of my edit form. Except it still allowed me to edit the fields. So then I changed the form so that ALL the fields were ReadOnly and now I want to add a BUTTON on that form so that if the user clicks it, the form opens into edit mode and all the fields magically open for editing. I figured the easiest way to do this would be to open the current record into another Form (or the original form that I cloned) that allowed the user to edit the record info. After spending a couple of hours searching and reading I came across a post that kind of discussed adding a Next button to a form and how to do that. It said to add the following (I've changed it slightly to fit my needs) to the Javascript of the form.
Code: Select all
nuAddActionButton('EditTaxForm', 'Edit TaxForm', 'nuForm('FF1', '', '', '', '2')');
These are simple things that takes HOURS to figure out and I'm not sure why... If ANYONE can point me in the right direction on How to Add a Button to a form that does something... like open another form to edit the information that is on the current form, that would be FANTASTIC! I haven't even gotten to the part where I want to perform a "lookup" (I guess thats what its called here) to another relational table (one to many) to show all the records for the main Customer from the ExistingOrders table that then I can click on that record ID and open a Browse Only frm of that record.) That's next. Additionally, I need to be able to while "Viewing" a record, be able to click a button that would "Duplicate the record into a new form (except a few of the fields or change a few like a orderdate field.)
I have so much to learn... Thank you for your guidance...