Hiding a column when using Apex_item.hidden

Hi All,
I am using Apex v4.1.1.
Have a tabular form I created manually with few APEX_ITEM.HIDDEN fields. The fields are not rendering (as it hidden) however I am left with a blank columns. Could someone guide me how I can make those columns invisible (without getting rid of them as they contain values I use in my Javascript).
Many Thanks.

xarg-Xrc wrote:
Have a tabular form I created manually with few APEX_ITEM.HIDDEN fields. The fields are not rendering (as it hidden) however I am left with a blank columns. Could someone guide me how I can make those columns invisible (without getting rid of them as they contain values I use in my Javascript).Don't select the hidden items as separate columns. Concatenate the hidden items with a visible item in one column:
select
       apex_item.hidden(...)
    || apex_item.hidden(...)
    || apex_item.hidden(...)
    || col1 as col1
  , col2
  , col3
...

Similar Messages

  • Exception when using apex_item.select_list_from_lov

    I have a query where I want to use a select list to enable the user to change the value of an attribute. However, when i try using apex_item.select_list_from_lov or apex_item.select_list_from_query I get an exception. My report region shows ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I tried querying a smaller table, and then it works. Is there a size limit for select_list_from_query and select_list_from_lov? And if so, what is it? The list of values and the query works fine when using them in select list items (in a form). It also works fine when using apex_item.popup_from_lov.
    Camilla

    Camilla,
    Those functions return a varchar2 value so you are limited to 4000 characters for a column of that type selected in SQL. You can use the select_list_from_query_xl or select_list_from_lov_xl, which return a CLOB. In any case the size of the HTML generated for the row must be less than 32K.
    Scott

  • Update using Apex_item.hidden help

    Hi,
    I want to update a table using apex hidden item as reference. But while updating, I encounter an error as invalid number. Here ID is the primary key column which is of datatype number.
    Below is my report query
    Select
    ID,
    DAYS_SPAN,
    comments,
    apex_item.hidden(1,ID)||APEX_ITEM.SELECT_LIST(2,Action,'A,B,C,D') "Attachment Action",
    from TBL_ACTION_LIST
    where ITEM_ID = :P5_ITEM_ID
    I have written an after submit process as follows,
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
    UPDATE TBL_ACTION_LIST
    SET
    Action= APEX_APPLICATION.G_F02(i)
    WHERE ID = to_number(APEX_APPLICATION.G_F01(i));
    END LOOP;
    END;

    Put some debug message in ur code to see the value of APEX_APPLICATION.G_F01 each time to make sure that you are actually getting a number in that.
    Another simple thing that you could do is(for debugging), assign an variable with the APEX_APPLICATION.G_F01's value inside the loop. Write an exception that raises with the original error message concatenated with the variable's value.
    DECLARE
      lc_debug VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
        lc_debug := APEX_APPLICATION.G_F01(i);
        UPDATE TBL_ACTION_LIST
        SET
        Action= APEX_APPLICATION.G_F02(i)
        WHERE ID = to_number(APEX_APPLICATION.G_F01(i));
      END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
      RAISE(-20999, ' ID Value: '||lc_debug
                           ||CHR(10)||SQLERRM
    END;If required check the F02 array value too(the DB column for ACTION is varchar2, isn't it ?).
    This should show you the ID value which raises the error.

  • Unresolved column when using presentation variable in Answers filter

    Hi all,
    I'm using a dashboard prompt that sets a presentation variable - pres_year. I'm using the presentation variable in a request's filter.
    In the 'Criteria' tab, in the filter for the request, I set a year column (YEAR) to the presentation variable via Variable Expr and enter the presentation variable name only. End up with:
    YEAR is equal to / is in @{pres_year}
    When using the dashboard, the prompt and request all work fine. The problem is when I'm in the request in Answers and I click on 'Display Results' button. I get the following error:
    'NQSError: 27005 unresolved column pres_year'
    Any suggestions?
    Thanks.

    I got same error, if i'm using SQL Expression, instead of variable expression in filter section.
    make sure that you followed this:
    filter on year > Add > Variable > Presentation. Then, give the presentation variable name (which you defined in dashboard prompt) in Variable Expr field , click OK
    getting same error when using:
    Filter on year column > Add > SQL Expression > presentation variable. This is not right place to give presentation variable.
    and, error i got:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005]* Unresolved column: "var_Year". (HY000)
    so, make sure that you are suing the right one..

  • Centre align column when using rowClasses

    Hi,
    Whats the best wayt o centre align some columns in a dataTable when using rowClasses? The normal approach would be to set the style on the columnClass but obviously that won't work in this situation.
    Any ideas?
    Thanks

    You could try to use CSS to specify the 3rd column, e.g.
    TD + TD + TD { text-align=center; }
    (don't know if this works...}

  • Hiding a column when displaying an alv

    Hi Gurus,
    Shortly I have these things :
    1) A node with some attributes like customer_no, customer_name, status etc.
    2) A view which contains an element(viewcontainerelement) and this displays the node.
    This node is in CONTEXT of my view and in componentcontroller.
    Now i want to hide some attributes(columns) when displaying this alv. Can anybody help me?
    Thanks..

    Hi,
    When i write that code, it gives me an error message :
    data: lr_salv_column type ref to cl_salv_wd_column,
    lr_salv_table type ref to cl_salv_wd_config_table.
    lr_salv_column = lr_salv_table-if_salv_wd_column_settings~get_column( 'm_no' ).
    lr_salv_column->set_visible( if_wdl_core=>visibility_blank ).
    Error message:
    "Class "CL_MAINV_CTR" does not contain an interface
    "LR_SALV_TABLE-IF_SALV_WD_COLUMN_SETTINGS".      "     
    "Mainv" is the name of my view.
    I am new at WDA, please give me detailed information.
    Thanks
    Edited by: Adil Gündüz on Sep 22, 2008 11:13 AM

  • Dock hiding/magnification issue when using two mice.

    Hello.  I purchased and installed 10.7 Lion today on a freshly reformatted iMac (2.8 ghz, original aluminum) and I am having a very strange issue with the Dock.
    My business setup requires me to use a KVM switch so that I can use my PC and my Mac at the same time.  I have two separate monitors, so the display is not handled through this switch.  I have one keyboard that is handled through this switch, and one mouse: the Cyborg RAT 7.
    I have a second mouse, the Apple Magic Mouse, hooked up to the iMac only through Bluetooth.  Because of this setup, I have both the RAT 7 and the Magic Mouse capable of controlling the cursor on OS X when the KVM switch is set to Mac.
    However, when both mice are connected the dock becomes completely unusable:
    Normally I have the dock Hidden and with Magnification turned on.  However, the hiding doesn't work. If I move the cursor to the bottom of the screen, I have to click to get the dock to appear. This "magnifies" the icon that the cursor is over, but nothing else magnifies when I move over it and the dock does not re-hide when the cursor is moved off and will only re-hide once I've clicked elsewhere. When I right click on something in the dock, the options in the right click menu do not highlight like they are supposed to.  This highlighting issue applies on the top bar's icons as well.
    I have had this glitch happen occasionally on Snow Leopard, and in that case I would simply relaunch Finder and all would be well.  This does not fix this issue.
    What does fix this issue is removing one of the mice.  If I unplug the RAT 7 from the KVM switch, the dock works perfectly using the Magic Mouse.  If I turn off the Magic Mouse, the dock works perfectly using the RAT 7.  I have tried connecting the RAT 7 directly through USB, bypassing the switch, and I have the same issue.
    Is there perhaps an option in Lion that has multi-mouse support turned off somehow?  I can move the cursor fine with both mice attached, but the dock is simply unusable with both.
    Any information on this strange issue would be most appreciated.
    Thank you for your time.

    I have just configured a new Airport Extreme and I have just printed sucessfully to our printer. Weird its just a Graphite Airport base Station Issue. I am not sure if the problem occours with the Snow Airport Base Station....Ill have to try that one out. I am so happy that it works you wouldnt believe it.

  • How to sort specific column when using GROUPING SETS in SQL Server?

    If I remember correctly, in SQL Server, it is not recommended to use "ORDER BY" when there's already a GROUP BY GROUPING SETS.
    I have two columns: [UPC#] & [Description] both are varchar.
    My grouping sets is like this:
    GROUP BY
    GROUPING SETS
    ([UPC],[Description])
    I don't have 'ORDER BY' but it's automatically sorting the Description column.
    If I added a 3rd column, sum(Qty), then it doesn't sort by Description anymore. But if I added
    ORDER BY [Description]
    then the grand total of sum(Qty) will be at the first row instead of the last.
    Is there a way to sort the Description column and still let the grand total of sum(Qty) be at the last row instead?
    Thanks.

    Yes, it works.
    Thank you.
    Could you kindly explain the logic?
    I don't quite understand the "= 3 THEN 1 ELSE 0" part.
    Is the #3 mean the column index 3?
    GROUPING_ID returns a bit mask value depending on number of columns grouped in the result 
    So when you do GROUPING_ID(([UPC]),([Description]))
    it has two columns UPC and Description so bit mask will be as follows
    0 ie 00 for rows grouped by both UPC and Description fields
    1 ie 01 for rows grouped by UPC ie UPC subtotals
    2 ie 10 for rows grouped by Description ie Description subtotals
    3 ie 11 for rows not grouped by both columns ie Grand total
    see
    http://msdn.microsoft.com/en-IN/library/bb510624.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Hiding menu column when printing

    Using Aqualogic Interaction 6.1
    I'm trying to have a few pages with 2 columns on the screen, (navigation on left and content on right.) But when the user hits print I want the content column take up the entire page.
    using css I can easily hide the menu portlets but when I print I still have blank whitespace where the menu used to be.
    looking at the source of the page it seems the portal adds a spacer image 250 wide at the bottom of the column. Is there any way to remove this? If it had a class tag I could hide it just like the portlets but it doesn't.
    I've added the following code to my header portlet:
    {style type="text/css" media="screen"}{!--
    --}{style} 
    {style type="text/css" media="print"}{!--
    .columnOne     { width: 0; }
    #pt-portlet-9422 {display:none; BACKGROUND-COLOR: #FFFFFF;}
    #pt-portlet-9423 {display:none; BACKGROUND-COLOR: #FFFFFF;}
    --}{style}but it doesn't seem to work when I print the left column is blank but it still takes up abotu a third of the page.
    the spacer image I see in the source that I think is causeing the problem is:
    {table cellpadding="0" cellspacing="0" width="100%" border="0" summary="Portlet Column Formatter Table."}{tr}{td colspan="1"}{img src="http://portal.realtorlink.ca/imageserver/plumtree/portal/public/img/sp.gif" alt="" border="0" align="absmiddle" height="1" width="250"/}{td}
    {tr}
    {table}
    {!--End Portlet Column 0--}BTW I've replaced all < with { and all > with } in my code because image and comment tags are displayed as html and some other tags are properly converted to & l t ; and & g t ; in this newsgroup... might want to fix that too.

    Hi,
    When i write that code, it gives me an error message :
    data: lr_salv_column type ref to cl_salv_wd_column,
    lr_salv_table type ref to cl_salv_wd_config_table.
    lr_salv_column = lr_salv_table-if_salv_wd_column_settings~get_column( 'm_no' ).
    lr_salv_column->set_visible( if_wdl_core=>visibility_blank ).
    Error message:
    "Class "CL_MAINV_CTR" does not contain an interface
    "LR_SALV_TABLE-IF_SALV_WD_COLUMN_SETTINGS".      "     
    "Mainv" is the name of my view.
    I am new at WDA, please give me detailed information.
    Thanks
    Edited by: Adil Gündüz on Sep 22, 2008 11:13 AM

  • How to fix the width of the column when using alv table

    Hi ,
    I am displaying the contents in a table. Of course using alv component i displayed the content. Now the problem is the column width is not fixed with value of the table entries( based on the domain length level). As  length  of field increases or decreses as the length of the content increases or decreases. I wanted to fix the column width whatever be the length of the contents.
    Can any one help in this regard ?
    Thanks Pons.

    Hi,
    Please find the code related to your problem.
    METHOD configure_alv .
    data declaration for column settings
      DATA  : lr_column_settings   TYPE REF TO if_salv_wd_column_settings,
              lr_col_header        TYPE REF TO cl_salv_wd_column_header,
              lt_columns           TYPE salv_wd_t_column_ref,
              ls_column            TYPE salv_wd_s_column_ref.
    data declaration for table settings
      DATA : lr_salv_wd_table_ctr  TYPE REF TO iwci_salv_wd_table,
             lr_table_settings_ctr TYPE REF TO if_salv_wd_table_settings,
             lr_header_ctr         TYPE REF TO cl_salv_wd_header.
    Variables for drop-down and inpufield reference
      DATA : lr_drdn_by_key        TYPE REF TO cl_salv_wd_uie_dropdown_by_key,
             lr_input_field        TYPE REF TO cl_salv_wd_uie_input_field,
             l_header              TYPE string.
    get ALV Component <CONTRACT_DETAILS>
      lr_salv_wd_table_ctr = wd_this->wd_cpifc_payment_detail( ).
      wd_this->alv_config_table = lr_salv_wd_table_ctr->get_model( ).
    set visible row count
      lr_table_settings_ctr ?= wd_this->alv_config_table.
      lr_table_settings_ctr->set_visible_row_count( '5' ).
      lr_table_settings_ctr->set_read_only( abap_false ).
      lr_table_settings_ctr->set_grid_mode( ).
      lr_table_settings_ctr->set_width(
        EXPORTING
          value = '980PX' ).
      wd_this->alv_config_table->if_salv_wd_table_settings~set_data_check( if_salv_wd_c_table_settings=>data_check_on_cell_event ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_true ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_export_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_edit_check_available( abap_false ).
      CLEAR: l_header.
      l_header = wd_assist->if_wd_component_assistance~get_text( '030' ).
      lr_header_ctr = lr_table_settings_ctr->get_header( ).
      lr_header_ctr->set_text( l_header ).
    set text header for Columns.
      CLEAR: l_header,lt_columns.
      lr_column_settings ?= wd_this->alv_config_table.
      lt_columns = lr_column_settings->get_columns( ).
      LOOP AT lt_columns INTO ls_column.
        CASE ls_column-id.
          WHEN 'PAYMENT_METHOD'.
    get header details
            lr_col_header = ls_column-r_column->get_header( ).
    disable DDIC field label
            CALL METHOD lr_col_header->set_prop_ddic_binding_field
              EXPORTING
                property = if_salv_wd_c_ddic_binding=>bind_prop_text
                value    = if_salv_wd_c_ddic_binding=>ddic_bind_none.
    set user defined column header
            l_header = wd_assist->if_wd_component_assistance~get_text( key = '020' ).
            lr_col_header->set_text( l_header ).
            CREATE OBJECT lr_drdn_by_key
              EXPORTING
                selected_key_fieldname = ls_column-id.
            ls_column-r_column->set_cell_editor( lr_drdn_by_key ).
            ls_column-r_column->se_width( '100PX' ).
            lr_drdn_by_key->set_key_visible(
              EXPORTING
                value = abap_true ).
          WHEN OTHERS.
        ENDCASE.
        CLEAR: l_header,ls_column.
      ENDLOOP.
    ENDMETHOD.
    Regards
    Manoj Kumar

  • How to load a default value in to a column when using sql loader

    Im trying to load from a flat file using sql loader.
    for 1 column i need to update using a default value
    how to go about this?

    Hi!
    try this code --
    LOAD DATA
       INFILE 'sample.dat'
       REPLACE
       INTO TABLE emp
       empno   POSITION(01:04) INTEGER EXTERNAL NULLIF empno=BLANKS,
       ename   POSITION(06:15)  CHAR,
       job         POSITION(17:25)  CHAR,
       mgr       POSITION(27:30)  INTEGER EXTERNAL NULLIF mgr=BLANKS,
       sal        POSITION(32:39)  DECIMAL EXTERNAL NULLIF sal=BLANKS,
       comm   POSITION(41:48)  DECIMAL EXTERNAL DEFAULTIF comm = 100,
       deptno  POSITION(50:51)  INTEGER EXTERNAL NULLIF deptno=BLANKS,
       hiredate POSITION(52:62) CONSTANT SYSDATE
      )-hope this will solve ur purpose.
    Regards.
    Satyaki De.

  • Need help with summing column when using if-then-else

    Using logic
    <?xdofx:if INVOICE_BILL_AMT_IN_INV_CURR is null then INVPROC_BILL_AMOUNT else INVOICE_BILL_AMT_IN_INV_CURR end if?> for column field.
    Having trouble summing the column using the logic above.
    Any suggestions would be very much appreciated.
    Thanks,
    Nancy

    Thanks Tim,
    That worked. Got rid of my error. However, if the field is null (=''), I get a total.
    11.05 + 1429.70 = 1440.75
    If the not null (!='') I am not getting a total.
    103.74 + 173.13 =
    BTW, recently took XML class. Leta Davis highly recommended your blog and I have gotten a lot of great tips from it.
    Thanks,
    Nancy

  • Tabular form row order out of sync when using apex_item.popup_from_query

    Hi
    I have a tabular form that contains a apex_item.popup_from_query column, the query itself has an order by clause and I believe this is the reason why selecting from the popup column results in the wrong row being updated.
    I refer to a previous post where Scott Spendolini acknowledges the absence of any workaround for this, does anyone know of one now given that that was a few years ago?
    I kind of need to find a workaround for this ASAP or else I will have to redesign the whole page and abandon the tabular form, I'd be really grateful for any help here
    Thanks

    I experienced the same problem before and there is definitelly a bug. However, I didn't know about this difference. This explains some doubts I had. Thanks for pointing that out. Hopefully, this is going to get better in 4.0.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Estimated Rows Column, when using /*+ gather_plan_statistics*/

    Hi,
    does anybody know, where the Information of the estimated_rows (e-rows) Output comes from? I would like to auto check, when a explain uses wrong statistics.
    I know that is inside the dbms_xplan.display.display Package but i would like to use it out of a table -col
    By the Way i´m looking for a dbms_xplan output that uses the e-rows and a-rows cols and type=HTML. But i couldn´t find it.
    Thanks
    Marco

    Thanks BrendanP
    oops sorry, bad question, i looked for e_rows, estimated_rows and so on in every table in the database :-(

  • Linq selecting multiple columns when using anonymous types using Sum multiple columns

    I have a list with multiple columns where I need to sum a list of columns for each row into a new column (not 100% sure if there is another way to sum other than I have done it). Problem I'm having is being able to select more than just column I'm creating
    used from summing the other column and the Key. Below will produce a row with the CustomerId and the total of all the months.
    CustomerId
    Total
    12345
    2500.00
    12346
    3000.00
    But let's say I have a row called Name in "history"--how can display it in the query results as below.  I'm unable to reference anything but the key.
    CustomerId
    Total
    Name
    12345
    2500.00
    John Smith
    12346
    3000.00
    May Allen
    var list = history
    .GroupBy(g => g.CustomerId)
    .Select(sg =>
    new
    Key = lg.Key,
    SumTotal = sg.Sum(x => x.month_01)
    + sg.Sum(x => x.month_02)
    + sg.Sum(x => x.month_03)
    + sg.Sum(x => x.month_04)
    + sg.Sum(x => x.month_05)
    + sg.Sum(x => x.month_06)
    + sg.Sum(x => x.month_07)
    + sg.Sum(x => x.month_08)
    + sg.Sum(x => x.month_09)
    + sg.Sum(x => x.month_10)
    + sg.Sum(x => x.month_11)
    + sg.Sum(x => x.month_12)

    Hi
    ajl7519,
    I have tested on my side,  please check my code. 
    InitializeComponent();
    AuctionItems = new List<AuctionItem>() {
    new AuctionItem() { Category = "Car", CurrentPrice = "100", Description = "100", SpecialFeatures = "100", StartDate = 1, StartPrice = 1 },
    new AuctionItem() { Category = "Car", CurrentPrice = "100", Description = "100", SpecialFeatures = "100", StartDate = 2, StartPrice = 2 },
    new AuctionItem() { Category = "Car", CurrentPrice = "100", Description = "100", SpecialFeatures = "100", StartDate = 3, StartPrice = 3 }
    var resu = AuctionItems.GroupBy(a => new { a.Category, a.Description }).Select(sg => new { ID = sg.Key.Category, Total = sg.Sum(oc => oc.StartPrice + oc.StartDate), Name = sg.Key.Description });
     You also can change your code to
    • SumTotal = sg.Sum(x => x.month_01+x.month_02+ ......)
    Have a nice day !
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Getting data from an XML file and pushing it to a database

    I need to create a coldfusion page that grabs an incoming xml file, extract the data and then push it into a database. I have never done anything like this, and have been reading as much as I can find. Can anyone recomend a good resource or give me a

  • Sound problem on MacBook Pro with XP

    Hi all... When I have headphones or an audio cable plugged into my MacBook Pro running XP and BootCamp 2.1, the sound will occasionally distort digitally for a second or two, then the sound will cut out, go through the internal speakers, then go back

  • How to send HTTP Post to URL (third party software) in JSP/JSPDynpage

    Hello, we want to integrate a third party application in our Portal Component (JSPDynpage using JSP and HTMLB). This third party component is called like this: http://servername:port/cgi-bin/cgi.exe?request=map&format=html&swldy_ace=GDF&swldy_image_f

  • How do i create *if (Key.isDown(Key.LEFT)* allow two buttons

    I got this code if (Key.isDown(Key.LEFT) && Math.abs(this["speed"+who])>0.3) { _root["car"+who]._rotation -= _root.rotationStep2*(this["speed"+who]/_root.maxSpeed); How do i allow it to have SPACE key and LEFT you probably knew it wouldn't work but i

  • Infix evaluator

    I wrote a parser to take an infix expression such as 4+2/34-(3*4). The problem is that it can only deal with positive numbers, Ive been trying for ages to modify it so it can accept negative numbers ie -2*-2 = 4 Could anyone tell me the correct proce