Redirect to different pages based on the value of linked report table

Hello

I wanted to navigate to different pages of a report link based on a value from the table on which the report is based. I was able to link to a particular page without any problem.

But I wanted to link to different pages depending on the value in the table. Please let me how can know I do this?

Thank you

Kaminey wrote:
I use Apex 4.2 and my report is a classic.

If I click on empID in a classic report, now it redirects to page 1. Now what I want to do, if I click empID, if his role as MANAGER he should redirect to page 2 and fill out the form on the page with the details of the employee. The role of the employee is ANALYST should redirect to page 3 and fill in the form on the page with its details

This approach makes maximum use of the APEX has standard and minimizes the extra programming.

1. If it is not already included as a displayed value, include the role column giving the value of MANAGER/ANALYST as a hidden column in the report.

2. create the link in the column on the EmpID column, with the target of the link on the same page as the report and ask the role column value (for example #ROLE #).

3. on the page of the report, create a On Load: front branch to page 2, with an request = Expression 1 condition with 1 Expression defined for the MANAGER.

4. on the report page, create a On Load: front branch to page 3, with a Request = Expression 1 Expression 1 ANALYSTvalue condition.

Tags: Database

Similar Questions

  • Redirect to 3 different pages based on the value of the Auto complete field.

    Hi friends,

    I use a "Auto complete field" in a page for research (Apex version 4.0). But I need to get the values of the 3 tables and when you click on the redirection of the value to one of the 3 pages based on the value.

    For example, I have 3 tables. 1 customer 2 Sites 3.Employees. When I enter "c" in the search field, I need to get values of 3 tables in this area "AutoComplete". That is to say, if I have a customer with the name "cusotmer1", "customer2" and the location with the names of "cisc1", "cisc2" and employees with the name "cid1", "cid2"; When I enter "c" in the FQDN of the auto all 6 values must be given in the "AutoComplete" box and clicking on "customer1" / "customer2" need to redirect to the 'customer' page When you click on 'cisc1' / 'cisc2' redirect to 'site' when clicking on "cid1" / "cid2" redirect to the page of the employees. Is there a way to do this. Help, please.


    Kind regards
    NAV

    Net asset value,
    Here is a sample page that uses the code I proposed works fine for me with FF and IE (8.0).

    http://Apex.Oracle.com/pls/Apex/f?p=18:3

    Note: I've added a warning message before being submitted

    This page works by your side?

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • Apex 5 schedule: different color based on the value of data field

    Dear Experts,

    I need to have a different color for each record on the calendar based on the value of the data field (eg. category).

    How can I achieve this?

    Thank you!

    See: -.

    You don't have to wait for APEX 5 integration FullCalendar ~ Blog of Doug Gault...

  • Prevent the print page based on the value of the field

    Hello. Is it possible to prevent certain pages to print based on the value of a field in the form?

    Similarly, is it possible to prevent certain pages according to a field value?

    I'm not a JS coder accomplished.

    Windows XP

    LiveCycle Designer ES2

    Thanks in advance

    Gary, NJ

    Hello

    I doubt that your condition if works or not. You can try with the couple of things:

    (1) write the same code in the Textfield output event instead of the current enter event.

    (2) check if the if condition works for value "xyz" or not by means of simple alert.

    If (topmostSubform.Page1.TextField1.rawValue == "xyz") {}
    Page2.presence = 'hidden ';

    App.Alert ("State of the hidden page"); just for testing purposes... Remove it at a later time
    }
    else {}
    Page2.presence = "visible";

    App.Alert ("visible condition to page");
    }

    This will help you know whether or not this condition actually works.

    'Hidden' will do a page hidden as well as it will not print it.

    Hope it should work for you.

    KC

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Appeal of pages based on the value of list of choices

    Hello
    I use jdev11.1.2.1.0


    I created the page with a list of simple choices and 3 buttons.

    in the list of choices, all selected items are static only. I created 3 items selected in the list of choices.

    and I created 9 jsff fragments.

    Now these 9 jsff called regions in the page when I select the value of list of choices and button.

    How can I achieve this?



    Thank you..

    try to set a value for variable1 in the constructor.

  • OBIEE reporting requiremnt:Display image based on the value of result report

    Hello


    I have an OBIEE reporting requirement, the report displays the result out of 10 based on a value selected in the command prompt dimension, what I want is if the score is less than 5, the image of warning should appear right in the report score with a sufficient distance and if the score is greater than 5, I want a right image tick.

    It will be a great help if someone will give me the solution as soon as possible, because I have a very urgent need.


    Thanks in advance.

    It took 3 clicks to hide the structure of the table...

    For the "how to return an image of the formula in the column" it's just the data format of the column that should be set to the URL of the Image and your column value must be the URL of the image. If you add a formula as CASE WHEN your_condition THEN 'http://.../picture1.jpg' WHEN your_condition_2 THEN 'http://.../picture2.jpg' END

  • Selective display of a report based on the value of a Variable of presentation

    Hello

    Is it possible to selectively display a report on a dashboard page based on the value of a variable presentation.

    I have 5 reports that are part of the same page that has a page with 5 options-level prompt.

    According to the option selected in the command prompt that the value is stored in a variable of the presentation, I need only 4 reports to view at any time (ie 1 report should NOT be directed).

    Example: -.

    When Option 1 is selected 1,2,3,4 reports must be posted
    When Option 2 is selected 2,3,4,5 reports must be posted


    Thanks in advance

    Hello

    Search this Guided Navigation forum. In this way, you can hide a section on your dashboard based on the results of a report that is "hidden".

    Good luck

    Daan Bakboord

  • Link conditional branching to two different pages, based on another column

    Hello

    I have a sql report in which 1 column is a link. I want to link to two different pages depending on the value of another column.

    Example of

    the sql is

    Select a, b, c
    x;

    The link on column b must create a branch to the 500 page if c = 1 and on page 501 if c = 2.
    Is it possible to do? Thank you.

    Suni

    Can assign you points then accordingly...

    Thank you

    Tony Miller
    Webster, TX

  • Web page open based on the value of the text field

    I want to open a web page that is based on the value of a text field.  How to bind the value of a text field to a command which will open the web page?

    For example, the value of the text field is: 8 t - EXT

    and the web page I want to open when you press a button is: http://hqms/doc.asp?dn=8T-EXT

    As you can see that the 8 t - EXT is something that a person enters the form and is what is needed to open the web page.  The other text in the link of the webpage is always the same.

    Thank you

    Hello

    In the click event of the button, place the following JavaScript code:

    if (TextField1.rawValue !== null) {
         var vURL = "http://hqms/doc.asp?dn=" + TextField1.rawValue;
         app.launchURL(vURL, true);
    }
    else {
         app.alert("Dear user, please put a code in the text field. Thank you!");
    }
    

    You need to change the object references based on your shape.

    Niall

  • Redirecting to the page based on the domain name

    I have a domain main site it www.tesseract.co.uk with another domain www.tesseractusa.com pointing to it.
    I would like the '.com' to have specific pages we visitors. I'm looking for a way to redirect to a specific page based on the domain name.

    Hope you can give some advice.

    Thank you
    Richard

    Dave,
    Awesome, works perfectly!

    First post you was right! I've slightly modified your script:

    <%@LANGUAGE="VBSCRIPT"%>
    < %="">< br="">sname = Request.ServerVariables("SERVER_NAME")% < br=""> sname = ucase (sname) < br=""> if InStr (sname, "WWW.TESSERACTUSA.COM") <> 0 THEN< br="" >="">
    End If< br="" >="" %="">

    I really, really appreciate help you.
    Thank you
    Richard

  • Display text different box color based on the value of the element

    Hello
    Someone knows how to change a color of text box is based on the value of the element?
    for example. If the element has the value = 0, display framed in red, or white.
    Is this possible?

    Thank you

    Opps above was a bad code...

    Assume that the element that will have a value of 0 is P1_ABC then use the code below

    if( $v('P1_ABC') == '0')
          $x('P1_ABC').style.backgroundColor='red';
    else
          $x('P1_ABC').style.backgroundColor='white';
    

    Kind regards
    Shijesh

  • Redirect to different URLS depending on the entry in the database.

    I have a login page that I want to redirect my mysql database to the user based on the value in my "Auth" category.  I'm trying to figure out how to get the login to redirect if he sees the 'HE' in the 'Auth' that he goes to indexil.php, "IA" goes to indexia.php and I also FL and NV to redirect to their corresponding pages.  Hoping someone can help me with that.  Here's the code that Dreamweaver created.

    Login page

    <? php require_once('.. / Connections/Users.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    ? >

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['username'])) {}

    $loginUsername = $_POST ['username'];

    $password = $_POST ["password"];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "... / Members / ';"

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_Users, $Users);

    $LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $Users) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div align = "center" >

    < p > < / p >

    < p > < span class = "largebold" > forms connection </span > < / p >

    < name of the form = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"

    < p > user name:

    < name of entry = "username" type = "text" id = "username" >

    < /p >

    < p > password:

    < name of entry = "password" type = "password" id = "password" >

    < /p >

    < p >

    < input type = "submit" name = "Submit" value = "Login" >

    < /p >

    < / make >

    < p >

    <!--right end-->

    < /p >

    < / div >

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    index page

    <? PHP include ('inc_auth.php')? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div id = "left" >

    <? PHP include ('inc_formselector.php')? >

    < / div > <! - end left - >

    <!--right end-->

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    inc_auth page


    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = "";

    $MM_donotCheckaccess = "true";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.

    So, we know that a user is NOT logged if this Session variable is empty.

    If (! empty ($UserName)) {}

    In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.

    Analyze the channels in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    If (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

    }

    Or, you can restrict access to only certain users based on their user name.

    If (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

    }

    If (($strUsers == "") & & true) {}

    $isValid = true;

    }

    }

    return $isValid;

    }

    $MM_restrictGoTo = 'login.php ';

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset ($QUERY_STRING) & & strlen ($QUERY_STRING) > 0)

    $MM_referrer. = « ? ». $QUERY_STRING;

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    }

    ? >

    I hope this is all to help me on this.  I worked on this NCB for a few weeks now.  I can't get one of the 4 redirects to work.   Thanks in advance

    It works very well.

    What it does is to select 'Auth' from the 'users' table that corresponds to the "Username" and "Password" and assigns the name of the page (indexil.php) that must be inserted into the database field 'Auth' to a variable named $Auth

    Connect to the database server

    mysql_connect ("xxxxxxx", "xxxxx", "xxxxxxx") or die (mysql_error ());

    Select database

    @mysql_select_db ("XXXXXXXXXXX") or die (mysql_error ());

    Select the url

    $strSQL = "SELECT authentication OF USERS WHERE Uname = '$loginUsername' AND Pword ="$password "";

    $rs = mysql_query ($strSQL);

    While ($row = {mysql_fetch_array ($rs))}

    $Auth = $row ["Auth"];

    Header ("Location:".) $Auth);

  • Change the type of region based on the value of the element

    Hi all
    Is it possible to change a type of model of a region based on the value of the page element?
    For example, if I have a template type for the area has as the type of model and the region to hide/show for area B as hide/show as well.

    I want that type of region B model will be replaced by a type of custom template based on the value of an element in A region.
    Is this possible?

    Enjoy your entries.

    Thank you!

    Spriya wrote:
    Hi all
    Is it possible to change a type of model of a region based on the value of the page element?
    For example, if I have a template type for the area has as the type of model and the region to hide/show for area B as hide/show as well.

    I want that type of region B model will be replaced by a type of custom template based on the value of an element in A region.
    Is this possible?

    N ° you either need to have 2 instances of region B, based on different models and make one of them conditionally based on the value of the area A; or to develop a unique model with a structure that is flexible enough to be used in both cases and change its appearance and behavior, for example, Exchange classes in dynamic Action.

Maybe you are looking for

  • Bad operating system when I have lots of system restore

    I bought a laptop HP dv6 pavijion of time Costcosome.  It came with windows 7.1 installed. After a failed Upgrade to windows 10 computer could not start.  After trying several methods to make it work, I gave up and made a full system restore. After t

  • Satellite 100-112 is twofold (latin/Hebrew) or letters Hebrew just?

    Is could someone please tell me wheter the Hebrew keyboard for Toshiba Satellite 100-112 is double (latin/Hebrew) or letters Hebrew just?

  • Pavilion a1560N

    Can someone tell me what is on the CD I made the recovery. I did not have an original game CD for Windows XP, but need to restore the config sys file. Could not get a C safe mode prompt. I have run "Recovery Console" safe mode and hope for a Windows

  • Z5 Compact - using the HDR SNA selection

    Hello Would I be able to select the YVERT option when I change the resolution of the camera to 23MP? The guide book suggests I should be, but I can't. Sony support back me to zero/update s/w on my phone, what I did, but it's still not available. I ha

  • Unable to send Emails to Hotmail address

    Using Windows Mail (Windows Vista OS) when sending E-mails to friends with Hotmail accounts, windows mail successfully sending the E-mail (no error code), but the Email is never received to the Hotmail address,