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!

apex.submit('CREATE') for new record?

Mike286May 27 2016 — edited May 27 2016

Hi,

I and doing one form page which is having several items plus two "File Browser" type items. I don't like the default look of file browser item(and the default validation) so I am playing with some Jquery to get them looks the way I like, in the meantime, I will need to make sure that customer did choose files for those two file browser filed before they can submit.  Here is what I am doing:

1 Created an DA (triggered by when "CREATE" button pressed, which will do:

   a. valid the two file browser item to make sure they are not empty, if it is empty, pop up an window reminding them.

   b. if it pass the validation, call apex.submit('CREATE');

   c. apex_redirect to another page;

2. I have a default after submit DML process too

3. I have an CREATE button with Action defined as "Defined by Dynamic Action"

This works the way I wanted but the problem is that it just didn't insert the data into database, I thought the apex.submit('CREATE') will call the CREATE request and execute the DML process so the data will be insert into database but obviously it's not the way I thought.

Any idea what I was doing wrong and how I can insert the data into Database?

Thanks

Mike

This post has been answered by PMON on May 27 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2016
Added on May 27 2016
9 comments
2,147 views