How to get IUserContext from IUser ?
Hello All,
I am trying to get the IUserContext object from IUser object.
I found a very easy method
com.sapportals.portal.prt.session.IUserContext userContext= request.getUser();
which will give IUserContext object.
What I am trying to do is to get the same from an userid.
Regards
Bobu
Hi,
As per my knowledge; UserContext stores the user session related information. Hence UserContext cannot exist without associated session.
Hence UserConext cannot be fetched using IUser API. Please check API - http://help.sap.com/javadocs/NW04S/SPS09/se/index.html
Regards,
Ganga
Similar Messages
-
How to get an authenticated IUser from an EJBContext
Hi,
i want to use the KM API from Session and Message Driven Bean.
I do not want to use a Systemuser for traceability reasons, therefore i need the actual user who started the process.
I thought that myContext.getCallerPrincipal() should do the job, but i am not sure how to get a authenticated IUser object from that.
Thank you very much for any help!
Best regards
JochenIs this problem solved?
-
how to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos
Make sure Settings > iCloud > Photos > iCloud Photo Library (Beta) = "Off"
Then sync your iPhone using iTunes and make sure your sync settings for photos are set correctly in iTunes. -
I got a new computer and don't know how to get music from ipod touch to itunes library
I recently got a new computer and don't know how to get music from my ipod touch to show on my itunes library.
You need to transfer the iTunes folder from the old computer to the new one.
iTunes: How to move your music to a new computer (Mac or Windows):
http://support.apple.com/kb/HT4527 -
I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card. Can anyone help, please?
Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
Matt -
How to get data from a USB-UIRT device using Labview?
How to get data from a USB-UIRT device using Labview?
I'm trying to get data from a USB-UIRT device, is it posible with Labview?
I really appreciate your help,
thanksYou may want to contact the developer of the device for the API and DLL.
http://65.36.202.170/phpBB2/viewforum.php?f=3 -
How to get file from server while click on link
Hi,
i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
following is the Destination url that i gave for the item.
/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
please tell me how to get file from server while click on link.Ok I got your requirement now.
If you are getting file names from view attribute then you should not be adding destination URI property for the link.
Instead you can use OADataBoundValueViewObject API.
Try below code in your controller processRequest method:
I am assuming that you are using classic table.
Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
OATableBean tableBean =
(OATableBean)webBean.findChildRecursive("<table item id>");
OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
Regards,
Sandeep M. -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to get FILENAME from FILE PATH
does anyone know how to get filename from a file path for example
FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
returns
FILENAME: Button.txt@BalusC
ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser. -
How to get data from PDF form?
PDF forms can send data in url like GET or POST method. Is it possible to get data from url, like in PHP http://sever/file.php?item1=value1&item2=value2&item3=value3
In APEX url have specific construction and I don't know how to get value of items (1...3)
Please let me help to find simple method of geting data from URL.
Best Regards,
MarkThe APEX URL syntax is detailed here
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BCEDJBEH
How to get it from PDF is another matter...
I'm working on an app that downloads PDFs with a Large amount of data as a blob, takes that blob and changes it to XML, then goes through the xml to validate each section of data and then add it into the schema that my apex app is referencing....
I didn't write the original code but I do know that it isn't a quick thing to implement and includes using some uploading some java jar files to your schema and writing some custom java code.
Someone else may be able to help with grabbing PDF data into the URL for the amounts of data you want to pass to apex.
Gus..
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!
Edited by: Gussay on Sep 21, 2009 5:52 PM -
How to get Position from EmployeeInfo in DIAPI
I am using DIAPI(JCO) for SAP B1. According to one or my reuirement i am in need of Position from the EmployeesInfo. But there seems no option or method for getting position from that. Can anyone guide me how to get that from EmployeesInfo ? Any help is appreciated..
Looking at the DI API properties vs. DB fields mapping documentation in the SAP Business One developer area (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c5f5dbcc-0a01-0010-5d82-f25f2bee715e)
it seems that this field is not exposed (yet).
I.e. you could only run a SQL statement to get this information.
Sorry,
Frank -
How to get songs from computer to iphone
how to get songs from computer (I tunes) to iphone?
Have you read the User Guide? http://support.apple.com/manuals/#iphone
Syncing iPad, iPhone, or iPod touch with iTunes
Syncing music to iPod or iPhone -
How to get videos from touch, in full resolution?
How to get videos from touch, in full resolution?
I tried email, but that compresses them.Import them as you would from any digital camera.
http://manuals.info.apple.com/enUS/iPod_touch_iOS4.1_UserGuide.pdf -
How to get resultset from oracle procedure use ejb3
how to get resultset from oracle procedure use ejb3
i know oracle procedure should like this
Create or replace PROCEDURE resultset_test(
aaa IN NUMBER,
bbb OUT sys_refcursor) ....
but what s the ejb3 scripts looks like? please give me an example or link~
ths- there are no EJB3 scripts, only compiled application code
- the part of the EJB spec that deals with databases is called the Java Persistence API, but likely you are just looking for the JDBC API.
Now you should know what to Google to get your "example script": "java jdbc oracle procedure" -
How to get response from such a function
How to get response from such a function (in MODULE USER_COMMAND_0010 INPUT I get "ODGOVOR" 'X'
FUNCTION Z_SEENKRAT.
""Local Interface:
*" EXPORTING
*" REFERENCE(ODGOVOR) TYPE MSEG-KZEAR
DATA ok_code LIKE sy-ucomm.
DATA: test like mseg-kzear.
BREAK-POINT.
call screen 10.
test = ODGOVOR.
ENDFUNCTION.
*& Module CLEAR_OK_CODE OUTPUT
text
MODULE clear_ok_code OUTPUT.
CLEAR ok_code.
ENDMODULE. " CLEAR_OK_CODE OUTPUT
*& Module USER_COMMAND_0010 INPUT
text
MODULE USER_COMMAND_0010 INPUT.
DATA odgovor LIKE mseg-KZEAR.
CASE ok_code.
WHEN 'DA'.
ODGOVOR = 'X'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0010 INPUTHi,
You need to declare the ODGOVOR variable in the TOP include, then you will get the value
Regards
Sudheer
Maybe you are looking for
-
My iTunes won't open, getting error message.
"The iTunes application could not be opened. An unknown error occured (13010)." Help?
-
Issue regarding cell action in webdynpro for abap alv
hello gurus, i have one requirement in webdynpro for abap alv.i have one alv table in that i have one coloun employee name. for that i have provided F4 help and that is editable field.if i select value from F4 help it is getting value correctl
-
Save option grayed out when saving as???
I am just beginning the tutorial for FCP 5.1.2 but don't seem to be able to save the new tutorial project as the button for "save" is gray, not blue and therefore inaccessible. Also note that the format button in the same window with project as the d
-
Create jsf jsp page / page implementation / third option is not visible
The third option (check box) for page implementation settings in the create jsf jsp page is not visible. The window is not resizable.
-
Download/upload abap objects to/from local PC
Hi all, I need to download objects of a tcode (like includes, reports etc) on to PC and upload it to different server. Can anybody please send me the programs to upload and download objects. Thanks in Advance