How to redirect a certain group login in to another page apex oracle

so I'm kind of new to apex and If I had a log in page and a certain user logs in that belongs to a certain group... say customers? Well if they log in , it would redirect them to a customer application.. and this is what I'm currently trying to achieve but it doesn't work
This is my code, can you tell me why it doesn't work and a solution to it?
DECLARE
VAL BOOLEAN;
BEGIN
IF
VAL := APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=> 'Customer')
RETURN TRUE
THEN
htp.init;
owa_util.redirect_url('f?p=&Custlogin.:1:&APP_SESSION.');
apex_application.stop_apex_engine;
END IF
END;

Where are you putting this code? In a Before Header section?
I can see there are some possible compilation issues with the code. I think you'd better use:
BEGIN
IF APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=> 'Customer')
THEN
htp.init;
owa_util.redirect_url('f?p=&Custlogin.:1:&APP_SESSION.');
END IF;
END;
Anyway, I would use branches to achieve what you need in your page. One branch for each type of user you would like to redirect... so, for example sending user to page "x" if condition above is met:
-Condition Type=PL/SQL Expression
-Expression=APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=> 'Customer')
Edited by: Kleber M on May 23, 2013 12:00 PM

Similar Messages

  • How do you link to a specific location in another page?

    I'm working in Dreamweaver CS4.  I'm trying to create a link to go to a specific location on another page in my website.  Any advice?

    All the information I have seen about Named Anchors deals with information that is contained on the same page.  I am looking to go to a specific location on a different page.  Is this possible using Named Anchors?  If so, how?
    Sure it is.
    Place a named anchor on your destination page near the bottom of your page for this test.  And name your anchor  1.
    On the parent page, your link will look like this:
    <a href="some_page.html#1">this is a link to named  anchor 1</a>
    Save both pages and test in browser.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to pass a value of the radiogroup to another page item

    Hi, I have a report with one column as a radiogroup. I have a process that execute the next code when I press a button:
    begin
    for i in 1..htmldb_application.g_f01.count
    loop
    update mesa_entrada set retomada = sysdate where id = htmldb_application.g_f01(i);
    end loop;
    end;
    I want to set the value of the item in another page with the value of the selected radiogroup, How i have to do?
    any suggestion will be welcome!
    Thanks!

    I have the same problem.
    On the new page the global variable HTMLDB_ITEM.G_F01 has 0 values.
    I created a process like this in the new page:
    :P300_FILENAME := HTMLDB_APPLICATION.G_F01.count;
    FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    :P300_TEST := HTMLDB_APPLICATION.G_F01(I);
    END LOOP;
    and P300_FILENAME gets 0 and P300_TEST is empty. Any sugestions?

  • How do I CENTER a group of photos on a page without merging them first?

         I have six photos which are aligned and distributed equally and linked so they move as one. I want to center this group on the page but as soon as the background layer is selected, each photo piles onto each other with a mind of its own. Tried everything I know (which isn't really very much). It will work if I merge the group, but I don't want to do that. Thanks for any help. It's probably an easy fix . . . I am using Elements 12 with Windows 8.1.

    It is possible to make a collage manually and its quite easy. This method may suit your purpose.
    Click File >> Open and select all of your photos
    That will add them to the project bin
    Then select File >> New >> Blank File
    Select background color White (or whatever you prefer) and add your width and height for your final image (set resolution 72 for web usage or 240 to 300 for printing) then click OK
    In the project bin click your first photo and drag it up into the main window on top of your new background.
    Click on the move tool and click in the center of the photo and drag to arrange it where you want on the background - you can hold down the shift key to maintain original proportions whilst dragging the corner handles of the bounding box to get the size you want.
    Do the same with the next photo (drag it up into the main window) and use the move tool to position it. Then continue with each image.
    Finally Click Layer >>Flatten image and save as jpeg. (Save as PSD if you want to preserve the layers for editing again)
    N.B. as you add images they get dropped in the center. So you need to use the move tool to drag them apart. Click in the middle of one and move it around, and then the others until you get them positioned as you want
    When you click again with the move tool a bounding box appears around the image and you can drag out the corner handles to re-size your photos. Hold down the shift key when dragging the corner handle and that will maintain the proportions of the original.
    Finally click Layer >>Flatten Image and save - you may then want to use the crop tool to cut away any surplus white canvas, and then re-save.

  • How to diplay username who login in a another page with php

    anyone please help me with whole codeing..m very new

    One thought though, when I was playing around with that solution I noticed that everything gets filtered.
    i.e. images, so maybe you chould place some thing on the page (image) and when it comes through .. do something. I know its not quite as good, because your back to having to put something on each page (or restricted pages).
    The images won't be wrong, unlike the URL .. maybe not images maybe something else. good luck
    Jonathan

  • How do you pass more than 3 items to another page via a Column Link?

    I know this is a simple question, but I don't see it covered in the manual.
    I have a report on page 1, when the user clicks on a column link, I'd like to pass 4 items to the page that is called.
    The Column Link area allows you to specify 3 items. How do people normally accomplish this?
    Do you somehow use page zero? Do you use Application Items for this purpose?
    Also, can someone recommend a good APEX book to supplement the manuals?
    Thanks

    hI
    Oh Varad I didnt know this, Thanks for a new tip ;)
    Just change the target to URL and enter a simple statement
    in the URL section
    f?p=&APP_ID.:50:&SESSION.:10:&DEBUG.::P50_item1,P50_item2,P50_item3,P50_item4:value1,#column_name2#,#column_name3#,#column_name4#
    Use value when u know a fixed value to be passed
    and column names on the same report can be passes by using #column_name#
    Hope this helps
    Thanks
    Ashri
    Edited by: Ashri on Nov 14, 2008 8:34 AM

  • How to display all rows in the report in one page in Oracle APEX 3.2

    Friends -
    We are using Oracle Applications Express 3.2 on oracle database 10.2.0.5 on solaris environment.
    One of our report contains total no of rows 50000. when we ran report by default it is showing 15 and i can go search and change display no of rows to different numbers and click go.
    My question is it possible to display all 50000 rows during first time report launching without going to change rows. Is there any option that we can set how many number of rows that we can display during report design.
    Please advise
    VSH

    Hello VSH,
    >> My question is it possible to display all 50000 rows during first time report launching without going to change rows
    As vee pointed out it is possible, however the question you need to ask yourself is is it wise?
    Bear in mind that displaying 50,000 rows on a single HTML page means a lot of code that must be loaded by the client browser all at once. What it will do to your page loading time? Browser memory? Network bandwidth? Also, do you really believe that it is effective to let an end user look for a specific row among 50,000 rows?
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to transfer control along with Data to the another page (Out of JVM)

    Hi,
    Please bear with me, incase this turns out to be a dumb question.
    I want to transfer control to a non JSP page after I hit submit. Apart from
    this I am also sending some data as a HTTPS POST. In case of using
    response.sendRedirect(), it doesn't take care of the POST data.
    So, can anybody help me with what's the best practice in sending POST
    request from a Struts (1.3.8) based J2EE application to another page (which is not a J2EE Application)
    Thank you

    Hi,
    you should run two different import comand.
    The first import with only metadata, just to recreate the structure.
    With the second import you will import data only for the tables you need.
    I think this is the simplier solution.
    Acr

  • How can i allow certain people to reply to forum post?

    Hi all, how do i allow certain group of people to reply to forum post instead of everyone can reply? Any help would greatly appreciated.

    Hello
    You can secure the forum and subscribe group of people to the secure zone , by this only the subscribers will be able to view the forum and reply on posts.
    You can also enable moderation for topics with which only approved topics will be visible on your site.
    For details please refer to this document :
    http://kb.worldsecuresystems.com/kb/forum-topics-posts.html
    Regards,
    Sanjit

  • How can i modify lable of texfield on create user page

    Hi,
    How can i modify lable of texfield on create user page of oracle identity manager administrative console ?
    e.g. display Sponsor ID inplace of Manager ID
    Thanks

    Hi Nitesh,
    I changed in xlWebadmin.properties file and restarted the server but still it is reflecting the old lable e.g.
    In xlWebAdmin.properties file
    - global.lable.managerid= Manager ID
    I changed it to global.lable.managerid= Sponsor ID
    But still it is displaying Manager ID on User form. I am using OIM 9.1
    regards
    Edited by: YMI on Nov 26, 2009 2:45 AM

  • How can I keep certain apps from starting at login?

    I have Break Reminder installed. It isn't compatible with certain accessibility tools. It isn't something that I want to start every time I use the computer. But it does start every time I use the computer. I don't tell the computer to restart apps at start up. I don't list the apps in the Login Items list. It just starts itself. How can I keep it from starting itself?

    go to system preferences / Users Groups / Login items
    (make sure your lock at bottom left side of window is unlocked) if it isn't you will be asked to insert your user password if you don't have one just hit enter (unlock)
    from there you get to choose your startup applications simply add/remove  with +/- under the windows
    once you made changes don't forget to lock the lock to prevent changes and you should be set
    good luck

  • How to redirect to different page after login in APEX 4.1

    Dear All,
    Here my Requirement is,When the users login,
    when they entered their username and password and pressed login button,
    they have to redirected to different pages based on the type of user.
    Here my LOGIN_TABLE has following 3 columns,
    1.Username
    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 i.e employee users has to be redirected to page 3.
    How can I do this? please give some suggestion.
    Thank you.
    regards,
    Gurujothi

    Dear Christian,
    Thank you for your reply,
    I would like to explain something,
    When I using the following function,
    *create or replace FUNCTION custom_auth_g (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2)
    RETURN BOOLEAN IS
    BEGIN
    FOR c1 IN (SELECT 1
    FROM login_table
    WHERE upper(username) = upper(p_username)
    AND upper(password) = upper(p_password))
    LOOP
    RETURN TRUE;
    END LOOP;
    RETURN FALSE;
    END;*
    When login, It checks in the login_table table and if the username is exist with the pass word it successfully entered inside the application.
    for all users only one page which we set.
    My Login_table also contains type which has 2 type as I mentined above.
    But As I mentioned earliar based on the user type it has to be redirected to 2 different page.
    I found this Package but I cant understand,Can you please Explain?
    *create or replace PACKAGE app_security_pkg
    AS
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    FUNCTION get_hash
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN VARCHAR2;
    PROCEDURE valid_user2
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    FUNCTION valid_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN BOOLEAN;
    END app_security_pkg;*
    *create or replace PACKAGE BODY app_security_pkg
    AS
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    IS
    lv_goto_page NUMBER DEFAULT 1;
    BEGIN
    -- This logic is a demonstration of how to redirect
    -- to different pages depending on who successfully
    -- authenticates. In my example, it simply demonstrates
    -- the ADMIN user going to page 1 and all other users going
    -- to page 2. Add you own logic here to detrmin which page
    -- a user should be directed to post authentication.
    IF UPPER(p_uname) = 'ADMIN'
    THEN
    lv_goto_page := 1;
    ELSE
    lv_goto_page := 2;
    END IF;
    APEX_UTIL.SET_SESSION_STATE('FSP_AFTER_LOGIN_URL');
    wwv_flow_custom_auth_std.login
    p_uname => p_uname,
    p_password => p_password,
    p_session_id => p_session_id,
    p_flow_page => p_flow_page || ':' || lv_goto_page
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END login;
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    AS
    BEGIN
    INSERT INTO app_users (username, PASSWORD)
    VALUES (UPPER (p_username),
    get_hash (TRIM (p_username), p_password));
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    ROLLBACK;
    RAISE;
    END add_user;
    -- Function to Perform a oneway hash of the users
    -- passwords. This cannot be reversed. This exmaple
    -- is a very week hash and if been used on a production
    -- system, you may want to use a stronger hash algorithm.
    -- Read the Documentation for more info on DBMS_CRYPTO as
    -- this is the supported package from Oracle and
    -- DBMS_OBFUSCATION_TOOLKIT is now depricated.
    FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN DBMS_OBFUSCATION_TOOLKIT.md5 (
    input_string => UPPER (p_username)
    || '/'
    || UPPER (p_password));
    END get_hash;
    PROCEDURE valid_user2 (p_username IN VARCHAR2, p_password IN VARCHAR2)
    AS
    v_dummy VARCHAR2 (1);
    BEGIN
    SELECT '1'
    INTO v_dummy
    FROM app_users
    WHERE UPPER (username) = UPPER (p_username)
    AND PASSWORD = get_hash (p_username, p_password);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN raise_application_error (-20000, 'Invalid username / password.');
    END valid_user2;
    FUNCTION valid_user (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN BOOLEAN
    AS
    BEGIN
    valid_user2 (UPPER (p_username), p_password);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN RETURN FALSE;
    END valid_user;
    END app_security_pkg;*
    And you said "assign an URL to FSP_AFTER_LOGIN_URL, depending on the Type column",
    Where to assign,Could you please Explain?
    Thank you.

  • How to give browse and monitor only options of an ICM script to a certain group?

    I am looking for an option in the Feature Control Set, how to give "Browse and Monitor" only options for a certain group in our contact centre. If someone give me some clue, it would be appreciatable.

    Hello Praveen,
    This work at some point. But it's not resolving what I intend to do. When I give "Read Only" previledge, to the certain group, it won't be able to do other tasks what they do day to day. I am looking specifically to give read only previledge in the scripting level. Not at the configuration level.
    Thanks.

  • How to redirect user from login page to "Set Challenge question" page

    How to redirect user from login page to "Set Challenge question" page (NOT custom page) after 3 un successful password attempts?
    Meaning when user types wrong password 3 times they will be redirected to set Challenge question page. If user answers the challenge question then password reset page should be appeared other wise (after remaining 3 un successeful challenge question answers) account should be locked out.
    thanks for your help.

    hi sandeep
    Thanks for your answer. Let me ellaborate more on the requirement here.
    - Password Policy and Lost Password management are set up in the identity system
    - Configure login tries allowed= 5. Verify accout is lock out after 5 unsucessful login.
    This is what need to achieve.
    1) If a user attempts to login 3(not 5) times using an incorrect login credential he/she should be redirected to set challenge question (security question) page.
    2) Then if the user attempts (remaining) 2 times incorrect challenge answer then his/her account should be locked out.
    3) If he/she answers the challenge answer correctly then he/she should be redirected to password reset page.
    Is this possible?

  • HT4798 I'm seeing the above problem, how can i open "Users&Groups" if i can't login?

    I'm seeing the above problem, how can i open "Users&Groups" if i can't login?

    If the system is associated with an Apple ID, and you know that account password, the Apple ID can be used to reset your user account password.
    Otherwise, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select  ▹ Restart from the menu bar.
    You should now be able to log in with the new password, but you won't be able to unlock the Keychain. If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it. You’ll need to reset your keychain in the preferences of the Keychain Access application.

Maybe you are looking for

  • Startup Plug Error

    Hi All,     I have 2 sample applications say Exportex1 and Exportex2. When I deploy exportex1from one machine and check for output,  it is working fine as expected.  When I deploy exportex2  from another machine,  it is also working fine. But Exporte

  • HiRISE JP2 Images fail to open in CS6 (64bit) - Could not complete your request because the file-format module cannot parse the file.

    Unable to open any of the HiRISE images within PS CS6.  Receive the following error:  "Could not complete your request because the file-format module cannot parse the file." The files are NOT corrupt as I can open them in IrfanView and ACDSee, just n

  • Get selected function in a context menu with cl_gui_alv_grid

    Hi, I'm trying to implement a context menu on a alv grid. I defined and implemented a method for the event CONTEXT_MENU_REQUEST to add function codes to context menu.  It works ok. The problem is retrieving the function selected in context menu. I tr

  • Special character "/" replacing with blank with Direct Input Method posting

    Hi All, I am posting FI historical data using Direct Input Method. Payment term contains special character "/"( I/E). SAP standard program replacing Special character "/" with blank (I E) so document posting is failing. Could you please advise. Thank

  • General problem

    Hi SAP Geniusers I have small dought regarding when am getting a issue whether monitoring the process chain or loading the process chain how can i analyse the problem and how can i get the solution for perticuler issuse. Regards Chakrum Moderator Mes