How do I reference items in a report region

I've created a report. You can view the region attributes at http://i3.tinypic.com/wcn59h.jpg.
I've changed the "Display As" attribute of one of the items (QUAN_ID) to 'Select List (query based LOV)'. I've set the "LOV Query" attribute on this item to the following.
select quan.answer_txt
, quan.id
from vug_question_answers quan
, vug_survey_questions suqu
where suqu.id = quan.suqu_id
and suqu.surv_id = :p33_surv_id
--and    suqu.id = :suqu_id
order by quan.question_answer_seq_no
The purpose of this LOV is to return QUESTION_ANSWERS that have a foreign key to the SURVEY_QUESTIONS record identified by the sufu_id. The bind-variable ":p33_surv_id" is a page item. I THOUGHT the bind-variable ":suqu_id" (referenced in the commented-out line) would be the name of a column item in my report region. However, the LOV doesn't return correct values if I uncomment the line containing :SUQU_ID.
How do I determine the name of the report region column item so that I can reference it within the LOV of another item in the same region?
Thanks,
-Ken

Ivo,
That's it!
My original tabular form query read as follows.
select rean.id,
rean.resp_id,
suqu.surv_id,
suqu.question_txt,
quan.suqu_id,
rean.quan_id, --this is the column I was adding an LOV to
rean.entered_by,
rean.entered_on,
rean.updated_by,
rean.updated_on
from vug_respondent_answers rean
, vug_question_answers quan
, vug_survey_questions suqu
where rean.resp_id = :p33_resp_id
and quan.id = rean.quan_id
and suqu.id = quan.suqu_id
and suqu.surv_id = :p33_surv_id
I've changed it to the following.
select rean.id,
rean.resp_id,
suqu.surv_id,
suqu.question_txt,
quan.suqu_id,
htmldb_item.select_list_from_query
( 6
, rean.quan_id
, 'select quan.answer_txt, quan.id from vug_question_answers quan, vug_survey_questions suqu where suqu.id = quan.suqu_id and suqu.surv_id = :p33_surv_id and suqu.id = '|| suqu.id ||' order by quan.question_answer_seq_no') quan_id,
rean.entered_by,
rean.entered_on,
rean.updated_by,
rean.updated_on
from vug_respondent_answers rean
, vug_question_answers quan
, vug_survey_questions suqu
where rean.resp_id = :p33_resp_id
and quan.id = rean.quan_id
and suqu.id = quan.suqu_id
and suqu.surv_id = :p33_surv_id
My screen now looks as found at http://i3.tinypic.com/wgq4g9.jpg. (Note that I've also changed the question since a previous post.)

Similar Messages

  • How to display the items in a Report Region

    Is it possiable to have the fields in a report region based on an sql query be display in somthing other than a row? For example if I have a Report Region with four columns it will look something like:
    <Field 1, row 1 value> <Field 2, row 1 value> <Field 3, row 1 value> <Field 4, row 1 value>
    <Field 1, row 2 value> <Field 2, row 2 value> <Field 3, row 2 value> <Field 4, row 2 value>
    <Field 1, row 3 value> <Field 2, row 3 value> <Field 3, row 3 value> <Field 4, row 3 value>
    etc
    Is it possiable to tell ApEx to display the Report Region like:
    <Field 1, row 1 value> <Field 2, row 1 value>
    <Field 3, row 1 value> <Field 4, row 1 value>
    <Field 1, row 2 value> <Field 2, row 2 value>
    <Field 3, row 2 value> <Field 4, row 2 value>
    <Field 1, row 3 value> <Field 2, row 3 value>
    <Field 3, row 3 value> <Field 4, row 3 value>
    etc
    Maybe there is a nother way to do this that uses somthing other than an sql based report region. Thanks very much for the help.

    This can be done using a SQL query report region with a [custom report template|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#sthref1744].
    Unfortunately the documentation is not particularly helpful on this topic, and as use cases tend to be very specific, reusable solutions are rarely shared in the community ("custom" reports after all...) See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=1569996] for a good discussion of the technique, with a link to an example on apex.oracle.com.
    A response to [another recent thread|http://forums.oracle.com/forums/thread.jspa?threadID=1012690] showed another example on page 1 of the [Online Store demo app|http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STORE], which you can download, install and examine. This uses a custom report template in conjunction with the report HTML Expression feature.
    (I'm not totally clear on the display you're after: it might help to repost it using some example data rather than the abstract <Field 2, row 1 value> approach. Wrap the sample in \...\ tags to get fixed width characters that can be made to align, if that will help.)

  • Unable to reference item value in report region cursor

    I've worked on this for a couple of days now and cannot figure out what is going wrong. I have a report that I have created, using database links. Below is the code for my report:
    declare
    v_sql varchar2(32000) := null;
    v_curr_sql varchar2(32000) := null;
    v_full_sql varchar2(32000) := null;
    cursor c1 is select distinct fiscal_year from fiscal_year where db_cc_id = v('G_DB_ID') order by 1;
    begin
    for r1 in c1 loop
    v_curr_sql := 'sum(decode(fiscal_year,'''||r1.fiscal_year||''',visit_count,0)) as "'||r1.fiscal_year||'V", '||
    'sum(decode(fiscal_year,'''||r1.fiscal_year||''',patient_count,0)) as "'||r1.fiscal_year||'P", ';
    v_sql := v_sql ||v_curr_sql;
    end loop;
    v_full_sql := ' select name,'||v_sql||' sum(visit_count) visits, sum(patient_count) patients from visit_trends
    where ehs_cc = :f109_client and visit_type = :p45_visit_type and ( (:g_fg = 0 and fg_id in (select fg_id from db_user_fg where ehs_cc = :f109_client and db_user_id = :f109_db_user_id)) or fg_id = :g_fg) group by name';
    return v_full_sql;
    end;
    When I run the page, I get no data found. When I check my session state for the application variables, it tells me that the value for G_DB_ID is 24. If I plug in 24 to to the cursor instead of using the bind variable, it works. I've also tried the :G_DB_ID and nv('G_DB_ID') calls in the cursor. The strange thing is if I use a different bind variable (G_FG), which has a session state value of 0, it will at least return the two columns in the report not created by the sql loop. I must be able to use a bind variable in this report to make sure I'm getting the correct accounting periods for this client. I've even gone as far as to delete and recreate the page. Any suggestions?

    Hi Harry,
    We are also facing the same issue, has the issue has been resolved. For some users we are able to select the lov and for few we are unable to select the lov but data is fetched in lov. Only select or quickselect is not working.
    If so, please provide.
    Regards
    Raman
    [email protected]

  • How to display RTE item in a HTML region

    I have a process that is populating a hidden item with a RTE item from another page. I need to display this in its formatted state. I am using an HTML region to display this item but the page shows HTML tags instead of rendering them. I have tried both options under html region (escape special characters and plain HTML text).
    Can someone please help me to display this formatted RTE item on a page? Btw...I am using APEX 4.0.
    Thanks.
    Ashwen
    Edited by: Ashwen on Jul 26, 2010 2:23 PM

    user12601765 wrote:
    did you figure out how to display RTE item in a HTML region? Can you share with me how you did it?No he can't. He's not been active on this forum for over a year, and is totally unaware of your post as watches on threads only persist for a few weeks. Please stop posting follow-ups to ancient threads. Many of the participants in such threads will no longer be active on the forum (check the "recent messages" in their profiles).
    Posting follow-ups to ancient threads/departed users is NOT an effective way of getting help:
    <li>Other users may ignore the thread as it appears to be closed
    <li>Your assumption that the questions are related may be incorrect, leading to confusion about the nature of the problem and potential solutions
    <li>Watches on the thread may have expired, so the original participants may be unaware of the new post, or they may no longer be active on the forum
    <li>You have no ability to mark posts as helpful or correct
    Post your question as a new thread, including at least the following information:
    <li>APEX version
    <li>DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) used
    <li>Links to related posts and threads using the methods in the FAQ.
    Please read the FAQ and forum sticky threads for more information on using this forum effectively.
    From the information in the Allow users to use Rich Text Editor to build their own HTML/Apex Page you resurrected:
    >
    I am a business user developing apps, so my technical skills are limited.
    >
    you should be considering Websheets. (See this tutorial as well.)
    Also, please update your forum profile with a real handle instead of "user12601765".

  • How to refresh list item values before report is run?

    We have two SELECT LIST items (drop boxes) on our report. One SELECT LIST has values of "World Region" (e.g. NORTH AMERICA, SOUTH AMERICA, EUROPE, ASIA)
    the other SELECT LIST has values of "Subregion" (e.g. NORTHERN EUROPE, SOUTHERN EUROPE, SOUTHEAST ASIA etc...)
    The values in the Subregion list are dependent on the value that is chosen from the "World Region" List. Can someone tell up how to update the values in the Subregion list BEFORE we submit the page? We can get these values to update (via sql query) when the page is submitted but that is only happening after the report gets run- which is not what we want. We want the user to select a Region from one SELECT LIST and then see all the qualifying Subregions for that Region in the Subregion SELECT LIST. Only after both Region and Subregion have been selected do we want to run the report. Thank for any help on this.

    hey john--
    john) things like Scott's reference to "The name of the LOV Item". What does this really mean?
    raj) in htmldb there's a concept of items at the page and at the app level. page level items have ui component associated with them. in scott's explanation above, he's talking about using a page-level item with a "Display as" type of "select list w/submit" for your first select list. in that case, he's suggesting you have one select list item drive the values of another. when the self-submitting select list submits the page, it sets an htmldb built-in variable called :REQUEST to the name of the self-submitting select list item. in your follow-up post's example, that'd be "REGION_LIST". scott was explaining how you could control the functionality on your page by adding conditions to things like...
    :REQUEST = 'REGION_LIST'
    ...or using declarative Condition options like "Request = Expression 1" and then putting the string "REGION_LIST" in that Expression1 field. so in your case, you have a report region that you don't want displayed until the user's done selecting from your Subregion list. an easy way to handle that would be to add a hidden item (where "Display as" is set to "Hidden") to your page, for example :P1_LAST_REQUEST, to store the last value of :REQUEST. put a Computation on your page that populates :P1_LAST_REQUEST with :REQUEST each time the page is submitted. then put a Condition on your report region that makes it only render when :P1_LAST_REQUEST != 'REGION_LIST'. so this way your users can select a Region and have the page submit itself. the page will then redraw with the values of subregion list correctly populated (you'd presumably use :REGION_LIST in your subregion LOV query to achieve the filtered values) w/o your report region displayed. the user would then select a correct subregion and click some sort of "run my report" button. this time when the page redraws, :P1_LAST_REQUEST would be set so something other than "REGION_LIST" (it'd be set to whatever you named your "run my report button") and so your report region would display as desired.
    hope this helps,
    raj

  • How to identify BOM items in the report

    Hi,
    I have a requirement from the user that they want to exclude all BOM items from the report which is showing all the Items.So how can i identify those items from the report query??
    Thanks

    SELECT DISTINCT
    DECODE (ooh.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', NULL,
    'DRAFT', NULL,
    'DRAFT_CUSTOMER_REJECTED', NULL,
    'DRAFT_SUBMITTED', NULL,
    ooh.order_number)
    Ord,
    ottt.name ord_type,
    ooh.ordered_date Order_Date,
    ooh.quote_number quote_no,
    ool.line_number LNum,
    ooh.flow_status_code Order_status,
    -- hca.account_number Customer_number ,
    ool.flow_status_code line_status,
    PAB.PARTY_NAME bill_Customer_Name,
    ACB.ACCOUNT_NUMBER bill_Customer_number,
    PAS.PARTY_NAME ship_Customer_name,
    ACS.ACCOUNT_NUMBER ship_to_Customer_Number,
    ool.unit_selling_price selling_price,
    ool.unit_list_price list_price,
    ool.ORDERED_ITEM pNum,
    ooh.booked_date Date_booked,
    ool.Actual_shipment_date Ship_date,
    ooh.header_id header_id,
    mtl.description pDesc,
    gcc.segment4 Revenue_account,
    -- ooh.shipping_instructions,
    REPLACE (ooh.SHIPPING_INSTRUCTIONS, CHR (10), ',')
    shipping_instructions,
    ool.schedule_ship_date SSD,
    DECODE (ool.flow_status_code,
    'BOOKED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_FULFILLMENT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'ENTERED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RECEIPT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SHIPPED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_SHIPPING', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'OFFER_EXPIRED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'XXMI_WAIT_MSA', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_SUBMITTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'LOST', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PO_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
    NULL)
    Qty_Remning,
    DECODE (ool.flow_status_code,
    'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
    NULL)
    INV_AMOUNT,
    ool.ordered_quantity - NVL (ool.cancelled_quantity, 0) qua_ord,
    (NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0)
    Ext_value,
    -- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N') Credit_Hold ,
    ooh.cust_po_number PONUm
    FROM apps.oe_order_headers_all ooh,
    apps.oe_order_lines_all ool,
    apps.mtl_system_items_b mtl,
    apps.org_organization_definitions ood,
    apps.gl_code_combinations gcc,
    AR.HZ_PARTIES PAH,
    AR.HZ_CUST_ACCOUNTS ACH,
    AR.HZ_CUST_SITE_USES_ALL SUB,
    AR.HZ_CUST_ACCT_SITES_ALL STB,
    AR.HZ_CUST_ACCOUNTS ACB,
    AR.HZ_PARTIES PAB,
    AR.HZ_CUST_SITE_USES_ALL SUS,
    AR.HZ_CUST_ACCT_SITES_ALL STS,
    AR.HZ_CUST_ACCOUNTS ACS,
    AR.HZ_PARTIES PAS,
    apps.oe_transaction_types_tl ottt,
    apps.per_all_people_f papf
    -- apps.OE_ORDER_HOLDS_ALL ooha,
    -- apps.OE_HOLD_SOURCES_ALL ohsa
    -- ,apps.OE_HOLD_DEFINITIONS Hod_def
    WHERE ooh.header_id = ool.header_id
    AND ool.org_id = NVL (:p_org_id, ool.org_id)
    AND ool.flow_status_code != 'CLOSED'
    --and    ooha.header_id(+) = ooh.header_id
    --and ooha.line_id(+) = ool.line_id
    --and   ohsa.hold_source_id = ooha.hold_source_id
    --and ohsa.hold_id = Hod_def.hold_id
    --and ohsa.RELEASED_FLAG = 'N'
    AND ooh.attribute2 = papf.person_id(+)
    AND ottt.language = 'US'
    AND ooh.order_type_id = ottt.transaction_type_id(+)
    AND ooh.open_flag = 'Y'
    --and ooh.order_number = '40000791'
    AND ooh.SOLD_TO_ORG_ID = ACH.CUST_ACCOUNT_ID
    AND ACH.PARTY_ID = PAH.PARTY_ID
    AND oOH.INVOICE_TO_ORG_ID = SUB.SITE_USE_ID(+)
    AND SUB.CUST_ACCT_SITE_ID = STB.CUST_ACCT_SITE_ID(+)
    AND STB.CUST_ACCOUNT_ID = ACB.CUST_ACCOUNT_ID(+)
    AND ACB.PARTY_ID = PAB.PARTY_ID(+)
    AND oOH.SHIP_TO_ORG_ID = SUS.SITE_USE_ID
    AND SUS.CUST_ACCT_SITE_ID = STS.CUST_ACCT_SITE_ID
    AND STS.CUST_ACCOUNT_ID = ACS.CUST_ACCOUNT_ID
    AND ACS.PARTY_ID = PAS.PARTY_ID
    -- and SOH.CANCELLED_FLAG ='N'
    AND ool.inventory_item_id = mtl.inventory_item_id
    AND ool.org_id = mtl.organization_id
    AND mtl.sales_account = gcc.code_combination_id
    AND ool.org_id = ood.organization_id
    --and    ooh.salesrep_id       = jrs.salesrep_id
    --&LP_INCL_QUOTES
    GROUP BY DECODE (ooh.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', NULL,
    'DRAFT', NULL,
    'DRAFT_CUSTOMER_REJECTED', NULL,
    'DRAFT_SUBMITTED', NULL,
    ooh.order_number),
    ottt.name,
    ooh.ordered_date,
    ooh.quote_number,
    ool.line_number,
    ooh.flow_status_code,
    --- hca.account_number ,
    ool.flow_status_code,
    PAB.PARTY_NAME,
    ACB.ACCOUNT_NUMBER,
    PAS.PARTY_NAME,
    ACS.ACCOUNT_NUMBER,
    ool.unit_selling_price,
    ool.unit_list_price,
    ooh.shipping_instructions,
    ool.ORDERED_ITEM,
    ooh.booked_date,
    ool.Actual_shipment_date,
    ooh.header_id,
    mtl.description,
    gcc.segment4,
    ooh.cust_po_number,
    (NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0),
    ool.schedule_ship_date,
    DECODE (ool.flow_status_code,
    'BOOKED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_FULFILLMENT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'ENTERED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RETURN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_RECEIPT', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SHIPPED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'AWAITING_SHIPPING', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'OFFER_EXPIRED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'XXMI_WAIT_MSA', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'DRAFT_SUBMITTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'LOST', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'PO_OPEN', ool.ordered_quantity,
    NULL, ool.flow_status_code,
    'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
    NULL),
    DECODE (ool.flow_status_code,
    'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
    NULL),
    ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)
    -- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N')
    -- (hz_loc.Address1||','||hz_loc.Address2||','||hz_loc.City||','||hz_loc.State)
    HAVING (ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)) >
    SUM (NVL (ool.shipped_quantity, 0))
    ORDER BY 1, 2, 3;

  • How to replace a table name with an item value in report region SQL query?

    I've got a SQL query in a report region that goes like this:
    SELECT :P30_HIDDEN FROM v_dms_dataset
    GROUP BY :P30_HIDDEN
    P30_HIDDEN is populated from a textfield input. Why doesn't this work, and is there a way to achieve what I'm trying to do here? I really need the ability to dynamically generate SQL queries in this way.

    Ben - you could either:
    1. case when :P30_HIDDEN = 'COL1' then col1 else ... end
    in order to determine which column to select (only really useful if you have a small number of predetermined columns to select from), or
    2. generate the SQL dynamically.
    Set the report region to SQL Query (PL/SQL function body returning SQL query), then have something like:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT ' || :P30_HIDDEN || ' FROM v_dms_dataset
    GROUP BY ' || :P30_HIDDEN;
    return l_sql;
    exception
    etc.
    end;
    John.

  • How to create a inline message for report region...

    Hi,
    Can any one pls tell me the document link for to create a inline error message for report region?
    im trying to do a dynamic validation for report region.i've manually created a report region with apex item.
    im searching it for long time, im cant able to find any demos or example.
    Pls help.....
    Thanks in advance...

    Any help???

  • How to show refreshed modal window(2nd report region window) - reposting

    Hi,
    I have a requirement where i scroll thru different rows in grid region.
    Moment I tab out from first row, I pop up 2nd report, where I show related detailed data lines for the tabed out line of first grid.
    So my 2nd window is a report region query, whose 'where' clause contains the primary key from the row of first grid window.
    On tab out of a row of first window, I have a javascript function, which shows 2nd report region using:
    var mywindow =
    window.showModalDialog
    ('http://MY-URL-/ebus/apexQA111/f?p=&APP_ID.:25:&SESSION.',myObject,'dialogWidth=800px;dialogHeight=300px;dialogLeft:50;dialogTop:50');
    Problem:
    On First tab out, I get the correct data display on 2nd window, which is related to current tabbed out row.
    However, If I tab out from next record, modal window pops up and it still shows my detailed data of first tabbed out row.
    Somehow the 2nd window is not getting refreshed/recalculated based on my new tabbed out row. I only have showmodaldialog in my JS function.
    Anyway to refresh the window based on new values of the where clause variable? and then showing the window?
    Please help!!
    Regards,
    Ravi.
    Edited by: Rave on Nov 26, 2009 6:15 AM

    Hi Rave,
    You can refresh any window with the java script below, just make it conditional on the value of an item within your page so that it dose not run every time the page is loaded.
    if ($v('P1_MY_ITEM') === 'foo' ) {
    window.location.href = document.location.href;
    }

  • How to Refer Application item in the html region

    Hi All,
    I have region which says 'Data was refereshed on 12-Apr-2010'. This is displayed in many pages. I want to reduce the manual work of going into each and every page and editing the date.
    I have created an Application Item in shared components. Can anyone help me how to refer this application item in the html region?
    Thanks,
    Vikas

    You can use the syntax of : &<ITEM_NAME>.
    i.e. say I have an application item MY_NAME , I would then have a html region which has the following
    <p>My name is &MY_NAME.</p>see: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BEICHBBG
    Trent

  • How do I reference columns in a report query from another report query?

    In Apex 3.1 it is possible to generate a report on more than one query. I have read that these queries can be correlated, but I cannot find how in the documentation.
    I go the Shared Components and create a new Report Query:
    select * from dept
    Then I click Add Query and I add:
    select * from emp
    How do I correlate these two queries (I want to join emp.deptno to dept.deptno) and have a nice hierarchicle XML-file.
    Is it possible in Apex 3.1?
    Dik Dral

    Dik,
    This type of query can't be build. The two queries are independent, you can't reference values in the first query from the second query. However you can reference page and application items - which won't help you all that much with this scenario though. You could also try combining the two queries into one, and then take care of the proper presentation in your template.
    Regards,
    Marc

  • How to select LOV items from edit report / form?

    I'm new to ApEx 3 with very little web developer knowledge.
    I have a create record form (Page1) that uses single-select and multi-select LOVs and correctly inserts the data into a table.
    I have a basic report (tabular form) (Page2) that shows the records with the correct LOV information. When I click the edit icon for a row on Page2, Page1 displays row data for each field except the LOVs. There are no selections made in any of the LOVs.
    How do I make the connection between the tabular report and the edit form LOVs?
    Thx for your assistance.

    It turns out that the imported data did not match the LOV values. We changed the ETL processing, and now the LOV values are selected as expected.

  • How to display new items in a report.

    I have a report that I produce weekly. Is there a way to highlight items that are new to the report that week or possibly create a summary report that shows those items? I have my training manuals and online help - I would just appreciate where to look - have been trying and cannot find anything. I also realize that this may not be possible but I thought I heard this secnario in my training.
    Thank you.

    If CR has someway to know that the data is new, you can certainly use that to highlight.  Is there a field, that indicates new data, or can it be done by date posted ?

  • Pl sql Code To count how max checkboxes are checked In the Report Region

    I am developing a APEX report where I put check boxes to row row of the report result . So I checked Some of this check box. Now I need a code to count how many checkboxes are checked during the runtime

    there is a forum for APEX: Oracle Application Express (APEX)

  • Using page items in a report region

    Hi all,
    I am attempting to query a database table using values from two page items.
    SEARCH_FIELD is the field in which a query constraint is being applied
    SEARCH_CONDITION is the the query constraint condition being applied
    So, for example, I tried setting SEARCH_FIELD to AMOUNT and SEARCH_CONDITION to %22%.
    When I put the line 'AMOUNT LIKE :SEARCH_CONDITION' at the end of the query it returns the rows that do match the constraint.
    When I put the line ':SEARCH_FIELD LIKE :SEARCH_CONDITION' it displays "no data found."
    The debug shows it parse query, bind SEARCH_FIELD, bind SEARCH_CONDITION, determine column headings, then parse and bind again, and print column headings, and row loop: 15 row(s). Then the message "no data found." It should return a single row, but it does not.
    Any reason why apex doesn't like this?
    Thanks in advance,
    T.

    Sorry for the reply delay...
    The region is an SQL Query. The source is:
    Select NUMBER, DATE_LOGIN, DATE_LOGOUT, FORM.FORM_NAME as "Form", Person.L_Name||', '||Person.F_Name as "REQUESTER", DEPARTMENT.DEPARTMENT_NAME, ACCOUNT#, SUBCODE.SUBCODE as "Subcode", AMOUNT, DESCRIPTION, SENTTO.LOCATION as "Sent To", (Select Person.L_Name||', '||Person.F_Name from PERSON WHERE AUTHORIZED_BY=PERSON.ID) as "Authorized By" from SIGNATURETBL, PERSON, DEPARTMENT, FORM, SENTTO, SUBCODE WHERE REQUESTER=PERSON.ID AND DEPARTMENT=DEPARTMENT.ID AND FORM=FORM.ID AND SENT_TO=SENTTO.ID AND SIGNATURETBL.SUBCODE=SUBCODE.ID AND :SEARCH_FIELD LIKE :SEARCH_CONDITION
    If :SEARCH_FIELD has the value of 'AMOUNT' and :SEARCH_CONDITION has the value of '%22%' the regions says that no data was found. If :SEARCH_FIELD, in the query, is replaced by AMOUNT then the query does return the proper rows.
    Can you not reference an item to determine a column constraint?
    Thanks for any input

Maybe you are looking for