Select a Row?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Select a Row?

Jim Logan-3
Is it possible to highlight a particular row within a repeat, as if the
user had clicked on that row? I have a sorted table, and when the user
inserts a new row, it's hard to find and edit it further!

Thanks,
-Jim


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Select a Row?

fl.schmitt(ops-users)
Jim,

> Is it possible to highlight a particular row within a repeat, as if the
> user had clicked on that row? I have a sorted table, and when the user
> inserts a new row, it's hard to find and edit it further!

you can set the repeat cursor using setindex:
http://www.w3.org/TR/2007/REC-xforms-20071029/#action-setRepeatCursor

hth
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Select a Row?

Jim Logan-3
Florian Schmitt wrote:

> Jim,
>
>  
>> Is it possible to highlight a particular row within a repeat, as if the
>> user had clicked on that row? I have a sorted table, and when the user
>> inserts a new row, it's hard to find and edit it further!
>>    
>
> you can set the repeat cursor using setindex:
> http://www.w3.org/TR/2007/REC-xforms-20071029/#action-setRepeatCursor
>
> hth
> florian
>
>  
Thanks, Florian. I discovered another problem with using the
exforms:sort() function for an xforms:repeat: the position() function
seems to be returning the wrong index. Any idea what I can do to fix that?

Thanks,
-Jim



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Select a Row?

fl.schmitt(ops-users)
Jim,

> Thanks, Florian. I discovered another problem with using the
> exforms:sort() function for an xforms:repeat: the position() function
> seems to be returning the wrong index. Any idea what I can do to fix that?

i'm not sure because i don't use repeat with sort, but if it's the
problem with using position() inside a xpath predicate, you could try to
replace position() with count(preceding-sibling::*) + 1

hth
florian


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws