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!

Getting Null error when item is not Null

BaonergesJun 12 2020 — edited Jun 15 2020

Hi Everyone,

In my application, a user makes changes to an interactive grid then presses submit. This will insert the changed entries into a different table with a change number based on my page item P8_CHANGE_NO. My page item shows the correct value:

pastedImage_0.png

This item gets the last change number and adds 1. This is the source SQL query:

SELECT NVL(MAX(CHANGE_NO)+1,1) FROM PRNDSINKCHANGE WHERE ITEM_CODE = :P8_ITEM_CODE;

When I click submit, I get

pastedImage_1.png

The value should be submitted when the page is submitted though:

pastedImage_2.png

Why would I be getting this null error and how can I avoid this?

This post has been answered by Keyser on Jun 14 2020
Jump to Answer
Comments
Post Details
Added on Jun 12 2020
8 comments
1,246 views