cancel
Showing results for 
Search instead for 
Did you mean: 

In Smartforms,how to disable a window?

Former Member
0 Kudos

Hi Experts,

In Smartforms I have 2 windows, eachone with different data, how to disable a window (ie) invisible at runtime?

Data are displayed from DB. So, when there is a dataflow window need to be displayed - Text & data in that window need to be displayed or else it must be invisible.

Please, help me with a solution for this query.

Thanks,

Kavitha

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Resolved by myself

mahaboob_pathan
Contributor
0 Kudos

hi,

goto to contions tab of the window which u didn't want to appear when there is no data from database.

put the conditon like for which data u want to display.

ie.. data = 'ok'.

if the is comming then it will display.

if it is empty then it will not be displayed.

Former Member
0 Kudos

Hi Kavitha,

You can achieve it using the conditions tab of window. Do as,

1. Declare a variable w_display (say) and give the initial value as 'Y'.

2. In the code, if there is no data for that window, then set this flag to 'N'.

else if there is data, then set this flag to 'Y'.

3. In Conditions tab of Window, give w_diaplay = 'Y'

Best Regards.

Former Member
0 Kudos

Hi,

Create differt text elements for each line of ur data.

And in the conditions check id data is presenr then only it should display...

like...ur printing Material Number : &v_matnr&

in conditions declare...v_matnr <> initial...

like this...

or if want to completely make a particular window invisible then

before that window itself check whether data that need to be displayed on that window is available or not,

if data is available the set an indicator like flag = 'X' ,

and on the window (conditions) set condition if flag = 'X'.

Regards,

Mr.A

Former Member
0 Kudos

Hi,

Create a node: Condition and check whether the data is there in the window or not.

If yes then display the window.

If no then display the second if you have an alternative condition like this.

Former Member
0 Kudos

problem: when there is data available from DB then you have to display a window else no window..

so in the initialisation (tab of global definitions) you read and when there is data you flag a switch true else the switch is false.

the window itself you go to the conditions tab and there you give the condition: flag equals true. the window will then only be activated when the flag is true.

Regards

Former Member
0 Kudos

Hi,

Comment(/*) all the data in that window.Then no data is displayed.