Branch to page on clicking report column

Hi,
I have created patient interactive report, when clicking column of the report say "EDIT" page is redirected to anothe page "PAGE 7" for patient in QUEUE.
Before redirecting that page 7 i want to check "patient is already in queue table or not". as i have created branch, it is branched that page but can not validate it
How can i do this using conditional branch or any other way?
Any help is appreciated.
Thanks.

Hi user,
At the moment, it is likely set up as a simple URL redirect, which won't execute any validations, processes, etc on the current page.
So, if you take a look at the Javascript API: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#CHDBEACA , at the apex.submit.
So, you could change your edit list target to URL, then specify (not tested the below, so you may need to test/modify a bit):
javascript:apex.submit({
  request:"EDIT",
  set:{"Px_PATIENT_ID":#PATIENT_ID#}});Assumes, current row has patient_id in the query, request is EDIT, and that you have a hidden item on the page with respect to the patient id, x is replaced with your page number.
Then, You can create your Validations, Processes, Branches, with the condition the request = Expression 1, and where you would specify request as EDIT. You also have a hidden item on your page that you can use in your validation. You then create your branch to Page 7, again, conditional on having request = EDIT, and set the following values: P7_PATIENT_ID , and setting it to the value of Px_PATIENT_ID.
Well, im sure you get the idea.
Ta,
Trent

Similar Messages

  • Branching on report columns.

    Hi,
    I am trying to branch a report in one page with a report in another page, the branching should occur when a field say version is clicked.
    Now when version is clicked then i will pass the id of the column to another report which should use that id to show only that row with that id.
    Thank you,
    rakesh

    Hi Rakesh,
    Create a page item on your second report ( the report to which you would like to branch ) and use this page item in your query. Say for example that you call this item P2_ID (item type should be static, so non database) and use this item in your query.
    select * from report_table where id = :P2_IDcreate the "first" report and create (one or more) column links on the columns you would like to use to branch to the second report. The report link can be defined under the report region, go to report attributes, edit the column for which you want the link, go to column link and define the link. Set the value of P2_ID in the link to for example #ID# from your first report.
    Now if you click the report link you are send to the second report and the value of P2_ID is set with the value of #ID# from the report row which you've clicked.
    Regards
    Bas

  • How to send values from a "Report Column" instead of a "Page Item" ?

    Hi there,
    Here's my case: Two pages A and B.
    Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.
    I'm a bit lost cause I don't know how to transfer/send this value to the second page.
    Do you have any clue ?
    Thanks again for your time !
    BR
    Ulrich

    Ulrich,
    Maybe I have misunderstood your requirements, from those I assumed that Page 4 was already being populated with a Department ID. So my plan was to look-up the Manager ID via the known Department ID
    Here's my case: Two pages A and B.Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.>
    Have you verified that you have the :P4_DEPARTMENT_ID in session?
    Does your SQL run in SQL Commands when provided a Department ID?
    Have you tried altering when the Computation fires? I recommended to start with After Regions, try some other firing points.
    Jeff

  • Display the second report as modalform and filter with primary key value of first report when you click on first report column link

    Hi All,
    I have two reports.
    1. order report
    2. order detail report
    when you click on the order report column it display the order detail report as a modal form.
    i was done below steps.
    1. In page header i was written the below code
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
    redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $( function() {
    $('#ModalForm1').dialog(
    autoOpen : false ,
    width :470,
    height: 500,
    resize :false,
    function openForm1()
    $('#ModalForm1').dialog('open');
    function closeForm()
    $('#ModalForm1 input[type="text"]').val('');
    $('#ModalForm1').dialog('close');
    </script>
    2. order report.
    3. order detail report
       select * from order_details where order_id = p_order_id;
    region header
    <div id="ModalForm1" title="Ordered Items" style="display:none">
    <p class="msg"></p>
    footer
    </div>
    4. created the hidden item in order detail report.
    5. in order report column attributes i was given link like below.
    javascript:$s('p_order_id','#order_id#');openForm1();
    when i click on the order report column link it passing the row primary key value to hiddent and open the report as modal form. however it is not filter the report with hidden item. it showing the no data found.
    problem is hidden item value is not submitting. once we submit that value it showing the 2nd report with filter data.
    can any help me to achieve above requirement.
    apex: 4.2
    oracle 11g
    Regards,
    Vijay.

    Vijay,
    Issue 1: Your usage of $s() JavaScript API seems to be wrong. For the first parameter, you need to use the name of the hidden page item and not p_order_id.
    javascript:$s('P1_ORDER_ID','#ORDER_ID#');openForm1();
    Issue 2: Seems like you are not setting the hidden page item's value in session state. Assuming your hidden page item is called P1_ORDER_ID, Under "Region Definition" tab of your "Order Detail Report" under "Source" tab, for page items to submit, enter the name of the hidden page item P1_ORDER_ID.
    Thanks!
    JMcG

  • How to set an application item when report column link is clicked?

    I am trying to set the short name of a bread crumb entry when I drill into a detail from an interactive report page.
    The master report has a column link with target = detail - "page in this application"
    I can pass page items through the URL and they are set on the target page.
    How can I set an application item before the target page is called?
    Is there a way to set a process before the link is followed?

    Kenneth,
    I'm not totally sure that I understood the question but, it soounds like you want to set the value of some page items on the page that is opened when you click a link on a column in the master window. Is this right?
    If so, you can achieve what you want by creating hidden page item(s) on the target page. In the master page, on which every column provides the link, go into Report Attributes, click on the link column and scroll down to the section labeled "Column Link" Within this section, set the link text to the current column value, e.g. #MASTER_REPORT_COLUMN_NAME_HERE#. Set the target to "Page in this Application" and pick the page number for the target window.
    Underneath this you will see a section to set set the value for page items. If you click the flashlight, you can search for the hidden page item that you created above. Use the same value to set it as you did the link text, i.e. #MASTER_REPORT_COLUMN_NAME_HERE#. Do this and let APEX take care of passing the values on the URL.
    On the child page, just set whatever control you want to dynamically pick up the value from the hidden field. For example, if you hidden field where named P4_CLEARER_NAME. You could set the title attribute to "Contact Information for &P4_CLEARER_NAME."
    You need the preceeding "&" and terminating "." around the name of you hidden page item to do this.
    -Joe

  • How to order a varchar2-field by click on a report column?

    Hello,
    I have a report an a table. One varchar2-column (name of the column is VORGANGSKENNUNG) in this table stores data in this format:
    xxx/yyyy where
    xxx is a ID from 1 until e.g. 140 and
    yyyy is the year (2007, 2006, 2005...).
    The first entry in a year starts with 1. So the last entries could be:
    3/2007
    2/2007
    1/2007
    140/2006
    139/2006
    I a query I can sort this field like this:
    order by
    to_number(substr(VORGANGSKENNUNG,-4)) desc,
    to_number(substr(VORGANGSKENNUNG,1,instr(VORGANGSKENNUNG,'/')-1)) desc;
    With this query I can sort the report descent.
    But the users want to sort this field by click on the column header descending or ascending.
    How can I do this?
    Regards,
    Mark

    Hi Mark,
    One way may be to modify the region template, add an onclick event to the header, write an own javascript function that's creating the order statement and at the end, write this order statement back to an application or page item. At the end of the function I would do a submit, that refreshs the page.
    Your report query must be modified, that it is picking up the order statement from the application / page item. So I use something like this.
    DECLARE
    str_express varchar(2000);
    str_order varchar(2000);
    BEGIN
    str_express := 'SELECT col1, col2, col3
    FROM my_tabl ';
    str_order := :P230_ORDER;
    str_express := str_express || ' ' || str_order;
    RETURN str_express;
    END;
    Hope this helps,
    chrissy

  • Examples of chart in the report column like monitor activity page

    Hello,
    Can anybody help me how to create a report having chart as one of the column in the report like Administration->Monitory Activity pages.
    I have a report having columns like date, salesman, collection%.
    The collection% must be displayed as bar chart showing % in the report column itself.
    I searched a lot and end up with no examples found for this kind of example.
    Any help will be appreciated.
    Thanks,

    First of all, it appears that there is no "HTML EXPRESSION" or an area to assign a CSS class to a column for interactive reports. I've even tried to use "COMPUTE" on an interactive report to introduce the <DIV> tabs and style, but that doesn't seem to work either. So If you're using an interactive report, it looks like you're out of luck.
    But if you use a standard report, here is a quick example using the standard Demo tables on an interactive report. I'll do my best to describe what I'm doing step by step.
    The query I'm using is a simple list of employees that shows the following columns:
    <ul>
    <li> EMPNO
    <li> ENAME
    <li> JOB
    <li> SAL
    <li> COMM
    <li> COMM / (SAL + COMM) *100 (What percent of total Salary is the employees Commission)
    </ul>
    So here is the SQL statement I'm going to use:
    select empno, ename, job, sal, comm, round(nvl((comm / (sal + comm) *100),0)) Pct_Comm
    from empNow, Create an standard (SQL) report on the page of your choice by selecting the CREATE button at the top of the page editor. Select "REGION ON THIS PAGE" => "REPORT" => "SQL REPORT"
    Enter a the TITLE and TEMPLATE of your choice, then click the NEXT button.
    Copy and paste the select statement above into the page region for the select statement, and press the CREATE REGION button.
    Go ahead and run the report and you will see a whole number for the COMM_PCT.
    Now to turn this into a graph within the column perform the following steps.
    <ol>
    <li>Edit the page and then edit the report by clicking on the "Report" link on the page definition. This will bring up the Report Attributes Page.
    <li>Edit the PCT_COMM column by clicking on the EDIT icon at the beginning of the row.
    <li>Cut and paste the html from my above post into the "HTML EXPRESSION" field.
    <li>Edit the HTML you just pasted to remove any unnecessary spaces in the tags that might cause it to render incorrectly.
    <li>In the HTML EXPRESSION string, replace the #COLLECTION_PCT# string with #PCT_COMM#. (This is a substitution variable that represents the value of that column. We're using that to set the WIDTH attribute of the bar).
    <li>Apply your changes and re-run the report.
    </ol>
    et. Voi la! You have a graph in your report.
    Hope that was clear enough.
    Doug

  • Setting items and branching to a different app via a report column link

    Hi,
    I'm figuring out how to branch to another application by using a URL redirect and contructing the target URL with items and item values to pass to the target app. So far, so good. But I'm now trying to branch to another app via a column link from a report form (I had previously branched to a page within the same app, but that page should really be another app, callable from several sources). Before, I had also set several items (in the calling app). Now, when I choose to re-direct to a URL, rather than a page in the current application, the item and value setting boxes get disabled. Is there a way to also set current page items (that are not being passed to the target app) at the time the link is redirected?
    Frank

    Frank,
    It's easy. Just type in the relative f?p URL along with the item names/item values, e.g., to redirect to app 200 page 20 from your app's page 1 passing P1_ITEMA and P1_ITEMB into similarly named items on page 20 type in:
    f?p=200:20:&APP_SESSION.::NO::P20_ITEMA,P20_ITEMB:&P1_ITEMA,&P1_ITEMB.
    Note that redirecting to another application may require the user to authenticate to that application. If that is your intent there is no need to include &APP_SESSION. in the link.
    Scott

  • Reference report column from another page?

    I have a work order report with column link. Upon clicking link, control goes from page 2 to page 3 where I want to show details about components in work order. How do I reference the work order ID (report column on page2) from the query in page 3? I know I can reference page items, but how do you do you pass a value of a report column on the previous page?
    Thanks.
    Paul

    Hi Paul,
    Typically I would create an Item on the page being called (Page 3 in your case) to receive a value being passed via your Link; this item could be hidden or read-only. You might want to name yours; P3_WORK_ORDER_ID or something to reflect the Primary Key (PK) of your Work Order.
    On the Link Column on Page 2; I assume that your Target Page is 3.
    Down in the Link Column section under Name and Value ;
    Name might read P3_WORK_ORDER_ID
    Value might read *#WORK_ORDER_ID* this would reference the work order id column on the Page 2 report.
    Now on your Page 3 report; your SQL would need within its Where clause something like this:
    my_table.work_order_id = :P3_WORK_ORDER_ID
    Jeff

  • Passing parameter from interactive report column link to new page

    I'm very simply trying to pass the value of the column link to the where clause on the next page.
    Interactive Report on P2 has column link fid alias in sql query.
    I read somewhere to refer prefix the interactive report column with IR ??
    So I have item name P2_FID, value #FID#. Anyway, I've tried a kazillion things.
    Created a hidden item with same source value... sigh.
    Is there a syntax to refer to a report column link, rather than an item_id in a region where clause?
    Is there a simple direct way to do this?
    Thanks,
    Pamela
    -----pls/apex/f?p=163:1:2746459963336955::NO::P2_FID:119

    Thank you Varad...
    Unfortunately, I am still getting no data found. (and there IS data).
    a) Do you mean in the link column section of the report attributes? that is done: item 1 name= IR_P2_FID, value = #FID#
    b) Do you mean my changing my hidden page item to ir_p2_fid with its source value as #FID# ? also done.
    Do I need this hidden item?, and if not how do I refer to link in the where clause of the called page's sql region?
    3) Where Fishery_id = :IR_P2_FID
    Where Fishery_id = &IR_P2_FID
    Thanks again!
    Pamela

  • How to Print the Report Column headers on each page of any report

    Can someone offer assistance on how I can go about achieving the ability to show and print the Report Column headers on each page of any report using the Print Attributes of APEX 3.0? These reports will be printed using Excel and Word.
    I read a thread with a similar request but the answer seems vague for my level of understanding.
    I am connected to a print server and using BI Publisher.
    Thanks,
    Ric

    Hello Ric,
    >> These reports will be printed using Excel and Word.
    I'm not sure I understand what you are trying to do. You are using a very powerful tool – BI Publisher – why do you need Excel or Word for printing? Is there a special need only Excel or Word can provide?
    One of the major advantages of using BI Publisher is that it's taking care of all these tedious tasks like reasonable page breaking, headers and footers, and also table headers.
    Regards,
    Arie.

  • Sorting the report by clicking the column header

    Hello,
    Currently working on a requirement where i need to sort the report by clicking the column header. Can anyone please help me on this.
    Suppose i have 3 colums deptno,dname,sal fields in my report. if i click deptno column header,  report has to sort by deptno.Like that i need for other columns also.
    Any help is really appreciated
    Thanks
    Ram

    Hello,
    You can sort the fields using method suggested by Cauvery. However if you would like to have Ascending/ Descending sort order control at column header, then would require to implement few additional steps.
    First do the sorting of field using the way suggested by Cauvery. Once sorting is done, right  click on the column name and  select the option ' Bind Sort Control'. You will see the sorted field in the window. select the field and click ok.
    Now you would get 2 arrows on column. If you click upper arrow, fields would be sorted in Ascending Order and if you click on down arrow, it would  be in Descending order.
    Regards,
    Chinmay Athavale

  • Apex 4.1 Grid branching two pages from a field

    Apex 4.1,how create two branches inside the GRID
    Hello,
    I'm using Apex 4.1, as per the functionality, I need to use interactive report to "SEARCH records", the same will be shown in the GRID. GRID should look like as below,
    | Col 1 | Col 2 | Col 3 |Col 4| Col 5 |
    |Bradley, Eugene|Schoephoester Road|Windsor Locks|CT |<Details> <Confirmation>|
    However there is one requirement, as the last column should have two different branch pages, under Column 5,as below,
    1. Details
    2. Confirmation
    Please guide me on this, as how to achieve this task.
    Thanks,
    Girish

    Hi,
    As I got, you want to link two column into two different pages:
    edit your page
    edit the report region
    at the top of the page, click report attribute
    click edit on the column that you would like to add a link to.
    go to Column Link
    and fill the data that you would like ...
    However, check this :
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_rpt.htm#BABEAFDA
    When I clicked reply, there was not any reply
    Regards,
    FAteh
    Edited by: Fateh on Mar 6, 2012 11:23 PM

  • Interactive report column filters to display differently than column values

    Greetings...
    We use images a lot in our interactive reports to provide a visual representation to a status, or something locked for update, or what-have-you. By default, when a user clicks the column heading of a column which contains images, the drop-down list that shows up displays the actual images, which is nice for the user to identify exactly which thing they want to filter on. The problem is when the user selects on of the options in the filtering drop-down, the resulting condition that is displayed under the interactive report search bar is the HTML code of the image. I'd like something else to display there because showing the user the HTML code is atrocious.
    I didn't think what I want is possible, but then I came across the Page Locks page within ApEx (page 4000:291 in ApEx 4.0.1) which displays a list of all the pages of an application and whether they are locked or not. It also allows you to bulk lock or bulk unlock a bunch of pages. That page uses an interactive report with a column called "Status" which contains images that represent whether the page is locked or not. When you click the "Status" column heading to filter, instead of seeing the images of an open and closed lock, you see the words "Page Locked" and "Page Unlocked." And even better... when you select on of them, the condition that is displayed to the user is very user-friendly.
    Can someone tell me how this is done so I can replicate it in my own apps?
    Shane.

    Why not create the IR using the text you require e.g. 'Lock', 'Unlock' and then use JQuery to replace the text in the report with the image you want. All the filters should then show the plain text and the report will display the image. e.g.
    http://apex.oracle.com/pls/apex/f?p=46801:1
    Here's what I did:
    Firstly make sure the IR has a region template.
    Then create a Dynamic Action with the following attributes:
    1. Advanced
    2. Event: After Refresh
    3. Selection Type: Region
    4. Region: [select the IR Region]
    5. Action: Execute JS Code
    6. Fire on page load: [checked]
    7. Code:
    $('td [headers="TEST"]').each(function(index) {
      if ($(this).text() == 'Lock') {
        $(this).empty().html('<img src="/i/htmldb/icons/locked_small.gif" alt="Lock" />');
      else {
        $(this).empty().html('<img src="/i/htmldb/icons/unlocked_small.gif" alt="Unlock" />');
    });Where TEST is the column name.
    That's it, this may also be of interest:
    http://simonhunt.blogspot.com/2011/10/adjusting-interactive-report-column.html
    I hope it helps
    Shunt

  • Not able to open Modal Page through a report attribute link

    Dear All,
         Not able to open Modal Page through a report attribute link, kindly help me...
      I am using skill builders modal page plugin ...
    Thanks and Regards,
    Madonna

    Here's what you have to do.
    You set up your column link like this:
    Link text: whatever you like
    Link attributes: onclick="return false;" class="open_modal"
    Target: Page in this application
    Page: number of the page you want to open in your modal window
    You set up your dynamic action like this:
    Event: Click
    Selection type: jQuery selector
    jQuery selector: .open_modal
    (notice the dot at the beginning!)
    Action: SkillBuilders Modal Page (2.0.0) [Plug-in]
    Event Scope: Dynamic
    And finally, in your True Action (SkillBuilders Modal Page (2.0.0)), URL Location should be set as Attribute of Triggering Element.
    And that's pretty much all it takes.
    Hope this helps.

Maybe you are looking for

  • How do I change the default certificate in Java Web Console?

    I have a 3rd party issued server keystore & truststore ready to go in both jks and p12 file formats. I wish to use this in the Sun Java Web Console instead of the self signed certificate. I cannot find any documentation as to changing the certificate

  • Win 7 64 on Bootcamp... Mac/Win Display Woes

    Hi all, I'm running Win 7 64-bit using current Bootcamp drivers on a Mac Pro with dual 2.93 quad-cores and 16 GB RAM. Bootcamp/Win 7 seems to run fine except that frequently when I boot to the desktop the displays aren't correct - I only get 2 of the

  • Is LiveCycle the product for me?

    Afternoon Hope everybody is well My organisation is currently rolling out SAP business by design however is beginning to struggle with data input and amendments to SKU's (Products, cost, retails, etc). At present done through a spreadsheet and keyed

  • Time Machine in a loop

    Out of the blue, I got this error message yesterday: Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you. Click Start New Backup to create a new backup. This will remove your ex

  • Is there any BAPI to rlease the Maintenace order

    Hi experts, i want to do BDC for IW31 tcode. i wnat to set the user status for this i am using STATUS_CHANGE_EXTERN FUNCTION MODULle . but as manually once i release the order only i can set teh user status. here i am using function  module, my Funct