I would like to show the user a list of records from table and allow the user to select which records to include with a new record in a new database.
I will create a new record for each item checked in the list. I have included a quick sample of an html style form that I would like to do in Servoy…
==============================================
var my_html = “”;
my_html = my_html + “”;
my_html = my_html + “”;
my_html = my_html + “Form Name”;
my_html = my_html + “Form Description”;
my_html = my_html + “Include This Form”;
my_html = my_html + “”
for ( var i = 1 ; i <= controller.getMaxRecordIndex() ; i++ )
{
controller.setSelectedIndex(i);
my_html = my_html + “”;
my_html = my_html + “” + template_name + “”;
my_html = my_html + “” + description + “”;
my_html = my_html + "<input type=checkbox “;
my_html = my_html + “name=template_” + i + " value=ON>”;
my_html = my_html + “”;
}
my_html = my_html + “”;
controller.setDataProviderValue(‘globals.my_html’,my_html);
I want to grab the user inputs and save the record in a new table by spliting the submitted values. Any thoughts greatly appreciated.