djgjohn
Posts: 52
|
Posted: 08/30/2017, 9:15 PM |
|
Hello everyone,
In a normal form - onchange submit form code works, however with an editable grid the onchange submit does not seem to work.
The javascript code does not appear to allow for the _rowNumber being added to the select box ID.
<select id="contentcall_listscall_result_{call_lists:rowNumber}" name="{call_result_Name}">
<option selected value="">Result</option>
{call_result_Options}
</select>
I am using page designs so the js function includes "content" as a parameter but not rowNumber.
Does anyone have a work-around?
Thanks in advance.
|
|
|
DataDoIT
|
Posted: 09/02/2017, 10:38 AM |
|
You're gonna wanna fully jQuery and AJAX POST that action. Unfortunately
that's beyond the scope of what CodeCharge will do for you in a few
simple clicks.
|
|
|
djgjohn
Posts: 52
|
Posted: 09/03/2017, 4:22 PM |
|
Ok, thanks. I think I'll forget the idea.
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 09/05/2017, 2:58 AM |
|
This might give some idea I use it to retrieve values from a 'selected row' in a dynamically rendered json grid, highlight and when clicked and display the selected row in an input. You are probably interested in setting the variable 'values'...
$("#sitename").on('click','tr',function(e){
e.preventDefault();
var tds = $(this).addClass('row-highlight').find('td');
var values = '';
tds.each(function(index, item) {
values = values + ' ' + $(item).html();
});
values = " SELECTED: Site ID -" + values;
$('#selectedsite').val(values);
});
If you want to see it in action go to www.assetmaster.com.au/contact.html and scroll down a bit and 'Select A Site'
_________________
Central Coast, NSW, Australia.
|
|
|
djgjohn
Posts: 52
|
Posted: 09/05/2017, 5:40 PM |
|
Thanks Michael,
What is required is a rework of the form submit onchange function so that it will ID the select box based on the row number.
This is a CCS bug really because the standard system doesn't work.
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 09/07/2017, 5:00 PM |
|
What DataDoIT says.
You wanna do it, you gotta learn it.
Not sure if much more than onclick or triggerclick can be bound to a button anyway......
_________________
Central Coast, NSW, Australia.
|
|
|