Variable or conditional home page for different users

Lets say I have 2 groups of users, some from GROUP_MGR and others from GROUP_EMPLOYEE. I want each user to see a different home page. Lets say, when a user who belongs to GROUP_MGR logs in they should see page #1, but when a user from GROUP_EMPLOYEE logs in they should see page #2.
OK, so I have a plan and please let me know if this is off base.
STEP 1:
=====
To to my login page 101 and modify the "login" process which currently reads:
{color:#0000ff}wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':1'
);{color}
I will change this process to look like this (new code in red, existing code in blue)-----
{color:#ff0000}declare home_page varchar2(30);
begin
IF ( APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=>'GROUP_MGR') )THEN
home_page := '1';
else
home_page := '2';
end if;
{color}
{color:#0000ff}wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':'|| home_page;
end;-----
{color}
Do you think my plan will work? Are there any other "hidden" settings I need to be aware of, or will I have any unintentional effects by trying this?
Thank you
Al
Edited by: user720285 on Mar 12, 2009 10:34 AM
Edited by: user720285 on Mar 12, 2009 10:35 AM
Edited by: user720285 on Mar 12, 2009 10:35 AM
Edited by: user720285 on Mar 12, 2009 10:35 AM
Edited by: user720285 on Mar 12, 2009 10:36 AM
Edited by: user720285 on Mar 12, 2009 10:37 AM

Hi Scott,
I'm not sure if Al was able to figure that out or not, but I have been fiddling with this also.
I am not sure if it will work.
Here's what I have so far:
declare
  p_app_id varchar2(32) := to_char(nvl(:G_APP_ID,:APP_ID));
  p_page_id varchar2(32) := to_char(nvl(:G_PAGE_ID,1));
begin
wwv_flow_custom_auth_std.login(
    P_UNAME       => :P101_USERNAME,
    P_PASSWORD    => :P101_PASSWORD,
    P_SESSION_ID  => v('APP_SESSION'),
    P_FLOW_PAGE   => p_app_id || ':' || p_page_id
end;Similar to what Al is trying to achieve, I am trying to take it one step further.
I am working in a single sign on model, so if I am coming from Application A, I will be redirected to Application B to authenticate first. At that time, I pass in App A's App ID and Page ID if it's provided. They are parsed out of the URL and stored in a global variable.
The nvl checks to see if an App ID exists and if not, then use the default :APP_ID. Same thing with Page ID.
When I try to log in after compiling the script, APEX spits the following error back:
Error ERR-10700 Unable to run custom pre-auth process.I am guessing we aren't allowed to mess with the custom auth package like that. Either that, or the syntax is wrong... I'm not sure which one it is either :(

Similar Messages

  • Change home page for mobile user

    Is it possible to change safari home page for mobile user via script or locally? We have OD profile which is set to delete all data after logout.
    Also is it possible do automatic login for mobile user?
    thank you...

    Hi,
    From your description, my understanding is that you want to customize home page for different user.
    There are two methods to accomplish your requirement. You could
    create a webpart with code or a control the page that redirect to a new page based on the users or groups.
    Please refer to this article:
    https://social.msdn.microsoft.com/Forums/office/en-US/08a2b1fd-6951-4e70-ba03-7f546a337fbe/set-different-home-page-for-each-user?forum=sharepointgeneralprevious.
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Personalize the home page for every user.

    Dear CRM guru's,
       I would like to personalize the home page for all users by hiding some of the sections(My open tasks and Alerts). I don't want the users to enable these 2 sections when they try to personalize the page. Can you please suggest me how I can achieve this.
    Thanks!
    Surya.

    Surya,
    This is very easy.  The homepage is another view in an application component.
    For the sales home page, you would go to application WCC_SLS_HOME and configure the view WCC_SLS_HOME/SalesHome.
    You can then restrict what applications show up on that home page.
    You just need to find out what "home" application your role is using and configure that one accordingly.  Most follow the WCC_*_HOME pattern.
    Take care,
    Stephen

  • How can I manage new Firefox for Mac on my network. Control users Home Pages for Mobile User Accounts.

    I am running Mac Computers in a School. Current Mountain Lions OS and current Firefox Browser. We log in using mobile accounts. How can we manage Firefox so all users get the same home page and settings.
    If I can do locally or through a profile, that would be great

    hello, you could use the mozilla.cfg file in the firefox program folder in order to lock or set certain preferences - here is some general information on how to set that up: http://kb.mozillazine.org/Locking_preferences
    and specific guide to set the homepage can be found here: http://mike.kaply.com/2012/08/29/setting-the-default-firefox-homepage-with-autoconfig/ (this blog also contains may other helpful resources for deploying firefox)

  • How to get the home page for a user using  Pl/sql code ?

    Hi,
    I have a pl/sql procedure which runs after a form submission on a dynamic page. At end of completion of the procedure I want to send user to his/her home page. I am trying to write at the end of procedure to redirect the user to the home page. How do I do that ? What is way to redirect to a page using pl/sql and how do I know the user home page url ?
    thanks,
    Mainak

    Hi,
    Try <portalschema>.wwv_redirect.url('<portalschema>.home');
    Please replace portalschema with the name of your portal schema.
    Thanks,
    Sharmila

  • How to set a common page for all users after loging on?

    hi all,
    Now "My Dashboard" is the default page after logon.
    i want to set a default home page for all users. users can see the home page after loging on.
    how to change the default dashboard from "My Dashboard" to "Home page" for all users?
    thanks,
    dan

    Hi,
    Steps:
    Tried to set default dashboard for all the users.
    1. Created a session init block
    2. Used data source as select '/shared/SH Test/_portal/Test1' from dual
    3. Assigned this value to PORTALPATH session variable
    4. In Presentation services > Administration > My account > Default dashboard should be set to 'default'. Then only the dashboard specified in init block will be displayed otherwise My account will override the init block.
    5. Save the changes made to rpd.
    5. Logout and relogin to see if it is working fine. it is working perfectly fine.
    For details please refer the GSC replication document. But it is for all the users.
    if customer would like to have user/group based home page.
    1. They may need to have 2 separate tables.
    i. Group_path_tab with 2 columns. Group_id, portal_path
    Have group wise portal path for all the groups
    ii. User-group map table
    Group_id, Group_name, user_id
    User should be part of some group.
    2. Then in the init block write the sql should be something like this
    select A.portal_path from Group_path_tab A, User_group_map B
    where B.user_id = :USER
    and B.Group_id = A.Group_id
    SO based on USER session variable, it will try to identify the group and then the portal_path.
    Finally assign this value to PORTALPATH session variable.
    ref:
    http://total-bi.com/2011/01/obiee-11g-change-default-dashboard/
    Thanks!

  • How do I set the default welcome page for PUBLIC user

    gurus,
    i'm using -
    Oracle 9i Database
    Oracle 9ias Portal Release 2
    QUESTION => how do I set the default welcome page for the PUBLIC user.
    i did the following to achieve this -
    1. logged into portal
    2. clicked on builder
    3. clicked on administer tab
    4. selected PUBLIC user in the Portal User Profile portlet
    5. went to the preferences tab
    6. in the default home page selected a custom page group
    7. logged out of portal
    8. open a new browsere session
    9. type the portal URL and i get the login page ....??
    i'm unable to understand this behavior ... shouldn't i be getting the page group that i set for the PUBLIC user in step 6 above ....
    the second QUESTION is => when the user logs out he/she should see the PUBLIC page set in step 6 above ... but, instead the user sees a page that is as follows -
    Partner Application Name Logout Status [Logout Status]
    Oracle Portal (portal) logout status
    The SSO Server (orasso) checkmark
    buzz.resva.trw.com:7778 checkmark
    infrastructure.happy.resva.trw.com checkmark
    portal1.buzz.resva.trw.com checkmark
    portal2.sylvester.resva.trw.com checkmark
    sylvester.resva.trw.com:7778 checkmark
    so, how can i set the default page for the PUBLIC user and also a page when he user logs out.
    ideas anyone ....?
    thanx a bunch.
    hero

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

  • How can I set the default home page for all new users in Firefox 4

    I'm trying to deploy FF 4.0rc1 in a corporate environment but I can't find a way to set the default home page or any other settings for that matter.
    Is there a way to set the default home page for all new users and lock it so that the users can't change home page?
    Best regards
    Jonas

    In Firefox 4 the template folder for new profiles (C:\Program Files\Mozilla Firefox\defaults\profile\
    ) doesn't exist. You can create that \defaults\profile\ folder and place a file user.js in it with the prefs that you want to initialize.
    See:
    *http://www-archive.mozilla.org/catalog/end-user/customizing/briefprefs.html
    You can also use a mozilla.cfg file to set the default value for prefs.<br />
    See: http://kb.mozillazine.org/Locking_preferences
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes
    lockPref(); // lock pref, disallow changes

  • To set page home page for user

    hello everybody,
    i want to set home page to the user when user sings in from SSO.
    from where i can set the home page.
    thank u
    sachin khare.

    From where i have to change the profile.
    in OID???
    thankx
    sachin

  • I want to create home page for my application with short URL

    I want to create home page for my application with short URL
    as when I want user to use my application user must go to URL like this
    http://127.0.0.1:7101/My-Project/faces/app/empModule/allEmployees/viewMyEmployees.jspxI want the user to use short URL , How can I use shorter URL not all this one.
    I want shorter URL for my application not to write full path .
    thanks in advance.
    Edited by: user611775 on Oct 31, 2010 10:21 PM

    Well,
    it's up to you. The first part (Mcit-Project-ViewController-context-root) is the context root which you define in the view controller project. 'faces' is the name the servlet filter reacts on. You can't omit it but shorten it in web.xml. The rest is your directory structure. I'm not sure how to shorten this other as to move the jspx files back into the web root folder.
    By the way an ADF faces app never uses the .jspx at the end of the url. If you specify '.jspx', you only render the page but don't start the work flow.
    Timo

  • How to deliver dashboard page for each user using IBOT.

    Hi all,
    I have setup SA_SYSTEM and able to deliver the reports to indivisaul users,
    Now I want to send the dashboard page for indivisual user..
    How we can impliment this.
    My IBOT run for all users and deliver the mail...similarly we want for dashboard page.

    I have created session variable and used it in default prompt and used a presentation variable.
    My report is refering this presentaion varable..
    I can see the log ..reports are generating for each MD's Now.
    I am getting PDF in mail also but error.
    Request was canceled
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 46066] Operation cancelled. (HY000)

  • VBA inserting form fields, different positions result for different users.

    I'm certianly at a loss for wrapping my head around this.
    Adobe Acrobat 9 Standard (v 9.5.4)
    Excel 2010  (VBA)
    The problem:  When I create the PDF document from Excel, I search for a string of text in order to capture the Quads for the containing rectangle.  Then I use the quads to insert a control with numeric offsets.  The problem that I am facing is that the offsets seem to be causing the controls to be in different locations for different users.  For example, when I send (-26, -2, 100, 10) {x-offset, y-offset, width, height}; the control aligns exactly where I want it.  But when another user user runs the exact same routine, or opens the PDF that I created, the fields are no longer positioned correctly.
    Is there some setting that I am missing? EDIT, SOLVED:  My Acrobat had a custom point to pixel setting.  (Preferences > Page Display > Resolution)
    Private Function makePdfControl(ByVal pdfPage As Integer, keyTerm As String, Optional ByVal keyTermLookAhead As Integer = 0, Optional ctrlType As String = "text", Optional cCoords As Variant = 0)
        'pdfPage is the target page of the document
        'keyTerm is the assembled search term: "Date Shipped >> DATESHIPPED"
        'keyTermLookAhead is the number of words assembed into KeyTerm, zero based: "Date Shipped" >>  "DATESHIPPED" >> "DATE" = 0, "SHIPPED" = 1
        'ctrlType determines the type of control to place on the form; default is text
        'cCoords carries an array of integers: x-offset, y-offset, width, and height
        txt = ""
        Dim fkt As Integer 'counter for keyTermLookAhead
        Dim matchFound As Boolean 'flag that a match has been found
        Dim maxWords As Integer 'the maximum number of words in pdfPage
        Dim coord(3) As Integer 'local array container to provide interface for cCoords
        p = 0
        matchFound = False
        maxWords = jso.getPageNumWords(pdfPage)
        Do While p + keyTermLookAhead <= maxWords 'search all words in the target page; break if not found
            p = p + 1
            For fkt = 0 To keyTermLookAhead
                txt = txt & jso.getPageNthWord(pdfPage, p + fkt)
            Next fkt
            If UCase(txt) <> UCase(keyTerm) Then 'the assembly of terms is complete, check if match
                txt = "" 'prepare "txt" for next assembly
                matchFound = False
            Else
                matchFound = True 'we've struck gold, exit the loop preserving val of "p" as the first word in the assembly
                Exit Do
            End If
        Loop
        If matchFound = True Then
            Dim qtmp() As Variant
            Dim q(7) As Double
            qtmp = jso.getPageNthWordQuads(pdfPage, p)(0) 'collect the rectangle containing the first word of the search; output is a base-0x7 array
            For a = 0 To 7
                q(a) = qtmp(a) 'collect the data
            Next a
            If VarType(cCoords) <> 8204 Then '8204 means that we've inserted an array into the Varient type var cCoords
                coord(0) = 0
                coord(1) = 0
                coord(2) = 100
                coord(3) = 15
            Else
                coord(0) = cCoords(0) 'x-offset value
                coord(1) = cCoords(1) 'y-offset value
                coord(2) = cCoords(2) 'width value
                coord(3) = cCoords(3) 'height value
            End If
            x0 = coord(0) 'x-offset var
            y0 = coord(1) 'y-offset var
            w = coord(2) 'ctrl width
            h = coord(3) 'ctrl height
            x = q(0) + x0
            y = q(7) - h + y0
            'origin point of doc matrix is lower-left corner
            'origin point of control is lower left corner of the rectangle containing the first word of the search phrase
            'offsets are placed from this point, negative x shifts to the left, negative y shifts down
            'values are in points, not pixels
            Set f = aForm.Fields.Add(keyTerm, ctrlType, pdfPage, x, y, x + w, y + h) '(uplf, lwlf, lwrt, uprt) 'add the control to the form using values passed in
        End If
    End Function
    The above function is used while looping through the pages of the created PDF document.  I am using the following function to create the document from Excel:
    Private Sub exportToPDF()
        DoEvents
        Application.ScreenUpdating = False
        Call showTabs(False)
        ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, _
                                           Filename:=pdfPathData, _
                                           Quality:=xlQualityStandard, _
                                           IncludeDocProperties:=False, _
                                           IgnorePrintAreas:=False, _
                                           OpenAfterPublish:=False
        Call showTabs(True)
        Call locateDoc
        Application.ScreenUpdating = True
    End Sub
    Message was edited by: ilivingston:  solved

    Thanks for the reply, I did spend some time working on this issue...  here is what I found...
    1)  First of all, I did have a custom Points to Inches setting in my Acrobat options...  110 vs 96.   Resetting this allowed for me to see the alignment issue that my colleagues were referencing first hand.
    As it turned out, my results were better, but still had inconsistency among different workstations.  Leading me to..
    2)  The MSFT creator uses the default printer in some way to create the PDF.  Because the different workstations were using different printers, we were getting different results.  If everyone used an HP 1320, nobody would see any difference upon creating / adding fields.
    The final solution was to change the Application.Printer to a common network printer before the export operation, and return the Application.Printer to the user default after the export completed.  This has provided us with a common ground to work upon; we are lucky to have a network printer that can be used for this purpose, as I can see this becoming non-viable in environments where this would be unavailable.

  • Home Page for EP6.0 SP9

    Hi,
    We are in process of designing the Home Page for our EP version 6.0 SP 9.
    Our design of Default Page looks like the Home page of the http://service.sap.com
    When we use the MIME Objects and the Links on this page, it has to route to the corresponding Iview/Page (URL derived from the User ROle).
    Is there any weblog / Guide avilable for developing the Page which has the links to the IViews as the URLS derived dynamically.
    Thanks & Regards
    Sumanth

    Hi Akhilesh
    In EP6 SP2, if you remember, we used method like
    <i>private ILogger defaultLogger = null;
    defaultLogger = PortalRuntime.getLogger();
    //defaultLogger.severe(this,"something");</i>
    And this message <u>something</u> used to get printed in the Portal_Logger in the Loggin Console in Monitoring in System Admin.
    <b>Now can you please exaplin in detail</b>, like what happens now in SP11/SP9 in would write the same statement. Where will this message get printed?
    Atually our problem is that we have migrated from SP2 to SP11. We used the above code for debugging if any error occured in whole of the PAR file. I have also heard that these are some new loggin/tracing API's but we now cannot change the whole code for this reason. So i would like to know where will the above code write and how to see that easily.
    You have mentioned abt the .trc files but they are too many in number. Can i have the logs in only one file?How?
    Also can you please explain in detail, what is the best & fast (java developer's viewpoint) method to use logger with SP11. I read about the Online Logger, the Standalone logger etc etc from the following link http://help.sap.com/saphelp_nw04/helpdata/en/57/5f1140d72dc442e10000000a1550b0/frameset.htm but which one is easy and fast for new developement.
    And i would also highly appreciate if you explain the new logger methods with some simple sample code and steps for configuration.
    If you want i will open a new thread for this query!
    This is very imp and i want some quick solution.
    If somebody else also wanna explain in details, they are welcome.
    Regards
    Gaurav Gandhi

  • Access control for different user groups in APEX 4.0

    Hi guys,
    in Apex 4.0, is there any way to use the access control page to configure access control for different user groups?
    The access control page currently only has an access control list by users with 3 privileges namely, Administrator, Edit & View where Administrator has the highest access level & View the lowest. Therefore 1 user cannot have more than 1 different privilege, however if the user belongs to 2 or more different groups then we can control what access he can have in a more fine grained manner. We also want to have more than the 3 privileges given.
    Can we assign different groups to different users and let them have different privileges to be configured by page, region, process or item level?
    Now Apex will create 2 tables, Apex_Access_Control & Apex_Access_Setup to store the application access control mode & access control list. It will also create 3 authorization schemes "access control - administrator", "access control - edit" & "access control - view" based on the 2 tables.
    Does this mean we have to change the table structures & edit the authorization schemes to suit our usage? We are reluctant to do this because if we upgrade to a newer version of Apex then we would have to merge our pl/sql coding with Apex's updated code.
    How can we auto-configure more than the 3 authorization schemes in the access control page? Is there any way to achieve a finer grain of access control based on the current access control administration page given by Apex without writing it ourselves?
    We are afraid that we may have missed something on Apex access control & do not want to reinvent the wheel.

    Hi Errol,
    to build your own application authorization scheme around the security model supplied by Apex for administration of the Apex environment would be a bad idea.
    This was never intended for authorization scheme management in custom built Apex applications, it was solely intended to control access in the Apex environment overall. The API for it is not published, and making changes to it, such as adding more roles, would run the risk of breaking the overall Apex security model. It would not be supported by Oracle and Oracle would not guarantee the upwards compatibility of any changes you make in future versions of Apex.
    In short, you should follow Tyson's advice and build your own structure. As he indicated, there are plenty of examples around and provided your requirements are not too complicated, it will be relatively simple.
    Regards
    Andre

  • Portal splash page for public users

    I am creating a portal and I would like to show a tailored splash page to public users. This splash page will probably have some graphics and text on it, and also a link to allow the user to Login.
    Each authenticated user will be assigned to a group, and each group will have a default home page. When either group logs out, the splash page should be shown again.
    How can I do this? Should the splash page be in a page group by itself? (Note: I am using 10g.)
    Any ideas?
    -- Rhonda

    Hi Rhonda:
    We did something very similar by doing the following:
    1) Create a new page group and make its root page your public splash page. Under access, make this page public
    2) Set the new page as the default home page for the portal
    3) Set the default home page of each group to their appropriate page
    4) Assign each user to their default group.
    Now, when someone enters the URL of your portal, their see the splash page. When they log-in, they are taken to the appropriate page for their group. I think the only thing this misses is sending them back to the splash page when they logout. We had the default logout screen come up and users had to click [Return] to get back to the splash page. I'm sure there is a way to send them there automatically, but will leave that up to another forum reader.
    You may also want to consider setting up a "nice" url for the portal so they don't have to put in the port number and the "pls/portal". You can edit your httpd.conf file in the Apache server to redirect a simple URL on port 80 to the right URL and right port. Just don't forget to reload the configuration afterwards.
    Rgds/Mark M.

Maybe you are looking for