CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Editable grid onchange submit form not triggered

Print topic Send  topic

Author Message
djgjohn

Posts: 34
Posted: 08/30/2017, 9:15 PM Quote message

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.
View profile  Send private message
DataDoIT
Posted: 09/02/2017, 10:38 AM Quote message

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: 34
Posted: 09/03/2017, 4:22 PM Quote message

Ok, thanks. I think I'll forget the idea.
View profile  Send private message
MichaelMcDonald

Posts: 601
Posted: 09/05/2017, 2:58 AM Quote message

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.

Use the EXETA Online Business Valuation Tool to
value your business.

www.exeta.com.au
View profile  Send private message
djgjohn

Posts: 34
Posted: 09/05/2017, 5:40 PM Quote message

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.
View profile  Send private message
MichaelMcDonald

Posts: 601
Posted: 09/07/2017, 5:00 PM Quote message

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.

Use the EXETA Online Business Valuation Tool to
value your business.

www.exeta.com.au
View profile  Send private message

Add new topic Reply to topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.