Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic window selection smartforms

Former Member
0 Likes
630

Hi,

In my smartform, i need to display a particular window on the leftmost corner of my page based on a condition.

If my condition is true then window A should be displayed whereas if its false the window A should not be displayed instead window B should be displayed in the same place .

Pls lemme know how can i achieve this.

Thanks ,

Faiz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

Hi Faiz,

You can acheive your requirement. Try working below steps.

1. In the form painter, Overlap window A and window B.

2. Declare a global variable to work as a flag.

3. Create a Logic in Program lines Using IF condition and based on Flag output, Display the data.

like Flag 1: Display output in window A ( window B is blank )

Flag 2: Display output in window B ( window A is blank )

Please revert in case of issues. Reward points if it helps.

Thanks

Vivek

3 REPLIES 3
Read only

Former Member
0 Likes
533

Hi Fiaz,

Declare a global variable and set this variable with X or space depending on when you want to enable first window(variable = 'x') and when you want second window(variable = ' '). Write this logic in code initialization.

Now use this variable in first and second windows conditions tab to enable and disable.

In first window, in conditions tab write

variable = 'X'

in second window , in conditions tab write

variable = ' ' .

Reward if helpful.

Regards,

Mahidhar.

Read only

Former Member
0 Likes
534

Hi Faiz,

You can acheive your requirement. Try working below steps.

1. In the form painter, Overlap window A and window B.

2. Declare a global variable to work as a flag.

3. Create a Logic in Program lines Using IF condition and based on Flag output, Display the data.

like Flag 1: Display output in window A ( window B is blank )

Flag 2: Display output in window B ( window A is blank )

Please revert in case of issues. Reward points if it helps.

Thanks

Vivek

Read only

Former Member
0 Likes
533

Hi Faiz,

You Just overlap window A and Window B And write the condition in the Window Condition Tab What ever you want it ll solve your Problem.

Thanks

Mani