How can I spy an active accessibility combobox in blue prism? I want to open the combobox and select an element from it - combobox

So I have a combobox for the user to select whether he is an old customer or a new customer. With my process I was able to identify the combobox as an AA element so my process is now able to identify the combobox and click on it when it runs. But the problem starts when I need to select the "new customer" option after opening the combobox. I am unable to identify the option either as a HTML element nor an AA element.Because of this,the process is not able to select an option and throws an error.
What I tried:
I tried an alternative where I added a navigate stage for just the dropdown/combobox and in the properties for this stage I added "select item" as the action and entered the name for the option which in this case is "new customer" along with the item position. This does not work either and throws an error saying "select item" cannot be used for AA whose role is "static text".
P.S: I checked the attributes for the combobox and unchecked the role attribute but that did not work.

My ComboBox is standard HTML Combo Box(Element Type) in Application Modeller. But in Navigation step I use Select Item as Action and in Inputs section I use Item Position as a Number.
Where 0 is first position in combobox, blank. 1 is the first position, in your case it would be "new customer" and 2 would be "old customer".
It works fine in my case.
Hope it helps.

you can use the mode html on the combobox to click then send down key in global key event to choose what you want.

Related

Get Listview sub items in UI Path

How to get the list view sub items using UI Path RPA.
I tried using data scraping, recording but it output only first sub item data.
I have followed this link regarding same problem but I couldn't understand the xaml file provided in answer.
https://forum.uipath.com/t/data-scraping-listview/118929/10
you could use the "Find children" activity on the parent element, so you could retrieve all the list elements.
You should search for "FIND_DESCENDANTS".
Regards, Gio
If your target client is Windows Forms Ap,you can refer the following:
You must use ui explorer to watch the element attribute
uiexplorer's "UI Frameworks" (from menu options/UI Frameworks) change to "UI Automation".
indicate element to select which subitem you want.
Then you can see down right selector editor display like
"<uia automationid='ListViewSubItem-2' tableCol='2' tableRow='10' />". Watch the left side "visual tree", it show the subitem list. so now what you have to do is to get the item list(it show first subitem) and for each item to get subitem list,finally through get attribute activity to get the subitem value.
the pseudo flow like following:
find_children activity=>for_each activity { find_children activity=> for_each activity { get_attribute activity} }
the first find_children's selector like "<uia automationid='1000' cls='SysListView32' />" and filter is like "<uia automationid='ListViewItem-*'/>".
the second find_children's selector is for_each item and filter is like "<uia automationid='ListViewSubItem-1'/>". the "1" is subitem index.

How to access click event of option in React dual list box?

I am using react-dual-listbox. Here I am able to select the columns and deselect and use the selected values. But, I want to access the selected option in selected items on click of that particular item.
Ex: if 2 options are selected. If i click on second one, It should give me the value and index of the selected option. I saw something to use selectedRef for that purpose, But I am new to React.
Could anyone please help me out.
<DualListBox
canFilter
preserveSelectOrder
options={this.state.availableColumns}
selected={selectedColumns}
onClick={this.selectedRef}
onChange={this.onColumnSelected}
/>

Combobox List passing string

I have a VB6 application that has been running for quite sometime. Currently I'm trying to update one of the form that has a combobox 2.0. Because the combobox is populated with hundreds of items - I'm trying to update it so that users are able to click on a look up button next to it, where another window opens up with all the items from the combobox. User will be able to search by keyword and/or select an item and double click on it and have it appear in the combobox. The issue I'm having is with trying to pass no value or "" when CANCEL is clicked. I'm able to pass the value if I in the properties window my STYLE Is set to COMBO rather than list. However, the issue I come across is that with COMBO the value (text) in the combobox sometimes is not aligned properly. Is there a way to pass a "" value to a combobox 2.0 without changing the style to COMBO?
If they hit cancel set the ListIndex of your combo to -1 rather than setting the text property. This is the value for no item being selected.

Where is the Visual Basic 6 Combo Box Click Event?

I'm new to Visual Basic, I have scoured the net to look for the event handler for the combo box click event but I cannot locate it. I am trying to make an event happens if a certain index is selected with the combo box1 then another combo box2 will populate the selected the index.
i have looked at links like these but it does not explain how or what the person did to access the _ click event VB6 Combo box events
In the code window for the form, select the desired control from the left drop down, then the event you want from the list of all events in the right drop down:
It will create the procedure for you and make it the active one. This is the same as VB.NET assuming you have the selectors on.
I haven't been using VB6 for ages, but i think what you need is covered here: http://www.vb6.us/tutorials/visual-basic-combo-box-tutorial
I cannot recall having to do anything special when using click events in VB6 at all.
In the first combobox click event, you should be able to have an if statement checking if a certain item is selected using .ListIndex and if so, populate the other.

MS ACCESS 2007 restrict editing to form fields until combobox selection is made

How do i restrict the editing of form fields until a combobox selection is made? I am using MS Access 2007.
Thanks for your help.
On the form, you can start off with all the fields being locked (cannot edit) and disabled (cannot click on them) (you can find those in the property sheet of the form). Then on the On Change event of the combo box, in VBA, cycle through all the fields and enable them again.
This answer provides code for how to loop through controls on a form. In this example, you would set ctl.Enabled = True and ctl.Locked = False (where ctl is the control you are referencing)
A note, to make sure that the combo box is always changed, I usually put "Choose One..." as the first item of the list. And check it on form submission to make sure it's not still selected. That way, it forces the On Change event to fire where it wouldn't if someone used the first option of the list.
Hope that was at least enough to get you started...
EDIT: Additional info
In the table design, I put default value of "Choose 1" on the Combo Box and made it the first option. So when the form comes up, that's what you see.
You can set the Locked property of your memo and date fields to Yes (found in the property sheet under data or you can use the .Locked = True in VBA.
Then, in the on change event of the combo box, click the ... and use the code builder and put something like this:
Dim ctl As Control
If Me.Combo77.Value <> "Choose 1" Then
'Loop through all controls on form
For Each ctl In Me.Controls
'Only text boxes, not labels, or combo box ect.
If ctl.ControlType = acTextBox Then
'Unlock the field and allow editing
ctl.Locked = False
End If
Next
End If
I tried it out and it works on my little test database.
Here is the MSDN article on the control types: MSDN Control Types
To do it this way, I would recommend what I said above and put the first item of the Combo Box something they're not going to choose.

Resources