This content has been marked as final. Show 9 replies
Would it be better to hide the icon for the rows that have been selected?
1. Checks if the id is contained in the concatenated string and if no, it adds it,
2. If it is there, it takes it out
So, my idea is to have a different symbol once you click on it and to get the original one
if you pick it again. Something like a checkbox.
Without knowing the actual items/images involved, I can only supply a generalised example to show what's needed:
x.src = (x.src.indexOf("unselected.gif") > -1)?"selected.gif":"unselected.gif";
I hope this helps?!?!?!
Thanks. This is exactly what I wanted. You can see it working here:
Now, the only thing is to keep the value after paginating. However, I am updating an
application item with the single id's and can include that value into the query.
Usually, when I see the arrow pointer, I don't always understand what that means, and whether I should click the item/image or not. However, most of us understand that the hand pointer can lead us to something else, and pressing it, IMHO, it more intuitive.
All that is to remind you that you can change the pointer of your report image, by adding style="cursor: pointer;" (or any other shape you choose) to the image source.
Waaw I like that implementation. (something for my weekly forum wrap-up!)
Denes, why do you use an application item instead of a page item?
Doing this in reports/tab forms would be cool ;)
This is what I'm currently working on:
an application, which will give you a possibility to download multiple files at once. In this
example it is comming from a table but in real life this should be from different network
the symbol on clicked. Also in the oposite direction - unselecting the row and changing
the symbol back. The chalange was also to persist the symbols on pagination. Have a look.
It is working now. Except, of course, the download itself.
Arie, the items/images are only random - whatever I have in my workspace. In a real
world, it of course, needs to tell you something and needs to be explained.
Can you explain this a bit more in detail:
"...you can change the pointer of your report image, by adding style="cursor: pointer;"..."
I do not quite understand what you mean by that.
The app is looking good!
Re Arie's comment about the pointer - you will notice when you hover over a button or a link, the cursor changes from an arrow to a hand. This is done using styles. I agree with Arie that it helps the user to see that an item "does something" if the cursor changes from a normal arrow to something else - normally "hand" (but "pointer" works as well from IE6).
I got that. Thank you for the tipp. It is included in the code.