Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 442 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Timestamp database value is represented as invalid item data value

Hi all,
I developed a sample form in https://apex.oracle.com (apex version 21.2).
The form is based on a single db table containing a timestamp data column among the others.
Above the form region, i developed a region of type 'static content' consisting of some items (as a criteria region).
The purpose of these items is to set the values to the form region relative items so as the
'create' button to save the new record into the database.
In order to accomplish my purpose, i set up a dynamic action to the last item in the static content region.
The properties of this dynamic action is as follow:
when dynamic action = true, Set Value
set type : sql statement
affected items : the name of items in the form region which are hidden. Their values are are populated using the sql statement.
The sql statement is :
select CSC_CUST_CALC_KEY, PERIOD_ID, ACCT_COMPANY, CSCUSTM_CSBASIC_TS
from exp_ermh_csbasic_all csb
join h_timo tim
on tim.timo = csb.bs_rate
where CSC_CUST_CALC_KEY = :P2_1_CR
and period_id = :P2_2_CR
and bs_rate = :p2_3_CR;
All item values from the above sql statements are transferred correctly to the hidden data items in the form region (i confirmed that
using the web browser console, writing : apex.item("<item_name>").getValue()). The exception is the item 'CSCUSTM_CSBASIC_TS' (which is
a timestamp database column). The value written to the apex hidden form item is '12/07/2008 07:04:59,504116' instead of '12/7/2008 07:04:59,504116'.
The result is the error 'ORA - 01843: not a valid month' when trying to save the record in the database.
Is there any workaround?
Note: I defined the format mask for the timestamp item in form as: dd/mm/yyyy hh24:mi:ss,ff
Comments
-
Have you thought to use the process row process from the box or do I am missing something ?
-
...as i understand i use the automatic row process (i do not use a custom routine to insert the row, i let it done automatically by apex). The problem is originated at the trasport of the column value of the timestamp datatype from the sql to the hidden type form item ....
Thanks,
Sim
-
Hello sgalaxy,
Set the attribute "Escape Special Characters = Off" for Set Value SQL Statement DA.
-
Hi Hamza Al-abbasi,
it is already ON...😥
-