4-digit total number not displayed properly in pagination for jqGrid - jqgrid

The total number (4107) is not displayed properly, there's a space in between the 1st & 2nd digit.
The jqGrid library version is 4.4.3. How to display properly? Thanks.

The page number in pager is formatted according to the rules of the formatter of type integer defined into the language file. You will need to change the thousandsSeparator from space " " to empty string "".
For the 5 year old 4.4.3 version you can do this like
...
$.jgrid.formatter.integer.thousandsSeparator = "";
...
after loading the language file

Related

Only allow whole numbers but display with '.' on the thousand for easy read

I want to apply data validation to my column so as to only accept whole numbers.
However I want these to be displayed with a dot so as to make it easier to read later on.
e.g. input = 14354 which is valid and then displayed 14.354
the data validation regular expression I am ussing is:
=regexmatch(to_text(A2);"^\d+\.*\d+$")
and the custom formatting is:
#,##
for most this working fine, large numbers are displayed with the '.' and things it shouldnt accept it is rejecting.
However, in the case of numbers which are entered with a decimal point as these are hidden, it is accepting it as valid.
It is also changing the format to auto atic and reading as date such entries like: 15.4
I should point out that I am using sheets in spanish and therefore the , is the marker for decimal places.
What am i missing here??
Select the cell range then go to Data > Data validation...
Add a custom formula rule:
=mod(A1;1)=0
Try this one:
=and(regexmatch(to_text(A2);"^\d+(\.\d{3})*$");mod(A2;1)=0)
Improved your formula to only accept a dot when it is followed by 3 numbers (this way, we invalidate the date e.g A2)
Combining the improved formula of yours and Aresvik's modulo answer, we need to check if the value does not have decimal. (this way, we invalidate the decimal e.g A6)
When both returns true, this shall confirm that the number inputted is a whole number with no decimal and not a date.
Output:
Invalid inputted values:
A2 - 15.4
A6 - 16412,212

How to force Ms Access 2002, installed on French Locale Windows, to use the "." as the decimal separator instead of ","?

I have installed windows 10 64 bit with french localization, and installed Microsoft Office, including ms access.
I have this problem when inserting values to Ms Access 2002 table into Currency field, as the value am trying to insert is a decimal value represented through string, with "." operator as the Decimal Separator, as am getting the error message "datatype mismatch in criteria expression".
Is there a way to tell Ms Access to use the "." as the decimal separator instead of "," and the "," as the Thousands Group Separator instead of " ", as replacing the decimal string value of "." character occurrences to "," characters isn't an option as i have thousands of strings that will need accordingly to have the replace function called upon,
What have tried so far, and didn't bring any results, is:
1. Change the decimal symbol, from control panel, regional and language settings from "," to ".".
2. Switching from OleDB to ODBC, and specifying "Locale Identifier" value to 2057, indicating en-GB, in the connection string.
Please Advise,
Thanks in advance.
First change the comma to a character other than a period ("#")
Then change any remaining periods to a comma.
Lastly change "#" to a period.
dblValue = Replace(Replace(Replace(OriginalValue, ",", "#"), ".", ","), "#", ".")
You mentioned that the values you are passing to access are strings. Why can't you format those strings in a way you wish them to be, and pass the data to MS access?
You did not mention anything specific, so I assume you work in the notepad.exe. In the above program, format the strings you wish to the values you need by replacing appropriate locale symbols to ones you need. After that pass the strings in some way you "better know how" to the MS access.
If you have a millions or billions of rows(columns?!) in your data, you can do a mass replace in the program of your choise(notepad.exe). This is as simple as that.
Use Str, it will never fail:
Str(AnyDecimalValue)
For a generic solution, use my function CSql.
Edit:
The other way around - to convert a text expression to a decimal - use Val:
Val(TextNumberWithDecimalDot)

Replace word text with excel percentage value via VB returns text value on mac

I have following part of the code which replaces word text with value from excel:
.Replacement.Text = exlDoc.Worksheets(sheetName).Cells(row, column)
Excel values have General or Percentage format. On Windows, this works as expected, percentages are replaces as e.g. 5.54% while same code on Mac returns 0.0554. How can I format it to work on both Mac and Windows and to be working for all formats.
Thanks
You could change the number format in code.
ActiveCell.Numberformat = ??Percent
Try:
.Replacement.Text = exlDoc.Worksheets(sheetName).Cells(row, column).Text
.Text is a read-only property of the cell.

BIRT - Change decimal separator - period v/s comma

Based on a global variable how can i set the number formatter i.e. Setting comma as decimal separator as opposed to period. Also, changing Date format pattern based on a global variable.
i.e 1234.56 = 1234,56
Where can i do this? crosstab? and what expression to use?
Thanks in advance.
For numbers you can do it with an expression:
params["SomeVar"].value == 'format1'?
Formatter.format(valueToDisplay,"0,00"):
Formatter.format(valueToDisplay,"0.00");
Don't know if Formatter works with Date values.

Dreamweaver SPRY Custom Validation Format

I want a textfield to validated using dreamweaver spry option. I need the input to be in the below mentioned format
05632-25252525
The first (05632) part should contain minimum 3 no's, maximum upto 6.
The second (05632) part should contain minimum 7 no's, maximum upto 10.
how can i write a regular expression or a pattern in Spry. pls suggest
Spry can't handle that as all one text field.
However, if you make it two textfields, then it's simplicity...just set the first one to have min 3 character, max 6 only allow numbers. Set the second to be min7 max10 all numbers and then just combine them after the form is posted.

Resources