cancel
Showing results for 
Search instead for 
Did you mean: 

Disable/Enable a button on EC screen

Former Member
0 Kudos

Hi,

I need to enable the Create new button on custom EC screen embedded into standard opportunity

only when the Competitor info is maintained in opportunity. Is there a way to do this?Any suggestions are helpful.

I see the option Calculation rule in the Advanced option of Enable property for Button.But not sure if I can write code for Opportunity

Query execution and then to access competitor info from there.The syntax is showing some Ruby error.

Regards

Jayasri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Do the following (all in SDK). This is the design pattern when you need to make UI elements hidden/shown, editable/readonly, mandatory/optional via "code". The page layout will let you simple dynamic UI scenarios by role and by header code list value. when you need to evaluate a runtime condition (when a specific value exists in the header or node of the BO) then you need to do it in code.

1. Add an extension field type indicator to the oppty, default false

2. Add an after modify code exit to the oppty where if the "data" (competitor info) is set, then set the indictator true

3. In UI designer, set the visibility (this property makes the control hidden or shown) or editable property ( this property makes the control "greyed out"- not editable) you decide which UX you want. Set "special"  attribute of the UI property and map it to the indicator created in step 1.

Answers (0)