Change the label on Value picker with PickListSearch - xpages

Is there anyway to change the text label on value picker when the PickListSearch ? This is xpage Domino 10. It seems to be dojoattachpoint inputText. Thanks Bob

How about making computing the label value to be a scope variable? Your code can change the scope variable and partial update of the label or container.

Related

LabelListAttribute example?

I have a field in a Database that is set as a varchar(1), and it is bound to a non editable textbox in acumatica. I would like it so that when the value of the field is equal to 'A', the value displayed in the textbox in Acumatica is something longer such as 'Apple'. The user will not be editing the textbox so I do not need this to work in reverse.
From my research, I see that LabelListAttribute might be the attribute I am looking for. Can anyone give me an example on how one creates a new 'LabelProviderType' or 'LabelValuePair' to feed into this attribute.
Additionally, am I just better off in copying the combobox example from the T100 class (Page 76) and disabling it? I would rather this work within a textbox
Thanks
For the use case you are describing you should indeed use a PXDropDown control bounded to a DAC field decorated with PXStringList attribute as described in T100 Configuring a Combo Box example.

JointJs: Set Custom attribute Value

I am trying to set custom attribute value through a form. But if I click the element again it shows the properties previously assigned rather than showing the one.
I want to input SiteStation variable's value from user and assign it to that particular element. For the time my element is there on the graph it should have that value attatched it.
http://jsfiddle.net/avinash2618/6umUH/157/
cell.set('attributes/stationName',stationName);
you can try setting the text property of the custom attribute as below
cell.attr('stationName/text', stationName);
or
if it is a view
cellView.model.attr('stationName/text', stationName);

How can I create a user defined value in Construct 2?

I want to be able to have the user type a number or use the slider bar to pick a value and have that value be stored as a global variable. How can I do that?
For getting input from the user, you can use the TextBox Object in Construct 2. If you put one in your layout, you can access it's current value in the Event Sheet at any time. You can use the On Text Changed (below) event and grab the current value by using the Text property (also below) and assign it to a Global Variable.
TextBox Manual
https://www.scirra.com/manual/117/textbox
On text changed
Triggered whenever the text in the field is modified, by typing, backspace/delete, cut/paste etc.
Text
Get a string containing the text currently entered in to the field.
Check out this little tutorial video on variables in connect 2 http://blogs.msdn.com/b/gamewords777/archive/2015/07/20/10-minutes-with-construct-2-global-and-instance-variables.aspx
Also note - instance variables are handled differently than global.

Action Button works differently if added to the DataView

I have a button that calls a Dialog that has a combo box bound to a sessionScope variable. The combo box contains a list of form names that I use to then call an XPage to create a new document. The first value in the forms list is "" so the user needs to select a value. I have a button with the onClick event of:
var c = getComponent("CreateDocDialog");
sessionScope.put("ssSelectedForm","")
c.show();
I have the button and dialog on a customControl with a repeatControl and when the button to open the dialog is clicked the ssSelectedForm is null and the current value of the combo is blank, which is exactly what I want it to be. However, if I add the same button and dialog to a customControl with a dataView control the dialog displays but ssSelectedForm is not null so the combo box displays the last value of ssSelected. I have placed the button outside the dataView, in several of the facets on the dataview, but all with the same results.
Very confusing.
Bill,
I am going to answer the same as my comment since I am pretty confident about what I said.
Go ahead and change the scope from sessionScope to viewScope. I had a similar issue once, and I 'fixed' it by clearing out the sessionScope variable after I used it. This worked, but I realized that it was not necessary, and that by changing to viewScope the lifecycle will be shorter and there was no need to clear out the value when I was done with it.
I don't know why this fails when added to the data view, but if this fixes it that would be all that matters.

how to add a textBox and a TextField to a form in j2me

i want to display both TextBox and TextField on the screen at a time but i am unable to add TextBox to form. is there any way to display both of them at a time. that is textBox at the top and TextField below it. plz help me. i will be pleased if any code is given
thank u in advance
A TextBox is a Screen, not an Item, therefore you cannot add it to a Form, and there is no way to display both of these things on screen at once.
If you want to display some additional text on screen while a TextBox is active, you can use its title (via setTitle()), or you could scroll it across the top using setTicker().
I guess, you must write you own TextBox component. It must extend Canvas. And you must paint it yourself, using drawLine, drawString.

Resources