ngx-bootstrap datepicker input not updated for incorrect value - ngx-bootstrap

I would like to known if it's a bug on datepicker, or I must to write my handler for this (to reproduce use the first example from http://ngx-bootstrap.surge.sh/#/datepicker):
click on input (value is 12/08/2017),
the datepicker is shown
encode something like "bla-bla-bla" and click outside the input
result: input value is empty
click on input (the datepicker is shown),
encode the same "bla-bla-bla" and click outside the input
result: input value is not empty, but "bla-bla-bla"

Fixed in rc.0
https://valor-software.com/ngx-bootstrap/#/datepicker#basic
There are were such issue, but it was fixed

Related

Setting Default Values to Drop Down in Orbeon Form Builder

I have a autocomplete field:
I need to set the default value selected for this dropdown using another control value as shown in:
This control is passed to the form load as shown in:
For example if use cost center is 110 as shown in:
Then the default selected value of the Site lookup dropdown needs to be as shown in:
The tricky part is that your Site-Item field isn't a dropdown but an autocomplete. An autocomplete doesn't know all the possible label/values, but can only find some label/values doing a search by label. So you can't tell an autocomplete "set your value to 110", because it doesn't know what the label corresponding to 110 is.
If you knew the label, you could do this programmatically with an fr-set-label, but here you don't have the label but the value. You can read more about this in the section Setting by value. So, my advice is to use a Dynamic Data Dropdown instead of an Autocomplete field.

vuejs dynamic input collection with wrong values

I am dynamically adding inputs of type text to a vuex collection. It adds the input at specific index. It works good, no problem with that. The issue happens when I write some value in the input and then try to add a new one. The input value jumps to the newly added input.
Here is a simple code example: https://codesandbox.io/s/0yrzrw6120
Steps to reproduce:
There is a default input. You can add inputs below that, so:
Add a new input.
Write some value in the newly added input.
Add a new input again from the default button.
What I am expecting is a new input below default with no value in it, and it works but the value of the last input jumps to the newly added.
I understand is not a problem with the additions of items but the value in the inputs.

QlikView: Input Box Not Accepting Values

I created a variable vAverageSalary and an input box which serves as a place to change the value of the variable (variable is defined as money). The problem is that nothing happens when I enter numbers in the input box for the variable. Additionaly when I check the value in the 'Variable Overview' for that varable, I see nothing. Even if I try to define here any value for the variable, nothing changes. And the third option I tried was to define any value by going to the 'Properties' of the input box and entering any value in the 'Settings for the Selected Value' (Tab - 'Constraints'). Even when I enter a value here, nothing happes - the system simply ignores everything I enter.
How can I make an input box to take the value I enter in it?
UPDATE: It seems that the problem is when I define the variable inside the input box as 'Money' - I can only set velue when I type for example '121,00 €'. However if I make a text box and try to write out the value of the variable, I get the message "Error: Garbage after expression ','". The input box takes the values in that format, but the output is garbage. And if I type for example any number without '€' sign, than input box ignores my input and gives me the previous value... Why?

Formatting Dojo TextBox on the fly

I want to format the value of any type of TextBox, based on a pattern, on the fly. So basicly I mean when the user is typing '123' and my pattern is '0.00' it has to be converted directly to '1.23'. I know I can do this with the onChange function, but I guess there is already a Dojo based solution(not the onChange of a TextBox). Could someone tell me which property I have to use?
I've tried to use constraints and filter, but both only work after a blur event.
Widgets fire events on themselves that emulate the events of their DOM elements. For example a text box dijit will fire a change event on the object called "change".
There is also an replaceable function called "format" which, as the name suggests, formats the value of the text box.
see: http://dojotoolkit.org/api/?qs=1.9/dijit/form/_TextBoxMixin
As such you can do:
widget.format = function(value, constraints){ //my formatting fnc}
widget.on('change', function(){
widget.format();
});

How do I fix the input allowed into an input box?

How do I fix the input allowed into an input box?
Basically I want the user to be only allowed to type in numberical values (no spaces or symbols) also I want the inputbox to appear in this structure
02:10:20
And I don't want the user to be able to delete the colons.
How do I do this?
I don't think you can without creating a custom input box. You can however quit simply create a control to check the input and if it's in the wrong format prompt another inputbox.
The other option would be to create a custom input box where you can use masked textboxes...
Is it a web app?
If yes try use this jquery plugin:
http://digitalbush.com/projects/masked-input-plugin/
jQuery(function($){
$("#your-id/class").mask("99:99:99");
});