RE: (forte-users) user name
Troy Burns wrote:
It would definitely be of interest to me, since this is an item on my
"to-do" list. If you can release the code, let me know.Here 'tiz.
The files you're getting are:
SFVosC.pex - "C" wrapper.
Vos.C - The "C" callout.
Vos.H - A header file for Vos.C, used by ...
VosCLI.C - A command-line-driven mainline to test Vos.C
VosObj.CEX - An object that provides a "nice" interface to the "C" wrapper.
We use this in two ways: instantiated as a local object to get the username
under VMS or NT, or as a service object partitioned to an NT server to do
username/password authentication on behalf of clients on other operating
systems.
The following changes have been made throughout the files in an attempt to
keep various people in DuPont happy:
"our_application_root" replaces the actual name of the root directory of
the application.
"our_vms_server" replaces the actual name of the system in question.
"our_nt_server" replaces the actual name of the system in question.
"our_application_name" replaces the actual name of the application.
A copyright notice, the usual disclaimer, and a "fair use" statement (which
is just a reference to the Perl Artistic License) have been inserted.
Except for the "ExternalObjectFiles" declaration in SFVosC.pex, all the
changes appear to have been in comments. But the files come with the usual
freeware warranty (i.e. "use at your own risk".)
Have fun with these!
Tom Wyant
(See attached file: SFvosC.pex)(See attached file: Vos.c)(See attached
file: Vos.h)(See attached file: Voscli.c)(See attached file: VosObj.cex)
I would try going to the "lowest common denominator" between WindowsNT and
Windows95 - DOS. Both windowing OS's sort of have their roots in DOS, or at
least both are capable of opening a DOS session.
Therefore, from a DOS prompt type "set" to view the environment variables for
both OS types. Look for a common variable between the two that stores the
userID. If you can find one of these your application will be that much more
portable between these two Windows mutations.
I used "set" on my NT and found my userID assigned to a few variables. I haven't
done this on a Windows95 machine in quite some time, but if the machine is on
the network it should have at least one environment variable with the userID.
I'm just guessing that DOS has a variable to store the userID that will be
common to both machines.
Good luck....
Kelsey PetrychynSaskTel Technical Analyst
ITM - Technology Solutions - Distributed Computing
Tel (306) 777 - 4906, Fax (306) 359 - 0857
Internet:kelsey.petrychynSasktel.sk.ca
Quality is not job 1. It is the only job!
"Olivier Andrieux" <oandrieuxaxialog.fr> on 07/19/2000 09:12:41 AM
To: forte-userslists.xpedior.com
cc: (bcc: Kelsey Petrychyn/SaskTel/CA)
Subject: (forte-users) user name
Hi
I use this command to catch the username:
task.part.operatingsystem.getenv('username')
with NT, there is no problem
but with windows95 or 98 the command doesn't find the username.
Thanks in advance.
Olivier Andrieux
Axialog
Lille
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
Similar Messages
-
RE: (forte-users) User-visible service object
This solution will cause network traffic for all method calls on the
environment visible SO. This overhead is not incurred when calling methods
on a user visible SO in the same partition. Depending on the frequency of
calls and the volume of data being passed in and out, this could be
significant overhead.
We have successfully implemented the following.
Create a second User Visible SO based on the same class. Then you will be
able to partition the one SO into the client partition and the second into
the server partition.
For example, assume the underlying class is named MessageService then define
your SO's as
ClientMessageService -> MessageService
ServerMessageService -> MessageService
Andy
-----Original Message-----
From: Amin, Kamran [mailto:kamran.aminlendware.com]
Sent: Wednesday, August 23, 2000 10:17 PM
To: 'Duncan Kinnear'; kamranaminyahoo.com
Subject: RE: (forte-users) User-visible service
object
Duncan,
Make the user visible service object to an
environment visible
service object. This way the client and any service object
on the server
can access it.
ka
-----Original Message-----
From: Duncan Kinnear [mailto:duncanmccarthy.co.nz]
Sent: Wednesday, August 23, 2000 7:47 PM
To: kamranaminyahoo.com
Subject: (forte-users) User-visible service object
Hi folks!
We've got a user-visible service object that handles
initialisation of and
access to the message catalog.
This works well on the client, but we would like to use the
same
mechanism (and even the same service object) on the server
so that
service objects on the server have access to their message
catalog on
the
server.
I was hoping that if we referenced this user-visible service
object in
both the client and the server code, that it would partition
a copy in
each of the client and server partitions. However, we
cannot get this
user-visible service object duplicated on the server. If we
drag and drop
it onto the server partition in the partition workshop, it
disappears from
the client partition!
Anybody got any idea how we could do this?
Cheers,
Duncan Kinnear,
McCarthy and Associates, Email:
duncanMcCarthy.co.nz
PO Box 764, McLean Towers, Phone: +64
6 834 3360
Shakespeare Road, Napier, New Zealand. Fax: +64
6 834 3369
Providing Integrated Software to the Meat Processing
Industry for over 10
years
For the archives, go to:
http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe,
send in a new
email the word: 'Unsubscribe' to:
forte-users-requestlists.xpedior.com
For the archives, go to:
http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe,
send in a new
email the word: 'Unsubscribe' to:
forte-users-requestlists.xpedior.comI would try going to the "lowest common denominator" between WindowsNT and
Windows95 - DOS. Both windowing OS's sort of have their roots in DOS, or at
least both are capable of opening a DOS session.
Therefore, from a DOS prompt type "set" to view the environment variables for
both OS types. Look for a common variable between the two that stores the
userID. If you can find one of these your application will be that much more
portable between these two Windows mutations.
I used "set" on my NT and found my userID assigned to a few variables. I haven't
done this on a Windows95 machine in quite some time, but if the machine is on
the network it should have at least one environment variable with the userID.
I'm just guessing that DOS has a variable to store the userID that will be
common to both machines.
Good luck....
Kelsey PetrychynSaskTel Technical Analyst
ITM - Technology Solutions - Distributed Computing
Tel (306) 777 - 4906, Fax (306) 359 - 0857
Internet:kelsey.petrychynSasktel.sk.ca
Quality is not job 1. It is the only job!
"Olivier Andrieux" <oandrieuxaxialog.fr> on 07/19/2000 09:12:41 AM
To: forte-userslists.xpedior.com
cc: (bcc: Kelsey Petrychyn/SaskTel/CA)
Subject: (forte-users) user name
Hi
I use this command to catch the username:
task.part.operatingsystem.getenv('username')
with NT, there is no problem
but with windows95 or 98 the command doesn't find the username.
Thanks in advance.
Olivier Andrieux
Axialog
Lille
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com -
FORTE AUSTRALIA USER MEETINGS IN HOBART NEXT WEEK
Dear Forté User:
The Inaugural Forté Australia User Meetings are next week and those of who
are registered are in for an extremely valuable experience. EVERY SINGLE
CUSTOMER and PARTNER from Australia will be sending representatives to
these meetings.
We here at Forté Australia have been working hard over the past 9 months to
ensure the success of Forté in Australia and New Zealand. This
unprecedented 100% ATTENDANCE at the Inaugural Forté Australia User Meetings
sends us a clear message of strong commitment and enthusiasm within the user
community. Needless to say, if we can keep up this level of excitement from
you (and from us) we will all be assured of success with Forté.
We expect these sorts of meetings to occur on a regular basis. However, a
strong User Group requires commitment from you the FORTÉ USERS! One of the
most important items on the Agenda for Thursday will be for you, the Forté
Users, to organise yourselves and take control of YOUR User Group. Greg
Barber of Price Waterhouse has done some research into the structure of
Forté User Groups in the USA. He will be presenting his findings on
Thursday as well as facilitating the creation of the Forté Australian User
Group.
Important points to remember:
- Dress at events will be CASUAL
- Rooms are available at the Grand Chancellor Hotel in Hobart, Tasmania at
$145/night
Call the hotel directly at 03-62354535
- Cost is $100 per person which includes all meals
- Forté Australia User Group T-shirts will be provided to
all attendees
Here is the Agenda:
Wednesday, November 27
(Richmond Room - Hotel Grand Chancellor)
6:00pm - 7:00pm Registration - Hotel Grand Chancellor
7:00pm - 10:00pm Dinner (Richmond Room)
Thursday, November 28
(Macquarie Room - Hotel Grand Chancellor)
8:00am - 8:30am Breakfast
8:30 - 9:00 Welcome and Company Update
Duncan Bennet, Forté Software
9:00 - 9:45 R3 Features and Internet Strategy
Eric Gold, Forté Software
9:45 - 10:15 Query Result Set Buffering Techniques
Noel Hébert, Forté Software
10:15 - 10:30 Morning Tea
10:30 - 12:30pm An Overview of "Frontline":
The Hydro-Electric Commission's Customer
Accounting Solution
Presented by members of the HEC project team
- Frontline Demonstration
- Business and Methodology approach
- IT infrastructure: partitioning, DB Access,
caching, references
- approach to offline processing
- window navigation
- Hydro's Forté infrastructure: environments,
workspaces, backup procedures
12:30 - 1:30 Lunch
1:30 - 2:00 Forté Australia User Group Planning
facilitated by Greg Barber, Price Waterhouse
2:00 - 2:45 Forté and the World Wide Web
Peter Milne, Forté Software
2:45 - 3:00 Afternoon Tea
3:00 - 4:00 Analysis & Design for Forté using
SELECT Enterprise
David Coldrick, FrontRunner Systems
4:00 - 4:30 Close
Duncan Bennet, Forté Software
--_|\ Eric Gold
/ \ Technical Director
\_.--._* Forte Australia
v Voice: 61-2-9926-1403
Fax: 61-2-9926-1401
"Even if you're on the right track, you'll
get run over if you just sit there."
--Will Rogershi adam.... wru from in India?
i got new repalcement handset after 20+ days of daily chasing... i was given fresh piece but just the hnandset as other all accessories i had and they want replace... i got new 2. shareware also loaded but the Problem SAME still persist... nothing has changed and nothing will change in N91. its been declared biggest failure of Nokia by company. i hv heard that they going to pull out this from market. so prices have also crashed. out of every 10 pc min 6 are faulty with hanghing problems. other 4 are either lucky or not using instrument fully.
my advise will be chase nokia in both place. 1st the service centre and 2nd the helpcare./ keep records of names u talk with. it wl be handy. once u get replacement SALE N91 at best possible price... i wish i had done same but got fooled by promise fr nokia that now the N91 is without any problems... all the best. -
User Function Name wrong resultset in Oracle Apps Query
Hi,
I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.
select distinct frv.menu_id, frv.responsibility_id, frv.responsibility_name, fff.function_name, ffft.user_function_name
from
fnd_responsibility_vl frv,
fnd_responsibility frp,
fnd_form_functions fff,
fnd_form_functions_tl ffft,
fnd_resp_functions resp,
fnd_menu_entries mnu,
fnd_menus fmn
where
fff.function_id = ffft.function_id
and mnu.menu_id=frp.menu_id
and mnu.menu_id=fmn.menu_id
and frv.responsibility_id=resp.responsibility_id
and mnu.function_id=ffft.function_id
and resp.rule_type='M'
and frv.menu_id in (select me.menu_id
from fnd_menu_entries me
start with me.function_id = fff.function_id
connect by prior me.menu_id = me.sub_menu_id )
and (frv.responsibility_name like '%Order%')
order by 1
Kindly any help will be helpful for meWhat is your application release?
I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.Please try the queries in these docs.
Script To Extract Submenu And Function Information About A Menu [ID 458701.1]
HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
Thanks,
Hussein -
SharePoint 2010 Web Analytics showing user Display Name and Account Name from the same user
Hi!
Since July, 16th 2012 the Web Analytics Daily Unique Visitors reports started to show almost the double of visitors we used to have on our Web Application. Here are some of the data (I intentionally deleted the weekend data):
10/7/2012 2.497
11/7/2012 2.723
12/7/2012 2.722
13/7/2012 2.699
16/7/2012 5.055
17/7/2012 4.963
18/7/2012 4.954
19/7/2012 4.998
20/7/2012 4.965
23/7/2012 5.117
24/7/2012 5.012
25/7/2012 5.071
As you may notice the data jumped from around 2.700 unique visitors to around 5.000 unique visitors. As the number of permissioned users remains constant it is pretty odd. I also checked the Number of Page Views report and see no change on its behavior.
The number of page views remained constant.
So I went to look the Top Visitors report and understand why the visitors number almost doubled. The analytics started to count the users Display Name and Account name as two different visitors with a different number of page views. Let me show you an example
from yesterday (July, 25th) Top Visitors report:
# Visitor Page Views %
1 Cinthia XXXXXXXXXX 359 0,55%
5 Giselle XXXXXXXXXX 143 0,22%
7 Aline XXXXXXXXXX 138 0,21%
15 nt\cmazevedo 111 0,17%
60 nt\gbsantana 69 0,11%
73 nt\aglsiqueira 65 0,10%
"Cinthia" and the account "nt\cmazevedo" are the same person. The same is applied to "Giselle" / "nt\gbsantana" and "Aline" / "nt\aglsiqueira".
As I stated this is an example from July, 25th. If I checked the same report from a period before July, 16th I can only see the users Display Name as "Visitors". No account name is displayed or counted as a different visitor.
About the environment:
We have two SharePoint 2010 farms: a "corporate" and a "enterprise". The corporate farm contains four web servers and a central administration servers with publishing services. The enterprise farm contains two servers running User Profile Services, Search
Services and some others. Our main version is the SP1 with June/2011 Cumulative Update with a few more hotfixes applied.
This behavior on analytics is affecting all web applications (we have more than 20) installed on this farm and my company Support team said that no change were made on SharePoint on the weekend the problem started.
Does anyone have any tip about what is going on?
Thanks in advance!Hi, Manas!
First of all thanks for your interest on this issue but I don't think it is related to the User Profile or the Active Directory.
I checked both records and there was no change on the Display Names. All the users have "full names" as display names (first + middle + last name) and not logins as SharePoint is displaying on this report.
But I did a test yesterday and checked the results today confirming that just the access been made using a specific server are causing this. Explaining it better:
I have four web servers on my farm named from P01 to P04. Then I created this test script:
Step 1: Change local HOSTS file to point the web application on the server P01.
Step 2: Access site "A"
Step 3: Access site "B"
Step 4: Close the browser.
Step 1: Change local HOSTS file to point the web application on the server P02.
Step 2: Access site "C"
Step 3: Access site "D"
Step 4: Close the browser.
Step 1: Change local HOSTS file to point the web application on the server P03.
Step 2: Access site "E"
Step 3: Access site "F"
Step 4: Close the browser.
Step 1: Change local HOSTS file to point the web application on the server P04.
Step 2: Access site "G"
Step 3: Access site "H"
Step 4: Close the browser.
I asked three users to execute that script. The results: All access to the sites "C" and "D" were registered on Web Analytics with the user account name such as "nt\cmazevedo". All the other sites registered the user Display Name correctly such as "Cinthia
XXXXXXXXXX".
With this test we could isolate the problem just on the server P02. It doesn't occur on the others. Now my support team is trying to find any configuration difference between this server and the other three that could point for the root cause.
I am also looking for some information regarding the service responsible for this task ("transform the account name into a display name") to understand why it doesn't work on one server and works on the others.
Thanks! -
I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.
You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.
-
Everytime I start up my computer I get a pop-up that states: 'Error loading C:\Users\User Name\AppData\Local\HpWebNotifier\SyncNetOffice.dll'
My computer and printer work fine but this message is annoying. I can't figure out what the problem is. I am wondering if it is an issue from an old printer that I used to be connected to that I've already uninstalled. Does anyone have any ideas how I can resolve this issue?
Thanks!
This question was solved.
View Solution.Hello lisabar90,
What operating system is the computer?
What model computer are you using?
Try this click on start and then run and type msconfig and hit enter.
(if your computer doesn't have a run type msconfig in the search box and click on the application)
Go to the startup tab and see if you can see a reference to that location. Uncheck it and reboot your computer.
Post back your results.
If I have helped you in any way click the Kudos button to say Thanks.
The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
- Friendship is magical. -
i need help!
I just installed Mac OS Maverick in my laptop, but when i checked the Users&Groups There are only 2 User name 1 is "Apple(admin) and 2 is Guest, my user account name has been changed even the password. how can i retrieve my old user account name and password or how can i changed it?Here's an updated set of instructions you can try:
Make sure you are signed into iMessage and FaceTime with your current ID. If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.) Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID). Then save any photo stream photos that you wish to keep to your camera roll (unless using iCloud Photo Library). When finished go to Settings>iCloud, tap Sign Out (or Delete Account if you are not running iOS 8) and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address back to the way it was. Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device). -
ftp.oxbow.fr This is the file I have log on and I have used the correct password and user's name and this is what comes up:
Alert 530 Authentication Failed!This is a user to user forum. Apple is not here. Apple does not answer questions here.
iTunes Support -
http://www.apple.com/support/itunes/
Mac App Store Support -
http://www.apple.com/support/mac/app-store/ -
Extremely annoying problem with user folder name in windows 8.1
Here is the thing:
Friend of mine bought the laptop (very strong and expensive asus - republic of gamers) with installed windows 8.1 on it, but after a few days only I bought that computer from him because he didn't need it and he didn't use it at all!
But, his name stayed in the windows. I changed all user accounts names and everything which was possible to be changed, but when i go to C/users his name is still there on folder!
I can say it is very annoying because that laptop cost almost 3.000 USD and I still need to look at someone else's name in my user folder!
I tried to change "ProfileImagePath" in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ .... but after that windows logged in as a temporary profile and I spend another hour to figure out
how to reverse the thing!
How is possible that some so basic and simple things can't be changed at all in newest windows??? Only because some name was entered first it's not possible to be changed ever again???? Seriously?
Not only this problem, there is too many problems with this windows 8.1! Too many! You definitely made the worst thing ever!
I am extremely unhappy and upset with this operative system! I,m cursing the day when i gave so much money for computer with crap called windows 8.1!!!!
Very very angry!!!
(P.S English is not my native language)Hi,
According to your description, it seems that you have resolve that issue.
Not only this problem, there is too many problems with this windows 8.1! Too many! You definitely made the worst thing ever!
Please let us know what problem did you encounter? Please give us more detailed information in order to provide the further help.
Here is a overall guide for you to know well the Windows 8.1
Windows 8.1: frequently asked questions
No Karen, I didn't resolve the issue.
I asked very simple question how to change something so basic like user folder name in Windows 8.1
You know: "C:/Users/"user name"
All the links you are giving to me doesn't provide any concrete answer to this question. I spent hours and hours googling and researching about this question and only solution which i found is that i need to create completely new user account and delete completely
the old one, just to be able to remove an old name of user folder! Are you kidding me?
How is possible that such a basic thing is so complicated?
Is there any way to change folder user name in any other way because i don't want to create a new user account!
Simple question, but, like always, no any concrete answers - just some empty talks, and totally useless links and SPINNING IN THE CIRCLE all the time without the CONCRETE solution.
As for part of my post which you quoted, and your request for more informations in order to provide me further help, i just gave it to you again. I want to change user folder name. What you don't understand in that question?
UPDATE:
Ok, i came back to edit this post because i have a feeling that maybe you don't understand the question and giving me this link because maybe you simply don't know that when you go to:
Control panel/user accounts/change your account name... and change the name, and after that, when you go to C:/users, the folder with the user name still have an old user name. Which means that any changes in control panel or anywhere else doesn't make any
changes on C:/users/ folder itself!!!!!
In previous windows versions was possible to change it by editing "ProfileImagePath" in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ ....
But when I try to do that in Windows 8.1, when I reboot computer it logs in with some temporary account, so i need to reverse everything to be able to use computer with the real account!
So basically it seems that is absolutely impossible to change user folder name in Windows 8.1, which is simply unbelievable!
I really think i explained very good now. -
Unable to publish in Swf format. Get error message reads: 'Swf compilation failed. Note: Please verify if any of the actionscript keywords is used as user variable name'. Anyone know how to fix?
Hi There,
Can you tell me the Operating System and Captivate version you are using?
Also can you confirm if you are getting this issue will this one project or all the projects? Try to copy paste this project on a new blank project and then try to publish.
Regards,
Mayank -
Can anyone give me user exit name for create/update purchase order partners
Hello guys
Can anyone gives me user exit name for create/update purchase order partners?
Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N) by using user exit.hi,
check these exits.
Transaction Code - ME21N Create Purchase Order
Enhancement/ Business Add-in Description
Enhancement
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
M06B0003 Number range and document number -
hi friends
i am trying to set peoples or groups field in sharepoint list form with current user login name
here my code
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
<script type="text/javascript">
$(document).ready(function NewItemView () {
var currentUser;
if (SP.ClientContext != null) {
SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
else {
SP.SOD.executeFunc('sp.js', null, getCurrentUser);
function getCurrentUser() {
var context = new SP.ClientContext.get_current();
var web = context.get_web();
currentUser = web.get_currentUser();
context.load(currentUser);
context.executeQueryAsync(onSuccessMethod, onRequestFail);
function onSuccessMethod(sender, args) {
var account = currentUser.get_loginName();
var accountEmail = currentUser.get_email();
var currentUserAccount = account.substring(account.indexOf("|") + 1);
SetAndResolvePeoplePicker("requester",account);
// This function runs if the executeQueryAsync call fails.
function onRequestFail(sender, args) {
alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
function SetAndResolvePeoplePicker(fieldName, userAccountName) {
var controlName = fieldName;
var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
peoplePickerEditor.val(userAccountName);
spPeoplePicker.AddUnresolvedUserFromEditor(true);
</script>
but it is not working
please help meHi,
According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
To set "peoples or groups" field with current user "login name”, you can use the below code:
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
<script type="text/javascript">
function SetPickerValue(pickerid, key, dispval) {
var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
xml = xml + PreparePickerEntityXml(key, dispval);
xml = xml + '</Entities>';
EntityEditorCallback(xml, pickerid, true);
function PreparePickerEntityXml(key, dispval) {
return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
function GetCurrentUserAndInsertIntoUserField() {
var context = new SP.ClientContext.get_current();
var web = context.get_web();
this._currentUser = web.get_currentUser();
context.load(this._currentUser);
context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
Function.createDelegate(this, this.onFailure));
function onSuccess(sender, args) {
SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
this._currentUser.get_title());
function onFaiure(sender, args) {
alert(args.get_message() + ' ' + args.get_stackTrace());
ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
</script>
More information:
http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
# How to get the system AD Domain user login name in portal?
when a system user use AD Domain method login the system.
and then the user open the portal web application page, but not use AD Domain name login in portal page, that time ,I want to catch the user system login name show in portal page?
I hava try the sereval method with Java or Jsp, or User Cookies ActiveX pulg,I get only the name of the portal hostname.
so Anyone will provider me a well method to get the user login name?Elobrate more on ur problem
-
How to show users display name and email address in open social widget?
Hello experts,
Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
Best regards,
VilleHi Ville,
in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
Look at this - SAP HANA Cloud Platform SDK >
Package com.sap.security.um.user
Interface:
User
This interface provides read access to user data and is an extension of Principal.
UserAttribute
The interface represents abstraction over a user general attribute, such as an e-mail address.
UserProvider
This interface represents the service interface which provides read access to a user implementation.
Inbal
Maybe you are looking for
-
Validation for initial budget upload in FMBB
Hi, I have one requirement where client want a validation or rule, when they upload the budget for one group of commitment item and fund center then user should not be allowed again using the same document type initial budget upload to upload the bud
-
Three Months and so far so good
just wantedf to make a Post saying that so far i am impressed Connection (well date was changed once) delayed by 7 days on the Day of connection was done fast (didnt have internet for less then 3 hours) Speed wise i was told i could only get Max 31MB
-
Min runtime in Campaign Planning
Hi, Can anyone tell me how to setup minimum runtime in campaign planning in PP/DS. The campaigns are defined by different colors (setup group) of the products. I am not sure how to ensure minimum runtime for a campaign i.e. a specific color to run at
-
Adobe Presenter vs. Articulate Presenter
Hello! I previously used Articulate Presenter to develop content. However, due to some major software bugs I was having with Articulate, I switched to using Adobe Captive (and am very happy). Now I just came across Adobe Presenter and it seems exactl
-
How to unpixelate imovie images
I have the 10.0.6 version of imovie on the newest mac book pro with retina display. I have imported images from the web but the entire movie continues to be pixelated. I have tried using pictures with all different types of resolutions, but they all