forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Multi-select within Table Element?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Sun Dec 21, 2003 3:55 am    Post subject: Multi-select within Table Element? Reply with quote

Hi guys,

This may be a dumb question, but here goes... Because the table element supports the "multi" style, how can I get the selected items for addition into another list?

For example, if a table has 10 items in the list, but I use Shift + left click to highlight 6 of the 10 items, how can I get the selected 6 items into a list (or variable to parse)?

I am only able to acquire the first line of the selected group of items...

FYI: I am using VDS 5.0.

Thanks,

- Boo
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Dec 22, 2003 4:50 am    Post subject: Reply with quote

Hi Boo
I cannot check currently what VDS 5 table multiselect does as I am out of station with no access to VDS.
The things you are looking for may be possible using API though as I detailed offline. I may be able to help you more once I am back 25th this month.
BTW you need not post the same question at multiple sections as this may not help in any way to speed up the response.. Take no offense Smile

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Dec 22, 2003 4:43 pm    Post subject: Reply with quote

You should use the @items() function for this. I don't know how the selected rows will be given, but I guess you can parse them with the parse command... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Mon Dec 22, 2003 5:42 pm    Post subject: Reply with quote

Hi Skit3000,

Thanks! That's just what the doctor ordered. Cool

FYI: I searched for @items() in the VDS 5.0 help file, but search did not show any results. However, at the bottom of the @item() entry, I now notice a link to the @items() information. Wink

Thanks again!

Cheers,

- Boo
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Dec 25, 2003 3:35 pm    Post subject: Reply with quote

Hi Boo
Now multislect/unselect is possible using simple commands
from TBLCTRL.dsu
Code:
TBLCTRL SELECTRANGE,TABLE1,all

http://www.vdsworld.com/index.php?page=download&fileid=341
You can get the selected items using @items() already available in VDS 5.x and then parsing the output as Skit suggested.
Enjoy

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group