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.

Tags: Database

Similar Questions

  • Interactive report conditional forwarding using the link in the column?

    Hi all

    I use APEX 4.2. We have an interactive report as an overview, we are the column standard link (with the pencil symbol) to go to a form of details.

    Currently, we introduce the user permissions to our application. In accordance with these permissions, not all objects contained in the report can be changed by a user. I made a copy of the form that is set to read-only and eliminated all the buttons.

    My question is: is it possible to redirect conditionally to the form (page 301) or reading one page (10301) according to the permissions of the user? And if I can change the symbol in the column link depending on the permissions this way? Any help would be appreciated. Thank you!

    Birgitt

    I got it! With 2 hidden columns and a column containing the link and icon. First, I created a table where I store my frm pages - and unalterable (afp and arp) according to the dev_class. PERM is the colum where I get 1 (authorized) or null. This column contains the link and the icon later in my report. Then I built columns hidden in my opinion like this:

      CASES WHERE the afp IS NOT NULL THEN
         -CASE perm WHEN = 1 THEN ' f? p ='|| v ('APP_ID') | ': 301 :'|| v ('SESSION'): ':YES:301:P301_DT_ID, P301_DT_ID_4_HIST, P301_DEV_CLASS, P301_DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID
         -ELSE ' f? p ='|| v ('APP_ID') | ': 10301 :'|| v ('SESSION'): ':YES:10301:P10301_DT_ID, P10301_DT_ID_4_HIST, P10301_DEV_CLASS, P10301_DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID
         CASE perm WHEN = 1 THEN ' f? p ='|| v ('APP_ID') |': ' | AFP: ': ' | v ('SESSION') |': YES :'|| AFP |': P' | AFP | "_DT_ID, P' | AFP | "_DT_ID_4_HIST, P' | AFP | "_DEV_CLASS, P' | AFP | ' _DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID
           ELSE ' f? p ='|| v ('APP_ID') |': ' | ARP: ': ' | v ('SESSION') |': YES :'|| ARP |': P' | ARP | "_DT_ID, P' | ARP | "_DT_ID_4_HIST, P' | ARP | "_DEV_CLASS, P' | ARP | ' _DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID
         END
       ANOTHER NULL
      END show_link
      CASES WHERE the afp IS NOT NULL THEN
         CASE perm WHEN = 1 THEN ' menu/pencil2_16x16.gif.
            ELSE 'calmag.gif '.
         END
       "1px_trans.gif" - NOTHING ELSE
      END show_icon

    To the link column, I added the following HTML Expression:

    Thanks for your help!

    Birgitt

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

  • 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 has a bug

    Please:

    1 - create a field named: p_myfield (default 5)
    2 - create a CD to any table
    3 - chose to any column and define a conditional posting about it.
    My example is->
    condition type: pl/sql expression
    Code: p_myfield < 10

    If you run the report, this column appears correctly as the condition is true.
    If you start to play with IR, do together or sort by any column, the column with condional display DISAPPEARS! He appears again if you refresh the page or run the report again.

    I know, when you play with IR, it does not recognize: p_myfield more. (The field value is null).

    No workaround or patch solution?


    Thank you.
    David.

    Hello

    I tried just everything and that you do not get this problem.

    How do you define the default? I tend to do it by using a calculation of page depends on the element is null.

    Andy

  • How to replace the interactive report '-' for null with white columns fields?

    The reports interactive one places '-' for null column fields. In the classic report, column null fields remain just as a draft. Y at - it a setting to change how many interactive reports display columns null fields? I would prefer that it be display as the classic report and leave the fields to null as a draft column.

    THX

    Published by: jngoracle on July 24, 2010 22:43

    Hello

    Will modify your report interactive report attributes.
    In the paging section, you can change attribute "see the Null Values as".

    BR, Jari

  • Interactive reports: how to change the display mode (details, group by, chart, pivot) programmatically?

    Hi guys,.

    is it possible to control the display mode of the interactive reports, i.e. display icon, list, view detail, group by, chart, pivot?

    Produkte.png

    As I understand the current setting is stored as a preference of the user for each user... and again when his connection. A settings of the rules them all (all the stored report parameters).

    The display mode switchable using a javascript, the api package apex_ir or via a link?

    Thank you
    ~ Dietmar.

    Hi Dietmar,

    It is not a supported way to change the display interactive report mode.  With the device connected by Anthony internally, we will consider adding this because part of apex_ir or a link to the future.

    Kind regards

    Christina

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

  • We display only the columns required dynamically?

    Hi all

    I have a scenario where I have 30 columns in the rtf model. All columns will never be displayed, only a privileged few will be available for display. The output file is so see the empty columns. Now, I want to display only the columns that contain data.

    FYI - can't know what columns are made up of data until we run the report.

    Any advice.


    Thanks in advance.

    Malenfant.

    Hello

    You can use the following text:

    Column heading:
    My label

    The data in the column:
    My data

    The @column will tell XMLP wheater or not that column should be indicated.

    I hope this helps you.

    Kenneth BR

  • Interactive report - how to set the default columns displayed

    Env: APEX 4.1

    For example, at the beginning, I created the reprot source as select c1, c2, c3 from t; later, I added c4. But I was unable to figure out how to do c1, c2, c3, c4 become the columns displayed default. I always have to click on Action-> select columns, and then move the C4 "do not display" to "report view". Any clue?

    Thank you
    Denis

    After choosing the columns (and the other changes you want)

    go to Actions > save the report > save as default report > primary, click [apply]

    I am on 4.1.1.00.23 and simply exercised these steps successfully with one of my IR

    If this does not work, I don't know what else to say. (If you are not connected to the Application Builder, you don't not even the default save option)

  • Editable interactive report. To change the list column dropdown type filter.

    Hi all, I thought I had posted this, but I can't find my post, so apologies if it turns up to twice more...

    XE SUMMIT 4.2 11.2

    Ive created an editable interactive report... Everything works very well, and I have several Text, LOV and selection list columns...

    However when I now click on a column header to filter, sort etc drop-down list is the same format as the column itself. So if for example, I have a text box, then the drop-down list is also text boxes, if the column is a column LOV, the filter drop-down list is a list of fields LOV. (Im assuming this is correct behavior, because it simply inherits the column parent..)   So, I would change the lists to a list of standard display so that they are in order and can be used...

    I think so? I know I have to do, which is either to substitute the function that generates the dropdown filter... or probably more simply, write a bit of JS/JQuery that modify data for drop-down lists.  Im still to learn, some help would be appreciated...

    I think so. (and please correct me if I'm talkiing... garbage)   I need to find each of the appearance of the DIV with the ID that corresponds to the drop-down list box, and then loop through each entry and change the structure...

    Currently the source for drop-down fields resembles the following (for a text field...). :

    < div id = "apexir_rollover_content" >

    < a href = "javascript:void (false); ">

    < input type = "text" value = "24489" maxlength = size "2000" = "6" name = 'f06' > < / input >

    < /a >

    < a href = "javascript:void (false); ">

    < input type = "text" value = "N1021" maxlength = "2000" size = "6" name = 'f06' > < / input >

    < /a >

    < / div >

    How could I 1) browse each occurrence of div id = "apexir_rollover_content" on my page, so I found out about each other, how would I go through the list and change the line above an input to a standard list item text...? Or is there a simpler way to do it?

    Kind regards

    Richard

    Hello

    Problem was on your process to GET the VALUES of LOV.

    You did not bind the variable values of cursor.

    I created another process for your page that manages LOV BUDGET_CAT

    Kind regards

    Jari

  • First group title below displays under the column headers using the model 23 classic report with the help of repeat titles on break

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.


    When I look at firebug code I saw that all the tables but the first, the break line is included in the last line of the previous table, so I can see how it did not work for the holidays since.

    I have tow questions.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Example of a question can be seen at apex.oracle.com at home

    Thank you

    Brad

    Roadling wrote:

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    The Standard report template definition in issue 23 contains thead and tbody elements:

    Before the column header

    
    

    Column title template

    #COLUMN_HEADER#
    

    After the title column

    
    
    

    After the lines

    
    
    
    
    
    
    #PAGINATION#
    
    
    
    

    This is intentional, the best practice for marking up HTML tables. What is not expected is the problem that arises when this model is used with the break of repeat titles on break formatting option. The repeated headings result table consisting of soup of tags containing several poorly constructed tbody and thead, which is not valid elements.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Create a copy of the report model Standard in Standard (break formatting) for use with reports of the break, remove the thead and tbody definitions of template tags and the breakdown of the reports to use the new model of change. (Or, if you use mainly break reports using the Standard template, keep the tags in the copy and remove them from the original in order to minimize the number of reports, you need to change.)

    Personally, I would create a report model of line custom to break complex reports in order to be able to have complete control over the structure and presentation.

  • Conditional display for the links in the column?

    Hi all

    For a report, if you configure a column under the 'attributes of column' binding so that the report has a link to turn an edit form, is it possible to set a condition on this somewhere so that only certain LINES has an icon link (or text)?

    NT

    You can use a case statement?

    select case
              when column1 = 'x' then '' || column2 || ''
              else column2
           end
    from table
    

    Minh

  • Interactive report - out has changed the value of the column selectlist

    Hello

    I try to use a selectlist in an interactive report. I used "APEX_ITEM. SELECT_LIST' for this. My interactive report request is

    SELECT APEX_ITEM.checkbox (1, CUSTOMER_ID, NULL, NULL, 'onclick = "javascript:setvalue (this.value)" ') as "-",

    CUST_FIRST_NAME,

    CUST_LAST_NAME,

    APEX_ITEM. SELECT_LIST)

    p_idx = > 2,

    p_value = > TEST.

    p_list_values = > ' Y; Y, N; NO

    ) 'test' for DEMO_CUSTOMERS

    I had a "Override" button on the page. I try to get the modified values (for the field "test") and the customer ID selected as a semicolon-separated list just by clicking on the ignore"" button. The process code on submit is

    : P8_TEST_VALUE: = NULL;

    BECAUSE me in 1... APEX_APPLICATION. G_F01. COUNTING LOOP

    : P8_TEST_VALUE: =: P8_TEST_VALUE | « ; » || APEX_APPLICATION. G_F01 (i) | APEX_APPLICATION. G_F02 (i);

    END LOOP;

    But I still get the data value, not the value for column 'test '.

    For example if I'm changing the value of "N" to 'Y' after selecting the checkbox (client code corresponds to "6") and click on 'Ignore' button. I get the value '; 6n 'instead of '; 6Y'. is it possible that I can get the value of seelectlist has changed?.

    Thank you

    JJ

    Your problem is in the values of the selection list. The element is not sent to use in PL/SQL, best way to do it is with jQuery

    try adding this to your report:

    SELECT APEX_ITEM.checkbox (1, CUSTOMER_ID, NULL, NULL, 'onclick = "javascript:setvalue (this.value)" ') as "-",

    CUST_FIRST_NAME,

    CUST_LAST_NAME,

    APEX_ITEM. SELECT_LIST)

    p_idx-online 2

    p_item_id => CUSTOMER_ID,

    p_value => TEST,

    p_list_values => ' Y; Y, N; NO

    ) 'test' for DEMO_CUSTOMERS

    and to add actions to the lick... button or other trigger.

    $x("P8_TEST_VALUE").value ="";

    $("input: checkbox[name='f01']:checked").each(function())

    {var val = $("select [id ='" + $(this) .val () + "']") .val ();}

    $x("P8_TEST_VALUE").value = $x ("P8_TEST_VALUE") .value + $(this) .val () + val + ";". " » ;

    });

    Hope that this post will be useful for you.
    Andrej Grlica

  • 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

Maybe you are looking for