How to get the ep user information data in the web dynpro?

Hi all
  I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.

Lin,
Two steps to achieve this:-
<b>Step 1:</b> Add the following code in your view Controller:-
IWDClientUser user = WDClientUser.getCurrentUser();
IUser objUser = user.getSAPUser();
wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
wdContext.currentContextElement().setYYYY(objUser.getFirstName());
wdContext.currentContextElement().setZZZZ(objUser.getLastName());
where XXXX, YYYY , ZZZZ are the context names.
getUniqueName : Gives Login id of Portal user.
getFirstName : Gives First Name of the Portal user.
getLastname : Gives Last Name of the Portal user.
<b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
The external jars are :
<b>com.sap.security.api.jar
com.sap.security.api.perm.jar</b>
Finally rebuild your project and deploy.
Regards,
<b>Chintan Virani.</b>

Similar Messages

  • Displaying the current users information instead of the value of the person who completed the form in the first place.

    I found this fantatic post regarding querying the user profile service 
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx?pi47623=2#comments 
    However i have an issue whenever the form is opened again either to view or edit, it displays the current users information
    instead of the value of the person who completed the form in the first place.
    Please help me, I'm turning more grey each minute

    I think it is how the current user information is stored based on your logic.
    You might be quering current value again when loading the form (Form load Rule).
    you have to tweak your logic, after the user submits the form you can set the username to the one who saved it.
    or in form load, write a logic to see if the form was not saved before and then query the username( by using internal field like "formstatue")
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • How to get SSO logged user information in a database trigger

    my database is 9i
    my application server is 9i too
    I need to track which SSO user is inserting data into a table , so how can i get the information of that user in a database trigger on that table
    thanks

    Hi,
    The only way I could figure out how to get it was to import the com.sap.security.api.
    1. From Window>Preferences>Java-->Classpath Variables, set up a variable called WEBAS_HOME pointing to:
    <drive>/usr/sap/<SID>/jc00/j2ee/cluster/server0/
    2. Right click on properties of your Dynpro Project->Properties->Java Build Path->Libraries and click "Add Variable." 
    3. Select WEBAS_HOME and click "Extend"
    4. Select /bin/ext/com.sap.api.sda/com.sap.security.api.jar and click OK.
    If you don't have access to a portal directory, you will have to get this jar file and copy it to your workspace to add to your build path instead of the above steps.
    Then in your code:
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
      public void GetLogonID( )
         String LogonID;
         try {
              /*     create an user object from the current user */
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
              IUser user = wdUser.getSAPUser();
              if (user != null) {
                   IUserAccount acct = user.getUserAccounts()[0];
                   if (acct != null) {
                        LogonID = acct.getLogonUid();
                   } else
                        LogonID = "acct null";
              } else {
                   LogonID = "user null";
              wdContext.currentContextElement().setDisplayName(user.getFirstName() + " " + user.getLastName());
              wdContext.currentContextElement().setLogonID(LogonID.toUpperCase());
         } catch (Exception e) {
              e.printStackTrace();
    Hope this helps...  I had to search several places before I found all the necessary stuff.  Maybe I can get my first points!
    Thanks,
    Andrew

  • How to get more than 256 bytes data

    hello.
    I use Schlumberger 32K Card�iJava Card 2.1�j.
    Please tell me how to get more than 256 bytes data from the applet in the card!!
    According to JCRE specification, need to use Get Response Command.
    What is Get Response command?
    Do I have to write processing of Get Response command to an applet?
    Or JCRE processes Get Response command?
    If knows, please tell me about!!
    Thanks.

    Thanks for your response!!
    I understand that I have to write processing of Get Response command to an applet.
    But case of Schlumberger 32K card, when host send Get Response command to an applet, card reply 6F-00!?
    I'm investigating now, and it seems that response is returned before applet processes Get Response command(CLA = 00, INS = C0).
    Do JCRE perform the process of Get Response command?

  • Get portal user logon details from abap web dynpro

    Hi all,
    I am developing an abap web dynpro which will be added via an iview to our ees/mss portal. What i need to know is how do i get the current user logon details in my web dynpro! i.e. if a user is loged into the portal using personnel number 111111 i need to be able to capture this value so that i can retrieve hr data for this personel number! any information would be much appreciated!
    Regards
    Mart

    Hi Mart,
    You can pass "iv_user=<User.LogonUid>" as application parameter in iview.
    add iv_user parameter in HANDLEDEFAULT method of default window of webdynpro component.
    that's it.
    when u run your webdynpro application, you can have value of portal logged on userid in iv_user.
    hope this will help u a lot.
    [Visit this thread|Re: WD4A: pass portal logged in userID to WebDynpro ABAP IView.]
    -Haresh Khandal

  • I'm looking into how apps use the cloud. Would you consider any app with social media access as uploading information to the cloud? e.g. being able to tweet through an app is the same as uploading data to the cloud

    I'm looking into how apps use the cloud. Would you consider any app with social media access as uploading information to the cloud? e.g. being able to tweet through an app is the same as uploading data to the cloud

    Most of us in this forum are users who volunteer on technical issues, and not Adobe employees although they do drop in from time to time. As users we simply have no control over activation and that's why you are not getting responses.
    If you havn't done so,you might try the Muse forums and see if you can get a staff member to look into it. Have your case numbers and phone transcripts handy.
    Last option is to keep calling customer service until you get someone who will help or ask for a supervisor.
    Hope this get resolved,
    Gene

  • How to verify the user information pass by the form with a stored procedure?

    Hi,
    I would like to know how to verify user information pass by the form with a stored procedure.
    I want make a portal which accepts to new user registration, but I want verify the new user's informations (like the name don't contain a number etc).
    Thanks for your help
    regards
    jla

    Hi Samson,
    You can use the UI API to do this. You can catch the form_ADD event and then validate the input from the users. You can even block the event from completing (and stop the document from being added) if your code finds some incorrect data using the bubbleEvent functionality.
    I don't have one specific example to show you, but if you look at some of the SDK samples (for example C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\02.CatchingEvents) to see how to work with events, you can then create your own validation to ensure the users data is valid.
    Regards,
    Niall

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • How to get the health , performance information and about the services run on devices that have connected to the system center?

    Hi All,
    I want to know how to get the health , performance information and about the services run on devices that have connected to the system center to my c# application. Also I need to know about the information of databases that have connected to system center.
    I will appreciate your feedback
    Thank you

    Hi,
    You can configure service monitor for the required service on the server
    refer below link for how to configure service monitoring
    http://www.bictt.com/blogs/bictt.php/2011/03/17/scom-monitoring-a-service-part3
    You can use SCOM SDK to connect to the scom server using c# and get required information
    http://msdn.microsoft.com/en-us/library/hh329086.aspx
    you can find the database in below registry path on management server
    HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup\DatabaseName
    Regards
    sridhar v

  • How to get window system user?

    Hi,
    How to get window system user use PL/SQL(form develope6i)?

    If you don't use Oracle database then you will have to do one of two things:
    (1) Now I'm back in the office I can check D2KWUTIL. The version I have comes with Forms6.0, so it is somewhat out of date, but it has a method called WIN_API_ENVIRONMENT.Get_Windows_Username - which works for NT/95 only, although I'm sure a later version will support more recent OS.
    (2) If that's no good then you'll have to use whatever facilities your database offers: I only know Oracle.
    I also repeat my suggestion that you try the Forms forum for additional help. This is the Database forum and so is focused on serverside Oracle PL/SQL. For your needs the Developer Suite forums are better.
    Cheers, APC

  • How can I programmably extract the project build information set in the project build specification. So I can then use the information in an 'About' dialog.

    Extracting Project information
    How can I programmably extract the project build information set in the project build specification.
    So I can then use the information in an ‘About’ dialog.
    Dave

    In the labview\resource\appbuild folder their are some VI's that can deal with build specs! They return a variant containing the data!
    It's the reason I build a variant probe.
    Be aware that the build info is not present in th lvproj file of the built executable!
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to get or show multiple record data pagewise using JSPBean and HTML

    Hi ,
    I am using JSP bean for getting the data from database and html toe present the data.
    The problem is when the user inputs data
    in the search field and clicks on Search button ,i need to get all matching rows fromw the database ,which i am already getting.
    Now if i have got suppose 100 rows i need to show 6 recrods on each page the rest should be shown when the user clicks NEXT or PREV buttons.
    example
    Name: input data here
    Description: input data here
    SEARCH Button
    Show here the first 6 records
    PREV 1 2 3 4 5..... NEXT
    The page will look somewhat like this.
    So the rows will be shown just below the search fields .If i am getting more than 6 record i should show PREV and NEXT with the number for each page holding 6 records.
    Have anybody worked on such thing can you help me out .
    Thanks

    Hi This may help, Previous does not work properly, coz I didnt find much difficult to code so you can build on your own from Next option logic
    Here is the code. Here and there couple of probs exist but they are solvable easily,
    <HTML>
    <%@ page language="java"
         import="
         java.util.* "
    %>
    <%!
         Vector customers;
    %>
    <%!
    void dummyMethod()
         customers = new Vector();
         for (int i=0;i<30;++i)
              // Prints only one time when browser opened first time.
              System.out.println("I:"+i);
              customers.add(i+"");
    %>
    <body>
    <script language=JavaScript>
    function getNextRows(begin,end)
         document.frmPage.begin.value = begin;
         document.frmPage.end.value = end;
         document.frmPage.which.value = "next";
         document.frmPage.action = "getRows.jsp";
         document.frmPage.method="post";
         document.frmPage.submit();
    function getPrevRows(begin,end)
         document.frmPage.begin.value = begin;
         document.frmPage.end.value = end;
         document.frmPage.which.value = "prev";
         document.frmPage.action = "getRows.jsp";
         document.frmPage.method="post";
         document.frmPage.submit();
    </script>
    </body>
    <%! int x = 0; %>
    <HEAD>
    <TITLE>Customer Account Information</TITLE>
    <META HTTP-EQUIV="Expires" CONTENT="0">
    </HEAD>
    <BODY BGCOLOR = "#FFFFFF" >
    <form name=frmPage>
    <input type=hidden name="begin" value="0">
    <input type=hidden name="end" value="10">
    <input type=hidden name="which" value="">
    <H2 ALIGN="CENTER"><FONT COLOR="#000099">Customer Account Information</FONT></H2>
    <H2><FONT COLOR="#000099"></FONT></H2>
    <P>
    <TABLE BORDER="1" cellpadding="0" cellspacing="0" WIDTH="80%" ALIGN="CENTER">
    <TR>
    <TD WIDTH="10%" BGCOLOR="#CCCCFF"><FONT FACE="Italic">Acct# </FONT> </TD>
    </TR>
    <%
    int begin = Integer.parseInt((request.getParameter("begin")==null)?"0":request.getParameter("begin"));
    int end = Integer.parseInt((request.getParameter("end")==null)?"10":request.getParameter("end"));
    int max=0;
    if (request.getSession(false).isNew() ||
    request.getSession(false) == null)
         dummyMethod();
    max = customers.size();
    String     which = (request.getParameter("which")==null)?"next":request.getParameter("which");
    if (which.equals("next"))
         for (x = begin; x < max && x <= end; ++x)
              out.println("<TR>"+
                   "<TD WIDTH='50%' BGCOLOR='#CCFFCC'>"+customers.elementAt(x)+"</TD>"+
                   "</TR>");
         begin = end;
         end +=10;
    else
         for (x=begin; x <max &&x <= end; --x)
              out.println("<TR>"+
                   "<TD WIDTH='50%' BGCOLOR='#CCFFCC'>"+customers.elementAt(x)+"</TD>"+
                   "</TR>");
         end = begin;
         begin -=10;
    %>
    </TABLE>
    <%
         if (begin == max)
              out.println("<tr><td>Next  <a href='javascript:getPrevRows("+begin+","+end+")'>Previous </a></td></tr>");
         else
              out.println("<tr><td><a href='javascript:getNextRows("+begin+","+end+")'>Next </a></td></tr>");
    %>          
    </BODY>
    </HTML>

  • How to log into Mountain Lion if the FileVault user can't unlock the drive?

    I have a computer that has the FileVault user not able to decrypt the drive. I've read on how to get into the machine and have successfully done so a few times. This has been accomplished by creating a new Admin user, deleting the original user, recreating it as a clean new user. Each time I give the computer back to the owner and he tries to restore from a backup. The problem is, he restores and it creates the same problem.
    The most recent time he did this, I could not for the life of me figure out how to create a new user. When I try to log in as the FileVault user I get the "unable to log into filevault user account at this time" error.
    The only way I could figure out how to get another admin user created so that I could delete his user was to reinstall the OS. Is that the only way this can be done?

    I don't think Verizon will release the username and password to the camera administration to prevent people from doing what you want to do.
    Even if you have the username / password, I would imagine there is a hefty equipment charge if you don't return the camera, which will make it cheaper to just buy a camera in retail stores.

  • Child forms are not getting displayed when user is linked through the targe

    I have provisioned the users to OID through OIM and we have the three child forms(USRB_ROLB,USRB_GRPD,USRB_NBNB) which work well when the user flow normally. Our normal flow implemented is that user comes from OHCM and get created in OIM and then get provisioned to AD and OID. We have also implemented the OID target recon. When we create the user directly in OID and then create the user through normal flow ie from OHCM to OIM) as expected the create user task fail as the user is already present in the OID (target system). Then after running the OID target recon the user is getting linked but its not showing the child forms in the new process form created after running the target recon.
    Please let me know if you require more information.
    Please let me know if anybody has encountered this issue and the steps to resolve the same

    what happened when you run target recon without creating user in oim(or just create user in oim without access policy and then run target recon)? Is this work fine?
    If no means you have to verify your child table mapping. But if above work then this the Produce/connector issue and may you need to raise SR

  • Is that possible to display the user selection data in the printable page?

    Hi All,
    I'm going to add a printablepage button on my page.
    Here comes a questions.
    Is that possible to display the user selection data in the printable page?
    For example,
    I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
    Please help.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

Maybe you are looking for