Skip to Content
avatar image
Former Member

smartform--urgent

I have one requriment,

From report i am calling smartform, in that report we have around 10 check box , based on this check boxes i need to display data in smartform, for everycheck box i have taken one window mean its 10 window, but problem

suppose if we click 5 check box that 5 window should display in the output not all the 10 windows, here its displaying 10 windows,

assume if click 1 check box the output will be only one window not all the 10 windows.

please help me anybody.....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 20, 2007 at 02:36 PM

    u r rquirement is to print some data onto smartform depending upon the check box checked

    if this is right then insted of using different windows use main window and in main window decalre a text elements for each checkboxes.

    from program pass flag for each checkbox.

    in smartform u'll have output options for each text element there u can check for flag if flag is true then only print.

    because with windows you have to give postion and if u r not going to print suppose 1st window then this position may get u blank in output.

    hope it is useful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2007 at 12:50 PM

    Hi Srinivas,

    To display the windows besed on the check boxes checked in the program you have to declere the same variable(c1) in smartforms form Interface and you have to pass those variables in windows condition.

    Ex: Window1 -> Condition -> c1 = 1.

    Window2 -> Condition -> c1 = 2.

    Window3 -> Condition -> c1 = 3.

    Window4 -> Condition -> c1 = 4.

    Window5 -> Condition -> c1 = 5.

    program:

    Parameters: C1 As checkbox,

    C2 As checkbox.

    DATA :C3 TYPE C,

    Start-of-selection.

    If c1 = 'X'.

    c3 = '1'.

    elseif c2 = 'X'.

    c3 = '2'.

    endif.

    pass c3 to the function module for parameter c1.

    hope your problem solved.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2007 at 12:54 PM

    hi

    use the if condition and write a code for that in program lines of smart form.

    Add comment
    10|10000 characters needed characters exceeded