As of the Viya stable 2023.10 release there is another option for dependencies between controls – the Enablement dependency option. Therefore, there are now two dependency options – Visibility and Enablement. I will review both dependency options in this post.
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
The Visibility dependency option is used to determine whether or not the control is displayed to the end user. A control that uses the Enablement dependency option is always displayed and the dependency is used to determine whether or not the control is available for editing.
Let’s look at a working example. I downloaded the GeoDistance with Rounding custom step from the GitHub - sassoftware/sas-studio-custom-steps: Repository to share SAS Studio Custom Steps to illustrate the dependencies options. For more information on how to do this, view this YouTube video.
I open the custom step in Designer mode and look at its Options tab to review the dependency options.
Currently, the Decimal places text or numeric control has the dependency for Visibility set. If the Round checkbox control is checked, then the Decimal places text or numeric control will be displayed; otherwise, the Decimal places text or numeric control will not be displayed. For more information on the expression syntax for dependencies, view its documentation.
Let’s preview this. With the Round checkbox control unchecked, the Decimal places text or numeric control is not displayed.
When the Round checkbox control is checked, the Decimal places text or numeric control is displayed.
Now, let’s change so the dependency for the Decimal places text or numeric control uses the Enablement option instead.
When the Round checkbox control is unchecked, the Decimal places text or numeric control is displayed, but it is read-only (i.e., not enabled).
When the Round checkbox control is checked, the Decimal places text or numeric is displayed and able to be edited (i.e., enabled).
The new dependency feature, Enablement, gives you more design possibilities for your custom steps. For more information on the new Enablement dependency review its documentation.
Find more articles from SAS Global Enablement and Learning here.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.