dojo automatic textbox select - text

Dojo newbie here and I have a dialog and before I dialog.show(), I want to fully set and select one of the text boxes. The select() is not available as I have tried. As an extension I need to select the entire textbox contents on any click in any textbox after the dialog is up. I cannot seem to get around the missing select(). How do I do it?

There's a selectOnClick attribute on TextBox that should help you out there:
<input data-dojo-type="dijit/form/TextBox"
data-dojo-props="selectOnClick:true"
value="Everything is selected on click"/>
http://jsfiddle.net/inanutshellus/v97wgxLb/
If you want to programmatically set focus and set the selection, you could cheat and call the private _onFocus method directly. Looks like you'd pass in the string "mouse", e.g.
myTextBox._onFocus("mouse");

Related

Combo Box not showing on Excel VBA Form

I have a form with multiple Combo boxes. I was doing some appearance tweaking of the form and one of the boxes is not showing anywhere. If I try to add a new combobox with the same name it says it is not unique.
I tried Opening the form with a message in the box "Here I am" but it did not show. I don't get any compile errors as there are multiple references to the field in my code. Is there anyway to find it (Me.cmb_Photographer)?
It could be a bunch of different things. Perhaps the visible property is set to No or the control is behind another control. You might also have mislabeled something so Name property is different from the Control Source property.
In any case you should be able to go into design mode, open the property sheet and use the dropdown to find the control you're looking for. It should highlight the control on the form.

How do I change format on ActiveX Control Option Button when selected?

When I select the ActiveX Control Option Button the entire border (box) becomes highlighted. Is there a way to fix this, perhaps change something in Properties, so when I select the button nothing is highlighted?
It is not clear what you mean by "select the button".
If you mean to click on it, have you tried setting the "TakeFocusOnClick" property to False?
Once you've set the property, click the DesignMode button to get out of Design Mode.
The original question is about a "control option button" which is presumably the Option Button. While the 'Command Button' has a TakeFocusOnClick attribute, the Option Button surprisingly does not. Neither does the Check Box.
This property does not appear on the Properties list on the worksheet in Design Mode or on the auto-complete list in the VBA editor, even though they will both take focus on click.
NOTE: ActiveX buttons are far more flexible than the stock "form controls" that appear at the top of the 'Insert' dropdown panel.

Handling multiple html combo boxes in BluePrism

On a web page there are two html combo boxes, value in the second combo box depends on the values selected in first combo. When I do this manually it works, but with BluePrism on selecting value in first box the values in second combo box doesn't load.
I think that it be so, that when you're using blueprism "select item" action instead of clicking using mouse, then some javascript code must not be executed.
I'd try to investigate a page that you're automating. I'd search for the javascript code that is being executed when using mouse and try to call that method from BluePrism object.
I think that it be so, that when you're using blueprism "select item" action instead of >clicking using mouse, then some javascript code must not be executed.
Yes, this is the right answer.
Also, some combo box will check your manipulation. If your manipulation is more robot-like, it would not invoke the javascript code. You may need to use "invoke javascript function" in navigating stage or you can just use "global send keys" to send keystroke and make you manipulation more human-like.
When you spy the element of same type just like combo box or text box you, please select the appropriate attribute from modeler window. In this case you can able to select the attribute "ordinal" and "match index".
If you check ordinal value will different for each combo box.
Is it something like, if I choose first option in ComboBox1 then in ComboBox2 there will be automaticly chossen option 2? Is it allways the same conection?
If so, choose ComboBox 1, then make a descision step: IF CoboBox1 IS 1 THEN...
If not, then after you choose ComboBox 1, you may wish to read value of that ComboBox and then choose the value of the other.
Hope it helps.

Partial refresh after OK in name picker control

how can I establish a partial refresh after I select the OK button in the xe:namePicker control ?
I only have the for property which does copy the selected value in the assigned field.
The onchange event for that field does not always seem to recognize the value change.
Instead of an Edit Box, I would recommend using Dojo Name Text Box, as covered here. It avoids the need for validation - with an Edit Box even though you provide a Name Picker, users can still enter values manually and can edit them after selecting from the name Picker. The Dojo Name Text Box and Dojo List Text Box are the only controls I use with pickers and almost always use onChange with them, without issue.
One caveat is that the Events tab defaults to onClick. On more than one occasion I've coded onClick instead of onChange, but it's easily identifiable and rectifiable.

How to add Listpicker to textbox in LiveCode

I want to add a list picker in Live code.When a user click on the Textbox the list picker should open with list of items.How can do that?
Be aware that your text field must be locked in order to send a "mouseUp" message, if that is how you want to show the combo box that Monte suggested. There are other ways around this, if you still want to be able to type into that field. Write back with your exact needs.
The combo box is useful because you can type right into it. If you only want options that will load data into an existing field, a popup or pulldown might be something to look into.
On the left side of the tool palette about the middle is a style of button called a combo box. I think that's what you want.

Resources