Whatever login to the page (username) that name I can see in my page
Hi,
I am creating a page called leave Request.One field is there called "name".Actually whatever I login (Suppose my name).That name i can see in that field..How I will get that?
Suppose I logged in as suman...that name I can see that field
This is my design page in WD java
Number:
Name:Suman
Gender:
e.t.c e.t.c
Regards,
Suman
Hi Suman,
If you want to get the uniquename of the logged in portal user use this code.
String Username = "";
IWDClientUser wdUser = null;
try {
wdUser = WDClientUser.getCurrentUser();
} catch (WDUMException e) {
e.printStackTrace();
IUser user = wdUser.getSAPUser();
Username =user.getUniqueName();
// for unique ID use user.getUniqueId().
for this you need to add the security.api jar file.
Right click on the project properties->addexternal jars and add this .jar file
If you want to get the Portal Roles then use the following code:
Iterator itr = user.getRoles(true);
IRoleFactory rfact = UMFactory.getRoleFactory();
while (itr.hasNext()) {
String roleName = (String) itr.next();
IRole role = null;
try {
role = rfact.getRole(roleName);
wdComponentAPI.getMessageManager().reportSuccess("Role:" +
roleName
+ "Display Name:" + role.getDisplayName()
+ "ID: " + role.getUniqueID()
+ "Uniquename: " + role.getUniqueName()
+ "Description: " + role.getDescription());
} catch (UMException e) {
wdComponentAPI.getMessageManager.reportException("error: " + e.getLocalizedMessage(),true);
Regards,
Jhansi
Similar Messages
-
Before i used CS illustrator i was able to indicate the used pantone colors on a print or PDF with coreldraw.
Can anyone tell me how to make such a print with CS6.
My clients have to see the used Pantone colors in the design (not CMYK)Add your spot colors to your swatches panel (Window> Swatch Library> Color Books> Pantone+ Solid Coated>)
In the fly-out menu on the swatches panel, select all unused swatches and delete. Also delete any unused swatch groups.
File> Document set-up> make the bleed .5".
Use the type tool to indicate the spot colors on the outside edge of the bleed area, make the type color match the indicated spot color.
Save as PDF. This PDF printed with bleed will show the spot colors. Alternately, you could select "add crop marks and color bar" in the print settings, which should also indicate the spot colors.
In InDesign you can add a Slug area to your page, where the spot colors would typically be added. -
Set NameFor unit of work & get the Uow from that name
Hai
Its possible to give Name (or Id ) For Unit of Work after some time get Back the unit of work from the Name (or Id ) its possible
Eg
UnitOfWork uow = .
uow.setName(sample);
after some time
get the unit of work from the name (sample)
Thanks in advanceHello Chris,
Thanks for the quick response
In our Application I have the two layers Layer1 & layer2
In the Layer1 I did the following work
1) Business validation
2) Make the call to layer2 (for Insert, update, delete, fetch)
In layer2 I have TopLink coding (for Insert, update, delete, fetch)
I want to do Insert, update, delete in single Transaction.
Each and every operation (Insert, update & delete) is separate call to Layer2 from Layer1
So I must start the transaction (UOW) in Layer1 to commit and rollback.
For Eg: To delete the object, I need the UOW in layer2. But the UOW present on layer 1
unitOfWork.deleteObject(employee);
According to our Framework specification we dont want to transfer the unit of work from Layer1 to Layer2.
So I plan to give the name for UOW & get the UOW from that Name
Give the solution for this ..
Thanks in advance -
How do I use a font variation in a pages document? or other app for that matter? I no longer have the "viewer" - glyph option in the special characters pane (under edit in toolbar). I know the varaition ia available because I can see it in my font book. I depended on that alot so I need to find a way to still use character and embellishments. I don't want to have to go back to my od computer (from2007) Please Help!
I really don't understand.
The menu item is available :
Maybe, you didn't activate the tool :
Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 23:10:17
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
Whenever I modify a photo in Iphoto it puts it in a "modified" subfolder. Why can't I move this modified file (I changed and saved file name) back to the Iphoto main file so I can see it when I open my photos?
A good general step for strange issues is to renew the iPhoto preference file - quit iPhoto and go to "your user name" ==> library ==> preferences ==> com.apple.iPhoto.plist and trash it - launch iPhoto which creates a fresh new default preference file and reset any personal preferences you have changed and if you have moved the iPhoto library repoint to it. This may help
This does not affect your photos or any database information (keywords, faces, places, ratings, etc) in any way - they are stored in the iPhoto library - the iPhoto preference file simply controls how iPhoto works - which is why renewing it is a good first step.
If that does not cure it backup up your iPhoto library and rebuild it - depress the option and command keys and launch iphoto and use the options there - exact option depends on teh version you have
And always remember - NEVER make any changes of any sort to the structure or content of the iPhoto library - nothing - no deletions - no name changes - nothing
LN -
After migrating data from Time Machine, some of my photos are not showing up in iPhoto LIbrary view. I get a 'dashed rectangle." When I click on it I get ' ! in a Triangle" When I click on that, I actually can see the photo. I want to see all my photos in 'Library' view, and I can't figure out how these photos seem to be arbitrarily hidden. Help, please.
Try these for the first attempt:
First be sure to have a backup copy of the library if you already don't have one.
OT -
I accidentally dropped my friend's macbook air that was in a book bag. The keyboard is working because I can see the light but the screen is black and it won't turn off. How should I fix this? Please Help ME!!
I tried to turn it off and it didn't work... and I held on to the shift key too and it still doesn't work..
Please help me..Accidental damage is not covered under Apple warranty. And it seems there is much accidental damage. Only a Genius Bar tech looking at it can tell how much it will cost to repair.
Cost to repair will be high, I suspect (though Genius Bar will confirm/deny.
There is no gentle way to say this sir/ma'am ... someone will need to pay for your friend's MBA repairs. -
I just installed Photoshop Elements that is supposed to be for Mac. The message appeared that said, ""You can't open the application Photoshop Elements 2.0 because PowerPC applications are no longer supported." I have a Mac OS X, Version 10.8.5,
Have a look here:
https://www.google.com/search?q=%22You+can%27t+open+the+application+Photoshop+Elements+2.0 +because+PowerPC+applications+… -
I'm trying to edit a talking head video and want to find an straightforward way to mark a spot at the end of a statement made by the subject and then cut the clip at that point. Can you help? Thanks.
I don't know how to mark a clip the way you want without adding an audio clip and putting in markers and then splitting the clip. You would think that hitting M would be the logical way to do things, but...
But, one can just click before the place one wants to edit, hit the spacebar and hit it again when the exact place is reached. Then go to the clip menu and click split clip. That works, but one really needs to keep the cursor out of both the timeline and the event browser, or the place in the timeline gets changed..
Are you really still using iMovie 08? That drove me nuts...a year later iMovie 09 came out with some needed improvements, and iMovie 11 with its audio adjustments is even better.
Personally, I edit iMovie with kind of a meat axe. I grab whole chunks of video and put it into the project, then edit the ends to get the frame I want. I got too frustrated otherwise.
Hugh -
How to set the maximum length that a user can enter in Msgstyledtextinput
Hi Everyone,
I'm currently using EBS 11.5.1 and 10.2g DB
Is there a way that I can set the maximum length that a user can input?
I changed the Maximum Length to lower number (from 150 to 100) but I get the following error.
Developer Mode Exception encountered in item SaveLocation
Error: The item SaveLocation has a maximum length (100)
which is not equal to that of the corresponding VO attribute
, SaveLocation length (150).
Action: Make sure they are equal in size. There must be other way to set that value
Thanks,
ElmerYou have to set the maximum length of column to 150 to avoid this error.
You can set the same in Jdev.
Thanks
--Anil -
When I try to open the shared library on the 2nd computer (the one I want to xfer music to), the only songs that come up are those that are already in that same library (the library on the 2nd computer). While I can see computer #1 listed under 'shared,' when I click on it the only songs I can see are those that I already have on the 2nd computer. Hopefully that makes sense. Basically, the library from computer #1 isn't loading up.
What level of OS X is installed on your Mac (your profile is incomplete)?
Barry -
Hi
Please don't make multiple posts, your question has been answered in your other thread.
I have imported my music from my iPhone to my Mac book pro. The problem is that now I can't listen to it. It's stating that my computer is not authorized. How can I authorize?? -
I have brought Lightroom 5 for a new MACBOOK PRO, but wondering, am I still alllowed to load on my desktop as well running Win 7? It looks like the office enviroment that says you can!
Eww, thanks for your reply, as it makes good sense, and common sense is practical when you walk into an Apple store.
I guess all the reviews and great specs of the new MB pro's made me want one...
I should probably use my current setup till it is totally outdated or simply is beyond repair.
I could ask Santa Claus for one, but by than, the 2012's will be coming out..:)
Thanks Eww for your reply, IAN.... -
When in Mission Control I'd like to label my various Desktops to give the different work spaces names. Can this be done?
No, it can't. Send feedback to Apple about this
-
If i have an ipod and an ipad,the ipad apps that i bought can i download them for free on ipod?, If i have an ipod and an ipad,the ipad apps that i bought can i download them for free on ipod?
Some apps are universal ( noted by the "+" symbol).
All others will only work on the ipad or iphone/ipod, not both.
Maybe you are looking for
-
How to send jpegs in a text message
Is it possible to send jpegs in a text message?
-
Attempting to use USB/Easy Transfer from XP to 8.0
Easy Transfer copies XP for a minute or so, then pop-up says "Problem with selected media". No further info provided. New unused 64GB SanDisk. What do I do now? Thanks from old guy that doesn't speak computereze.
-
Possible to Merge Reports?
I was wondering if it is possible to concatenate several different reports in PDF format together, so the user can click on a web link that will show multiple reports in one PDF file rather than have to click through to each seperate report. Can it b
-
How to use a transferfunction as a sub VI
Hello, Iam trying to make a pid controller.I succeed when I used a transferfunstion H(S) as the parameter to control.It is attached with the name controlsystemdesign.vi.But my aim is to use my own transfer function pidcontroltransfun.vi inst
-
Why does my laserjet 5p keep detecting as postscript?
I have a LaserJet 5P. When I install it, I don't get the option to select that it's postscript or non-postscript. Consequently all of my documents look like userdict()print flush}%%BeginFeature which is very rarely what I wanted. Why is my computer o