Skip to Content
author's profile photo Former Member
Former Member

In Smartforms,how to disable a window?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2008 at 10:34 AM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2008 at 10:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2008 at 10:46 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2008 at 12:27 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2008 at 02:30 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 07:10 AM

    Resolved by myself

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.