How to redirect to a different page after logging into APEX 4.1

Dear all,
Here is my requirement when the connection of users,.

When they entered their username and password and press the login button.
they redirect to different pages depending on the type of user.
Here's my LOGIN_TABLE has 3 columns, more
1 user name
2 password
3. type.
The TYPE has 2 values, employee and admin.
When the type is admin they should be redirected to page 2,
reaining IE users used must be redirected to page 3.
How can I do this? Please give some suggestions.

Thank you.

Kind regards

Gurujothi

Check it out. Guru user lands on Page 1, other land users to Page 2.

Here's how it was done.

a. the CustomAuthentication function returns a Boolean, but does not store the username anywhere. So I changed it.
b. has created a named FUSER element of the Application (you can change the name and code as you wish).
c. change the CustomAuthentication function to include the following line just before the return statement

APEX_UTIL.SET_SESSION_STATE('FUSER',upper(p_username));

So now the user name is stored and used in the session state.
d. added the branch on Page 1, Onload before header that has Page 2 as its target.
e. does the conditional branch using the lettering element FUSER. The condition is FUSER <> 'GURU', so that other users are directed to the Page 2.

Kind regards

Tags: Database

Similar Questions

  • Redirect to a different page after the delete operation in the shape of APEX

    Hello guys,.

    I have a problem with the redirection to another page after a deletion of form data. Here's the scenario. I have a parent page and a model page to change the contents of the data source. Delete the operation works quite well. but once it deletes and it is up to the parent page. I want that redirect to a completely different page. Is there a way that can be used here? I tested the process of branching, it redirects the page, however, it does not remove the record from the table in this case.

    I tested the process of branching, it redirects the page, however, it does not remove the record from the table in this case.

    It should work. Check the properties of the branch. 'Point' should be after treatment when you press the button Delete:

    I forgot to say about it:

    > but once it deletes it and it is up to the parent page

    Remove the dynamic action of dialog closed, or make it conditionally.

  • Printer Envy 5660: How can I have a different destination after a scan

    How can I have a different destination after a scan so profile Windows my wife she will have to go to its documents and on my profile do go to my own documents

    Hi @drmarcLB,

    Welcome to the Forums of HP Support!

    I understand that you need help save the scans on different destinations on your HP Envy 5660 printer. I'd be happy to help you with this.

    Here is a document that I recommend that you try, HP printers - Scan using Full Feature HP Software (Windows 7).

    For example:

  • Redirect to the original page after login

    Hello, I'm new in the Fusion of the ADF, I'm trying to get my program to do the redirection, submitted by the user, after logging, page example: otherwise

    the user is connected to the session, and someone is trying to access a path in the browser (... faces/protected/admin/page.js) JAAS (Yes, I use JAAS, JAAS not ADF security, so I tried that before JAA redirect to the login screen, he kept the URL TO which the user has tried to do that when connecting the user to the system, it redirected to this page) not a standard page...

    I tried to recover using this url PhaseListener, filter using the filter applications (/ *) and using the < f: event > someone at - it suggestions?

    OBS: authorization and authentication with JAAS is ok, I wanted to just implement this dynamic redirect

    I create the hidden entrance and a button to test the parameter:

    public class test {}

    @ManagedProperty(value="#{param.from")

    private String

    I don't know if the injection with @ManagedProperty will work.

    So, first make sure that hidden field a correct value (you can check this in the source of the page, or you can add a component any visible...)

    If this value is correct, you can try to evaluate EL inside your connection method with:

    public static String evalAsString(String p_expression){
        FacesContext context = FacesContext.getCurrentInstance();
        ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
        ELContext elContext = context.getELContext();
        ValueExpression vex = expressionFactory.createValueExpression(elContext, p_expression, String.class);
        String result = (String) vex.getValue(elContext);
        return result;
    }
    
    and then:
    String from = evalAsString("#{param.from}");
    

    Dario

  • Redirect to the same page after submitting a form

    I use a landing page form Eloqua to drive online capture at all our shows. Right now, I have been creating pages for individual destination and forms for each of them... which isn't an ideal situation. I also started using query parameters, so I have a default form that will capture a unique campaign for each show ID. It is, I can't figure out how to redirect the submission form!

    Example:

    testing.Eloqua.com/tradeshowleadform?source=CAMPAIGNID123

    On form submission, the source meets the fact that he was from CAMPAIGNID123 and puts it in the system. But I can't get back to this exact URL for redirection! I get to go back to ' testing.eloqua.com/tradeshowleadform"...but I need to the query parameter in order to capture the right campaign."

    Anyone has an idea on how to do it? My one idea was to enter the FULL URL in a field called (returnURL), but don't know how to do this since the request parameters are only for everything after the question mark.

    Any help would be greatly appreciated.

    Thank you!

    -Jon

    Try campaignid1.  If this does not work, you can find the HTML for the merger of field by inserting it into an email or landing page and showing the source code.

  • How to give names to different pages of my Web site publishing?

    Hi, soon I will have done make my website in Dreamweaver and I will be buying a domain name. Once I got it I more or less know how to publish, but I'm not sure about some parts of this process. My site will have something like 5 or so different pages - so, so, so I want a homepage: mywebsite.com then lets say, I want a contact us page so I think web address should look like: mywebsite.com/contact and so on for the other pages I have on this subject...

    My question is exactly how this process works? Can I give these page names distinct in Dreamweaver or is - this is something I need to do when buying a domain?

    Some information on this would really help me.

    Thank you

    PykaDesigns wrote:

    My question is exactly how this process works? Can I give these page names distinct in Dreamweaver or is - this is something I need to do when buying a domain?

    Thank you

    You create separate pages in DW and to give them your names.  These pages are then placed on your first page, a link so that people can navigate your site using the links you provide on the first page.

    Did you follow David Power's tutorial on creating a Web site yet?  If this isn't the case, it's a good idea to do so.

    http://www.Adobe.com/devnet/Dreamweaver/articles/first_website_pt1.html>

    This is a tutorial of six episodes and learn almost everything you need to start.

    Good luck.

  • On a w form Validation, how to redirect to a custom page

    Hello. I created a form in Dreamweaver CS5 that uses validating spry successfully. Once the form is submitted, the user is redirected to the home page. But I don't want this redirect.

    My question is, how can I have validated page redirect to a custom thank you page I designed? I do not know the code syntax / exact to write to do what I want and, even if I had the code, I don't know exactly where it should be placed. Please help if you can. Here is the source code. (Redirect) BTW, when I use Dreamweaver behaviors to add a URL, it ignores the required validation and allows you simply click the button submit and redirect.) Thank you very much!

    <! DOCTYPE HTML >

    < html >

    < head >

    < meta charset = "UTF-8" >

    "" < link href = "... / _css/main.css ' rel ="stylesheet"media ="screen, projection">

    "" < link href = "... / forms.css/_css" rel = "stylesheet" media = "screen, projection" >

    < title > < / title >

    <!-[if lt IE 9] >

    " < script src =" http://ie7-js.googlecode.com/svn/version/2.1 (beta4) / IE9.js "> < / script > <! [endif]-->

    "" < script src = "... / SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script >

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

    < script type = "text/javascript" >

    <!-* I think that the line of code for redirection is here? ... I don't know how to write code to redirect to the page I want to *->

    function MM_goToURL() {//v3.0

    var i, args is MM_goToURL.arguments; document. MM_returnValue = false;

    for (i = 0; i <(args.length-1); I += 2) eval(args[i]+".location='"+args[i+1]+"'");

    }

    < /script >

    < / head >

    < body >

    < header id = "pageHeader" >

    "< a href ="... / index.htm "" > < img src = ""... / _images/logo.gif "width ="170"height ="91"alt ="Logo of HMN"id ="logo"> < /a >"

    "" < img src = "... / _images/tagline.png" width = "296" height = "92" alt = "Slogan HMN' id 'slogan' = >

    < / header >

    < nav id = 'mainNav' >

    < ul >

    "< li > < a href ="... / index.htm "> home < /a > < /li >"

    "< li > < a href ="... / press.htm "> news < /a > < /li >"

    "< li > < a href ="... / about.htm "> on < /a > < /li >"

    "< li > < a href ="... / contact.htm "> Contact < /a > < /li >"

    < /ul >

    < / nav >

    < br class = 'clear' >

    < div class = "headerContact" >

    < / div >

    < section >

    <!-the webformmailer.php file is located on the web at godaddy.com where server issues->

    < section id = "Request" >

    < id p = "intro" > ask your link to download < span id = "highlight" > </span > media Kit, please provide the following information: < /p >

    "< name of the form = 'Request' method ="post"action ="... /... / webformmailer.php "> < id p ="formCaption"> the fields marked with * are required." < /p >

    < p > < span id = "sprytextfield1" >

    < label for = "FirstName" > name: * < / label >

    < input type = "text" name = "FirstName" id = "name" >

    < span class = "textfieldRequiredMsg" > (required) </span > < / span > < / p >

    < p > < span id = "sprytextfield2" >

    < label for 'name' = > name: * < / label >

    < input type = "text" name = "name" id = "name" >

    < span class = "textfieldRequiredMsg" > (required) </span > < / span > < / p >

    < p > < span id = "sprytextfield3" >

    < label for 'society' = > company: * < / label >

    < input type = "text" name = "company" id = "company" >

    < span class = "textfieldRequiredMsg" > (required) </span > < / span > < / p >

    < p >

    < label for = "address" > address: < / label >

    < input type = "text" name = "address" id = "address" >

    < /p >

    < p >

    < label for = "address_2" > address 2: < / label >

    < input type = "text" name = "address_2" id = "address_2" >

    < /p >

    < p >

    City of < label for 'city' = >: < / label >

    < input type = "text" name = "City" id = 'city' >

    < /p >

    < p >

    State of < label for 'State' = >: < / label >

    < input type = "text" name = 'State' id 'State' = >

    < /p >

    < p >

    < label for "zip" = > Zip: < / label >

    < input type = "text" name = "zip" id = "zip" >

    < /p >

    < p > < span id = "sprytextfield4" >

    < label for = "email" > Email: * < / label >

    < input type = "text" name = "email" id = "email" >

    < span class = "textfieldRequiredMsg" > (required) </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < / p >

    < p >

    < input name = "submit" type = "image" id = "submit" onClick = "MM_goToURL ('parent', 'media_kit_download.htm'); return document. MM_returnValue"src ="... / _images/btn_submit.png ">"

    < /p >

    < p > < / p >

    < / make >

    < p >

    < /p >

    < / div >

    < / div >

    < / section >

    < / item >

    < script type = "text/javascript" >

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1", "none", {validateOn:["blur"]});})

    var sprytextfield2 = new Spry.Widget.ValidationTextField ("sprytextfield2", "none", {validateOn:["blur"]});})

    var sprytextfield3 = new Spry.Widget.ValidationTextField ("sprytextfield3", "none", {validateOn:["blur"]});})

    var sprytextfield4 = new Spry.Widget.ValidationTextField ("sprytextfield4", "email", {validateOn:["blur"]});})

    < /script >

    < / body >

    < / html >

    You can try to change this:

    If ($landing_page! = "") {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) "" / $landing_page ");"

    }

    else {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) " /");

    }

    to: (thankyou.html is a custom page, you can configure)

    If ($landing_page! = "") {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) "" / $landing_page ");"

    }

    else {}

    Header ("Location: http://www.yourDomain.com/thankyou.html");

    }

    OR try the reverse, if the above does not work. I don't know what the variable $landing_page is referring to:

    If ($landing_page! = "") {}

    Header ("Location: http://www.yourDomain.com/thankyou.html");

    }

    else {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) " /");

    }

  • 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: Change the size of page after page is created?

    Is it possible to change the size of a page after the page has been created? In literature, the only way I've seen to set the page size is in a statement 'with' just after the creation of the document. I need to change the size of the document after a document has already been created. Any ideas?

    Make sure that you set the documentPreferences DOCUMENT and not the IMPLEMENTATION of those...

    Substances

  • How to redirect to the previous page

    Hello

    I call you a personalized page of standard OA page when I click back to my custom page

    I want to go to the previous page

    I used pageContext.forwardImmediately ();

    but the page id is not valid error can someone suggest how to return to the original page

    page custom

    The example of tutorial wont support the situation go back to the previous page

    Concerning

    Krishna

    Hello

    Give the URL of the page and the page on the previous page function in the pageContext.forwardImmediately or pageContext.setForwardURL methods.

    Thank you
    Kumar

  • How to select the node on the tree to redirect to a different page

    Hello everyone,

    Selection_001.png

    I created a tree on page 0

    conditional for pages

    It is based on values in a tree table

    https://Apex.Oracle.com/pls/Apex/f?p=67108:1:101371508545299:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    My requirement is

    If I click on the details of employee node, it goes to page 2

    If I click on the node details 2 employees it goes to page 3

    How can I specify the page for each node forwarding

    Reema,

    If you want your query to simpler tree, where, then add a column over in the tree as the "url" table, and specify the url to each table entry.

    as I stated in Page 1 and table 'Tree' in your workspace.

    Leave.

  • Redirect to two different pages in the same form

    I'm a little new to this. Hoping someone can guide me on how to do this. I have a simple selection list (below). If they the user chooses the selection in red I want to redirect to one page other than the cfform tag, but I can't understand how to separate options in the form in the same list. Thanks in advance.

    < action = "index2.cfm cfform" method = "POST" > "

    < table align = "center" width = "475" border = "0" cellpadding = "1" cellspacing = "0" >

    < tbody >

    < b >

    < td > < span class = 'label' > select Version: </span > < table >

    < td >

    < name cfselect = "UPVersion" >

    < option value = "" > < / option >

    < option value = "66SP1" > 6.6 SP1x < / option >

    < option value = "66SP2" > 6.6 SP2x < / option >

    < option value = "701" > 7.0.1x < / option >

    < / cfselect >

    < table >

    < /tr >

    < input type = "hidden" name = "gosearch' value ="gosearch">

    < input type = "hidden" name = "Lines" value = "50" >

    < b >

    < td colspan = "3" align = "center" > < input type = "submit" name = "Submit" value = "[search]" > < input type = "reset" name = 'reset' value = '[clear]' > < table >

    < /tr >

    < / tbody >

    < /table >

    < / cfform >

    mostlyconfused wrote:

    I'm a little new to this. Hoping someone can guide me on how to do this. I have a simple selection list (below). If they the user chooses the selection in red I want to redirect to one page other than the cfform tag, but I can't understand how to separate options in the form in the same list. Thanks in advance.

    Select Version:

    It could well be too many moving parts for beginners to follow. Start with something like

    id = onchange = "getVersion ()"UPVersion"" > ""

  • How do redirect you a web page?

    Hello...

    I am trying to redirect a Web page of a .net site location initial .com.  Basically if someone types in the www.namehere.net I want that they be transmitted on the site www.namehere.com.  What is a simple command?

    Prodigy9 wrote:

    Hello...

    I am trying to redirect a Web page of a .net site location initial .com.  Basically if someone types in the www.namehere.net I want that they be transmitted on the site www.namehere.com.  What is a simple command?

    If you have two simple domain names is to change the CNAME record held by your registrar.  For this you must login to their cPanel (or any system they use) and follow the appropriate instructions.  Have you tried your Registry Office Web site if they have the help files for this?  They should have because it is the most common and regular actions required by webmasters around the world.  For example, they could buy a domain name from an agent but decide to host the site themselves on their servers or use a completely different person in a different country.  WikiLeaks is hosted in a host of test bombs in Sweden, just in case the United States decides to bomb their site!

    For example to connect to the Web site where you bought your domain name dot net and then point it on the DNS of your website dot com.

    I hope this helps.

  • How to continue to the next page after that a preloader is loaded

    I did a preloader to my website in flash cs4. I imported into dreamweaver and it works but I can't get it to contiune to the real homepage after he's done loading. Does anyone know how to do this?

    From what I saw on this site, people who have negative things to say about this make sense better than those who praise.  I'm guessing that you're not actually preload anything whatever, and this file is just acting as a kind of Visual effect for your site.  As a preloader, this must be integrated into a web site, Flash and would load the file in the site.

    Anyway, to get it to go to your home page, replace the following line in the onComplete function...

    trace ("Loaded!");

    with...

    navigateToURL (new URLRequest ("http://www.yourdomain.com/yourpage.html"), "_self");

  • How to stop a print test page after each printing?

    I have a C. 932 every time I have something that the printer wants to follow by printing a test print page.  At least that is what I think he's trying to do.  I put only enough paper for what I print.  Then I turn the printer off and then on again.  Do not want to waste ink or paper. It lasts for quite awhile now, so I actually forgot what it's trying to print.  A blue interior light lights well.  In any case, it's a pain, and it is high time that I fixed it.  Can someone tell me how?  Thank you!

    The page he is trying to print is an alignment page.  Let it print this page and finish correctly and it will not print again until you change the cartridges.  The blue light is an automatic scanner, it will read the page, as it is being printed and align the printer automatically and the value of the energy of operation for cartridges.

Maybe you are looking for

  • Bug: The list of messages is not refresh SOLVED caused by HWA (material assistance)

    I'm using the latest Thunderbird beta chain, v38. I saw it in the stable version string as well, so I thought I would try the beta channel to see if it was fixed, but it wasn't. The problem is that the list of messages is not refresh all the time dur

  • Store TV + firmware and Samba

    Since there doesn't seem to be much interest at Toshiba to straighten their firmware that I looked for other options. In another post, I found that the Stor.e TV + and Noontec V8S are basically the same. I've studied this and this seemed to be the ca

  • Nightmare of Tecra 9100 Bluetooth stack

    Downloaded the last battery bluetooth but keep receiving error message when you try to open the Bluetooth settings TosBtMng.ese - Entry Point not found The procedure entry point? BdbtNotifyEx2@@YAHPAXIQAXQAHPAUHWND__@@II@Z cound not found in dynamic

  • Motorola Moto G 3rd Gen "Dual Sim" GREECE/EUROPE

    Hi all I come and live Greece (EU) and have question the interest to buy a 'New' Motorola Moto G (3rd generation) Dual Sim, 2 GB Ram, 16 GB of storage Please tell me what is the model? to support Dual SIM (Sim Type) and networks? Please tell how to f

  • DAQmx: set up a digital acquisition continues with start and stop trigger

    Hi all I write because I can not find a solution to my problem. As written in the title, I just want to do an continuous (continuous sampling) a digital line. The fact that it's a digital line instead of an analog is no big deal, I guess. I want to s