"Validate from list" property does not work [message #152617] |
Sun, 25 December 2005 09:21 |
sbensimo
Messages: 6 Registered: December 2005
|
Junior Member |
|
|
Hi All
I am using Forms 6
I created an LOV, which retrieves the data using a record group.
I attached a text item that gets the value from the LOV and set the "Validate from list" to Y.
When I enter a wrong value and get to another field in the screen the LOV opens automatically -so far so good.
BUT when I press the Save button on the toolbar in my application the invalid data is inserted into the DB and the LOV does not opened as it should.
What can be the problem?
Thanks
|
|
|
|
|
|
Re: "Validate from list" property does not work [message #152870 is a reply to message #152775] |
Tue, 27 December 2005 06:24 |
sbensimo
Messages: 6 Registered: December 2005
|
Junior Member |
|
|
Hi David,
As for you question:
The 'Validation Unit' property of my form = Item.
what does it means?
BUT I think I have the solution:
My save procedure is as follow:
PROCEDURE TEL_SAVE IS
IT_NAME VARCHAR2(40);
BEGIN
IT_NAME := :SYSTEM.TRIGGER_ITEM;
validate(record_scope);
if NOT(form_success) then
go_item(IT_NAME);
else
DO_KEY('COMMIT_FORM');
END IF;
END;
If I only leave the DO_KEY('COMMIT_FORM'); in my procedure, then the LOV is working fine. I saw that the 'COMMIT_FORM' do the validation on the record scope automatically, so I am not losing validation. Am I right?
I do not understand why it is happening when you I call to the validate procedure specifically, but now it is finely working...
[Updated on: Tue, 27 December 2005 06:48] Report message to a moderator
|
|
|