Formats

Questions and answers for designing and implementing forms in Servoy

Formats

Postby harbourj » Thu May 16, 2024 6:03 pm

Hi,
I have a Shapes form that contains a two-character shape code and a one-character search code.
The shape code must be two uppercase letters so I've set the defaultFormat in the dbi file to UU.
The search code must be an uppercase letter or empty. I set defaultFormat to U.

When I run a form that displays the shapes in a grid I get this message in the Console 7 times:
WARN org.sablo.BrowserConsole - 16:45:30 WARN DataGrid - input string not corresponding to format : , U

7 of the rows displayed have an empty search code.
If I start add a new row I get all the stuff shown below in the Console.

Moving the format codes from the dbi to the detail form gives similar error messages when a new record is added.

Two questions.
Does anyone know how I can stop these messages appearing?
How do I enter a format that forces the search code to upper case but allows it to be empty?

Thanks

John

WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , UU
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
WARN org.sablo.BrowserConsole - 16:53:40 WARN DataGrid - input string not corresponding to format : , U
ERROR org.sablo.BrowserConsole - 16:53:41 ERROR formatdirective - input string not corresponding to format : , U
at _SabloService.buildStackMessage (http://localhost:8183/chunk-75WVMXZK.js:26142:15)
at Object.apply (http://localhost:8183/chunk-75WVMXZK.js:25972:36)
at _FormatDirective.writeValue (http://localhost:8183/chunk-75WVMXZK.js:21566:20)
at _ServoyBootstrapTextbox.setInputType (http://localhost:8183/chunk-75WVMXZK.js:148822:24)
at _ServoyBootstrapTextbox.svyOnChanges (http://localhost:8183/chunk-75WVMXZK.js:148798:12)
at _ServoyBootstrapTextbox.ngAfterViewInit (http://localhost:8183/chunk-75WVMXZK.js:19272:12)
at callHookInternal (http://localhost:8183/chunk-YBOT7UYS.js:6150:10)
at callHook (http://localhost:8183/chunk-YBOT7UYS.js:6165:7)
at callHooks (http://localhost:8183/chunk-YBOT7UYS.js:6139:9)
at executeInitAndCheckHooks (http://localhost:8183/chunk-YBOT7UYS.js:6108:5)
ERROR org.sablo.BrowserConsole - 16:53:41 ERROR formatdirective - input string not corresponding to format : , UU
at _SabloService.buildStackMessage (http://localhost:8183/chunk-75WVMXZK.js:26142:15)
at Object.apply (http://localhost:8183/chunk-75WVMXZK.js:25972:36)
at _FormatDirective.writeValue (http://localhost:8183/chunk-75WVMXZK.js:21566:20)
at _ServoyBootstrapTextbox.setInputType (http://localhost:8183/chunk-75WVMXZK.js:148822:24)
at _ServoyBootstrapTextbox.svyOnChanges (http://localhost:8183/chunk-75WVMXZK.js:148798:12)
at _ServoyBootstrapTextbox.ngAfterViewInit (http://localhost:8183/chunk-75WVMXZK.js:19272:12)
at callHookInternal (http://localhost:8183/chunk-YBOT7UYS.js:6150:10)
at callHook (http://localhost:8183/chunk-YBOT7UYS.js:6165:7)
at callHooks (http://localhost:8183/chunk-YBOT7UYS.js:6139:9)
at executeInitAndCheckHooks (http://localhost:8183/chunk-YBOT7UYS.js:6108:5)
ERROR org.sablo.BrowserConsole - 16:53:41 ERROR formatdirective - input string not corresponding to format : , U
at _SabloService.buildStackMessage (http://localhost:8183/chunk-75WVMXZK.js:26142:15)
at Object.apply (http://localhost:8183/chunk-75WVMXZK.js:25972:36)
at _FormatDirective.writeValue (http://localhost:8183/chunk-75WVMXZK.js:21566:20)
at onChange (http://localhost:8183/chunk-YBOT7UYS.js:31569:23)
at http://localhost:8183/chunk-YBOT7UYS.js:31975:44
at Array.forEach (<anonymous>)
at FormControl2.setValue (http://localhost:8183/chunk-YBOT7UYS.js:31975:22)
at http://localhost:8183/chunk-YBOT7UYS.js:32336:20
at _ZoneDelegate.invoke (http://localhost:8183/polyfills.js:10478:158)
at Object.onInvoke (http://localhost:8183/chunk-YBOT7UYS.js:11385:25)
ERROR org.sablo.BrowserConsole - 16:53:41 ERROR formatdirective - input string not corresponding to format : , UU
at _SabloService.buildStackMessage (http://localhost:8183/chunk-75WVMXZK.js:26142:15)
at Object.apply (http://localhost:8183/chunk-75WVMXZK.js:25972:36)
at _FormatDirective.writeValue (http://localhost:8183/chunk-75WVMXZK.js:21566:20)
at onChange (http://localhost:8183/chunk-YBOT7UYS.js:31569:23)
at http://localhost:8183/chunk-YBOT7UYS.js:31975:44
at Array.forEach (<anonymous>)
at FormControl2.setValue (http://localhost:8183/chunk-YBOT7UYS.js:31975:22)
at http://localhost:8183/chunk-YBOT7UYS.js:32336:20
at _ZoneDelegate.invoke (http://localhost:8183/polyfills.js:10478:158)
at Object.onInvoke (http://localhost:8183/chunk-YBOT7UYS.js:11385:25)
harbourj
 
Posts: 10
Joined: Thu Nov 30, 2023 10:56 am

Re: Formats

Postby Gabi Boros » Tue May 21, 2024 11:16 am

I tried a couple of things but I could not manage to reproduce your issue. Can you create a simple solution where this problem can be seen and add it to a case in our support system?
Gabi Boros
Servoy
Gabi Boros
 
Posts: 408
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Formats

Postby harbourj » Wed May 22, 2024 4:05 pm

Thanks. The problem seems to have gone away after I changed the formats from U and UU to |U and |UU.

If I revert to the original formats this message
WARN org.sablo.BrowserConsole - 14:59:42 WARN DataGrid - input string not corresponding to format : , U
is displayed for each row in the grid where the search code is empty. This message
ERROR org.sablo.BrowserConsole - 16:53:41 ERROR formatdirective - input string not corresponding to format : , UU
no longer occurs.

I don't think it's worth a ticket.

John
harbourj
 
Posts: 10
Joined: Thu Nov 30, 2023 10:56 am


Return to Forms

Who is online

Users browsing this forum: No registered users and 1 guest