Login Register

CurrencyTextBox

No initial formatting when initiating CurrencyTextBox programmatically

When initiating the CurrencytextBox programmatically the value does not get formatted as the given currency.

Do I have to or can I trigger the formatting by calling a method on the widget?

Full example: http://tinyurl.com/5z4934

dojo.require("dijit.form.CurrencyTextBox");

dojo.addOnLoad(function() {
        var field = dojo.byId('field1');
        var widget = new dijit.form.CurrencyTextBox({'currency':'SEK','value':field.value},field);
});

CurrencyTextBox, handling of digits after comma

I am rather new to Dojo. I was looking through the documentation and trying some of the examples. When I saw the CurrencyTextBox, I was quite excited since I could use that well in some of my applications.
The widget works well, but I am missing one feature that I was sure I would find (knowing my customers I know they will ask me about this as well)

the code in my jsp is as follows:

Währung

Unable to validate a *TextBox

Hello ! :)

Do you know why I can't have a focus with the error message displayed on a *TextBox element (ValidationTextBox, CurrencyTextBox, etc) to validate it ?
when I try dijit.byId ('myElt').validate (true), or .isValid (true), .getErrorMessage (true), .getPromptMessage (true), nothing works !

The only thing that can be used is to set the focus to the specified element, and set the focus to another element, that will display the warning image, but without the prompt message.

It's tricky and not completly functionnal

Do you have a solution for me please ? :)

set value of CurrencyTextBox

hi,
I have one problem on setting the value if CurrencyTextBox, dojo dont show the currency
example:

<input type="text" id="test" value="" dojoType="dijit.form.CurrencyTextBox" required="true" constraints="{fractional:true}" currency="EUR"/>

dijit.byId('test').setValue('10,00');

but the euro symbol dont appear....why?

Negative currency value

Hi all,
Is there a way to allow a CurrencyTextBox to have negative values?
what constraint should I change in order for it to work?

thanks
Yoav

Syndicate content