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
vinitha
Messages: 1
Registered: July 2008
Junior Member
Hi,
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(getInspectorId()==null)
{
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: Thu Dec 08 14:30:30 CST 2016

Total time taken to generate the page: 0.09339 seconds