Data in application based on User logged in

Hi,
We have a requirment in our project in which we need to prefill few fields of all pages of application based on the user logged in. The required information to be populated in application is available in database table.
When the page is gettign loaded for the first time the databse has to queried and the forms have to be prefilled. One more requiremtn we have is to restrict the data in ADF Read only tables to that specific user.
Thanks,
Manasa.

Hi,
have a look at SRDemo, which uses a managed bean n session scope for the user specific information. Same could be used to set tables to read only (e.g. checking if user has a specific role granted). So the usecase you mention seems to be easy to achive with JSF on-board functionality
Frank

Similar Messages

  • Showing/Hiding Dashboard Prompts dynamically based on User logged on

    Hi
    I have query reg a showing/hiding dashboard prompts based on Users logged in.
    What is the best way???
    Please help
    And also anothe quick question
    Is there a way that we can change the Label of Dashboard prompt "ABC" for few users and "DEF" for other users
    Thanks in advance
    Cheers

    Hello,
    Using guided navigation properties for section, we can achieve your first requirement.
    How many prompts to be shown?
    depends on that number, you have to create those many reports in answers like,
    take one column to criteria and change functionaityt to case when 1=0 then Markets. Region else user() end
    apply filter on this equals to UserA (for userA), say ReportA
    for UserB filter has to change to UserB, say ReportB...etc
    Now, add all the prompts to dashboard, but each section (dashboard object) for each prompt.
    Go to section properties of each and select guided navigation property. The section which is holding the PromptA (should be shown to userA) then browse the reportA for guided navigation and click ok
    LIke this do for all prompts.
    Hope you understood...
    if any queries ask me..
    And for 2nd Q, in prompt, you have Select captio option which is the last option for all prompts,
    Write something there and check

  • Hide or show column from a report region based on user logged in

    Hi,
    I have this criteria, where I need to display a column on a report page but depends on the users logged in ( APP_User).
    On the field(column page) there is the Conditional Display option
    Conditional Display
    Condition Type: I choose the option where "item value in Expression 1 = expression 1
    *Expression 1*
    App_USER
    *Expression 2*
    I need to add 4 user names here that they allowed to view that column
    My question is how to list the names in expression 2 field, it worked when I added one name, but when I listed 4 names separated by comma, it didn't work.
    I appreciate any help or any solutions from you.
    Thank you.
    Sofia

    If you use "Text in Expression 1 is contained in the Value of Expression 2" then you can provide a comma-separated list. The only thing to watch out for is if you have a user "Bob" and a user "Bob Smith" then you will get a match on "Bob Smith" for the user "Bob"

  • Copy apps using HFM Copy application utility when users logged in.

    Hi All
    I am using HFM copy application utility to migrate apps across environments. Can we do the same when users are logged in and active? I know that this utility just copies tables from source to destination, but I m not sure if the copy will be successful if some of the tables are being edited.
    Thankyou,
    Raghu

    Hi,
    Dont run the HFm Copy appplication utility when apps were in use.Let say you have app1,2,3,4 and you want to move app 1, make sure app 1 is not in use.
    if some body is accessing app2 or 3 or 4 you dont want to worry about that while moving app 1.
    Thanks,
    Mugundhan

  • How to forward action based on user logged in ?

    Hi All,
    Jdev Ver : 11.1.1.4.0
    I am using Adf security, with form based authentication..
    I have written login action in managed bean , and forwarding page using the based on url.
        public String doLogin() {
            String un = _username;
            byte[] pw = _password.getBytes();
            FacesContext ctx = FacesContext.getCurrentInstance();
            HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
          String loginUrl = null;
            try {
                Subject subject = Authentication.login(new URLCallbackHandler(un, pw));
                weblogic.servlet.security.ServletAuthentication.runAs(subject, request);
                SecurityContext sec = ADFContext.getCurrent().getSecurityContext();
                System.out.println("Profile :: "+sec.getUserProfile());
                System.out.println(sec.getUserName());
                System.out.println(sec.getUserPrincipal());
                for(String role : sec.getUserRoles()){
                  System.out.println("Roles :: "+role);
                System.out.println(JSFUtils.resolveExpression("#{securityContext.userName}"));
                if(un.equals("john.doe")){
                  //loginUrl="main";
                  loginUrl = "/adfAuthentication?success_url=/faces/main";
                }else{
                  //loginUrl="test";
                  loginUrl = "/adfAuthentication?success_url=/faces/test";
               // loginUrl = "test";//"/adfAuthentication?success_url=/faces/main";
                HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
                sendForward(request, response, loginUrl);
            } catch (FailedLoginException fle) {
                FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password", "An incorrect Username or Password was specified");
                ctx.addMessage(null, msg);
            } catch (LoginException le) {
                reportUnexpectedLoginError("LoginException", le);
            return null;
        }Now i want to return some action, not using the URL. and sendforward
    any suggestions please ?
    thanks
    Gopinath

    The application is created without configuring the security, later at the end we are doing the security configuration.
    I used formbased authentication , there are 3 roles for the users, based on the users after login action i need to show the screen.(no common screen, each screen is different for each users,)
    I used executeWithParams for executing some VO's before the page loads, if i use the two or more outcome actions in login action, its not rendering the corresponding page and it remains in the same page.
    in between i have to check for user in roles , so based on that i have to set the outcome. find my above login action code.
    This is my use case, tell me suggestions and any idea please.
    thanks
    Gopinath

  • Dynamic column based on user logged in

    Hi,
    I'm implementing Sales analytics and I have a requirement for a custom report.
    The custom report has two columns, Employee and Opportunity revenue.
    To start with, the employee column must display the logged in user. On drill down, it must show all the employees whose positions are child positions to the logged in user's position, and so on.
    Any pointers on how to accomplish this using the w_position_d and w_position_dh tables.?
    Thanks,
    Seetharam
    Edited by: Seetharam on Oct 7, 2009 1:30 PM

    Hi
    You can use :USER variable for showing only the user who logged in.....(by keeping a filter in the report) and for the drill ...if there is no hierarchy for postion in the rpd u need to create one so that it drills as required...
    regards

  • How to show pages based on user logged in adf security ?

    Hi All,
    JDev ver : 11.1.1.4.0
    I have three Roles MANAGERS, ADMIN, ANALYST with users in each role.
    And i used form based authentication. There are seperate screens for each user, i want to show according to the user entered with Roles.
    How to Configure these roles in Resource Grants and what should be done in login action..
    For me the page now going forward, it remains in the login page itself
    How to do that ?
    thanks,
    Gopinath

    Hi..
    try out following sample
    http://andrejusb.blogspot.com/2011/05/oracle-webcenter-11g-ps3-adf-security.htmlalso check this >http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html

  • Picking employee information based on user

    Hi,
    I have query which returns businessgroup, first name, last name, middle name, address. I registered this query(procedure) as concurrent program, running successfully.
    My requirement is, if USA country user runs this program, he should see only USA data, like this based on user the specific data should be displayed.
    Could some body help me how to achieve this.
    Thanks in advance.

    Please post your full SQL query here.

  • VAT REPORT BASED ON CURRENT LOGGED IN USER

    Hi Guys,
    I am Working for a client and it they are having 9 branches and for each branch there will be  divided by different Series and different Tax Codes and  they want a  TAX Report based on the User Logged in.Each User Will be Assigned a branch and in the tax code an UDF(Location) has been created and for each tax code location has been entered there.
    So when User 1 of Branch 1 is running the report then the report should show only the record of that particular Branch 1 and
         When User 2 of Branch 2 is running the Report then it should show only branch 2 records .
    I Tired using an FMS to record the Current User Logged in but i am unable to include this in the below query.
    SELECT T0.U_NAME FROM OUSR T0 WHERE INTERNAL_K = $[USER]
    In the Below query , the Report needs to be filtered automatically based on the Current user Logged in(User who is running the report).
    There will be different Branches and Each Branch has One O Two Licenses and whenever the User1 Of Branch 1  runs the report then the report should display only the record related to that particular branch within the given date range.
    So ,to differentiate the Tax codes for each Branches we have created an UDF(Location) in tax codes and enter the branch name in the UDF and also each branch will have 3 different document series and each series.
    Instead of Giving the Location as a Parameter to choose we need to filter the report by the User logged in .
    SELECT distinct  M.DocNum AS 'AR Inv. #', M.DocDate as 'Date',
    l.targettype AS 'TARGET TYPE',
    t4.series,T4.SeriesName,
    case when T4.SeriesName='LOC/HOF' then 'HEAD OFFICE'
           when T4.SeriesName='LOC/CHN' then 'CHENNAI'
            when t4.seriesName ='INS/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='STF/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='INS/HOF' THEN 'HEAD OFFICE'
           end Location,L.TAXCODE,T6.RATE,
    case when t.statype ='1' then  'VAT'
           WHEN T.STATYPE ='4' THEN 'CST'
           END TAXTYPE,T.STATYPE,
    M.CARDCODE,M.CardName as 'Customer Name',M.NumAtCard as 'Bill No. & Dt.',M.DiscSum,M.RoundDif,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',M.VATSUM,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1  ) as 'VAT  SALES',
    (SELECT SUM(TaxSum) FROM INV4 t where t.docentry=m.docentry and statype=1  ) as '  VAT COLLECTED ',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =4  ) as 'CST  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=4 and  DocEntry=M.DocEntry   ) as ' CST COLLECTED ',
    (Select Sum(LineTotal) FROM INV3 Q Where Q.DocEntry=M.DocEntry) as 'FREIGHT',
    M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    INNER JOIN NNM1 T4 ON M.SERIES=T4.SERIES
    LEFT JOIN OSTC T6 ON T6.CODE= L.TAXCODE
    LEFT JOIN OUBR T7 ON  T7.NAME = T6.U_LOC
    LEFT JOIN OUSR T8 ON T8.BRANCH = T7.CODE
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
    AND  TARGETTYPE !='14' and taxrate !='0'  A
    ND T6.RATE != '0'
    and t6.u_loc ='[%2]'
    GROUP BY
    M.DocNum,M.DocDate,M.CARDCODE,M.CardName,M.NumAtCard,M.DocEntry,
    M.DiscSum,M.WTSum,
    M.DocTotal,M.Series,T4.SeriesName,
    T4.REMARK,M.RoundDif,M.VATSUM,T.STATYPE,T.TAXRATE,Q.LINETOTAL,t4.series,
    l.targettype,t.docentry,L.TAXCODE,T6.RATE
    Pls Gimme Some Ideas guys for designing this report .
    Thanks And Regards,
    P.V

    Hai Gordon,
    Thanks for the suggestion but i am sorry to say that after adding the said  Condition  to the below query it is showing the Below error.
    QUERY :
    SELECT distinct  M.DocNum AS 'AR Inv. #', M.DocDate as 'Date',
    l.targettype AS 'TARGET TYPE',
    t4.series,T4.SeriesName,
    case when T4.SeriesName='LOC/HOF' then 'HEAD OFFICE'
           when T4.SeriesName='LOC/CHN' then 'CHENNAI'
            when t4.seriesName ='INS/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='STF/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='INS/HOF' THEN 'HEAD OFFICE'
           end Location,L.TAXCODE,T6.RATE,
    case when t.statype ='1' then  'VAT'
           WHEN T.STATYPE ='4' THEN 'CST'
           END TAXTYPE,T.STATYPE,
    M.CARDCODE,M.CardName as 'Customer Name',M.NumAtCard as 'Bill No. & Dt.',M.DiscSum,M.RoundDif,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',M.VATSUM,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1  ) as 'VAT  SALES',
    (SELECT SUM(TaxSum) FROM INV4 t where t.docentry=m.docentry and statype=1  ) as '  VAT COLLECTED ',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =4  ) as 'CST  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=4 and  DocEntry=M.DocEntry   ) as ' CST COLLECTED ',
    (Select Sum(LineTotal) FROM INV3 Q Where Q.DocEntry=M.DocEntry) as 'FREIGHT',
    M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    INNER JOIN NNM1 T4 ON M.SERIES=T4.SERIES
    LEFT JOIN OSTC T6 ON T6.CODE= L.TAXCODE
    LEFT JOIN OUBR T7 ON  T7.NAME = T6.U_LOC
    LEFT JOIN OUSR T8 ON T8.BRANCH = T7.CODE
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
    AND  TARGETTYPE !='14' and taxrate !='0'  AND T6.RATE != '0'
    AND $[USER] in (SELECT USERID FROM OUSR WHERE BRANCH = T7.CODE)
    GROUP BY
    M.DocNum,M.DocDate,M.CARDCODE,M.CardName,M.NumAtCard,M.DocEntry,
    M.DiscSum,M.WTSum,
    M.DocTotal,M.Series,T4.SeriesName,
    T4.REMARK,M.RoundDif,M.VATSUM,T.STATYPE,T.TAXRATE,Q.LINETOTAL,t4.series,
    l.targettype,t.docentry,L.TAXCODE,T6.RATE
    ERROR
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'USER'.
    2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'GROUP'.
    3). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'User-Defined Values' (CSHS) (s) could not be prepared.
    Regards,
    P.V

  • Application should start automatically as soon the user logs into windows.

    Hello All,
    I have a requirement.
    I am developed a time sheet application using web dynpro. This application is configured on the portal & is working fine. Now, I want to make some changes, may be at Portal Content side or Application side, but want this -
    As soon as the User loges into the Windows with user id & password, this timesheet application residing on the portal should start automatically and should record the time. Similarly, if the user shuts-down, the application should again record the time. Thus giving the actual time the user worked.
    Please reply. Thanks.
    Best Regards
    Chander Kararia

    Hello Satyajit,
    Below are the comments on your queries.
    1. It would be better if the application starts silently. But, in case, if we choose other way i.e the browser opens automatically and displays the application (expecting the button needs to be clicked by the user) that will also do.
    2. In case of system shut-down, I am still to come up with some materialized concept. But, here are few ideas...
        a). The application should check if the time entry is available for the current date. If so, should display the text for LogOut only. This will make user understand not to hit it.
        b). It should keep on accepting all the sessions (logging & logout) n number of times for the current date.
    I would prefer (b) as a better option.
    If you have some more conceptual idea, please suggest.
    Best Regards
    Chander Kararia

  • Different masterhead image based on the user logged in portal

    HI,
    Presently we are using standard portal theme.How can I change the image in the masterhead based on the user logged in.How can i change that and i want to assign that masteredhead to users.
    Can anybody give me suggesion about this.
    Thanks,
    Regards,
    Srinivas

    Dear Srinivas,
    Simple of achiving this kind of scnario is create separate themes for different users and assign the themes to the users in master rule collection through Desktop Page.Here in this case you will be creating one framework page and multiple Desktops and themes.All the desktops will be having the same framework page and different themes based on the user type or group type.
    Otherway of achiving this is create an pdk application where it will have multiple jsp components in it and based on the each component create one PAR iview.Let us take if four groups of users then you will be creating four different jsps in pdk application which will inturn contains different masterhead images and related logos.After creating the iview place the iview in the correcsponding framework page below the masterhead iview.Here multiple framework pages and Desktops and you can go with single theme.
    In the first scenario the masteread , we are managing through the theme and in second the masterhead we are managing throgh application.
    Either of the scenarios can be used to create differet masterheads for different users.
    Hope the answer helps you....
    Reward the points if it is helpful.
    Thanks,
    Rudradev Devulapalli

  • Different masterhead image based on the user logged in

    HI,
    Presently we are using standard portal theme.How can I change the image in the masterhead based on the user logged in.How can i change that and i want to assign that masteredhead to users.
    Can anybody give me suggesion about this.
    Thanks,
    Regards,
    Srinivas

    Dear Srinivas,
            Simple of achiving this kind of scnario is create separate themes for different users and assign the themes to the users in master rule collection through Desktop Page.Here in this case you will be creating one framework page and multiple Desktops and themes.All the desktops will be having the same framework page and different themes based on the user type or group type.
            Otherway of achiving this is create an pdk application where it will have multiple jsp components in it and based on the each component create one PAR iview.Let us take if four groups of users then you will be creating four different jsps in pdk application which will inturn contains different masterhead images and related logos.After creating the iview place the iview in the correcsponding framework page below the masterhead iview.Here multiple framework pages and Desktops and you can go with single theme.
             In the first scenario the masteread , we are managing through the theme and in second the masterhead we are managing throgh application.
             Either of the scenarios can be used to create differet masterheads for different users.
    Hope the answer helps you....
    Reward the points if it is helpful.
    Thanks,
    Rudradev Devulapalli

  • How to filter VO data based on user access

    Hello,
    Can anyone help me with an approach for the below case.
    Once a user logs in, we want to show them a list of various Company(s) and Role(s) that they have access to(this comes from a custom Table).Based on the selection they make here, we would like to filter the data(Here company is very much like ORG_ID in Oracle EBS).So how do I apply this criteria across all VOs once the selection is made so that user sees a specific company data only.Also the Role would be used to enable and disable few fields(regions) on the forms.How do we approach getting this done too.Again as in Oracle EBS,this is more like, SPEL in OAF.
    Any help is appreciated.Thnx!
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi All,
    I have made some progress and but I am stuck with an issue now.Please let me know what am I missing here.
    Approach:
    1. Once a user logs in, I display the various operating companies that he has access to as a Table region.As he selects a row in this table, I set a pageFlowscope variable.I am able to display the value also as he selects various companies from the table region displayed.
    2. Now I created a bounded Task flow(BTF) which has a default method activity(ExecuteWithparams) which would take a company as a paramter(bind var) and I have set this to use the pageFlowscope variable referred above.And after this method it goes to a view which displays data for that company data.
    3. Now I dragged and dropped this BTF as a region onto my page.
    Problem: When I run the actual page it says "No data to display" in the BTF region. But there is data in the database for that company.How can I fix this issue or what is it that I am doing wrong.Please help.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Limit report data to user logged in (AD Authentication)

    How can I limit the number of rows that display on a report depending on the user logged in?  I want the user to see only their own data, not the whole report, based on the the user id.  We use active directory authentication to Business Objects Enterprise.

    Hi Eileen,
    This may be achieved in either of two ways :
    1. Applying row level restriction to the Universe off which these reports are based of. Please refer to Universe Designer Guide for more information.
    2. By using Publications in XI 3.1. Please refer to Publishing Guide for details.
    Regards,
    Subhodeep

  • How to display filtered data based on user login

    We have a SSRS report (.rdlc) which gives the report about Online count of machines. Report is incoperayed in Asp.net.
    We have many filters in This report. Now we have to retrict the report based on user login to the application .
    For ex: report has a drop down for Regional Admin. Now if one person login to the application he has to view only his region online count.
    How can we do this in SSRS?. We have our application hosted in Microsoft Azure . Please suggest

    Hi csmbrnoc,
    In Reporting Services, if we want to filter data based on user login, then there must be some relationship between the UserID and the Region in the dataset. For example, there is a field named UserID in the dataset, and each ID map some region and the corresponding
    “Online count of machines”. In this scenario, just as Visakh suggested, we can use built-in field User!UserID to obtain UserID of the current user, then directly add a filter to the dataset as below:
    Expression: [UserID]
    Operator: =
    Value: [&UserID]
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • How to call text file using Script in Data Integrator

    Dear All, Can any one assit me in how to call a text file using script with the help of Data Integrator. and one question ? M having 32 csv files i want to club thos 32 csv files into one table with the help of Data Integrator, can any one assist me.

  • How can I backup my files from a dead hard drive?

    When I startup my mac I get a blinking question mark on a folder. I assume I have to replace my hard drive but there are files that I absolutely cannot lose on there! I know my files are there so how can I get to them? I've tried holding C on bootup

  • Download internal table to excel with header

    Hi All, I have a requirement to download internal table contents to excel with field headings. I tried searching in forums before posting but didn't got much help. I have used GUI_DOWNLOAD, WS_DOWNLOAD and EXCEL_OLE_STANDARD_DAT. But unable to downlo

  • How do I save to individual folders on my hard drive?

    How do I save items to individual folders on my hard drive? When I try now it shows the Macintosh HD icon as an option but not the individual folders I've created there. I think I need to go in to Automator but I must be doing something wrong. I sele

  • Acquisition value negative in area

    Dear All , I got an error that is "Acquisition value negative in area "  while running CJ88 . The total of APC for that asset  is zero , not have negatif balance. ( The option of negatif value is allowed is not selected on asset.) Why i got that erro