Adding Extra Edit Buttons and working with 'Selected Check-Boxes' on Main List

This article discusses how to Add extra Edit buttons to your main form.

- Special thanks to Gunters post in the old forums:
- Here is the link: http://www.interaktonline.com/Products/Bundles/MXKollection/Product-Forum/Details/92685/a+second+button+that+does+same+as+edit+button+but....html?threaded=F

- There Gunter shows how to add a 2nd or 3rd Edit Button, that works just like the original, but can be linked to your own Detail pages..instead of the original Detail form

1) Browse to the file "includes/nxt/scripts/list.js", open up list.js in Dreamweaver and add the following code below the line that reads //configuration variables..

Here is what it should look like (add the code in red below):

//configuration variables

// additional function to enable links to secondary forms in the list
 function Secondary_Edit_Form(elem, page_url) {
 var form = utility.dom.getParentByTagName(elem, 'FORM');
 this.page_url = page_url; // that´s the "variable link" - part
 nxt_list_edit_link_base(form, page_url);
 }

2) Save and close the file

3) Now open up your ADDT List form in Split View, click on the original Edit button and add the following code to the end of the Edit button code (update the items in Red to use your actual values):

<a class="KT_edit_op_link" href="#" onclick="Secondary_Edit_Form(this,'tickets_qe_sel.cfm'); return false;">Quick Edit</a> <a class="KT_edit_op_link" href="#" onclick="Secondary_Edit_Form(this,'tickets_map_sel.cfm'); return false;">Map Selected</a>
<a class="KT_edit_op_link" href="#" onclick="Secondary_Edit_Form(this,'tickets_map_sel2.cfm'); return false;">Map w/StreetView</a>

4) You can add as many Edit buttons as needed, just duplicate the code above. (I have added three buttons in my example)

In Summary, the new Edit Buttons take on the same CSS look as the original Edit button, and function exactly as the original, including only those records that are Filtered &/or Selected will be passed on to your custom Detail Page(s).

Note: I created my custom Detail pages using the Create Dynamic Form Wizard.

Adobe

Cycle Africa
MyBiznessRocks
Exelwebs SSL Certificates
exelwebs VPS
 

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company