You are here

Conditional View based on a field value

The user should have access to Opportunity Quote View depending of the Opportunity Sales Stage : if Sales Stage is A then the view is not available, if the Sales Stage is B, the view is available. 

On the parent BC (Opportunity) used the ChangeRecord event to set the profile attribute as below:

function BusComp_ChangeRecord ()
{
this.ActivateField("Sales Stage");
TheApplication().SetProfileAttr("MySalesStage",this.GetFieldValue("Sales Stage"));
}

In the Client, navigated to the Personalization administration screen and entered a conditional expression GetProfileAttr('MySalesStage') = "01 - Prospecting" for the 'Opportunity Quote View'. This means that when the condition evaluates to TRUE the view will display.

If it is not acceptable to have any views in SI mode, then you could configure a dynamic drilldown on Sales Stage that accesses the Opportunity Quote View for some Sales Stage values and a different view for other values.