Interactive report conditional change link

Hello Expert,

What I want to do is, interactive report should show the entire file on the table, but it should not show the link edit against the id of the record if this particular record id is present in table B.

For example: .
Table A

RECORDID customer balance name address
Sam 102 200.00
Matthew 104 150.00
106 James - 522.00


Table B

CREATEDDAT USERID RECORDID
James 106 24 March 09

In this case, the interactive report should show all three records in table A. However, it should only show the record edit link against RECORDID 102 and 104. I don't want to edit record link against 106 RECORDID.



SAGAR

Hello

Mmmm, I can't get the first job or... so we will pass to the last option... something like:

select case when nr is null
       then null
       else  '<a href="'
                  || 'f?p=&APP_ID.:10:&SESSION.::&DEBUG.::'
                  || 'P10_DEPTNO:'
                  || dept.deptno
                  || '">'
                  || ''
                  || ''
       end link
,      dept.deptno
,      dept.dname
,      dept.loc
from dept
,    ( select deptno, count(*) nr from emp group by deptno ) emp
where emp.deptno (+) = dept.deptno    

Change the columns of numbers and link to your own page...

Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-)

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

  • Interactive report with 2 links

    I have an interactive report that was built of the application wizard when I import an excel spreadsheet.
    The report has a link change already who works. The information for this link seem to be in the attributes tab of report under the link column section. I need to add another link and found the code on the forum that I put below.
    The problem is the new column of link watch, but does not show the button, just all the code seen starting with the a href. Is there a syntax problem that anyone can see? Any contribution is appreciated. Thanks - Shelly.

    SELECT CASE WHEN (: A_ROLE = 'MASTER') THEN
    "" < a href = ""
    || ' f ? p = & APP_ID.:3: & SESSION. : & DEBUG. ::'
    || "P3_ID:
    ||  ID
    || ' > '.
    || "" "< img src =" #IMAGE_PREFIX #show.gif ' border = '0' > "
    || "< /a >."
    OF OTHER LINK_COL OF NULL TERMINATOR.
    "ID."
    "REFERENCE."
    "DESCRIPTION."
    "SPI"
    "HTS"
    "ECCN"
    "GRI"
    "SOURCEOTHER_INFORMATION,"
    'COUNTRY ', HE SAID.
    "INITIALS."
    'CHANGE_DATE '.
    of 'PARTS_CLASSIFICATION '.
    where
    NVL(PARTNUMBER,'@') AS (: P10_PARTNUMBER |) '%') escape ' @'
    and NVL(DESCRIPTION,'@') (: P10_DESCRIPTION |) '%') escape ' @'
    and NVL(SPI,'@') (: P10_SPI |) '%') escape ' @'
    and NVL(HTS,'@') (: P10_HTS |) '%') escape ' @'
    and NVL(ECCN,'@') (: P10_ECCN |) '%') escape ' @'
    and NVL(GRI,'@') (: P10_GRI |) '%') escape ' @'
    and NVL(SOURCEOTHER_INFORMATION,'@') (: P10_SOURCEOTHER_INFORMATION |) '%') escape ' @'
    and NVL(COUNTRY,'@') (: P10_COUNTRY |) '%') escape ' @'
    and NVL(INITIALS,'@') (: P10_INITIALS |) '%') escape ' @'

    Hello Shelly,

    The post does not show the code you used, so I can't say if there is a syntax error.

    However, you must first check on report of the attributes, the LINK column shows like the "Standard report column" instead of "show as text (escape special characters).

    Andy

  • Get an interactive report to change what it displays

    Hello world

    I have a table which have multiple values in a column, separated by semicolons, for example: "Architecture: Application: Software»

    I have an interactive report that displays data, and by default it displays exactly as above: "Architecture: Application: Software»

    I can get it to wrap so that it fits in narrow width, I put to this column of the report, but I can't seem to break properly - it just treats it as a value and stops at the width of the column in the report.

    If I get: "Architecture: app

    cation: Software'

    What I would like to get is three words, one on each line.  Is there a way to do this?

    Ideally, I would like to replace it with a supply for each settler line - but only in the report.  I'm not actually change the data in the table.

    Thank you!

    John Ramuta

    Of course, you can use in SQL

    Replace (my_col, ': ',')
    ')

    then, set the column for rendering HTML

    You can also try to replace by ': ', that is to say including a space. The browser should then decide on best time to wrap.

  • Interactive reports will change the order of columns

    Hi all

    Have experienced this for the 3rd time now. The other times I just create a new report with the request in the order you wish to fix. But it starts to become annoying now...

    When I use the arrows to change the column order on my reports interactive nothing happens when running. The new order is saved and appears that way in design mode, but does not change the order on the report.

    Please let me know if you know how to solve this problem, or if Miss me just something really obvious.

    Thank you!
    K

    Hey,.

    Changing the order in the attributes report is more an effect, since the default report parameters overwrite it.

    If you want to change the order of the columns, you must go through the menu actions of the interactive report, then choose the column selection menu item, change the order and press ok.

    Then save this order order by default, you go to the action menu again and choose save report option this time, select "primary" or "Save as default" depending on your version of apex (this option is available only if you are connected as a developer in the generator of the apex). Then press the ok button again.

    Other users will only see the changes if they press the reset button on their version of empathy.

    I hope this helps.

  • 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

  • What is the best way to connect the two interactive reports?

    Hello

    =================
    Set of bottom-up
    =================
    I created two interactive reports - report on the project on the project page and report of tasks in a task.
    Project report on the project page can contain several projects.
    Report of the tasks in a task can contain several tasks.
    A project can have several tasks.
    But a task can have only one project.


    =================
    What I'm trying to reach
    =================
    When I click on a project name, it must pass The ID of project of work page and view jobs that are established for the project.
    When I create a new task, past project ID must be mapped to the task.


    =================
    Challenges
    =================
    1. How can I pass Project ID of the project page on the task page while clicking on the project name in the project page ?
    2. How can I get the project name in the page of work based on the project ID goes from the project page ?
    3. How can I view jobs related to the name of the project ?
    4. How can I take project ID passed to the task page and map it to a new task?

    Thank you
    Guy

    1. How can I pass project page ID of the project to the task page while clicking on the project name in the project page?

    Create point hidden in a task, for example: P2_PROJECT_ID. That the link on the column to the task page:
    Interactive report-> column change-> link.

    2. How can I get the project name in a task based on the project ID password page of the project?

    There are two ways you can create a function that will return the name of the project by id or you can post the name of the project to the task page (the second way is dangerous, you can miss some parts of your project name if you have a symbol ',')

    3. How can I view the tasks on behalf of the project?

    In the interactive report source add condition to your query, for example:
    and task_table.project_id =: P2_PROJECT_ID

  • Using the page as a condition for interactive report item value

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. Conditions are 1) If the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is to 2 when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition of being added to the interactive report query.


    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN ' < button type = "button" class = "button-default"; ">

    < span > edit </span > < / button > ' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER IN ('Mencis") THEN ' < button type ="button"class ="button-default "; "> < span > edit </span > < / button > ' END

    button is displayed in the report. If I add the second condition, all I get is error. I don't know how Add an element value of the page as one of the interactive report conditions. Please help me on this.

    Mencis Joe wrote:

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. The conditions are 1) if the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is set to 2, when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition to be added to the interactive report query.

    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN '' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER end of '' ('Mencis") THEN

    the button is displayed in the report. If I add the second condition, all I get is error. I don't know how to add a value to the page element as one of the interactive report conditions. Please help me on this.

    Combine the predicates in the CASE expression by using an AND condition:

    case
      when    :app_user = 'Mencis'
          and :p10_dummy = 2
      then
        ''
    end
    

    Hardcode a condition like the :app_user = 'Mencis' is likely to prove problematic for all sorts of reasons, not least including the value of APP_USER is uppercase by default, unless otherwise during authentication.

    Note that the semicolon and extra double quotes in are not valid.

  • Interactive report - changing the font color of column.

    What would be the best way to change the color of the font color (data) in the interactive report without changing the model?

    Thank you

    Robert

    Then the best way is to use css as mentioned by Paul here {: identifier of the thread = 2397346}

  • Conditional display of interactive report based on the different SQL query

    Hello

    I have two drop-down list at the top of my page and below I have an interactive report.
    Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.

    Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?

    Thank you

    Hello

    You can't have IR based on function returning the query as you can have classic report

    But here is a workaround
    http://www.oracleapplicationexpress.com/tutorials/71

    Kind regards
    Jari

  • Is - this too ambitious? Tabular no-show with interactive report in the subregion, showing the latest entries.

    Is this too much to expect in Apex 5.01?

    I have an application which records people entering an area.

    The idea is to scan badges and save time and the date of that entry.

    This is accomplished with a simple form based on the table of the newspaper.

    In a subregion of the form, I would have an interactive report that shows to all those who have entered sort by date and time entry descendant who visited today is obvious.

    I join the attendant to be able to use the interactive report to be able to select a particular line that could be recovered and placed in the main form to change (a bit like the model of interactive report with a link to a form where updates can be made.)

    I can create the report form and the subregion and that seems to work very well for journal entries, but I don't have a clue as to how I would go on the use of the report for access to update data in the form section.

    I would be eternally grateful if someone could point me in the right direction!

    Is this something that is hard to do in Apex?

    Thank you!

    Mason

    Masong says:

    Is this too much to expect in Apex 5.01?

    I have an application which records people entering an area.

    The idea is to scan badges and save time and the date of that entry.

    This is accomplished with a simple form based on the table of the newspaper.

    In a subregion of the form, I would have an interactive report that shows to all those who have entered sort by date and time entry descendant who visited today is obvious.

    I join the attendant to be able to use the interactive report to be able to select a particular line that could be recovered and placed in the main form to change (a bit like the model of interactive report with a link to a form where updates can be made.)

    I can create the report form and the subregion and that seems to work very well for journal entries, but I don't have a clue as to how I would go on the use of the report for access to update data in the form section.

    I would be eternally grateful if someone could point me in the right direction!

    Is this something that is hard to do in Apex?

    Not at all. Try to use the wizard to create a Page to create a form on a Table with report based on the table of the newspaper (choose Normal for page mode and Interactive for the implementation of the report). When finished, separate report and pages of form will have been generated. Go to the report page and copy the region interactive report on the page of the form. The report page can then be deleted if it is not required.

  • How to use the values in the columns of an interactive report (Apex 5)

    Hello

    I have an interactive report and a link column and I click to set the value of four fields in a subregion with the value of four columns of the report.

    This without submitting the page every time so I think using javascript.

    But what is the right way to do this in 5 Apex?

    How to have a reference to the column of a report (customer.name to the customer or customer.city, for example)?

    Concerning

    Gianpaolo

    Hi gianpagi,

    gianpagi wrote:

    I can't run your code as well, on apex.oracle.com, I have re-product the situation with the emp table and the columns ename, sal and the fields p1_ename, p1_job, p1_sal

    Can you help me.

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:103040501310506:

    https://Apex.Oracle.com/pls/Apex/f?p=102726:LOGIN_DESKTOP:104044067688962:

    user and developer demo/demo (TR1 workspace)

    Check the application now. I've done the column 'Empno' as link and execution of your dynamic action on click on the link.

    Here are the changes:

    • Edited the "Empno" column attributes and perform the following settings in the properties of 'column link:

    Text link: #EMPNO #.

    Link attributes: class = 'empdetails '.

    Target: URL

    URL: javascript:void (0);

    NOTE: The link does nothing but on the onclick for the event of link DA no real logic.

    • Edited the dynamic action 'assign values' and set the following properties:

    Selection type: jQuery Selector

    jQuery Selector: a.empdetails

    Kind regards

    Kiran

  • Remove the download interactive report HTML

    I have interactive reports where the link in the column on a specific column must be dynamic, which means, that it can not be hard coded in the column binding attributes. Here is an example of such a report query:
    case when d.object_type_description ='Business Service' then
    '< href="f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    
    when d.object_type_description = 'Real Time Event' then
    '< href="f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    else 
       null
    end as "OBJECT NAME"
    As see you in the above example, the link in the "Object name" column could be redirect page 183 or on page 162, based on the column "Description of object Type.

    The column 'Object name' attribute has 'Type display"the value"Standard report column. This works perfectly well in the UI of the report. However, if I download the IR data (in any format) since the Actions-> download menu, the object name column values are downloaded with HTML characters such as:
    < href="f?p=15548:183:6072319179284::::P183_OBJECT_ID:255245470513999672860510787772603748464">JP010000</>
    where JP010000 is the name of the object.

    Is there a way I can strip the HTML code of the column values in the downloaded files?

    I use Apex 4.1.

    Rohit,

    You can set the query link, make hidden, use the value in the link URL column. Thus, your query will look like the following:

    d.object_name,
    case when d.object_type_description ='Business Service' then
        'f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id
    when d.object_type_description = 'Real Time Event' then
        'f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id
    else
       null
    end link
    

    Change the display type of the LINK column hidden. In the column link, enter #OBJECT_NAME # as the link text. Select the target URL. Enter #LINK # as the value of the URL. APEX 4.2, you can do this more easily by setting the HTML column Expression.

    Kind regards
    Christina

    Published by: cbcho on 27 Sep 2012 11:35

  • How to export interactive report in an excel file

    Hello
    + I am trying to export interactive report providing the link as the export to Excelat the bottom of the report. +

    Hello

    step 1:-download process type plugin named "excel_plugin". It's process type plugin.
    Step 2:-import the plugin in your shared-> Plugin component application
    Step 3 :-d ' use this plugin adds a new process to a page in your application, based on this plugin
    Usable as a process "on Load - before the header.
    Use a query of Type Condition = Expression 1
    Expression1 = XLS

    step 4:-create a button on your page.
    Action: Redirect to the Page in the number of that application and the page should be your report page.
    Ask: XLS

    I hope this will help you to solve your problem.

    Thank you
    Jitu

Maybe you are looking for

  • Sierra already installed but App Store has not installed

    I installed Sierra a few days ago and I use it. But I found that in the App store page, Sierra still shows message 'Download', as if she is not yet installed. I thought that maybe there is an update, so I installed it again, but he was always showing

  • My 5520 connects to internet via its usb port

    My University didn't allow wireless printers. My thought was to use the photosmart 5520 in wireless mode, connect to the internet via my dorm room ethernet connection using the usb port of 5520's with a usb adapter to ethernet. I'll just use eprint f

  • normal string to hex string

    Hi all This question has probably been asked before, but I can't seem to find a situation that quite matches the issue I am experiencing. I have a table that I flattened as a string of data, reverse order, take the first two elements, reverse the new

  • Lost my operating system XP - need a replacement drive

    The hard drive of my house died. I replaced and started to load the recovery discs for that are the bad discs. My ex had a HP compaq and it must have taken my records with his departure these instead. Needless to say, I can not activate the reload XP

  • popup UI

    Hi, how to create a simple popup UI after you run the VI and have start, exit on her buttons. Thank you