on 11-18-2008 10:31 AM
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
Resolved by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Comment(/*) all the data in that window.Then no data is displayed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.