Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 234 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.3K Development
- 17 Developer Projects
- 138 Programming Languages
- 292K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 157 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 389 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1K Español
- 1.9K Japanese
- 230 Portuguese
Autonumeric for interactive grids

Hi all,
I am currently working with Application Express 19.1.0.00.15.
I was able to implement the autonumeric "plugin" and successfully use it with standard items on a page/form.
https://github.com/topics/autonumeric
I am currently searching on how to use it with Interactive Grids but I was not successfull in doing so. i
The methods on the plugin allow to address either a class or a specific DOM item. For standard page items , I am using the class 'number_field' and it works fine.
With Interactive grids, I tried using the class 'a-GV-cell u-tS' but that did not work. I also tried with a static id but this did not work either. i.e. nothing happens.
Has anyone experimented with this "plugin" and specifically with Interactive grids.
Any information, tips, suggestions is greatly appreciated as usual.
Thanks,
Jake
-- modified by Jake 20190923
here is the code am im using:
This is a javascript fired on page load dynamic action:
-- This is the code to initialise all number_field class items.
new AutoNumeric('.number_field', {
aSep:',',
decimalCharacter:'.',
aSign: '$',
pSign: 's'
});
-- This is the code I am using to initialize a specific column in the datagrid.
new AutoNumeric.multiple('.CoutAvTaxes_HDR', {
aSep:',',
decimalCharacter:'.',
aSign: '$',
pSign: 's'
});
APEX adds the _HDR suffic to the column static id.
Any tips, suggestions are greatly appreciated.
Thanks,
Jake
This message was modified by : Jake4321
Best Answer
-
Hi all,
just sharing some more information on using autoNumeric with datagrids.
AutoNumeric is not "line/row aware" so using it with datagrids does not work properly even with staticids.
When moving through the datagrid column-wise, the amount entered on the first line/row is automatically replicated to the rows below which is defenetely not a behavior that we want.
Regards,
Jake
Answers
-
Hi all,
I found the issue. I was using the syntax for the column.
The correct syntax is as follow:
-- to initialise all standard items on a page with class "number_field"
new AutoNumeric('.number_field', {
aSep:',',
decimalCharacter:'.',
aSign: '$',
pSign: 's'
});
-- to initialise specific columns in an interactive grid through a static id.
new AutoNumeric.multiple('#YourStaticId', {
aSep:',',
decimalCharacter:'.',
aSign: '$',
pSign: 's'
});
This works fine for me now.
Thanks,
Jake
-
Hi all,
just sharing some more information on using autoNumeric with datagrids.
AutoNumeric is not "line/row aware" so using it with datagrids does not work properly even with staticids.
When moving through the datagrid column-wise, the amount entered on the first line/row is automatically replicated to the rows below which is defenetely not a behavior that we want.
Regards,
Jake