Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using Default in table Definition

bobmaganJan 15 2014 — edited Jan 15 2014

I am on APEX 4.2.4 and creating a Form page based on existing table. The table currently uses a default for creating the primary key:

CREATE TABLE PAGE

       ( PK_ID             RAW(16) default sys_guid()

                                        CONSTRAINT pk_page

                                PRIMARY KEY

                                   USING INDEX TABLESPACE psods_index

                                STORAGE (INITIAL 4096

                                    NEXT    4096

                                    PCTINCREASE 0)

When I go thru the APEX form create wizard and get to the point where it is asking about how to derive the Primary Key, none of the 3 options seem to be what I want (since the DB should be handling this with the 'default' option in my column. If I skip and try to create a record in the APEX page, it yells at me because the PK_ID doesn't have a value. I know I can create a function/procedure to handle this, but is there a better way?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 12 2014
Added on Jan 15 2014
1 comment
128 views