How to hide or make the row invisible in RTF report?

Hi ,
I am setting a flag = 'Y' in one condition as i want to display records only if flag = 'Y'. It is not displaying data in case flag != 'Y'.But it is displaying empty row in report for the record which does not have flag = ' Y'. How to hide those empty rows?
See following code for example:
<?for-each: LIST_G_STORE_ID/G_STORE_ID?>
<?xdofx: if STORE_ID = '' then '-' else STORE_ID?>
<?for-each: LIST_G_TRANSACTION/G_TRANSACTION?>
<?for-each: Q1?><?if: PLAN_CODE = 'PLN'?><?xdoxslt:set_variable($_XDOCTX,'flag', 'Y')?><?end if?><?end for-each?>
<?if: xdoxslt: get_variable($_XDOCTX,'flag') = 'Y'?><?xdofx: if TRN_DATE = '' then '-' else TRN_DATE?><?end if?>
<?for-each@inlines:LIST_Q1/Q1?>
<?if: xdoxslt: get_variable($_XDOCTX,'flag') = 'Y'?><?xdofx: if INVC_NUM= '' then '-' else INVC_NUM?><?end if?>
<?for-each@inlines:LIST_Q1/Q1?><?if: xdoxslt: get_variable($_XDOCTX,'flag') = 'Y'?><?xdofx: if substr(PLAN_CODE,1,3) != 'PLN' then PRODUCT_CODE?><?xdofx: if PLAN_CODE!= 'PLN' then ','?><?end if?><?end for-each?>
<?end for-each?><?xdoxslt:set_variable($_XDOCTX,'flag','N')?>
<?end for-each?>
<?end for-each?>
please advice or let me know if more detail is needed.
Thanks in Advance!!

<?for-each:LIST_G_STORE_ID/G_STORE_ID [PLAN_CODE ='PLN' ]?> will only show the rows where that value of xml field PLAN_CODE is equal to 'PLN'.
Hope this helps
Domnic
Edited by: Domnic_JDE_BIP on Apr 12, 2010 5:47 PM

Similar Messages

  • Make the field invisible in oracle reports

    Hi,
    I want to make an object into invisible in oracle report.
    I made the below changes and ran the report and i found the object in the report output.
    Visibility Mode:NO
    Please suggest an solution for this.
    Thnaks,
    Ayrus.

    In Oracle Reports, you can use a format trigger (directly attached to the field) for that.
    IF (:FIELDNAME) IS NULL THEN
    RETURN (FALSE);
    ELSE
    RETURN (TRUE);
    END IF;

  • How to hide or make the router from others seeing it

    HI
    I just installed my new router and with my old one, if I went outside looking for a network the router will be invisable or not listed. How can I do this with my current router? 
    Thanks

    If you’re using the Linksys Smart Wi-Fi firmware on your EA2700, disabling the SSID broadcast is not supported.

  • How do you make the rows in a JTable uneditable.

    Hi
    Does anyone knows how to make the rows in a JTable uneditable.
    --kirk                                                                                                                                                                                   

    Hi,
    implement a TableModel, e.g AbstractTableModel and use it to initialise
    your table. (JTable aTable = new JTable(myAbstractTableModel))
    And if you want your table to be editable implement isCellEditable() in your table model, and let it return true. If not let it return false, or don't implement it att all.

  • How to make the row as a hyperlink in Crystal 2008

    Hi,
    Could you give me advise on how to make the row as a hyperlink and call another report.
    Thank you in advance.
    Rose

    Hi Sastry,
    I was able to create the subreport and its working.
    Thank you so much.
    Regards.
    Rose

  • Is it possible to make the background invisible in an flash desktop application?

    Hey there,
    I am currently trying to build a small desktop application in flash which works a bit like the scmpoo sheep (scmpoo - Cute little lamb / sheep on your desktop - YouTube). A screenmate with just a few animations and a movieclip tied together in as3.
    My problem now is, that the animated animal should a least look like it really moves on the users desktop, since I found no way to really place it there.
    I already set it to fullscreen mode, which removes the borders but I can't find a way to make the backgound invisible/transparent. In web-browsers this seems to be quite easy, but does it work for the desktop flash at all?
    And if yes, how do I do it?
    thanks for helping

    window style: custom chrome (transparent);

  • When inserting a .pdf of a document with a standard white paper color the test and images show up, but the white background is transparent. How do you also make the white paper color show up?

    When inserting a .pdf of a document into a Keynote template with a standard white paper color the text and images show up, but the white background is transparent. How do you also make the white paper color show up?

    Use the color fill option - select the inserted .pdf and assign a fill color of white to it using the Color Fill Menu on the Toolbar or the Color Picker Palette.
    Good Luck.

  • Anyone knows how to hide or dim the menu bar ?

    Anyone knows how to hide or dim the menu bar ?

    MagicMenu, but it may no longer work.
    Auto-hide the dock and menubar on a per-app basis .
    Hide Your Mac Menu Bar and Dock for a Cleaner Desktop.
    All found doing a Google search. Why not give that a try first before posting here.

  • How to customize to make the MRP controller is optional?

    Now network is assigned to WBS, but the MRP controller is must required.
    how to customize to make the MRP controller is optional?
    Please explain me all the steps to be required.
    Thanks in advance!

    Making MRP controller optional looks non-standard. You can default MRP controller in your network profile (OPUU), so that you need not enter it everytime you create new network.
    Hope this helps.
    Regards

  • Is there a way to make the connection invisible to outsiders?

    Hi I am a college student and I wanted to put a wireless network in my dorm room. My question is there a way to make the wifi connection be invisible to outsiders but to people who know that it is there they can see it(use it)? basically I want it to remain on so i dont have to unplug the power to it all the time. anything would be very helpful!!
    thanks for your time.

    Okay, I see I should have read some of the other discussions before I posted. According to the discussions at http://discussions.apple.com/thread.jspa?threadID=887980 and http://discussions.apple.com/thread.jspa?threadID=821637, the option to "Create a closed network" (disable the broadcast of the SSID, as some utilities call it) is misleading and only makes the network invisible to the casual observer. Ordinarily, I would still consider that worth something -- having a better lock on my door might not make me completely safe, but it might make the next door down the block look like a more inviting target for a thief. However, considering the flaky behavior that my Mac often doesn't automatically find the same closed network that it has found many times before, I'm turning off the "closed network" setting and relying on encryption. Duane, thanks for the heads up.
    MacBook Pro 17"   Mac OS X (10.4.10)   2.33GHz Core 2 Duo

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • How to hide cells in the sumation row in bps web layouts

    Hello xperts,
    I'm looking for a possibility to hide certain cells in the sumation row within a planing table (layout) over the webinterface builder.
    can anybody help me.
    I know there is a possibility to influence a table with the tableinterface for reporting tables.
    Is there any similar possibility in BPS- Web interface builder like a java script ?
    Please help !!!

    Hi Thomas,
    what exactly do you mean by "hide certain cells"? Do want to empty the contents of the cell or actually hide the cell? Hiding works for entire rows or entire tables, but hiding colums or even single cells is a bit more difficult (given, that when you hide one cell, the table loses its rectangular shape and the rows and columns don't match anymore ).
    I mangaged to change the appearance of certain objects with javascript. But that works only if you have an ID or NAME attribute in the HTML-source. Let's say you have a button and want to make it disappear.
    1. Create the button in the wi builder, name it button1.
    2. Create a text/html field, mark the html flag.
    3. Edit the long text of the field:
    <script>
      document.getElementById('button1').style.display='none';
    </script>
    That will make the button disappear. But I don't think that the display attribute will have any effect on a TD. You can try with style.InnerHTML or maybe set style.color to the background color. But in any case, the TD in the HTML code needs to have an ID or NAME. Otherwise it can't be referred. Maybe changing the bsp with SE80 helps?
    Simon

  • How to make the JTextAreabackground invisible

    i've got this JTextArea on my program and i was wanting to make the background of it invisible, because i hava got an image behing it and i want it to show through.
    can anyone help me please???

    You haven't bothered to reply to your other posting when you got help, so I won't bother to reply to this one.
    Anyway this question is asked all the time. All you have to do is search the forum for the answer.

  • How to make the row header of the JTable respond to mouse events?

    Is there an easy way to enable the row header of a JTable so it listens to mouse events? I have put a button in the first cell of the row header but I can't click in it.
    I'm asking for an easy way because I've seen some fairly complicated examples on the web that seem close to what I want but I was hoping something simple like getRowHeader().setEnabled(true) would do the trick for my case...

    What's your row header, another JTable or something else? Check out camickr's [url http://tips4java.wordpress.com/2009/07/12/table-button-column/]Table Button Column.
    db
    edit Or to get better help sooner, post a [url http://mindprod.com/jgloss/sscce.html]SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
    Edited by: Darryl Burke

  • How to hide columns in the output table in webdynpro based on input

    Hi Experts,
       I have 2 inputs and 1 input is optional.If both inputs are given proper table output is displayed,but if only 1 input is given a column is empty in the output table  so i want to hide this column dynamically at runtime based on my inputs.And i want to hide some empty rows also at runtime based on inputs.
    Can anyone help me out to solve this.
    Thanks in advance.
    Regards,
    Anita.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

Maybe you are looking for