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
|
 |
 |
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 |
 |
 |
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
|
 |
 |
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
|
 |
 |
|