Home » Developer & Programmer » JDeveloper, Java & XML » Entity Level Validation between panels using JDeveloper 11g TP3
Entity Level Validation between panels using JDeveloper 11g TP3 [message #333967] Tue, 15 July 2008 01:21
Messages: 1
Registered: July 2008
Junior Member
I have a validation to be performed at the Entity Level and the scenario goes like this.
I have two panel tabs StaffMainDataPanel and ProfessionalPanel wherein the validation should take place.If my occupationId in StaffMainDataPanel is 4 then inspectorId in ProfessionalPanel cannot be null.

Steps done:

I have provided an entity level validation for occupationId .

/**Validation method for Ocupation with respective to InspectorId.
public boolean validateOccupationId()
if((getOcupation()!=null) && (getOcupation().intValue()== 4))
throw new InsisException(Messages.getMessage("INSPECTOR_ID", "P_STAFF",getDBTransaction()), 1);
return true;

Problem encountered:

It prompts me with the required error message if i enter the occupationId as 4 in StaffMainDataPanel but does not allow me to move to ProfessionalPanel wherein i have to enter the inspectorId.

can someone provide me an idea to resolve it.
Previous Topic: XML 'IN' list
Next Topic: XML page break
Goto Forum:

Current Time: Wed Mar 22 01:56:39 CDT 2023