I have a need to take multiple values from a checkbox field and create an array and do this over a small foundset of records
I seem to be failing miserably using the following code:
var v_fs_count = foundset.getSize();
var v_array_result = new Array();
var v_array_record = new Array();
var v_string = null;
for ( var i = 1 ; i <=v_fs_count ; i++ )
{
var v_current = foundset.setSelectedIndex(i);
v_string = z_temp_column;//checkbox field
if ( v_string )
{
v_array_record = v_string.split(' ');
v_array_result.concat(v_array_record);
}
}
Any pointers to where I may be going wrong appreciated
As Harjo mentions, there are multiple options for this checkbox field which is driven by a valuelist of (in this instance) suppliers for a product group
I want to multiselect the suppliers and create an array of their primary keys to cycle through and do something with them
Also, my foundsets are within 10 or so records here so very small and manageable
Hi Harjo,
Thanks, the ‘\n’ worked
All that I need to do is get my .concat() line working as it seems to be ignoring it
It works, but the multiple values are displayed in a horizontal way.
I would like to see the multiple values in a vertical way, and when there are a lot of values, I want to see those in values in multiple columns.
How can that be done?