Dynamically Enabling and Disabling Concurrent Program Parameters
Dynamically Enabling and Disabling Concurrent Program Parameters
There is a requirement that Dynamically enabling and disabling Concurrent Program Parameters.
Let a concurrent program has two parameters – Display and Application Name. If the value for Display is
‘YES’, then Users should be enabled containing names of Applications in a system and if the value for
Display is ‘NO’, then Application Name parameter gets disable.
If user has selected YES from Display parameter then Application Name value set enabled containing
application names.
Dynamically Enabling and Disabling Concurrent Program Parameters Raju Ch
If user has selected NO from display then Application Name disabled containing application names.
Dynamically Enabling and Disabling Concurrent Program Parameters Raju Ch
Then create one Dummy Set of none type for enable and disable other parameter
XXAA_NONE_DIPLAY_PARAM value set to enable User Value set
Click on Parameters.
As first parameter attach XXAA_DISPLAY_PARAMETER value set which provide the options YES or NO.
Dynamically Enabling and Disabling Concurrent Program Parameters Raju Ch
Here we are using Display Parameter Parameter to enable and disable other parameter of concurrent
program.
Create a parameter of any name and assign a value set XXAA_NONE_DIPLAY_PARAM of NONE type to
it.
Select default type as SQL Statement and in Default type write query as:
Select case when :$FLEX$.XXAA_DISPLAY_PARAMETER ='YES' then 'Y' else null end
from dual
Dynamically Enabling and Disabling Concurrent Program Parameters Raju Ch
When YES means application is selected by display value set then XXAA_NONE_DIPLAY_PARAM value
set returns ‘Y’ otherwise NULL.
All the table type value set which satisfies the where condition ‘Y’=:$FLEX$.validation are enable when this
query runs and others will remain disable.
Assign XXAA_APPLICATION_NAME value set to the parameters of concurrent Program and save it.
Dynamically Enabling and Disabling Concurrent Program Parameters Raju Ch
Output :
Here user selects NO from Display value set then Application Name disabled.
Here user selects YES from options value set then application value set get enabled.
Dynamically Enabling and Disabling Concurrent Program Parameters Raju Ch