Navigation rules define the navigation actions to take depending on the success or failure of the user's attempt to log on to Crystal Enterprise. A navigation rule redirects users to a different page depending on whether the returned string indicates a successful or failed logon attempt. The navigation rule is configured in the Properties view and automatically stored in the faces
file.
Logon
component in the visual designer.logon_success
, and then click OK.logon_failure
, and then click OK.You must now create an action method that performs the checking of the user's logon status, and returns the strings "logon_success" or "logon_failure".
Logon
component in the visual designer.identity = getIdentity();
if (identity == null)
return "logon_failure";
if(!identity.isLoggedOn())
return "logon_failure";
return "logon_success";
This method checks for the existence and logon status of the Identity
bean, which contains the session information for the user. If the Identity
bean is not null and is logged on to Crystal Enterprise, then the "logon_success" string is returned, otherwise the user is not logged on and the "logon_failure" string is returned.
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |