Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Changing number formats in text boxes

  • Changing number formats in text boxes

    Posted by Allan Sullivan on November 7, 2022 at 7:31 pm

    I have a coding question related to a web application.

    My team is trying to make a numeric input field language/location specific. Meaning a number like 1234.56 can appear as either:

    1,234.56 or 1 234,56

    (Depending on the location/language)

    In the component properties the numberformat is “%.2F” (which works for one of the needed formats). How can I get it to use the second format?

    I have attempted to use the following code in the constructor:

    Do $ctask.$objs.MY_TEXT_FIELD.$numberformat.$assign(“% ,2F”)

    but it doesn’t seem to work.

    Can I actually assign the number format like this at runtime? And if so, what would the format be for the second number format I specified?

    Deleted User replied 1 year, 6 months ago 4 Members · 4 Replies
  • 4 Replies
  • Dr. Robert-Andreas Schöning

    November 7, 2022 at 10:52 pm

    Hi Allan

    Are you sure you were using the notation starting with

    Do $ctask.$objs?

    To address fields in a remote form you should use $cinst.$objs instead , as the the other one addresses the remote task.



  • Allan Sullivan

    November 8, 2022 at 3:50 am

    Yes, you are right, it was $cinst.$objs in the code. (My mistake in my earlier post here… 2 adjacent lines and I messed up the copy/paste.

    So the line is:

    Do $cinst.$objs.MY_TEXT_FIELD.$numberformat.$assign(“%.2F”)

  • Gav

    November 8, 2022 at 9:51 am

    Hi @segno

    I wonder if this is a property of the browser, rather than the application. Whilst we can tell Omnis that we want commas and decimal points, this might get re-interpreted by the browser language setting. See here:


  • Deleted User

    Deleted User
    November 29, 2022 at 9:08 am

    Here is a list of all the Canon Repair Service Center Near Me. If you are in the USA and facing issues with your Printer devices, such as printers, photocopiers, scanners, projectors, and cameras, the Canon Repair Service Center is the first choice for most printer-related issues.

Log in to reply.