How to hide blank columns in datagrid?

Hi,
I have a datagrid nicely populated with data.
But I have some colums which are blank (the columns have a
Header but the rest of its rows are blank).
I want to hide these columns so that users can't see them.
Note that the blank columns are not fixed. Sometimes it can
be that a column is blank but at other times it can be filled.
So I cannot use... "<... visible=false>
I need to loop thru the columns and then hide the blank
columns.
Anyone has an idea how to code for this loop.
Thx

Well..from what i know, the datagrid supports the syntax to
allow for you to specify the columns explicitly through the
DataGridColumn. Done like this
<mx:datagrid>
<mx:columns>
<mxdatagridcolumn datafield = "Column 1 name" ..>
<mxdatagridcolumn datafield = "" ..>
<mxdatagridcolumn datafield = "" ..>
</mx:columns>
</mx:datagrid>
why dont you specify the columns you want using this. that
way, if there is no data in the colums, that column just wont show.
Hope i am understanding you right when you say hide blank
columns

Similar Messages

  • How to avoid blank column display in output in ALV TREE

    how to avoid blank column display in output while decreasing the length of other columns in ALV Tree.
    Example: please refer to BCALV_TREE_01 and see the output, then decrease the length of all columns . Then you can see a blank column appearing in screen at last, i.e in container. so how to avoid that.
    Thanks for reply.
    Edited by: morpeous on Jul 1, 2009 1:53 PM

    Hi,
    Check BCALV_TREE_02 on how to hide columns.
    Thanks & Regards,
    Anand Patil

  • How to hide a column (clnt) in tableview using MVC?

    Hy,
    I would like, please if you cand help me: how to hide a column (clnt) in tableview using MVC for example on sflight table.
    Thanks

    Hi,
    You can use the below logic
    <htmlb:tableView id = "t1"
               visibleRowCount = "10"
               table = "<%= flights %>">
         <htmlb:tableViewColumns>
              <htmlb:tableViewColumn columnNamd = "carrid" />
              <htmlb:tableViewColumn columnNamd = "connid" />
              <htmlb:tableViewColumn columnNamd = "fldate" />
         </htmlb:tableViewColumns>
    </htmlb:tableView>
    define all the required columns using tableViewColumn tag.
    Regards,
    Ravi

  • How to hide the Columns and Views for Login user in SharePoint 2013

    Hi Friends,
    How to hide the Columns and Views for Login user in SharePoint 2013? Is it possible using OOB features? If not possible how can we hide the Columns and Views for Login user?
    Could you please help on this.
    Thanks,
    Tiru
    Tiru

    Hello Tirupal,
    There is no OOB way to do this.
    Please check this codeplex solution to achieve the same.
    https://sp2013columnpermission.codeplex.com/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to hide multiple columns in multicolumn listbox like as an excel sheet?

    Hello All,
    I have large amount of data that is to be displayed on multicolumn listbox. After displaying that, I want to hide or delete some columns from listbox in runtime.
    I know how to hide one column using active cell property node. But I want to hide multiple columns. I am using LabVIEW 2011. 
    Thanks in advance.
    Thanks & Regards,
    Manisha

    Thank you so much. 
    But I have total 12 columns and I don't want to delete columns serially. I want to delete inbetween columns, like in attached VI I want to delete column A & D only. 
    And in this user have to select it from frontpanel. I want this is to be done as in excel, like we select the entire column and either we hide it or delete it. One more thing I want to clear the data in multicolumn when I next time open my VI. How to do that?
    I hope am clear in explaining my problem.
    Thanks & Regards,
    Manisha
    Attachments:
    Delete Column.vi ‏10 KB

  • How to hide ,unhide columns  in ALV List

    Hi all,
    How to hide ,unhide columns  in ALV List..
    Plz guide me.
    Thanks in advance..
    Albert

    Hi Joseph,
    Check the following thread:
    Hide Unhide columns of ALV grid Report.
    Regards,
    Archana

  • How to hide Actions Column in Table

    Hi All,
    I have a simple requirement: I am showing a table (items)
    - the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
    How can I hide this column od the table?
    I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
    Please help me here..
    Thanks, Johannes

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • How to Hide a column in OBIEE 11g

    Hi,
    I am trying to hide a column of presantation layer table in OBIEE 11g. But it is not working.
    I am doing the follwoing.
    Open the permission tab of the column.
    Given no access to Everyone.
    Given No access the user/Application Role.
    When i go to web, the column is getting displayed in the table list. But, when i select the column and press the result button, it is not giving the result.
    It means, by doing the above steps it is restricting the data but visibility of column is already there.
    Same way it works for OBIEE 10g. Could you please let me know this feature has been removed from 11g or if it is still there then how we can achieved that.
    Thanks in Advance
    Niraj

    Hi Niraj,
    It's a bug in OBIEE 11.1.1.5.
    Bug 12352010: RESTRICTED COLUMNS SHOULD NOT SHOW IN SUBJECT AREA
    It is fixed in the version 11.1.1.6.
    Regards,
    Sandeep
    Edited by: Sandeep Saini on Mar 28, 2012 12:16 AM

  • How to hide the columns at the end user level thru personalization

    Hi all
    how I can hide the columns that are displayed on the portal. Any personalize option for the end user? Any righ click or some thing?
    I am looking at hiding columns not while developing the iViews / Pages, But in the browsers as the end user.
    i can hide the columns what ever i want while creating the iViews for MDM data. but we cant provide the content administrator role to the end user for hiding the columns what ever they want. they want to hide the columns thru pesonalization option at the end user level.
    Can you please let me know whether we can able to hide the columns at the end user level thru personalization ?? is it posible with standard iViews??
    Regards
    Sunil

    Hi Sunil,
    I understood your requirement properly and seems valid and I tried this at my end but i didnt get the solution. Field list is not visible in Personalize option. I dont think it is possible with MDM standard iViews.
    I was thinking an alternative is if some how we manage to give the permissions to end user only on Result Set iView but if it would be possible it will not be a good design.
    Lets wait for some inputs from others.
    Regards,
    Jitesh Talreja

  • How to hide some column filter operators in Interactive Report

    Hi,
    I have an APEX 4.2 application what includes Interactive Report page.
    Is there possibilty to hide or disable some filter operators in column filter?
    But I don't want to disable all filter functionality for end users.
    For example how to hide/disable operator "matches regular expression".
    Some filter operators are too complicated for end users.
    I have searhced but not found solution.
    regards,
    Erkki

    erkkik wrote:
    I have an APEX 4.2 application what includes Interactive Report page.
    Is there possibilty to hide or disable some filter operators in column filter?
    But I don't want to disable all filter functionality for end users.
    For example how to hide/disable operator "matches regular expression".
    Some filter operators are too complicated for end users.
    I wouldn't really recommend this. Users will quickly recognise what works for them and avoid options that they do not currently understand. However, over time—through training or advice from more experienced users—they may come to understand and use all of the available features. Blocking access (especially in a non-standard way) to options that users may eventually need is likely to result in unnecessary development work now and at some (possibly inconvenient) time in the future.
    That said, this really isn't difficult to implement using CSS. Use your browser web inspector to identify which filter types are to be blocked, using the value attribute of the filter Operator select list in the generated IR HTML. For example, in APEX 5.0 a filter operator select list looks like:
    <select id="R70597672218719366505_STRING_OPT" class="a-IRR-operator" data-column-type="STRING" title="Operator" name="p_ignore_10" size="1">
      <option value="=">=</option>
      <option value="!=">!=</option>
      <option value="is null">is null</option>
      <option value="is not null">is not null</option>
      <option value="like">like</option>
      <option value="not like">not like</option>
      <option value="in">in</option>
      <option value="not in">not in</option>
      <option value="contains">contains</option>
      <option value="does not contain">does not contain</option>
      <option value="regexp_like">matches regular expression</option>
    </select>
    The "matches regular expression" option has the value regexp_like, so the required CSS rule using the IR operator select list class and an attribute selector on the option value is:
    .a-IRR-operator option[value="regexp_like"] {
      display: none;
    Additional selectors for other filter types can be added to this rule as required, for example:
    .a-IRR-operator option[value="regexp_like"],
    .a-IRR-operator option[value="is not null"] {
      display: none;
    to eliminate the "is not null" filter.
    To implement this for all IRs in your application, create a custom CSS style sheet containing the rule, upload it to your workspace, and reference it in all of the page templates used for IR pages.
    This is not a 100% foolproof solution. CSS is not an appropriate way to implement security restrictions. A web-savvy user could use their web inspector to disable the CSS rule and access the blocked filter(s). However there is little risk here as (1) it appears that your users will lack the required expertise; and (2) doing so will only allow them to further filter data they already have access to.

  • How to hide row column on condition in report

    Hello everyone,
    Can its is possible to hide a Column of a row in report.
    For one customer i am having Opening Balance n Closing Balance data.....i m breaking my report on customer wise (First Column). So I can see Customer only one time not 5..... now i want to see Opening Balance Data only in first row n Closing Balance Data only in last row.
    How can i achieve this, pls help!
    regards,
    UKJ

    Hi,
    I have no idea but try this:SELECT  SEGMENT1,
            VENDOR_NAME,
            VENDOR_SITE_CODE,
            INVOICE_NUMBER,
            INVOICE_DATE,
            INVOICE_TYPE_LOOKUP_CODE,
            PAY_DATE,
            DESCRIPTION,
            CHECK_DATE,
            CHECK_NUMBER,
            VOUCHER_NUM,
            SUM(debit) debit,
            null credit,
            op_bal,
            cl_bal
    from (
    SELECT  SEGMENT1,
            VENDOR_NAME,
            VENDOR_SITE_CODE,
            INVOICE_NUMBER,
            INVOICE_DATE,
            INVOICE_TYPE_LOOKUP_CODE,
            PAY_DATE,
            DESCRIPTION,
            CHECK_DATE,
            CHECK_NUMBER,
            VOUCHER_NUM,
            SUM(debit) debit,
            null credit,
            op_bal,
            cl_bal
            row_number () over (partition by VENDOR_NAME order by INVOICE_DATE) rnk
    from (
    SELECT  SEGMENT1,
            VENDOR_NAME,
            VENDOR_SITE_CODE,
            INVOICE_NUMBER,
            INVOICE_DATE,
            INVOICE_TYPE_LOOKUP_CODE,
            PAY_DATE,
            DESCRIPTION,
            CHECK_DATE,
            CHECK_NUMBER,
            VOUCHER_NUM,
            SUM(debit) debit,
            null credit,
            op_bal,
            cl_bal   
        FROM (   
    SELECT POV.SEGMENT1,
           POV.VENDOR_NAME,
           pov.vendor_id,
           POVS.VENDOR_SITE_CODE,
           hou.SET_OF_BOOKS_ID,
           API.INVOICE_NUM INVOICE_NUMBER,
           API.INVOICE_DATE,
           API.INVOICE_TYPE_LOOKUP_CODE,
           APPL.ACCOUNTING_DATE PAY_DATE,
           API.DESCRIPTION DESCRIPTION,
           TO_CHAR(APC.CHECK_DATE, 'dd-MON-yyyy') CHECK_DATE,
           APC.CHECK_NUMBER,
           APC.DOC_SEQUENCE_VALUE VOUCHER_NUM,
           API.INVOICE_AMOUNT,appl.amount,
           DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',API.INVOICE_AMOUNT ,appl.amount) debit,
           null credit,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cr_amt,
           jai_ap_rpt_apcr_pkg.compute_debit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) dr_amt,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_FROM_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_FROM_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) op_bal,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cl_bal
        FROM AP_INVOICES_ALL API,
             AP_INVOICE_LINES_ALL APIL,
             AP_INVOICE_DISTRIBUTIONS_ALL APD,
             PO_VENDORS POV,
             PO_VENDOR_SITES_ALL POVS,
             AP_INVOICE_PAYMENTS_ALL APPL,
             AP_CHECKS_ALL APC,
             hr_operating_units hou
       WHERE API.INVOICE_ID = APIL.INVOICE_ID
         AND API.INVOICE_ID = APD.INVOICE_ID
         AND API.VENDOR_ID = POV.VENDOR_ID
         AND API.VENDOR_SITE_ID = POVS.VENDOR_SITE_ID
         AND API.INVOICE_ID = APPL.INVOICE_ID
         AND APPL.CHECK_ID = APC.CHECK_ID
         AND APIL.line_number = apd.invoice_line_number
         AND APD.match_status_flag='A'
         AND API.org_id=hou.ORGANIZATION_ID
         AND APIL.LINE_TYPE_LOOKUP_CODE='ITEM'
         AND api.org_id = nvl(:p22_org_id,api.org_id)
         AND TRUNC(API.INVOICE_DATE) BETWEEN NVL (:P22_FROM_DATE,API.INVOICE_DATE)AND NVL(:P22_TO_DATE,API.INVOICE_DATE)
    GROUP BY SEGMENT1,
             VENDOR_NAME,
             VENDOR_SITE_CODE,
             INVOICE_NUMBER,
             INVOICE_DATE,
             INVOICE_TYPE_LOOKUP_CODE,
             PAY_DATE,
             DESCRIPTION,
             CHECK_DATE,
             CHECK_NUMBER,
             VOUCHER_NUM,
             op_bal,
             cl_bal
    UNION
    SELECT SEGMENT1,
           VENDOR_NAME,
           VENDOR_SITE_CODE,
           INVOICE_NUMBER,
           INVOICE_DATE,
           INVOICE_TYPE_LOOKUP_CODE,
           PAY_DATE,
           DESCRIPTION,
           CHECK_DATE,
           CHECK_NUMBER,
           VOUCHER_NUM,
           debit,
           SUM(credit) credit,       
           op_bal,
           cl_bal
         FROM (  
    SELECT POV.SEGMENT1,
           POV.VENDOR_NAME,
           POVS.VENDOR_SITE_CODE,
           API.INVOICE_NUM INVOICE_NUMBER,
           API.INVOICE_DATE,
           API.INVOICE_TYPE_LOOKUP_CODE,
           NULL PAY_DATE,
           API.DESCRIPTION DESCRIPTION,
           NULL CHECK_DATE,
           NULL CHECK_NUMBER,
           NULL VOUCHER_NUM,
           DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',NULL ,abs(API.INVOICE_AMOUNT))  credit,
           DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',abs(API.INVOICE_AMOUNT))  DEBIT,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) op_bal,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cl_bal
       FROM AP_INVOICES_ALL API,
            AP_INVOICE_LINES_ALL APIL,
            AP_INVOICE_DISTRIBUTIONS_ALL APD,
            PO_VENDORS POV,
            PO_VENDOR_SITES_ALL POVS,
            hr_operating_units hou
       WHERE 1=1
        and api.org_id=apil.org_id
        and API.INVOICE_ID = APIL.INVOICE_ID
        AND API.INVOICE_ID = APD.INVOICE_ID
        AND API.VENDOR_ID = POV.VENDOR_ID
        AND API.VENDOR_SITE_ID = POVS.VENDOR_SITE_ID
        and api.org_id =apil.org_id
        and api.org_id=hou.ORGANIZATION_ID
        and apil.line_number = apd.invoice_line_number
        AND apd.match_status_flag='A'
        and apil.LINE_TYPE_LOOKUP_CODE='ITEM'      
        AND api.org_id = nvl(:p22_org_id,api.org_id)
        AND TRUNC(APD.ACCOUNTING_DATE) BETWEEN NVL (:P22_FROM_DATE,APD.ACCOUNTING_DATE) AND NVL (:P22_TO_DATE,APD.ACCOUNTING_DATE)
    GROUP BY SEGMENT1,
             VENDOR_NAME,
             VENDOR_SITE_CODE,
             INVOICE_NUMBER,
             INVOICE_DATE,
             INVOICE_TYPE_LOOKUP_CODE,
             PAY_DATE,
             DEBIT,
             CREDIT,
             DESCRIPTION,
             CHECK_DATE,
             CHECK_NUMBER,
             VOUCHER_NUM,
             op_bal,
             cl_bal)
    where rnk = 1If it doesn't work as required then alter the line row_number () over (partition by VENDOR_NAME order by INVOICE_DATE) rnk
    I've just guessed that you can find a unique record (a persons account) by partitioning by the vendor_name at that point but perhaps you need other things.
    Mike

  • How to hide some columns in FBCJ tcode

    hi experts,
    is it possible to hide some columns in FBCJ for some particular user ids.
    i want to display only these following columns for some particular user ids. I tried configuration button exists on right corner of table above scroll bar by changing administrator settings.
    But it is reflecting for all user ids.
    I want to reflect  changes for some particular user ids.
    1. business trnsaction
    2. amount
    3.Document status
    4. g/l account
    4. Receipt Recipient
    6. text
    7. vendor
    8. Reference
    9. company code
    10. cost center
    11. profit center
    12. additional text1
    13. additional text 2.
    I came to know by using screen variants we can achieve this.
    But i dont know how to proceed.
    Kindly provide steps to make changes.
    thanks & regards,
    Hari priya

    Hi,
    Check out this link.Probably this would be useful.
    http://www.madeitsimple.com/technology/sap-abap-transaction-variants/
    Thanks
    Papiya

  • How to hide a column while exporting to excel?

    Hello,
    My client requires a crystal report(CR 2011) with Columns A,B,C,D, and E. After exporting this report to Excel, the excel file should contain only columns A,C,and E. I need to hide/suppress columns B and D ONLY during exporting to excel/printing. Is is possible? If yes, how?
    Thanks,
    P

    Hi Prasanna,
    Here's what you can do:
    1) Create a prompt with Yes/No values (Yes means show all columns, No means show limited columns)
    2) Create multiple sections. E.g:
    Page header a would have column headers for all columns
    Details a would have all fields
    Page header b would have columns A, C and E
    Details b would have fields A, C and E
    Use a conditional suppression logic for each of those sections:
    Logic for Page Header a would look like this:
    {?Prompt} = 'No'
    Logic for Page Header b would be:
    {?Prompt} = 'Yes'
    -Abhilash

  • How to hide a Column

    Gurus
    Using XSL FO how can i hide a column based upon a value in XML file.Can you please guide
    Regards
    Nitin

    Hi ,
    Pleaase check the conditional formatting section in the bi publisher user guide ... you will get the required solution.
    Regards
    Ratnesh P

  • How to hide a column from document set?

    I have a document set in which i want to hide one of the columns, how do i proceed? is there any out-of-the-box features available? I want to show the column in main library view but not in document set. Any suggestions would be appreciated.
    Thanks
    Ramanjulu Naidu N

    You can hide the column in the content type to stop it showing in forms.
    Or you can go into Document Set settings (via the library settings page) to stop it being displayed on the Document Set homepage. 
    Does this cover the hiding you wanted to do?
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

Maybe you are looking for

  • ...better compression?

    ...I've just rendered a 12 minute video to DVD and not satisfied with quality. From FCP i exported an setting: >deinterlaced>720x480 SD ANAMORPHIC 16:9 uncompressed 8bit> YUV> highest quality /motion> best at a 13gb file size. After DVDSP got through

  • IMovie doesn't starts!!

    I have a big problem.. iMovie '08 doesn't start! 1. First I tried to delete the home/library/preferences/: com.apple.garageband.cs com.apple.garageband.plist com.apple.iApps.plist com.apple.iMovie.plist but nothing ... 2. Second I tried ti delete Mac

  • How to handle EXTENDED Views  SQL 2000 to Oracle Migration

    Hi All, I am in the process of migrating SQL server 2000 database to Orcle databse. I would like to know how to handle the views created in SQL server with Extended clause. See below for example for SQL 2000 view. create view "Order Details Extended"

  • Problem opening files after installing Creative Cloud

    I'm running Creative Cloud in Windows 7. Since installing CC, when I double-click on a file icon the program opens but the file doesn't. I can only open the file from the file menu within the program. Very inconvenient. Also, Acrobat now randomly dis

  • I have downloaded Photoshop CC 2014 but despite payment PSCC is neither activated nor could be opened

    I have downloaded Photoshop CC 2014 (for trial) on 17-07-2014. After sometime I paid the required amount  but PSCC neither activated nor could be opened.