CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 [Solved] Hidden Field in Editable Grid

Print topic Send  topic

Author Message
tomato

Posts: 11
Posted: 12/21/2009, 6:52 AM

Hi
I have an editable grid which I have turned into a list ie
<form>
<ul >
<li>row data</li>
<li>row data</li>
</ul>
<Hidden field>
</Form>
It is a drag - sort list so users can sort the order of the list by dragging them to change the order , it uses the prototype and scriptaculous libraries.
At the end of the list , after the rows but just before the </form> end tag, is a hidden field into which the new order of fields is put (so it holds data such as "1,3,2")

Everything works fine except I am unable to use the getvalue function
$Container->txtOrderInput->GetValue();
to access the data in the hidden field.

Is this something to do with the way the grid works ie processing row by row.? any thoughts?

I have tried BeforeExecuteUpdate, onsubmit and the onsubmit from the button.
Thanks
Andrew
View profile  Send private message
Gena

Posts: 591
Posted: 12/21/2009, 7:00 AM

check my replay in this topic http://forums.codecharge.com/posts.php?post_id=102254
_________________
Gena
View profile  Send private message
tomato

Posts: 11
Posted: 12/21/2009, 2:44 PM

Hi
Thanks for the reply but I am not sure how this helps? There is only 1 hidden field so the row number does not change.
Andrew
View profile  Send private message
datadoit
Posted: 12/21/2009, 3:54 PM

Still very relevant to refer to the row number, albeit just one. See
this for more details on accessing editable grid row values:
http://forums.codecharge.com/posts.php?post_id=60507
tomato

Posts: 11
Posted: 12/21/2009, 4:59 PM

Many thanks for your reply
this worked

$intSortOrder =CCGetParam("txtOrderInput", "");

The comment , in the link you provided, about what to do when the control is not used in an update or insert operation was the 'missing link'.

Cool.
regards
Andrew
View profile  Send private message

Add new 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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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