The 6502 is a Numeric or value error, this is probably because you are trying to insert characters into a number or date field. There is obviously no way to force Oracle to allow this, so you will have to find out where the problem is.
If you work this out and you want a silent commit (not popping up the default oracle message), set the system message level, so the code would look like
If you recompile that code in a future version of Forms, there's no guarantee (and a likelihood against) it compiling and executing correctly. That 88 is a constant defined in the Forms product; that could be changed at any time. Try to make your code more generic and use system defined values whenever possible.
The reason you ended up using 88 is because you didn't really know what ALERT_BUTTON1 was. It is not a string value. It is a declared constant, thus the quotes are invalid. That's why you got the data type error. You were trying to compare the result of your alert button push to a string, when that value is numeric.
From your earlier code:
if al_b = 'ALERT_BUTTON1' then
--save or commit here.
/*this is what I have now: */ COMMIT_FORM;
end if;
How it should be:
if al_b = ALERT_BUTTON1 then
--save or commit here.
/*this is what I have now: */ COMMIT_FORM;
end if;
Bookmarks