How to get the currency of the logged in user using an el expression
I want to get the currency of the logged in user using an el expression. I can get the same using ApplSessionUtil.getCurrency(). But can i get the same using an el exprssion?. I want to use this el expression for setting the default value of a VO attriubte
Thanks in advance
Hi
If you are getting the currency value from ApplSessionUtil.getCurrency() set the result of the value to one of your VO on Bean and use it in your el expression .
Thanks
Raghav
Similar Messages
-
How to get the log information when using a class?
Hi All,
I have a simple question, which I don't know how to solve. I am using org.apache.commons.logging.Log and LogFactory to do some logging. A typical situation is exemplified in the following code snippet.
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
class LogClass {
private static final Log LOG = LogFactory.getLog(AClass.class);
public void logit(){
LOG.debug("This is the debugging log.");
public class AClass{
public static void main(String[] args) {
LogClass l=new LogClass();
l.logit();
}But this way, I do not get the log information from the class LogClass. Could anybody please help?
Many thanks.jschell wrote:
jverd wrote:
...configuration in log4j.xml or log4j.properties.And far as I recall you need one of those two also. If there is no config then there is no output.I thought it used some default config if no file is present, but I could be mistaken. Either way, it adds to the possible problems that the OP could be having, any of which are consistent with his rather vague question.
1) He's passing the wrong class to the LogFactory, and hence getting a logger with the wrong name, so he's seeing a different name than he expects in the output that's being produced.
2) His config file does not contain the proper format to include the actual classname, independent of the logger's name, so he's missing a piece of desired information in each line of the output that's being produced.
3) His config file indicates a threshold that's less verbose than the level at which his code is logging, so no output is present when he wants it.
4) His config file is missing (or not where it's expected to be), so no output is being produced at all.
5) His config file is missing (or not where it's expected to be), so a default level or format is being produced, effectively the equivalent of one of the misconfigurations described in #2 and #3.
Since the OP seems to have vanished, we may never know. -
How to get the logged in user to accept remote management
Hi,
It possible to have the currently logged in user to accept or reject a Remote Desktop connection?
The reason is that the remote administrator taking control should not be able to see the currently logged in user without him knowing it. I know about the "being observed" icon but that's not enough.
I want the remote administrator to be able to work freely when no users are logged in but if a user is logged in, I want some kind of request/validation-or-rejection mechanism before the remote desktop administrator can take control of the mac.
Is that possible?
LudoARD supports both modes that you desire... The problem, as I recall, is that these are "all or nothing" switches you get one way, or the other, but you can't have it both ways.
The controls for these options lie behind the "Computer Settings..." button in the Sharing Prefs panel.
"Anyone may request permission to control the screen"
and
"VNC viewers may control the screen with password:" -
How to get the logged in userId value in adf task flow OIM11g R2
Hi,
I have created an adf task flow. Now I want to run some query in that based on the logged in userId.
Could you please help me in knowing how to get the logged in userID value in adf TaskFlow so that I can run a parameterized query.
Thanks3 different ways to retrieve the username (not sure what you mean by user ID) :
http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
Also provide your JDev version.
Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
That's if you are using ADF BC of course. -
How to get the logged in userId value in adf task flow
Hi,
I have created an adf task flow and deployed the same in application as an adf library.
Now I need to get the Logged in User ID value in the adf task flow which I created.
Based on this userid I need to run query to fetch the data related to the user from the database.
Please help/guide me to solve this issue.3 different ways to retrieve the username (not sure what you mean by user ID) :
http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
Also provide your JDev version.
Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
That's if you are using ADF BC of course. -
How to get the active application users IP address in R12 by sql command
Hi ,
I need to know how to get the active application users IP in R12 by sql command
in order to kill any session by the IP address ?
Am working on 12.1.3 Application
And 11.2.0.3 Oracle Database
Thanks936921 wrote:
Am still couldn't found the IP address for the connected Application users.
If there any select statement can help me with that?
Really? Then how do you explain me finding the following docs from the links I referenced above?
How To Find The IP Address Of The Client Machine From Where A Particular Forms User Is Connected ? (Doc ID 879092.1)
How to Track IP Address of the Form Session in Oracle application 11i (Doc ID 878931.1)
Where to find the Client IP Address for a Client in E-Business Suite? (Doc ID 1258415.1)
How To Get The terminal ID For The Machine From Which A User Is Logged To E-Business Suite Applications (Doc ID 751658.1)
Thanks,
Hussein -
How to get the list of users who has access for list of tcodes.
How to get the list of users who has access for list of tcodes.
Go to transaction SUIM, this has a number of reports for users/authorisations
open the Where used>Autorization Values>In Users
and double click to execute
in authorisation object, enter S_TCODE
then press the "Enter Values" button
It will offer entry boxes to put the transaction code you are interesed in.
Then execute and the list of users with access to this transaciton code will be returned. -
How to get the room id & user id in our component
Hi Experts,
Collaboration -> Rooms -> Room Directory
It will show the available rooms
Select restricted room tab in that.
That will show the restricted room list, if you are not a member of the room you can request the room by clicking context menu of the room and select the Request Membership option. Then it will send the mail to the owner of the room.
In that UI commend they mapped with the roomid and userid.
I need to know how to get the room id & user id in our component.
How to get the Room Id dynamically?
Can anybody help me for this?
Helpful answers will appreciate.
Thanks and Regards,
Kathiresan RHi Kathiresan,
you can get the Room ID and the User ID over the API.
Getting User ID within WebDynpro application:
IUser user = WDClientUser.getCurrentUser().getSAPUser();
String logonId = user.getUniqueId();
Getting User ID within custom Portal Component:
IPortalComponentRequest request = (IPortalComponentRequest) httpRequest;
IUser user = request.getUser();
String logonId = user.getUniqueId();
Getting Room Id of a user who belongs to this room:
IUser user = request.getUser();
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
IRoom[] myRooms = roomsAPI.getAllRoomsForUser(user);
String roomId = "";
for (int i=0; i<myRooms.length; i++) {
IRoom room = myRooms<i>;
if (room.getName.equals('nameOfRoomToFind')) {
roomId = room.getId();
Greets
Denis -
How to get the footage's current frame number in expression?
There are 2 layers.One is text layer,one is sequence layer.
Footage has begun from the 20th frame.
Therefore, the number of composition's current frame number and footage's frame number has shifted.
I want to show footage's frame number in text layer . not composition's frame number.
How to get the footage's current frame number in expression?
Tatsuya>Footage has begun from the 20th frame.
Do you mean that the footage layer has been trimmed (so that the start of the footage lines up with the start of the comp, but the first 19 frames are not visible), or moved to the left (so that frame 20 lines up with the comp's frame 0), or that the sequence actually begins with the 20th frame (at frame 0 of the comp), or something else?
Are the frame rates of the comp and the footage the same?
Dan -
How to get the ESS & MSS users in ECC 6.0 into portal
Hi Experts
How to get the ESS & MSS users in ECC 6.0 into portal
Thanks
DayaHi,
You need to have SSO in between ECC and portal and use ABAP engine as your UME.
then ECC users can directly login to portal using the same user id and password.
Or you can create the ECC system in portal and user mapping should be done for every user to the ECC system.
Thanks,
gopal -
How to get message in realtime sent by another user using FM TH_POPUP?
I want to program a chat function between two SAP users by using ABAP.
1.User A send a message to user B by using TH_POPUP,
At the same time, the message is showed in screen as
'Send message'
2.User B get the message
->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AMHi there
This really isn't a "conversation" type program
1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure you'd want the original user to have a suspended session waiting for a reply.
2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen then there isn't any mechanism to return a reply from USER A'S SESSION.
You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
2 different users running the same abap don't actually have any common link between them even on remote function calls.
You need to have a central process here that shares a message space between the users (i.e a kernel type module).
Classical Abap won't do (nor is it designed for) these types of processes.
You might be able to find something in some of the 'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
ABAP unfortunately is not designed as a multi user "re-entrant" programming language - nor was it intended to be.
Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
Cheers
Cheers -
How to get a organization name for a particular user using API's
Hi alll,
How to get a organization name for a particular user using API'sYou need to do something like this:
SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
UserManager usrService = oimClient.getService(UserManager.class);
Set<String> retAttrs = new HashSet<String>();
retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key")); -
DBMS_DATAPUMP; how to get the log file of a job?
Hi
I want the user to be able to see the logfile of his job from another session.
this is my procedure
create or replace procedure get_job_log (p_job_name IN varchar2 )
is
hdl_job number;
l_job_state VARCHAR2 (20);
l_status sys.ku$_Status1010;
l_job_status sys.ku$_JobStatus1010;
l_job_logentry sys.ku$_LogEntry1010;
l_job_logline sys.ku$_LogLine1010;
begin
hdl_job := DBMS_DATAPUMP.ATTACH(
job_name => p_job_name
,job_owner => 'CLONE_USER'
DBMS_DATAPUMP.GET_STATUS(
handle => hdl_job
,mask => dbms_datapump.ku$_status_job_error + dbms_datapump.ku$_status_job_status + dbms_datapump.ku$_status_wip
--,timeout => 15
,job_state =>l_job_state
,status =>l_status);
l_job_logentry:=l_status.wip ;
for x in l_job_logentry.first .. l_job_logentry.last loop
dbms_output.put_line (l_job_logentry(x).LogText) ;
end loop;
dbms_datapump.detach(hdl_job);
end;
/when I run it for the first time, it works... kindof...
but my problem is that if I try running it again I get:
ORA-31626: job does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 902
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3407
if I close sqlplus session , open new one and run - it works. So what is the issue here? Is detach not enough? What else should I do?
my version is 11.1.0.6
UPDATE.
Looks like the above is not true. It doesn't error if it runs to the end of code... The problem seems to happen only when exception occures and .detach is not called. So this is not an issue anymore.
But I still don't get a decent performance from the .get_status function. Sometimes it just hangs and errors on timeout.
Still the question is: How can I get the LOG of the session using DBMS_DATAPUMP from another session and output it on the screen?...
Edited by: Andrei Kübar on Dec 23, 2011 12:44 PM
Edited by: Andrei Kübar on Dec 23, 2011 12:57 PMI believe I found a solution
I am now running the above code only 1 time but in a loop and inserting output into a table, so that user can query the table and see where the job is
here's the code I'm using (partially copied from http://psoug.org/reference/dbms_datapump.html)
l_job_state:='UNDEFINED';
while (l_job_state != 'COMPLETED') and (l_job_state != 'STOPPED') loop
DBMS_DATAPUMP.GET_STATUS(
handle => hdl_job
,mask => dbms_datapump.ku$_status_job_error + dbms_datapump.ku$_status_job_status + dbms_datapump.ku$_status_wip
--,timeout => 15
,job_state =>l_job_state
,status =>l_status);
if (bitand(l_status.mask,dbms_datapump.ku$_status_wip) != 0) then
l_job_logentry:=l_status.wip ;
if (l_job_logentry is not null) then
for x in l_job_logentry.first .. l_job_logentry.last loop
--dbms_output.put_line (l_job_logentry(x).LogText ) ;
writelog (l_job_logentry(x).LogText );
end loop;
end if;
end if;
if (bitand(l_status.mask,dbms_datapump.ku$_status_job_error) != 0) then
l_job_error :=l_status.error ;
if (l_job_error is not null) then
for x in l_job_error.first .. l_job_error.last loop
dbms_output.put_line (l_job_error(x).LogText) ;
writelog('Error: '|| l_job_error(x).LogText) ;
end loop;
end if;
end if;
--dbms_output.put_line ('Current job state: '||l_job_state);
writelog ('Current job state: '||l_job_state);
end loop;thanks all for your help -
How to get the EBS login user id from a current Logged User
Hi,
I need to get particular Logged user's User ID & filter out his business group id to taken it as the concurrent input parameter.
this can be done through a value set if i know logged user's user id but i have no idea how to find the logged user's user id.....!!
i get user id such SessionMgr,fnd_profile API's???
any suggetions appreciable...
Regards,
D f o r z
Edited by: Dforz on May 5, 2011 10:40 PMBy CO Gyan means OAF Controller. Are you sure your question is related to OA framework forums.
Let us know where exactly in OAF you want to capture these ids and pass it to concurrent program.
I think you should post your question to below forum
General EBS Discussion
Thanks
AJ -
How to get the logged in username or how to set the acquiredby?
We are using BPEL 10.1.2.0.2.
We have implemented CAS/OID to work with the TaskList. Our issue is with obtaining the logged in username while in the BPEL Workflow. Acquired by variable is not populated even after the task is acquired. Explicitly setting Acquired By doesn't work either (still comes as null).
This might be something quite simple, but I am not able to figure it out. Is there a way to get the logged in username or the user who acquired the task while in the BPEL workflow?
Thank you!I have no longer access to the custom worklist application of 10.1.2 but in 10.1.3 you can access it through:
SessionStore sessStore = SessionStore.getInstance(request.getSession(false));
String userName = ((IWorkflowContext) sessStore.get(WorklistappConstants.SESS_ATTR_WORKFLOW_CONTEXT)).getUser();Kind Regards,
Andre
Maybe you are looking for
-
Windows 7 / Arch Linux Dual-Boot - win7 keeps changing the boot flag!
Greetings! Its been a long while since I had to dual-boot with windows on the same machine. I 've installed windows 7 and then arch linux and installed GRUB on my sda1 where the /boot partitions is located at. I've managed to boot into arch successfu
-
Electronic signature in merged documents?
I am trying to create a new document using multiple files. Some of these files contain electronic signatures. Can the electronic signatures be preserved in the merged document?
-
I have a dv5-1235dx. HP posted new software for Win 7 (64) built in camera software. The install seemed to go fine, but once you click to run the software, nothing happens, so it seems. About a minute or so later, the application opens. Why is it
-
I am looking for software to store photos with. I am not a fancy photographer, and really am just looking for the digital version of a photo album. iPhoto is not cutting it, mainly because it does not back up and restore easily on an external HD.
-
Stuttery slideshiws when exported to iMovie
Hi there, I've been having a few problems recently getting photo slideshows for iDVD looking as good as they should. I had been using iMovie just fine, but had some photos that just looked awful. So I had a look at doing slideshows in iPhoto - much f