Select drop downlist value

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rraghul
Newbie
Posts: 10
Joined: Tue May 12, 2009 9:13 am

Select drop downlist value

Post by rraghul » Thu May 14, 2009 6:40 am

Hi,

I have a drop down list in my form, which is filled with values from data base.(eg: clientname).
Its display member is Name and value menmber is ID.
Could please advice, if i pass the ID to the script, how can i select the name automatically through the script.

Thanks
rraghul

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu May 14, 2009 6:26 pm

Try doing the same thing you do manually. There are a few different methods that might work for you.

1. Some drop down boxes will automatically go to the selection when typing the name of a selection.

2. On other boxes, you may need to know the count down, and press the Down arrow x times.

3. On other boxes, you may need to make a loop that presses Down, and does an image compare.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu May 14, 2009 6:44 pm

Is this drop down on a desktop interface or on a web page?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

rraghul
Newbie
Posts: 10
Joined: Tue May 12, 2009 9:13 am

Post by rraghul » Fri May 15, 2009 4:24 am

Yes.this drop down is on a desktop interface.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri May 15, 2009 8:34 am

You should be able to either "drill down" to it (by sending the text of the item you want to select using Send>text), or if you know the index, arrow down the required number, or use GetListItem.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

rraghul
Newbie
Posts: 10
Joined: Tue May 12, 2009 9:13 am

Post by rraghul » Mon May 18, 2009 4:33 am

Thanks.
I have tried earlier by sending the text using send>text, but its not worked properly for me. So i tried the second method.

ie., I have counted the index of the item and arrow down to the item to be selected.

Now its working properly..

Thanks again.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts