# Dojo NumberTextBox : max constraint problem

I'm having troubles with the NumberTextBox max constraint. If I use standard markup declaration and create the numbertextbox with default setting, e.g.

<input id="q05" type="text" dojoType="dijit.form.NumberTextBox" constraints="{places:0}" required="true" >

this control is constrained to be max of 16digits. And that's the issue. What if I need the user to be able to enter a 16+ digit number? I seem to be unable to overwrite this with the constraints:"{max:99999999999999999999}" (it's 20 of them) nor with the maxLength:"20" attributes.

Any ideas on how to properly set the control to be constrained let's say up to 20 digits, instead of 16 (which appears to be a limit now)?

Thank you

Use ValidationTextBox and use propert regExp to narrow possible input.

Category:dojo Views:0 Time:2011-06-03

## Related post

• Need Help In Solving A Constraint Problem 2011-05-15

I would like to solve the following problem using constraints but i actually don't know where to begin so i decided to post it here for help. *** Fitting squares *** Given the set of black squares of Figure 1 (a 2x2, 3x3, 4x4 and a 5x5 square), fit t

• Algorithms: max flow problem and s-t minimum cut 2011-02-22

Let G be an input graph to the max flow problem. Let A be a minimum s-t cut in the graph. Suppose we add 1 to the capacity of every edge in the graph. Is it necessarily true that A is still a minimum cut? If so, prove it, if not give a counterexample

• Need Help In Solving A Constraint Problem (2nd) 2011-05-16

I have solved the following constraint processing task. Can you please verify if it is correct? One of the prisoners of a high-level security prison sees a way to escape. Almost free, he reaches a corridor of 20 meters long, guarded by 5 cameras, beh

• Replace Dojo NumberTextBox separator comma with a hyphen 2011-06-01

How do I replace the comma formatting in a Dojo NumberTextBox with hyphen? For example: Convert 123,456,789 into 123-456-789. --------------Solutions------------- It's not really a number anymore as much as a string pattern you want to preserve that

• Windows 7 max memory problem 2012-05-11

Hi I acessed the msconifg.exe and on advanced options i set max memory thinking it was mb to 3000. Now on a restart my computer will not boot even in safe mode. It gives me repair options and i can acess command prompt i wonderd if there is any way i

• SQL Server unique constraint problem 2010-05-07

How to create a unique constraint on a varchar(max) field in visual studio, visually. the problem is when i try it: manage indexes and keys > add > columns I can only chose the bigint columns, but not any of the varchar(max) ones. Do I maybe ha

• Why do bean validation Min/Max constraints not support the double type? 2011-09-14

Could somebody please explain to me why the JPA supports the double type as a field type, but the bean validation constaints in javax.validation.constraints (i.e. @Min/@Max) do not support it? I know documentation says this is due to rounding errors,

• Delphi Generic constraints problem 2009-02-24

I am trying to create a generic list class for use with tiOPF (an Object Persistence Framework for delphi @ www.tiopf.com). Specifically I am trying to take an existing generic class (TtiObjectList) and make a generic version that uses TtiObject desc

• Dojo Tooltip. dojo.data fetch(). Problems in opera 2009-05-14

Weird problem with dojo.data. var store = new dojo.data.ItemFileReadStore({ url: "[myUrl]" }); console.log(temp.fetch({ query:{id:'*'}, onComplete: functionOnComplete, onError: functionOnError })); functionOnError show such trace in opera only: messa

• mysql ( innodb )foreign key constraints problems 2009-10-16

I am running into a couple of issues while trying to generate foreign keys for my tables in MySql(Innodb). Can you please help me with them ? Referenced tables : *create table entity { PID INT(20) auto inc not null, ENTITYID INT(20) not null, details

• Mysterious constraints problem with SQL Server 2000 2009-11-06

I'm getting the following error from a VB NET web application written in VS 2003, on framework 1.1. The web app is running on Windows Server 2000, IIS 5, and is reading from a SQL server 2000 database running on the same machine. System.Data.Constrai

• constraint problems using apache derby and hbm2ddl 2010-02-19

We are using Apache Derby 10.5.3.0_1 and hbm2ddl with Hibernate 3.3.x I get the following constraints error while pre-loading the SQL on an embedded derby database. If I remove the primary key(id) from the create table sql, it's able to create the ta

• constraint Problem /Solution in sqlServer 2010-03-03

Hi Sorry for my shallow question . Imagine I have 4 Tables in my DataBase (SQLServer 2005). Picture , News , product and gallery Tables . At my Picture Table i Have 3 foreign key to all 3 other tables , And all foreign keys are nullable and default v

• Min Max-Matching Problem 2010-07-10

I have a matching problem and I don't know how to solve it: Given a complete bipartite graph (A, B). Each node a_i in A, has two states: s(a_i)=0 or s(a_i)=1 Weighted edges are declared as: w(a_i, b_j, s(a_i)) Fixing a configuration for the states, t

• Foreign Key Constraint Problem 2010-11-30

The tables in question are: enquiry id accepted_quote_id supplier_enquiry id enquiry_id quote id enquiry_id supplier_enquiry_id The constraints are as follows: CONSTRAINT supplier_enquiry_ibfk_1 FOREIGN KEY (enquiry_id) REFERENCES enquiry (id) ON DEL

• jQuery ui slider max-value Problem 2010-12-10

I'm new to jQuery-ui and having a problem initializing a jquery-ui-slider. I'm trying to create a slider having min and max values. The slider should only have one handle, which should be initialized at some value, but somehow it is always set to max

• Scalable Background image with min and max constraints 2011-06-09

I am looking for a solution to an odd problem with a difficult client. The site is built in Wordpress using a variation of a fluid 960.gs. So .container_16 is the containing CSS class. Let's say the class looks like this: .container_16 { background:

• Entity Framework Code first - FOREIGN KEY constraint problem 2011-09-09

I'm new to EF code first principal and currently with no clue what to do.. I have 2 POCO classes.. public class Problem { public int ProblemID { get; set; } public int UserID { get; set; } public int CategoryID { get; set; } public int RatingID { get

• MySQL Workbench, Newbie to DB, Constraint Problems - Error 1005, erno 121 2012-03-22

Okay, I understand what the problem is, I sort of understand constraints in that they need to be unique in the db (didn't really know that before now, so I learned something. Not sure what they are for at the moment, but can learn later. My problem i