IETags Set Dropdown Value

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

IETags Set Dropdown Value

Post by Dominic_Fichera » Thu Jun 11, 2015 9:23 am

Hey guys,

I'm having some troubles using WebRecorder Functions to set the value of a dropdown menu. Was hoping someone might be able to lend a hand.

I need to change the dropdown from the default value ("Name") to "EntityID (Unique ID)"

I can change it by using "press down", but want to use the WebRecorder Functions as then I don't have to "focus" on Internet Explorer.

Here is an image of the screen that would be open, including part of the source code, if it helps. (Here is the direct link http://i58.tinypic.com/2ccsepx.png)

Image

Please just let me know if you need more information as I have never done this before :)

Thanks in advance!

Dominic

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

Re: IETags Set Dropdown Value

Post by Marcus Tettmar » Thu Jun 11, 2015 7:04 pm

Well, you would normally just do:

IEFormFill>ie_ref,,,SELECT,NameofSelect,Entity (Unique ID),res

But if that doesn't work then there's more to this select than meets the eye. Web sites are tricky beasts. Without seeing it and being able to try it I can't tell you what will work. If I can try it and it doesn't work I can't necessarily explain WHY it doesn't work, but I can play about and find a method that might work.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

Re: IETags Set Dropdown Value

Post by Dominic_Fichera » Fri Jun 12, 2015 5:35 am

Hi Marcus,

Thanks so much for that! It did the trick!

Now, the last barrier I need to overcome is after the script searches for a user, it needs to select it.

The results (after the script has searched) looks like this:
Image

Currently, the following script does work, but only in a testing scenario

Code: Select all

IETagEventByAttrib>{%varAdvancedSearchURL%},A,innertext=Woods,click,
The code is obviously looking for the name "Woods" to click on it, but with different users, the name won't remain the same.

Is there anyway to make it a bit more of a "click this general area for a hyperlink" instruction?

Alternatively, when I use the IE Element Wizard, it gives me this:

Code: Select all

IETagEventByAttrib>{varAdvancedSearchURL},A,href=javascript:editRecord("/merced/content/home/left-nav/hidden/PersonRecordEditorContentItem_CustomerManagement","Person","Person",94658426),click,
But this doesn't work.

I know there's a whole jumble of information here, but if by some magic you can make sense of it, I would be forever grateful! :)

Dominic

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