Interactive report with display of the icon to set the page element

Hi all

I am currently using Apex 4.2.4, I have an interactive report using icons, each icon has a link to another page but a few I want to set a value in a page hidden in the same page element which is then used as a variable for a classic report.

I have this work via link href in the icon as f? p ='|| FA.page |': 1 :'|| : app_session |': P10_ID_ITEM :'|| FA.link_name without error.

My problem is that I wanted to put the value of the element without using a link href that I could handle the clicked icon to change the background color so that the user can have a Visual representation, where it was clicked, then using the value of the page item appears the classic report in another region with a partial refresh.

Any help is appreciated, thanks.

Can you provide a detailed explanation of the purpose of this report and the logic used in the report query? What are the rules to control which icons appear in the IR, what icons link to the second report on the page of IR, and icons to link to separate pages?

For me, the report query seems too complicated and inefficient by returning the data it does, and if another level of data is added to the hierarchy or more data is added to the second level, it fails with:

ORA-01427: einreihig subquery returns multiple rows

I'm guessing that the intent is that the IR displays only the icons at the top level of the hierarchy and icons for posting a link to a different page when they have no descendants, or to display the related lines in the secondary report below the IR when they do. I created a new page with the report query modified to a route of tree and keep the upper level lines. It is much more effective than the original query and simplifies the logic necessary for the verification of end-nodes. Instead of generating a URL link (which violates the separation of concerns), the query returns of the discrete values that can be used to implement the HTML link in the Icon View link Custom property:

with icon_tree as (
      select
          ic.id_icon
        , ic.icon_name
        , ic.link_name
        , nullif(connect_by_isleaf, 1) is_parent
        , level depth
      from
          icons ic
            connect by
                prior ic.link_name = ic.id_parent
            start with
                ic.id_parent is null)
select
    id_icon
  , icon_name
  , link_name
  , apex_util.get_blob_file_src('P10_ICON_IMAGE', id_icon) img_src
  , nvl2(is_parent, '586', link_name) target
  , nvl2(is_parent, 'P586_ID_PARENT', null) parent_item
  , nvl2(is_parent, link_name, null) parent_id
  , :app_id app_id
  , :app_session app_session
  , :debug debug
from
    icon_tree
where
    depth = 1

In the interactive report, Use Custom Icon Link is set to Yes, and the custom link is:


  
  
#ICON_NAME#

Public static ID icons and results are applied to the IR and the regions second report respectively for use as selectors in action dynamics and CSS. The protected value property for the page P586_ID_PARENT element must be set to No for the value can be defined by a dynamic action.

Dynamic action with several real actions is needed to bind alternatives click behavior to the links on the icons that have descendants (i.e. where the data-parent-id attribute has a value):

Event: Click

Selection type: jQuery Selector

jQuery Selector:.apexir_WORKSHEET_ICONS a:not([data-parent-id=""])

Real Actions

Seq: 10

Action: Delete the class

Class:selected

Selection type: jQuery Selector

jQuery Selector:.apexir_WORKSHEET_ICONS a

Seq: 20

Action: Add the class

Class:selected

Selection type: trigger element

Seq: 30

Action: Set value

Wait for result: Yes

Type of value: Expression of JavaScript

JavaScript expression:$(this.triggeringElement).attr('data-parent-id')

Selection type: Agenda

Point: P586_ID_PARENT

Seq: 40

Action: Discount

Selection type: Region

Region: results

Seq:50

Action: Show

Selection type: Region

Region: results

Seq: 60

Action: Cancel event

Finally, add a style sheet to the Inline CSS property page. Initially, this hides the secondary report and select the parent clicked icon:

#results {
  display: none;
}
#icons .apexir_WORKSHEET_ICONS a {
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.8em 0 0.5em;
}
  #icons .apexir_WORKSHEET_ICONS a.selected {
    border-color: #6a9cda;
    background-color: #bbd1ec;
    transition: 0.6s;
  }

However, after all it is the question of why you use an interactive report here if you turned off all the features of the IR? A dynamic list with a custom template box seems to be more applicable?

Tags: Database

Similar Questions

  • Data of the interactive report not displaying on the edit form.

    I have an interactive report that contains 3 rows. When I click the button change beside one of these lines, the edit form displays the data in this row.
    But when I click the buttons edit beside the other 2 rows of report, I receive an error message that indicates: "ORA-01403: no data found." Error line could not.

    I don't see why this is happening. The pharmacokinetics of the table involved is 'Date of application', so 'Column link' report is sent the value "Request Date" to the P54_Request_Date element in the page of the form.
    No idea why this would work properly for one of the lines report but not for the other 2?
    Obviously, each of the lines report must have a value for the PK, then why the form would not be able to find the same line that displays the report? Is this a problem with the process of "line of" form?
    Thank you.

    Hello:

    I'd know it before. The date format default for your application, as shown in the following debug output is DD-MON-RR
    >
    0.35:... "NLS: decimal separator Set =". »
    0.35:... NLS: Set NLS Group separator = ",".
    0.35:... NLS: Date Format Set = "DD-MON-RR.
    >

    So, it means that the part of time to a date column is never taken into account when matching a date field. You can change the default date of the application format (shared components-> change the attributes of the globalization) and the value is in the format that you specified for the column in the report (DD-MON-yyyy hh24miss). It will then do the ARF in the process of work correctly without the need of the value of the page element that contains the column of the massage table. However, the change may affect other pages in your application that may depend on the date is in the format "DD-MON-rr.
    You can try this workaround.
    Remove the header before process you added for re - format the value PK-item page
    Define a process lower than the RFA process before header with a sequence
    Set after a bidding process with a sequence that is lower than the process of automatic line (DML)
    Use the code below for each new process

    execute immediate 'alter session set nls_date_format=''DD-MON-YYYY HHMISS''';
    

    CITY

    Published by: city has 16 Sep, 2009 17:18
    Correction of errors in the date formats

  • Interactive report, conditional display of the column binding

    Hello

    We have obligation to disable editing in case this field is 1 (1 = closed).

    Is it possible to disable it on interactive report.

    -case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.

    SELECT payroll_no, status

    OF hr_payroll

    ORDER BY payroll_no DESC;

    I tried the link below, but it does not work in my case.

    http://nerd.NET.au/24-Apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-...

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    Request Express 4.2.2.00.11


    Thank you in advance,

    Best regards, FM

    Status of the INCIDENT WHEN 'ACTIVE' = then


    '
    OTHER END null deactivate_employee.

    Of

    EMPLOYEES

    What exactly is the error you get? What HTML is displayed in the HTML source code?

    Just by looking at it, I would say that you need to remove the "/" before the f? p

    Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.

  • It is possible to sort an interactive report with a default column?

    Hello

    I have a great request accompanied by an interactive report.
    select "ID", 
    "DATE_CREATION",
    "SERVICE",
    "RESPONSABLE",
    "NATURE_CONTRAT",
    "SOCIETE",
    "DATE_DEBUT",
    "DATE_FIN",
    "DELAI_RENOUVELLEMENT"
    from "#OWNER#"."CONTRATS_MAINTENANCE" 
    order by DATE_FIN desc
    Unfortunately, the interactive report not display using the order in the SLQ query.
    I tried to select the 'out' of each of the other columns in the attributes column Section, but without any improvement. If I remove the declaration of the order in the SQL query, nothing changes in the order.

    You have an idea on how to display the rows in the order of the sql query?

    Thank you for your knid answers!

    Geraldine

    Christian,

    This can be a little tricky at first. Try this:
    1 remove the order by clause of the query.
    2. close the application, not the generator, just the application.
    3 reconnect and try to use the interactive report options to sort the information.

    It work? If so:

    4. get the order of the way you want as the default. Note: you get more sort options if you use the Action Menu (milling wheel) and a sort by selecting more simply by clicking on the column headers.
    5. save the report by selecting the save the report option in the Action Menu. If you see a drop down, save the report 'by default'.
    6. close the app again and come back.

    It work?

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

    You can reward this answer by marking as being useful or correct ;-)

  • Application of interactive report of apEx using the last value of the point

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')


    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option


    Thanks for any help you can offer

    S.Bovin wrote:

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    Add the REGISTRATION_YEAR_ITEM to the IR Page elements to submit property. He will submit the current value in session state.

    Why bother with the page element at all? Why users can't create just an IR filter?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')

    For performance reasons, use bind variable notation when you reference values from session state in SQL queries.

    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option

    Why not? That it will provide you with a safe and supported environment and your users with a much better life.

  • Interactive report - Can customize you the search bar?

    I create a simple interactive report. By default, the search bar is above the report results. Is it possible to add another button in the search bar?

    If Yes, can you point me in the market to follow to do this, I searched but have not found anything similar to what I'm trying to do. I want one
    a refresh button on the search bar.

    Wes

    Wes,

    If you already have a button that works the way you want, then change according to step 1

    Step 1.
    You create a button named P100_REFRESH , to specify attributes of button id = "P100_REFRESH" (same name as the button yor used), this so that you can easily access this button in javascript.
    I don't know what that your "Refresh" is supposed to do, I guess it is to reload the page. You can do this by calling the builtin function + 'window.location.reload () +. To call this Javascript when the button is clicked, you must change the button action to * "Redirection of URLS" * then enter the target URL * "javascript:window.location.reload()"*. To call any another javscript function button can be made the same. With that, you would have a displayed button somewhere in this region of interactive report of yours.

    Step 2.
    The next step is to move the button in the search bar you wanted.
    I'm going to place the button after the 'Actions' + button for example_
    Now the action button can be found in jQuery (because it has a class of "apexir_ACTION_MENU") using the * $('div.apexir_ACTION_MENU') *
    So to move your button based on it, you can call

    $('div.apexir_ACTION_MENU').append( $('#P100_REFRESH') );
    

    You can put this piece of code in the * "Run when the Page loads" * section of the Properties Page, as she is called when the page loads and move the button to the specified position.

  • Interactive report will not save the BLOB column attributes

    I created several interactive reports with the 4.0 and 4.1 which had columns of type BLOB with no problems and the download link worked fine. After 4.2 update, interactive reports get the following error when you click on the download link:
    Not found
    The requested URL /apex/apex_util.get_blob was not found on this server

    If I open the edit page of the report, the BLOB downloads very well. When I looked at the report in detail the attributes of the BLOB column, I noticed that the BLOB column attributes had not been met. I tried several times to fill in (name of the Table column name, Primary Key, MIMETYPE, etc), but after applying changes and reopen the attributes page for the blob column, the values, that I entered is not saved.
    For completeness, here is the select statement for the report:
    Select "DESC_ATT_ID."
    "BR_ID,"
    "FILENAME."
    "MIME TYPE"
    DBMS_LOB. GetLength ("DESC_ATTACHMENT") 'DESC_ATTACHMENT '.
    of ' #OWNER # '. " ALTEC_BR_DESC_ATT ".
    WHERE BR_ID =: P3_BR_ID

    Also, here is the value for the number/Date of the BLOB column format:
    DOWNLOAD: ALTEC_BR_DESC_ATT:DESC_ATTACHMENT:DESC_ATT_ID

    Can someone tell me please in the right direction to get the link to the interactive report work correctly?
    Thank you very much
    Jerry

    Hello
    How about you, you do not format BLOB column, do you it manually like this example here:

    Apex. Oracle.com
    workspace: somefeto
    user: test
    PWD: test
    Application 63066

    in the same workspace, there is Sample File Upload and Download (App ID 10540), and it works very well...

    If not, Pls, reproduce the problem on apex.oracle.com

    Best regards
    Fateh
    ------
    If you believe that my answer is correct or helpful to you pls, then mark the reply as useful or correct

  • Interactive report with Null columns

    I have a user who wants to export an interactive report, and there need to some columns will appear on export so that he can fill the data later (there is an intermediate step, while we work on getting all the data they need in the database). I created the report query, and there are a handful of columns null or empty (to keep the correct order for export). When I try to add this query to the APEX, in an interactive report, I get an "ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated" error.

    Googling autour shows me that this happens because of the columns the same name, and the solution is to provide aliases for all columns. My report has alias on all columns, but I can't yet create an interactive report. I tried to change the columns null of empty strings, as well as encompassing the alias in double - quotes, but nothing works. However, I can use my original query to create a standard report, but due to export, this is not ideal.

    I was able to create the interactive report with a null and then edited the source column of the report to add to the others. This had to be done one at a time, given that you are trying to add several null columns at the same time gives the same error even once. Unfortunately, when I try and you run the page, I get a ' 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 probably that you have two columns aliased as 'projected_cost' (columns 7 and 11).

    Hope this helps,
    John

    If you find this information useful, please indicate the 'useful' or 'correct' post so that others benefit. *

  • Using ListView with ArrayDataModel displays only the first element in each QVariantMap within the matrix

    I have this QML who have a ListView with datasource to a full ArrayDataModel from the CPP file for creationcompleted, I loop in the table to add the hour together to appear as a label on the page, what works. However, when I want to view these items in the list, it will display only the first element of the QVariantMap within the table, no error on the log of the device. Also, triggered more does not work, but when I click it, it will have a blue border surrounding it, but the onTriggered does not fire.

    Here is an excerpt of the CPP on the table fill

    This-> eventsModel = new ArrayDataModel();

    QVariantMap event;

    event ['EventName'] = "Event1";

    event ["EventHour"] = "00";

    event ["EventMinute"] = "01";

    event ["EventSecond"] = '02 ";

    QML-> setContextProperty ("eventsModel", it-> eventsModel);

    Here's the QML

    {Of container

    ID: eventListContainer

    {To ListView

    ID: eventList

    dataModel: eventsModel

    Use a ListItemComponent to customize the appearance of the list view

    listItemComponents:]

    {ListItemComponent}

    type: 'point '.

    {StandardListItem}

    Title: 'Event' + ListItemData.EventName;

    Description: "time:" + ListItemData.EventHour + ":" + ListItemData.EventMinute + ":" + ListItemData.EventSecond; "»

    }

    }

    ]

    onTriggered: {}

    var selectedEvent = dataModel.data (row);

    var eventDetailPage = eventDetailDefinition.createObject ();

    eventDetailPage.txtEventName.text = selectedEvent ['EventName'];

    eventDetailPage.pickEventTime.value = picker.dateFromTime(selectedEvent["EventHour"]+":"+selectedEvent["EventMinute"]+":"+selectedEvent["EventSecond"]);

    eventDetailPage.open ();

    }

    }

    Any help would be appreciated.

    Thank you.

    ListView determines ItemType of the element by calling the function itemType of the dataModel. By default, an ArrayDataModel returns an empty string for this call (see https://developer.blackberry.com/cascades/reference/bb__cascades__arraydatamodel.html).

    This leaves you with a few options:

    (1) If you have no header and all the elements are the same, you can make

    ListItemComponent {
         type: ""
         ...
    

    (2) If you have headers or different elements, you can extend ArrayDataModel and implement your own function of itemType

    (3) you can define a function of ItemType on your ListView in QML. Documentation:

    ListView called DataModel::itemType() for each item in order to know the type. QML, this can be overridden by declaring the itemType function (data, row) on the ListView element. ListView then call this function instead of the function DataModel.

    Here's how to create a list in QML which creates a header for all items on the high level and aStandardListItem for each item below the top level:

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • Is it possible to take 2 web apps with both having the same element name (IE: titreArticle, short) and display them in a list in chronological order.  For example something like that {module_webapps id = filter "3673 &amp; 7432" = "classified" itemId = mo

    Hello

    Is it possible to take 2 web apps with both having the same element name (IE: titreArticle, short) and display them in a list in chronological order.

    For example something like that {module_webapps id = "3673& 7432" filter = 'class' itemId = "71755" template="/new/partnernewstemp.tpl" sortType = 'date'}

    Thank you

    Angela Borden

    This is not possible, I'm afraid, you must list each of the webapps separately and then combine and re - sort the two lists.

  • Paramerterized Interactive reports - when running or by clicking on a specific page, how can I stop the report from until the user enters the rendering parameters.

    I wasn't able to post a picture in this post

    But it could look like this

    Order type - ALL - (selection list) GO (button)

    When I enter this page - the report is rendered ALL the data because the SQL is as follows

    AND ol.unit_selling_price <>0
    AND(ordertype.transaction_type_id =:P1_TEXT OR:P1_TEXT IS NULL)
    ORDER BY 3

    Its installer in this way because I want that all returned records if the user makes no selection BUT click ON the 'GO' or 'SEARCH' button

    I have just not all records rendered as soon as the initial screen and user selection options... IE launch via a button.

    Thank you

    Create an item hidden on the page and a calculation allows you to set a value for the element that is hidden when the "GO" button is presented.

    Add a line to your SQL to verify that the item is not null:

    ...
    AND :P1_GO_FLAG IS NOT NULL
    ...
    

    Or better yet, if you have valuables parameters in another region define the condition in the area of interactive report to be when the value of the hidden item is not null.

  • Display the values of the Page element in HTML table

    Hi all

    could you please help me with the below? I want to have a table in the HTML area and to display in the table of elements of the Page of the page.

    I got the code like this:
    {
    < table >
    < tr > < td > & P1_ECEMEA_ASSISTANCE < table > < /tr >
    < tr > < td > & P1_ECEMEA_WIP < table > < /tr >
    < /table >
    }
    It shows the element of the Page names in the form of text, not the values.

    However, this code without the tags table:
    {
    ECEMEA request for Assistance of the CQT: & P1_ECEMEA_ASSISTANCE.
    ECEMEA CQT Work in Progress: & P1_ECEMEA_WIP.
    }
    Works and Page element values are displayed.

    Is it possible to display the values of the Page element in the HTML table at all or should I use a different method to show the values in a table? The above is only an excerpt of the code. I need to display about 30 items in Page, put in shape in a table with headers.

    Please let me know what kind of region is the best to use, or if I have to use only a few symbols of escape in the table code...

    Thank you and best regards,

    Vladimir

    Vladimir,

    Looks like you're missing the period after the substitution variables.

    {
    
    &P1_ECEMEA_ASSISTANCE.
    &P1_ECEMEA_WIP.
    }

    -D.

  • For two days, unable to get maps of Google with Firefox. The page opens, but the route is not available. With Safari, no problem.

    For two days, unable to Google Maps works with Firefox. The page opens but no answer to my questions. A message says "loading... Lai is too long? Look at troubleshooting guide or simplified HTML version. »
    No problem with Safari.

    URL of affected sites

    http://maps.Google.fr/

    I had the same problem. Reset the browser.startup.homepage_override.mstone in all: config. The problem is corrected.

  • &lt; af:panelSplitter &gt;, the second panel is not displayed on the page

    I have a page by its name "Page1.jsff" which has a sign inside < af:panelSplitter >. The first Panel is displayed on the page when I deploy the application. The second round table is not displayed.

    When I check the page in the browser using the Firebug, I see that the Panel is located on the page but not displayed.

    Please let me know where I have to change in order to make the second panel displayed on the page.

    NOTE: The "Page1.jsff" is a view in a taskflow activity and is added to a page as a region under the Toilet.

    The "Page1.jsff" source code is as mentioned below

    <? XML version = "1.0" encoding = "UTF - 8"? >
    < jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.1".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    xmlns:f = "http://java.sun.com/jsf/core" >
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_page1-->
    < af:panelSplitter binding = "#{backingBeanScope.backing_page1.ps1}" id = "ps1" > "
    < f: facet = 'first' name >
    < af:panelGroupLayout binding = "#{backingBeanScope.backing_page1.pgl1} '"
    ID = "pgl1" >
    < af:outputText value = "Hello #{securityContext.userName}".
    Binding = "#{backingBeanScope.backing_page1." OT1}.
    ID = "ot1" / >
    < af:commandButton text = "gotoPage2Button."
    Binding = "#{backingBeanScope.backing_page1." CB1}.
    ID = "cb1" action = "gotoPage2" / >
    < af:commandButton text = "checkNameAndPage2."
    Binding = "#{backingBeanScope.backing_page1." CB2}.
    ID = "cb2" action = 'checkName' / >
    < af:commandButton text = 'displayUserName.
    Binding = "#{backingBeanScope.backing_page1." CB3}.
    ID = "cb3" partialSubmit = "true".
    action="#{backingBeanScope.backing_page1.setUserNameMethod}"/ >
    < / af:panelGroupLayout >
    < / f: facet >
    < f: facet 'second' = name >
    < af:panelGroupLayout
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    Binding = "#{backingBeanScope.backing_page1.pgl2} '"
    ID = "pgl2" layout = "scroll" >
    < af:outputText value = "#{requestScope.customUserName} '"
    Binding = "#{backingBeanScope.backing_page1." OT2}"id ="ot2 ".
    partialTriggers = "cb3" / >
    < af:outputText value = 'second group '.
    Binding = "#{backingBeanScope.backing_page1." OT3}.
    ID = "ot3" / >
    < / af:panelGroupLayout >
    < / f: facet >
    < / af:panelSplitter >
    < / jsp:root >

    It has a memory effect and impact the performance also.
    And since it is not necessary for the auto bind components, why should I do?
    See http://tompeez.wordpress.com/2011/08/28/remove-automatic-component-bindings/ for more information.

    Timo

Maybe you are looking for