Column region within a report

Application Express 3.1.0
I have a report region that is displayed on a page with 3 columns. The middle column will be the lengthiest and I wish to extend just that column. I have read other posts on the forum about this however it didn't seem to work.
Also is there a way to truncate the display of the output to the user? The column is a varchar2(4000) and if all the information is filled up, the display on the screen wouldn't look professional.

Hi Leland,
There are probably several ways you can handle this. If you're ok with just truncating the column's contents, then you can do the following:
On the column's Column Attributes, enter something like the following into the HTML Expression:
<div style="width:500px; height:18px; overflow:hidden" title="#TEXT_FIELD#">#TEXT_FIELD#</div>This will replace the default output with the output you've specified. In this example, the text will be restricted to a 500 by 18 div (change these values to suit your needs). I've also included the text in the title attribute - the user can hover over a value in the column to see more text (there is a limit to the amount of text that can be displayed in this way - so, you can remove this bit if it doesn't help much).
You could also truncate the text as above but display a different kind of tooltip that will contain the full text - see Re: popup to display the data of a record for details on how to do this.
Andy

Similar Messages

  • Select list within a report

    Hi All
    I need help creating a report with the first column as a select list and the other columns (4 of them) will auto populate based on the selected item. This is a report region on form that will update a table when submitted.
    My Table: Cost Center
    Cost Center Id - PK
    Cost Center
    Variable
    Object Code
    Department Accumaltor
    Year
    The user would select a cost center from a dropdown within the report and the other values would be filled in.
    So far I have created the select list and created a tabular form.
    I'm sure if I need to even use this type of report because the user will be able to add a new record if necessary.
    I think I need a process to retrieve the rest of the info from the table once the user made a selection. But where would I put that?
    I've read many posts that are similiar but I need some guidance.
    Thank You
    Moe

    Hi I wanted to include the code I'm trying to use based on various posts I found:
    I found this suggestion on Denes Kubiek site and tried to modify it to be used in a report with dropdown. Un fortunately it's not working.
    In the Region Header:
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_multi_value(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=getCostCenter',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    alert(pValue);
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByid("id");
    --var l_ID = l_Opt_Xml.getAttribute('id');
    -- var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'hideMe508'[i]){--I changed the class name[/i] l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    //-->
    </script>
    ON Demand Process -
    DECLARE
    v_var VARCHAR2 (15);
    v_yr VARCHAR2 (15);
    v_obj VARCHAR2 (15);
    v_acc VARCHAR2 (15);
    v_dept varchar2(10);
    CURSOR cur_c
    IS
    select variable, year, object_code,accumulation_code, dept_accum FROM cost_center_code
    WHERE costcenterid= (v('TEMPORARY_APPLICATION_ITEM'));
    BEGIN
    FOR c IN cur_c
    LOOP
    v_var := c.variable;
    v_yr := c.year;
    v_obj := c.object_code;
    v_acc := c.accumulation_code;
    v_dept := c.dept_accum;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f04_0001">' || v_var || '</item>'[i]);--I changed these to reference the fields within the report HTP.prn ('<item id="f05_0001">' || v_yr || '</item>');
    HTP.prn ('<item id="f06_0001">' || v_obj || '</item>');
    HTP.prn ('<item id="f07_0001">' || v_acc || '</item>');
    HTP.prn ('<item id="f08_0001">' || v_dept || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f04">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;
    Any help will be greatly appreciated
    Moe

  • Sorting report columns for PL/SQL report

    I have created a report of type "Pl/Sql function body returning Sql query" in which I am generating the column names within the query. I would now like to make the first three of these columns sortable. But when I click on the "sort" box for the first three columns, all my column names suddenly switch to "Col 1", "Col 2" etc.
    As you can see by the following snippet from the PL/SQL that generates the query, the column names are data driven, so I'm not in a position to declaratively rename each column. As it happens, the first three columns names are fixed, but all the subsequent column names are data driven.
    Suggestions on how to make the first three columns sortable while preserving the generated column names of the remaining columns?
    thanks
    susan weber
    declare
    query varchar2(4000); -- query
    begin
    query := 'select first_name "First Name", last_name "Last Name", encounter_date "Encounter Date" ';
    for c1 in (select distinct attr_src, attr_code, attr_text, sequence_number from finding_vt)
    loop
    query := query || ', (select val_text from finding_vt vt where vt.encounter_id = e.encounter_id and vt.attr_src = ''' || c1.attr_src || ''' and vt.attr_code = ''' || c1.attr_code || ''' and sequence_number = ' || c1.sequence_number || ') "' || substr(c1.attr_text,0,30) || '"';
    END LOOP;
    query := query || ' from patient pat, encounter e where pat.patient_id = e.patient_id';
    return query;
    end;

    This turns out to be related to the choice of "use generic column names" v. "use query specific column names".
    I had chosen "use generic column names" just to get past the initial creation page. I then debugged the query creation sql, but never changed that setting back to "use query specific column names". The fix is to choose "use query specific column names".

  • How to set up a column link to the column attribute in a report

    Hi All
    I have 6 column in a sql report in a page, column names are (Devicename devicerole,from etc).
    Now i need to set a link to this column and this need to link to the another page
    Thanks & Regards
    Srikkanth.M
    Edited by: Srikkanth.M on Apr 6, 2011 6:17 PM

    Hi
    Read this and follow it...
    >
    Go to the report attributes, then click on the edit link button by the side of the column you want to be a link to get to the column attributes.
    >
    So...
    1. Go to edit the page that contains your report.
    2. Click on the report region as if you were going to edit the report query.
    3. Click the Report Attributes tab.
    4. Click the button at the side of the column in question.
    5. Scroll down to the Column Link section and fill in the details.
    I really can't put it much more simply than that...
    Cheers
    Ben

  • Region wise Sales Report / Sales Analysis

    Hi,
             I have a requirement of Region wise sales report. I have searched in the forum and found that I could acheive it through SE16-->VBRK-->REGIO field . I have tried executing the same, but the problem is when ever i am trying to pull up the sales for a particular region the system is giving an invoice number. But when I go to that particular invoice and see the PAYER , the PAYER is in the different region.
             Please let me know which region the system considers at the table level. I mean to ask which region the system considers for a particular transaction.
    Thankyou,
    Rakesh Tummala.

    Hello Rakesh,
    I am facing a similar issue that you are facing.  Yes, there is a region populated on the billing document in table VBRK.  However, depending on how your order entry is configured, the region listed in the billing document isn't necessarily the region the materials were shipped to.  To fine tune your requirement, are you looking for a report where the ship-to address is in a specific region or where the payer or sold-to address is in a specific region?
    If it's the ship-to address in a specific region, you'll need to develop a table join query in SQ01.  Join the tables VBRK --> VBPA --> ADRC.  VBRK is the billing document header table.  VBPA is the partner table where SH (ship-to partner) can be determined and it gives you an address code.  ADRC is the Business Address Services table that reads the address code and provides the address.  In the next step, make sure ADRC-REGION is a selection field so that you can specify the region.  Then, run the query, ensure VBRK-NETWR is an available field so that you can calculate the net value of billing documents for the specified region.
    If it's the payer or sold-to address in a specific region, this is easier since it's master data and not transaction-specific data (remember, your customer service group could be manually changing the ship-to location when creating a sales order, which is why you would need to follow the aforementioned steps).  You can do a quick search for accounts within a specified region then obtain the information in VBRK for the specified payers.
    I hope this information helps you, please provide questions if you need further clarification.

  • Problem with column groups on Interactive Report

    Hi
    I am hoping that someone can help with this problem.
    I am attempting to control both the grouping and ordering within each group of fields in the single row view of an interactive report. Creating column groups appears to be OK at first (sequence, name and description) but if I then attempt to edit the group, the sequence box appears to be empty even though it was filled with a unique number at the time of creating the group.
    In addition, any changes to the order of the fields within the group made using the shuttle box at the bottom of the screen don't seem to be saved even to the Apply Changes button is pressed.
    Anybody know what is happening here and can anyone suggest how to control both the order of the groups and ordering within each group?
    Thanks in anticipation
    Martin

    Moun wrote:
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???After adding new columns to an existing IR, you need to select them for display as a developer, and save the new report as the Primary Default.

  • Very urgent :how I order by my report within the report option not change i

    Hi master
    Sir I design the report but I need my report order by cheq_no now my report order by voucher no but If I change in query then my format must be change that very problem for me I again design
    Is any option in report through which I order by my report as per my require column I is if I need on cheq_no , voucher_no or date
    Please give me idea how I order by my report within the report option not change in report query
    Thanking you
    aamir

    Use a lexical parameter (see online help):
    select ...
    order by &sort_parameter

  • Passing values from column formula to other report

    Hi Experts,
    we have created a report with table view as
    Month Asia_Sales Europe_Sales Total
    2012-12 1234 4566
    2012-11 4546 7897
    Asia_sales = filter(sales where region='Asia')
    Europe_Sales = filter(sales where region='Europe')
    now i have created a child report,with action link on asia_sales and europe_sales
    month customer sales
    2012-12 abc 111
    this report shall have filter based on column clicked (i.e when user click on asia_sales report shall show data related to asia only)
    please enlighten any approach to achieve this

    Other work around is to keep the Region column as Dimension in the pivot table (in column section) and use common measure.
    it will be piovite table having
    ...............Asia..............Europe..........xyz
    month.....measure........measure....measure
    2012-01......220.............300...........955
    2012-02.....3434...........5485.........656
    here the measure will be common.
    I this case if you click on measure, region column will also be prompted. You can use Is Prompted for month,region in sub report.
    In your old case region wont be prompted.
    Mark if helps/Correct
    fiaz
    Edited by: fiaz0419 on Jan 9, 2013 12:20 PM

  • Creating a tab region within a page in APEX

    Hi there,
    Could someone please guide me to some examples on how i could create a tabbed region within a page?
    Thanks

    Here is what i do...
    In HTML Header I will add the below code
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $(function() {
       $("#tabs").tabs();
       $x("tabs").appendChild( $x("tabs-1"));
       $x("tabs").appendChild( $x("tabs-2"));
    </script>Then i will Create 3 Region.
    Region 1 >>> Create an HTML Region ( REGION TEMPLATE = NO TEMPLATE) and add the below code in REGION SOURCE
    <div id="tabs">
    <ul>
       <li><a href="#tabs-1">Employee</a></li>
       <li><a href="#tabs-2">Chart</a></li>
    </ul>
    </div>Region 2 >>> Create HTML Region... Add two text field to this region .. now edit the region
    Add the below code in region header of REGION 2
    <div id="tabs-1">Add the below code in region footer of REGION 2
    </div>Region 3 >>> Create HTML Region... Add two text field to this region .. now edit the region
    Add the below code in region header of REGION 3
    <div id="tabs-2">Add the below code in region footer of REGION 3
    </div>Example : http://apex.oracle.com/pls/apex/f?p=12060:7
    I have used exactly the same code... except that my Region 2 contains REPORT insted of two text field and Region 3 contains CHART instead of text field.
    Regards,
    Shijesh
    Please reward the answer if it was helpful / correct

  • Select list within interactive report.

    Hello y'all,
    I have a need to develop an interactive report and am lost in how to proceed. I am asking for your help. The report requirements are as such:
    - There are 3 types of records that will be in the report
    - The is a checkbox to associate the records to a particular event.
    - If the record is of a certain value, 3 of the columns in that record have to show as select lists.
    - The records with the other 2 values should not have the select lists, just show a null in those columns.
    - The checkbox must be checked for the select lists to appear.
    - The select lists are based on a list of values. The values are populated with an existing common function used in many of the application pages.
    I am having no success in trying to get the select lists in the report. Has anyone developed an interactive report that uses select lists within the report? Is this even possible?
    I am using application Express 3.2.0.00.27. Any help that you can give is greatly appreciated. Thank you so much!
    *** Got it. It has to be a tabular report with updateable columns. ***
    Edited by: seashell on Sep 13, 2010 5:22 AM
    Edited by: seashell on Sep 13, 2010 7:07 AM

    Hi,
    I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
    Try using a javascript expression instead, like this:
    $v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
    Luis
    Edited by: Luis Cabral on Feb 29, 2012 4:45 PM

  • Apex Advisor does not like comments within interactive reports

    If I have some comments within interactive reports,
    example:
    /* comment */
    select * from dual
    apex advisor shows me an error message like this:
    Compilation error - ORA-06550: line 3, column 1:
    PLS-00428: an INTO clause is expected in this SELECT statement
    Does anyone has the same problem?
    Thank you!

    Hi "user1139516",
    the problem is that if the first word isn't "SELECT" or "WITH" the statement it's not detected as a SQL statement and we fallback to try to handle it as an anonymous PL/SQL block.
    For now as a workaround, but your comments after the SELECT keyword like
    select /* comment */
      from dualWe try to change that behavior in a future version of APEX.
    Thanks
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Two column region with control break

    Hi there,
    I'd like to create a report with multiple columns. There is an excellent thread here:
    Two column region, is that possible?
    However, it seems to be very hard to implement control breaks based on column value. I had a test of new 3.1 interactive report and it does not seem to have this feature either.
    Just wondering if anybody else has done something similar or has similar requirement?
    Thanks in advance,
    Ben

    Hi there,
    I'd like to create a report with multiple columns. There is an excellent thread here:
    Two column region, is that possible?
    However, it seems to be very hard to implement control breaks based on column value. I had a test of new 3.1 interactive report and it does not seem to have this feature either.
    Just wondering if anybody else has done something similar or has similar requirement?
    Thanks in advance,
    Ben

  • Binary content within KM Report.

    <b>Short Description:</b> I trying to have a Image show up in KM report. Is there a way to add binary data to KM Reports?
    <b>Long Description:</b> My KM Report shows disk space consumption by various repositories. I now want to add a column that would display Red if the Disk space consumption exceeds a particular threshold. For this I want to display an Image within the report.
    Any ideas?
    Appreciate any responses.
    Best Regards,
    Kumar

    Hi,
    When I try to create a KM Property (System Administration > System Configuration > Knowledge Management > Content Management > Global Services > Property Metadata > Properties), there is a Type field. Among others it has a property called "HTML". I was hoping to use that in rendering a image or coloring a cell within report display.
    Is this line of thought correct?
    If so, can someone provide me direction with how to create a  property within my report implementation with this type.
    Best Regards,
    Kumar

  • Disabling a weblink within a report

    In accounts, I have a report(Dues) which reports on fields in CO1.
    There is a weblink to launch another report (Past Due Details), within the report 'Dues', which reports on fields in CO2.
    I wish to either:
    1. Disable the weblink within report 'Dues', if one of the fields(Total Past Due), within the same report contains the value '0.00'.
    or
    2. pass the value of 'Total Past Due' (when clicking on the weblink) so that it displays a blank report or a report with an error message.
    I hope someone can help me out with this 'roadblock'....
    Edited by: raverz on Dec 1, 2008 2:31 AM

    Hi Rod,
    just to make sure that I understood you correctly.
    You have a report with a row selector and NO default ApplyMRU process. Instead you have written a process (on submit - after comp and validation) with the code you posted, where you now try to insert into another table than the report is based on. Correct? If so, you where already close with your solution.
    BEGIN
        FOR i IN 1.. HTMLDB_APPLICATION.G_F01.COUNT LOOP
            INSERT INTO PL_ALB_IMGS VALUES (PL_ALB_IMGS_SEQ.nextval, HTMLDB_APPLICATION.G_F01(i), :P16_ALBUM_ID);
        END LOOP;
    END;You could also use my Plug & Play Tabular Form handling (http://inside-apex.blogspot.com/2006/12/plug-play-tabular-form-handling.html).
    In that case your code would look like that.
    BEGIN
        FOR i IN 1 .. ApexLib_TabForm.getRowCount
        LOOP
            INSERT INTO PL_ALB_IMGS VALUES (PL_ALB_IMGS_SEQ.nextval, ApexLib_TabForm.V('CHECK$01', i), :P16_ALBUM_ID);
        END LOOP;
    END;This library allows you to access columns by there name.
    Hope this helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • I am unable to get order by column name in oracle report parameter form

    i created query like following in query builder
    SELECT CASE_NO, COURT_ID, CASE_TYPE,
    INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
    INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
    NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
    INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
    DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
    LEGAL_FILE_NO, MSNO
    FROM L_CASE_MASTER_MAIN
    WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
    and i created parameter form for these two bind variables :P_NHD,:P_COL
    in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
    in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
    kindly let me know the solution
    Report Version :Oracle Reports 11g
    Db Version:Oracle  11g

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

Maybe you are looking for

  • Duration & Delay Fields In Keynote 5.0.3

    I downloaded the iWork update via Software Update and now I'm unable to type in custom delay or duration times in Keynote 5.0.3! I've noticed that the possibility to edit fields have been going back and forth in recent updates...I'm still able to use

  • Channel Disconnected; Argument 1 passed to ___ must be an instance of...

    I'm working thru the samples / tutorials from the Flex Developer Center and cannot seem to get things working for me.  Specifcally, trying to implement the example from this page: http://www.adobe.com/devnet/flex/articles/crud_flex_php_zend.html.  (P

  • Some advise on 'WHERE EXISTS' in OWB.

    Hello :-) me again. I have read a number of topics regarding 'WHERE EXISTS' statment and OWB... got confused so i thought i ask your option. OWB 10 r2.0.1.31 paris/windows I need to tune one of my maps - nothing fancy, just a simple delete: I need to

  • How to invoke servlet in a package in iPlanet Web Server 4.01 platform ?

    I want to use a servlet which is in a package. http://10.251.9.194/servlet/aibd.GetService servlet is mapping to /home03/zhangxs/bbn/servlets. but the servlet can not be invoked. I read the errors file as following: [02/ 7��/2001:17:06:35] warning (1

  • HDMI - Port/cord advice needed

    Ok - I have a new Dynex HD TV. I want to connect my Macbook Pro (Early 2011, Mountain Lion) to it, but am questioning myself on the purchase to make... After doing some research I see that this requires connecting from the Thunderbolt using HDMI - My