Unique id in interactive report

Hello
how can I add unique id to interactive report? This id has to remain unchanged if I move application to other workspace. I know there is interactive_report_id, but I am not sure if it stays unchanged when I will move application to other workspace.

In the region definition.
Attributes - Static ID:
Enter value to identify this region. You can reference this value using the substitution string #REGION_STATIC_ID#. Referencing this value can be useful when developing custom JavaScript.http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/ui.htm#BABBEJJD

Similar Messages

  • Interactive report unique row count

    Hi,
    I just want to know if there is a way to do a row count with a unique on an interactive report column.
    What I mean is that I have a report that looks like that
    Project Project type Hours
    Project 1 Project type 1 1
    Project 2 Project type 2 1
    Project 1 Project type 1 1
    Project 3 Project type 3 1
    Project 2 Project type 2 1
    I would like to do a unique on the project name. So, at the end, I would like to have a count that says that I have 3 different projects.
    Is there anyway to do that ?
    Thanks,
    Chantale

    Hi Chantale - did you manage to solve this one?
    Example here (http://apex.oracle.com/pls/otn/f?p=11189:1) showing 14 rows, but only 7 distinct rows. These duplicates are valid, and the SQL cannot be changed. Is there a way through the IR to show a count of 7 (the distinct rows)?
    Thanks,
    Mike
    Edited by: Mike, UK on Oct 2, 2009 12:04 PM

  • Interactive Report - is there a way to find and change if necessary the unique column.

    While creating an interactive report I accidently entered the wrong "unique column" on the sql query page.  Is this a big deal and how can I find and change if necessary.
    Query Builder
    Link to Single Row View
    Yes
    No
    Uniquely Identify Rows by
    ROWID
    Unique Column
    Unique Column

    33ac2d45-960f-45af-acba-507f01d18e08 wrote:
    Please update your forum profile with a real handle instead of "33ac2d45-960f-45af-acba-507f01d18e08".
    While creating an interactive report I accidently entered the wrong "unique column" on the sql query page.  Is this a big deal and how can I find and change if necessary.
    Query Builder
    Link to Single Row View
    Yes
    No
    Uniquely Identify Rows by
    ROWID
    Unique Column
    Unique Column
    Yes. You can change this using the Uniquely Identify Rows by/Unique Column properties in the Link Column section on the Report Attributes tab of the interactive report definition.

  • Interactive Report Unique Constraint Error

    Hi all,
    I have this error when trying to create an Interactive Report.
    ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated
    Unable to create Dynamic Query page.
    I am not enabling Linkage to a single row, and I trid both UNIQUE key and ROW ID. The query runs perfectly on SQL COMMAND page.
    The query I am using is a little bit complex but not so much.
    SELECT wlji.LAST_UPDATE_DATE
    ,wlji.MODE_FLAG
    ,wlji.LAST_UPDATE_DATE
    ,wlji.LAST_UPDATED_BY
    ,wlji.CREATION_DATE
    ,wlji.CREATED_BY
    ,wlji.TRANSACTION_DATE
    ,wlji.FIRST_UNIT_START_DATE
    ,wlji.LAST_UPDATED_BY_NAME
    ,WLJI.CREATED_BY_NAME
    , (select organization_code from mtl_parameters where organization_id = wlji.ORGANIZATION_id) organization
    ,wlji.LOAD_TYPE
    ,wlji.STATUS_TYPE
    ,wlji.LOT_NUMBER
    ,WLJI.JOB_NAME
    ,( select msi.SEGMENT1 from MTL_SYSTEM_ITEMS_B msi where
    msi.inventory_item_id = wlji.PRIMARY_ITEM_ID and msi.ORGANIZATION_ID = wlji.ORGANIZATION_id) item
    ,wlji.START_QUANTITY
    ,wlji.SCHEDULING_METHOD
    ,wlji.ALLOW_EXPLOSION
    ,wlji.HEADER_ID
    ,wlji.WIP_SUPPLY_TYPE
    ,wlji.process_status
    ,wlji.GROUP_ID
    ,wlji.ATTRIBUTE11 ORIG_PARENT_ID
    ,wlji.ATTRIBUTE12 SEQUENCE_ID
    ,WLJI.ATTRIBUTE13 PREVIOUS_SEQUENCE_ID
    ,WLJI.error_msg || apps.MISWSM_SERUS_INBOUND_IFACE.get_tm_errors(OSFMLOG.TRX_TYPE,OSFMLOG.header_id) error_message
    FROM MISWIP.MISOSFM_INT_TRANSACTIONS_LOG OSFMLOG,WSM_LOT_JOB_INTERFACE wlji,WSM_INTERFACE_ERRORS wie
    WHERE OSFMLOG.STATUS IN ('E','F')
    AND OSFMLOG.TRX_TYPE ='LOT_JOB_CREATE'
    AND NOT EXISTS (SELECT 1 FROM MISWIP.MISOSFM_INT_TRANSACTIONS_LOG OSFMLOG2 WHERE
    OSFMLOG.PARENT_ID= OSFMLOG2.PARENT_ID
    AND OSFMLOG.SEQUENCE_ID = OSFMLOG2.SEQUENCE_ID
    AND NVL(OSFMLOG.PREVIOUS_SEQUENCE_ID,-1) = NVL(OSFMLOG2.PREVIOUS_SEQUENCE_ID,-1)
    AND OSFMLOG2.STATUS ='S')
    AND OSFMLOG.HEADER_ID = WLJI.HEADER_ID
    and WLJI.HEADER_ID = WIE.HEADER_ID(+)
    ORDER BY WLJI.ATTRIBUTE11,WLJI.ATTRIBUTE12,WLJI.ATTRIBUTE13;
    Why can't IR handle this joins?

    SELECT wlji.LAST_UPDATE_DATE
    ,wlji.MODE_FLAG
    ,wlji.LAST_UPDATE_DATEYou have wlji.LAST_UPDATE_DATE twice. No problem, but give the 2nd one a column alias.

  • Need unique Variants in ALV interactive report

    Hello Experts,
                          I have a ALV interactive report in which a layout variant  created in one layout is been reflecting in all other layouts, which i dont want. I want to create different variants for different layouts in interactive report.How can i achieve this.

    Hi,
        Event form names are appended to an internal table and passed to the ALV. And whatever you write inside that form
    can be called through the function module.
    What you are trying to do is modify the internal table with the form name, which does not exsist. Instead of this append it.
    There are lot of example of this ALV list events.
    DATA:     T_EVENT TYPE SLIS_T_EVENT,
         W_EVENT TYPE SLIS_ALV_EVENT.
    CLEAR W_EVENT.
    W_EVENT-FORM = SLIS_EV_AFTER_LINE_OUTPUT.
    W_EVENT-NAME = SLIS_EV_AFTER_LINE_OUTPUT."AFTER_LINE_OUTPUT event
    APPEND W_EVENT TO T_EVENT.
    Thanks & Regards,
    Tapodipta Khan

  • Filter on field in Interactive report to small/narrow

    In a interactive report I have the problem that the first (about) 30 positions of the values of one of the fields is not unique. So if you want to use the filter function it is impossible to know which value is selected. Is there a way to make these drop down select list wider for some fields?
    Any one?

    Found the ANSWER!!
    If I click on the little 'wheel' and click filter, I can choose other expressions. whooa!
    Marco

  • Button on Interactive Report to fire a process using JavaScript

    I have a requirement to trigger a process from a button on an interactive report. One of the report columns has the triggering data allowed to make the process fire. The requirement is that the button says different things based on the value from another column in report.
    My button is an html button that when the process is allowed to run, is enabled and fires a javascript function. When the process is not allowed to run for the row where the button is placed, the button changes text, color and is disabled.
    The switching of the HTML button is working properly. The problem is that I am not able to grab the column value from the report to submit with the onclick() event.
    As best I can tell, there is not unique id tag on the report columns and the best that I am able to do is to apply one class to the button and another class to the column that contains the value that needs to be submitted on my onclick() event.
    I have considered using a link column that does a submit to a URL passing in the desired value but I would lose control of the appearance of my button.
    Does anyone have a suggestion?
    Thanks

    In debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
    Yes, that's right. The processing will be continued from next stamtement after CALL SCREEN 200. But after the PAI will finish it shoud go to NEXT SCREEN which is 0.
    If that doens't work you can try leaving the screen 100 explicitly as well.
       CALL SCREEN 200. 
       LEAVE TO SCREEN 0.  "the processing will terminate screen 100 as well
    Try it out.
    Regards
    Marcin

  • Interactive Report: how to get value of given row/col cell in selected row

    Hi -- I have an interactive report. Instead of the default behavior of the link going to a single row view, I want it to
    go to a form for editing the row. This means I have to be able to populate the form w/ the correct row's information...
    so need to get the value(s) for the PK column(s) in the selected row of the interactive report, so I can select the row
    from the database.
    How can I do this? I see in the report attributes, Link Column section, I can set Rows Uniquely Identified by, and a Unique
    Column (though there could be more than one in a PK). I imagine I'd want to use the rowid, but I'm not sure how the
    rowid of the selected IR row can be referenced. And at that point, I'm not sure how to get the IR column value for
    that row. (Say I'm on the 8th row and I need the first column... How is the column referenced? By a number, it's name,
    its heading?)
    Or maybe I'm not on the right track at all...
    Ideas?
    Thanks,
    Carol

    Hi Carol,
    What I´m trying to do is: defining a button such as when you click it a pl-sql procedure is called, which needs as an input parameter the id of the row selected in my form. what I need first, then, is to get the id of the selected row. how did you get it?
    Thanks in advance
    Francesco

  • Interactive Report (IR) column heading: filtered items number & flashlight

    Hello everyone
    several hours of searching through the forum did not provide me with leads or answers to 2 questions. Both are related to the IR column heading menu and options. Let's start with a copy of the relevant portion of the interactive report help screen:
    Column Heading Menu
    Clicking on any column heading exposes a column heading menu.
    [snip]
    Text Area is used to enter case insensitive search criteria (no need for wild cards). Entering a value will reduce the list of values at the bottom of the menu. You can then select a value from the bottom and the selected value will be created as a filter using '=' (e.g. column = 'ABC'). Alternatively, you can click the flashlight icon and the entered value will be created as a filter with the 'LIKE' modifier (e.g. column LIKE '%ABC%').
    List of Unique Values contains the first 500 unique values that meet your filters. If the column is a date, a list of date ranges is displayed instead. If you select a value, a filter will be created using '=' (e.g. column = 'ABC').
    Q1: Why do I not see a flashlight icon? I looked everywhere in the report definition to "enable" it, to no avail.
    Q2: Although we've found IRs to be incredibly useful and embraced by end users, we are having issues when dealing with large datasets. Let's look at searching for people's first/last name in our CONTACTS table. The table is ~28,000 names long. If one attempts to use Column Heading menu to "filter" for any name outside the first 500 unique values, the search does not work. Yes, I know that a workaround is to use Actions Menu icon filter... but, it sure is misleading to have a search which does not go beyond letter B in the list of last names. Furthermore, I do not see a way to DISABLE Column Heading Text Area, and avoid user confusion.
    I suspect that "List of Unique Values contains the first 500 unique values" was set for the performance purposes. Is there a way to set that number anywhere? Have it customized for each column? (columns county and state could be <100, for example)
    Thanks an advance to any advice.
    Vojin

    @Prabodh: what you say is only changing the default image for the column selector at the search bar level. What i think is being looked for is an icon on the popup when a column header is clicked in an IR. Don't bother: there is none.
    @Vojin, Tonibony:
    I also ran into this problem with IRs and the useless column header box. If you want to hide the unique values list, it is a bother. First of all, you can't disable the finding of values, this is embedded in the widget ajax code. Then if you want to just hide the list, there is no real event you can hook up to. The poping up of the box is an ajax callback, and is part of the IR javascript, but this callback does not trigger any event (no apexafterrefresh for example, which is understandable). I've worked around this by overriding/extending the method which is called when ajax is done loading within the IR code. Here is a piece of code which does this (call it on page load):
       // _Finished_Loading is called when the IR is done with a GET action
       // because the posts are synchronous in this report, and no events
       // or hooks are available, the best way to preserve functionality
       // yet extending it is to override the original function, yet
       // keep the base code
       // apexafterrefresh cant be used since it is not triggered after
       // the widget ajax
       var or_Finished_Loading = gReport._Finished_Loading;
       gReport._Finished_Loading = function(){
           //overriden, but still have to call orinigal!
          or_Finished_Loading();
          //SORT_WIDGET is the widget containing all the header elements
          if(gReport.current_control=='SORT_WIDGET'){
             // hide the original dropdown box
             $("#apexir_rollover_content").hide();
       };If you're interested, i've recently developed a plugin for use in my interactive reports which works around some of these limitations. For me, the headers are much more userfriendly than the actions > filter menu. So what i've done is: hide the orignal dropdown, and turn the searchfield into an autocompletion field, which will progressively search through the distinct column values in the IR with ajax. I've even made an option to have the searching behave like a "contains" or a "like". I'm working on a post about it, with background, documentation and source code. I'll add a post here when i finish it up, you can see if that helps you.
    I also would like to add a button later on which will simply add the entered value as a "like %value%" filter. I know how to do this and what to do, i'm just a bit short on time at the moment. I actually think that adding the button in the layout may be the hardest part... :')

  • Passing values w/special characters in URL into an interactive report

    Hello,
    I have a problem and Ive been all over these forums and reading/trying everything I can to get something to work. I have a page that has a field called Name Search. The field is a TextField with autocomplete type. If I select a company name that contains special characters, like 'Blue Shield of California Life *&* Health Insurance Company', when I click go button (using a branch), it is supposed to pass this value into the URL to populate IR_COMPANY_NAME on the interactive report page to create the report filter. However, when it goes to the IR page, it actually filters on 'Blue Shield of California Life *& amp;* Health Insurance Company' with 'amp;' instead of & and doesnt find any matches. In the page source it is actually 'value="Blue Shield of California Life *& amp; amp ;* Health Insurance Company." Here is the URL that it produces:
    http://webtest2:7775/apex/f?p=102:IRCompanyList:995769774353901::NO:5,RIR:IR_COMPANY_NAME,P5_COMPANY_NAME:Blue%20Shield%20of%20California%20Life%20%26amp%3B%20Health%20Insurance%20Company,Blue%20Shield%20of%20California%20Life%20%26amp%3B%20Health%20Insurance%20Company
    The interesting thing is that I have another page that has a clasic report that lists all compnaies by name and the company_name is a link that passes the company name into the exact same IR and it works fine. In the page source it is value="Blue Shield of California Life *&amp;* Health Insurance Company" Here is the URL that this page produces:
    http://webtest2:7775/apex/f?p=102:5:995769774353901::NO:4,RIR:IR_COMPANY_NAME,P5_COMPANY_NAME:Blue%20Shield%20of%20California%20Life%20%26%20Health%20Insurance%20Company,Blue%20Shield%20of%20California%20Life%20%26%20Health%20Insurance%20Company
    I have modified every field involved changing between encoding, no encoding, changing display types (Standard Report Column, Remove HTML and escape special characters, etc). I have also attempted to encode the value myself prior to sending it to the next page. I have tried variations of the htf.escape_sc etc. I have also tried adding \&P2_COMPANY_NAME.\. I have also tried adding pl/sql to create a collection to store the values and then pl/sql to fill the values on the report page. It gives me the success message I setup, but it never actually fills the value.
    I am also having problems with another field that has a comma in it. I will wait to address that one to see if I can fix this first with hopes that it can be resolved by whatever I do to fix this issue.
    Any suggestions? I appreciate any feedback!
    Jen
    Edited by: J-Lig on Jul 13, 2012 10:20 AM
    Edited by: J-Lig on Jul 13, 2012 10:21 AM

    Thank you for your feedback!
    Yes, I forgot to mention that. It does come from a table, but company_name is not unique in that table. Meaning, it wouldnt know which ID to pass. Perhaps I should seperate the name out into another table and then I could pass the id. I was just hoping to get this to work programatically since the links from classic reports actually work correctly. I am starting to think this is a bug. This issue appears to have been addressed to make the links from reports pass the & correctly, but not in the branching?
    I have attempted to replace and then re-replace but I couldnt get it to work with IR_ fields as the filter fields are generated by the Interactive Report region. Do you have any insight working with those? Are there any tricks to it that I might be missing?

  • 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.

  • Interactive Report with Null Columns

    I've got a user who wants to export an interactive report, and he needs certain columns to appear on the export for him to fill the data in later (this is an intermediate step, while we work on getting all the data he needs in to the database). I've created the report query, and there are a handful of null/empty columns (to preserve the correct order for the export). When I try to add this query to APEX in an interactive report, I get a "ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated" error.
    Googling around shows me that this happens because of similarly-named columns, and the solution is to provide aliases to all columns. My report has aliases on all columns, but I still cannot create an interactive report. I've tried changing the null columns to empty strings, as well as enclosing the aliases in double-quotes, but nothing works. I can however use my original query to create a standard report, but due to the export requirement, this isn't ideal.
    I was able to create the interactive report with one null column, and then edited the report source to add in the others. This had to be done one at a time, since trying to add multiple null columns at the same time gives the same error again. Unfortunately, when I try and run the page, I get an "ORA-20001: get_dbms_sql_cursor error ORA-00918: column ambiguously defined" error.
    My original query:
    select customer.customer_name as customer,
           project.name as project_name,       
           trunc(project.estimated_end_dt) as due_date,
           project_status.project_status_desc as status,
           null as revenue,
           project.baseline_effort as baseline_hours,
           null as projected_cost,
           null as est_gain_loss,
           project.actual_hours as actual_hours,
           project.estimated_hours as projected_hours,
           null as projected_cost,
           null as projected_gain_loss,
           null as roi      
        from project,
             customer
      where customer.customer_id = project.customer_id
      and project.inactive_ind = 0
      and project.customer_id is not null
      and project.estimated_end_dt >= :DTP_P50_STARTDT
      and project.estimated_end_dt <= :DTP_P50_ENDDT
    order by customer.customer_name,
             project.estimated_end_dt;             Can someone tell me a way to create an interactive report with multiple null columns?

    Hi shimmoril,
    The problem is likely that you have two columns aliased as "projected_cost" (7th column and 11th column).
    Hope this helps,
    John
    If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.*

  • Bringing up the help popup in an interactive report

    The gear dropdown on an interactive search, has a help, that when clicked on would bring up a popup explaining the icons of the gear search.
    I created a button and trying to bring up this help when the user clicks on it.
    How would I go about doing this?
    Thanks.

    Lloyd,
    An interactive report is also known as a worksheet. Each interactive report region has a unique ID. That ID is needed as a parameter in the URL to generate the help page.
    On second thought, try the following which should not need a page item:
    javascript:html_PopUp('wwv_flow_utilities.show_ir_help?p_app_id=' + $x('pFlowId').value + '&p_worksheet_id=' + $x('apexir_WORKSHEET_ID').value + '&p_lang=en-us');Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Count a distinct column value in an interactive report

    Hi,
    I'm struggling with this and would appreciate any pointers.
    I have built a view here:
    http://apex.oracle.com/pls/otn/f?p=11189:1
    The report can have duplicate column values. I'm tying to find a way using the interactive report functionality (i.e. without modifying the underlying SQL) to count a distinct column value. For example, in the example following the link I'd like to be able to count the unique customer_ids and return 7.
    This may be fundametally impossible depending on the way the SQL is generated for the interactive reports. If this is the case can anyone confirm this?
    Many thanks
    Yog.

    <B>"Not modifying views is fair enough. But not wrapping a SELECT around them? Really? Why? And as I said, that's imposible, the IR already does it."</B>
    This is not a problem. However for the IR's it's a development decision to keep all reported columns ( and analysis on these columns ) as a seperate development process to be controlled centrally by a seperate team. The point to remember is that the app looks at hundereds of views and it was decided that modifying each report to fit each instance would become cumbersome to manage and to put it simply there are not the resources to do it.
    again, I'm not here to justify any of that!
    <B>SELECT *" ? Every single time? Even when you want to populate a LOV with some names</B>
    No just the Reports. It is a very very simple app; a big list an a page for each report.
    <B>"I think you should always ask what you want, not less, not more"</B>
    I agree, and that should include select * from view.
    <B>"Why fetch data you don't want to see"</B>
    Some users will want to see some data from the view and other users will want to see other data, Over the whole user base someone somewhere will want to see all of it.
    <B> Actually, there is something good in this, in the future, when you will be asked to check and try to improve the load time of some page, here is the first place where you should look</B>
    Brilliant! Like it!!
    <B>Does it by any chance fetch a bunch of 20 meg LOBS and then discards them</B>
    No, Thankfully a few varchar2 columns and a lot of numeric columns, nothing huge. The reports are acutally pretty fast at the moment...

  • Controlling # columns in interactive report's Group By format?

    Hi,
    I have an interactive report with columns category, attribute1 to attribute 6.
    I want to generate a report of sum of attributes 1-6, grouped by category column.
    I see the group by option of interactive report is limited to only 3 columns. Is there a setting I can override to get more than 3 columns in my group by?
    Thanks,
    Zakia.

    use pivot table plugin read related blog ORA-00001: Unique constraint violated: Pivot Table plugin for Apex
    and use it in report.

Maybe you are looking for

  • Invoice payment fields

    Would you please help me locate the following fields: Invoice number Funding account name Funding account identifier Payment account Payee identifier Payee name Payment amount

  • How can I make a "Youtube" style video gallery for offline, '.air' use?

    I work for a language company and we've put together a set of videos for use in computers, not online.  Currently we're using Apple's Keynote to present our videos to to the student.  This has the advantage of allowing us to put videos in a sequentia

  • HT4528 Why doesn't my internet and apps work when I'm in my wifi?

    So this has happened to me once before but kinda just started working and now it's doing it to me again. When I'm in wifi nothing on my phone will work except texting and phone calls. I can not use the internet or any of my apps, even when I went int

  • Optical out on Airport Express

    Can i use ANY min-optical cable to use the optical out, or does it HAVE to be the Apple/Monster cable? I don't need the whole kit they sell, just the ONE cable, so i'd like to save a few bucks if i can.

  • Printing from Elements 9 Organizer causes PSE to crash

    Whenever I try to print a picturem from Elements 9 Organizer, a window pops open that says: "Elements 9 Organizer has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution