Auto update people picker value with email id when we add username in another people picker field in sharepoint 2013 list using javascript
hi friends
i have to people picker fields
pp1 and pp2
pp1 represents username
pp2 represents email id
here i problem is if user enters name in pp1, pp2 has to update with email id of corresponding user in pp1 dynamically.
using java script is there any solution for this.
please help me
Hope below will help
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<script type="text/ecmascript" language="ecmascript">
var user;
var visitorsGroup;
function runCode() {
var clientContext = new SP.ClientContext();
var groupCollection = clientContext.get_web().get_siteGroups();
// Get the visitors group, assuming its ID is 4.
visitorsGroup = groupCollection.getById(4);
user = clientContext.get_web().get_currentUser();
var userCollection = visitorsGroup.get_users();
userCollection.addUser(user);
clientContext.load(user);
clientContext.load(visitorsGroup);
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded() {
alert(user.get_title() + " added to group " + visitorsGroup.get_title());
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
<input id="Button1" type="button" value="Run Code" onclick="runCode()" />
</asp:Content>http://msdn.microsoft.com/en-us/library/office/jj246835%28v=office.15%29.aspxhttp://msdn.microsoft.com/en-us/library/office/jj920104%28v=office.15%29.aspxhttp://stackoverflow.com/questions/20981226/sharepoint-2013-get-current-user-javascripthttp://sharepoint.stackexchange.com/questions/31457/get-user-via-javascript-client-object-model
Similar Messages
-
Problem with People Picker field in sharepoint 2013 list
hi friends
i have a problem with people picker
default newitem.aspx
custom NewItem.aspx
why the selection option of the people piker is changing
how can i get the default functionality in custom page
please help meHello malli.share,
try to copy source code from newitem.aspx to custom_newitem.aspx (in SPD you can edit custom_newitem.aspx in advanced mode and paste the code).
Regards,
Alexander -
Update Managed Metadata field in SharePoint 2013 Designer Workflow for O365
Hi Guys,
I need to update the managed metadata field in SharePoint Custom List using Workflow but its not working. I have also tried to use the HTTP WebService POST Operation but no luck.
Am doing this for a SharePoint Online (O365) Site.
Has anyone worked on something similar and was able to get it running ?
I saw a post to create a custom Workflow Activity but I don't have a choice to go with the custom code option.
http://patrickboom.wordpress.com/2013/07/23/workflow-activity-set-managed-metadata-column/
I was able to achieve this by creating a SP 2010 based Workflow for O365. Which means that it worked well with SP 2010.
Is there a different way to do it in 2013 ? I tried almost all options apart from creating custom Activity but nothing worked out.
Any help would be great.
Thanks,
Nutan
Nutan SharmaHi Nutan,
According to your description, my understanding is that you want to update Managed Metadata field with SharePoint 2013 Designer for SharePoint Online.
As far as I know, there is not an OOB action to achieve your requirement with SharePoint 2013 Designer for SharePoint 2013. Customizing a workflow action is a better option to achieve it. Why didn’t you customize a workflow action as Patrick’s blog?
In addition, please take a look at the article about Nintex workflow, check whether it is useful for you:
http://habaneroconsulting.com/insights/setting-managed-metadata-fields-in-a-nintex-workflow#.UykBSf6KDHo
As this issue is about SharePoint Online, I suggest you create a new thread on SharePoint Online forum:
http://social.technet.microsoft.com/Forums/en-US/home?forum=onlineservicessharepoint . More experts will assist you.
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
Auto update of picking/putaway qty
Hi friends,
In transaction VL01N/VL31N, we need to auto update of picking/putaway quantity from delivery quantity when an Outbound/Inbound delivery is created.
We try to do this with form exit USEREXIT_SAVE_DOCUMENT (include MV50AFZ1) and USEREXIT_MOVE_FIELD_TO_LIPS (include MV50AFZ1).
But we have problem with the following object:
Overall picking / putaway status (VBUK-KOSTK) (incorrect, not updated)
Picking status/ Putaway status (VBUP-KOSTA) (incorrect, not updated)
Picking request (not created)
Please help me
Thanks & Regards
AlessandroHi MK,
Are you asking about pricing conditions or tax conditions?
Tax conditions flow auto when you enter tax code
Whereas pricing conditions if those are manual conditions have to be maintained
manually
for conditions to flow automatically you have to customize the condition type for "changes can be made" with manual entries indicator as B
and maintain the condition record
Diwakar
reward if useful -
Update a filed value with powershell script with ordery by and where condition
Hi
I have below powershell script to update list columns but how i update a field value with ordery by a column and where condition
below is the part of my script
$list = $web.Lists[$listName]
$items = $list.items
$internal_counter = 1
#Go through all items
foreach($item in $items)
if($item["CourtNO"] -eq $null)
#if($item["CourtNo"] -eq '1')
$item["CaseNo"] = $internal_counter
#how to add a column ordery by Title
# and where Title field value from 1 to 10
$internal_counter++
adilHi,
You mean that you only need to update all items with Title field value in range 1..10 and order by them before run the loop statement update?
If so, use CAML query to get the items only match the condition.
#Build Query
$spQuery = New-Object Microsoft.SharePoint.SPQuery
$query = '<Where><And><Gte><FieldRef Name="Title" /><Value Type="Text">0</Value></Gte><Lte><FieldRef Name="Title" /><Value Type="Text">10</Value></Lte></And></Where><OrderBy><FieldRef
Name="Title"/></OrderBy>'
$spQuery.Query = $query
$spQuery.RowLimit = $list.ItemCount
$items = $list.GetItems($spQuery)
Hope this help!
/Hai
Visit my blog: My Blog | Visit my forum:
SharePoint Community for Vietnamese |
Bamboo Solution Corporation -
Trying to update iPad mini. Old email continues to appear and can't authenticate. How to remove it totally and use my iCloud I.D.?
If you have any apps that were acquired with the old ID they will always be tied to that ID. Delete them and reacquire them with the new ID that you have in Settings > iTunes and App Store
-
On deleting an item, "Name" column of recycle bin is updating with data in one of the custom column instead of title field in SP 2013 Custom list.
Thanks, ChinnuHi,
According to your post, my understanding is that you want to update title field in recycle bin with other field value of the item.
We can use the ItemDeleting Event Receiver to achieve it.
While item is deleting, replace title field value with other field value using ItemDeleting event receiver, then in the recycle bin, the title value will replace with other field value.
However, there is an issue while restore the item from the recycle bin, the item title would be replaced.
As an workaround, we can create a helper field in the list to store the title field value while deleting, then replace back while restoring using
ItemAdded Event Receiver.
I have made a simple code demo below to achieve this scenario, it works like a charm(the
Test2 field is the helper field, you can hide it in the list), you can refer to it.
public override void ItemDeleting(SPItemEventProperties properties)
properties.ListItem["Test2"]=properties.ListItem["Title"];
properties.ListItem["Title"]=properties.ListItem["Test1"];
properties.ListItem.Update();
base.ItemDeleting(properties);
/// <summary>
/// An item was added.
/// </summary>
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
properties.ListItem["Title"] = properties.ListItem["Test2"];
properties.ListItem.Update();
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
I forgot my iCloud password, and i can not reset it with email authentication, when i do it, i don't receive any mail from Apple
If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support. -
Sharepoint 2013 list view quick edit does not work with out remote API permissions
sharepoint 2013 list view quick edit does not work with out remote API permissions.
When I give Use Remote Interfaces - Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site it works which is not an ideal situation..
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint LeadThis is true. If you use Fiddler to watch the requests from the list view quick edit you can see CSOM calls. For example when changing a value in a cell, when you tab out you will see the SetFieldValue and Update method calls on the list item.
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
When I add an event to calendar on my iphone, it updates on my MacBook Pro. But when I add it on my Mac, it does not update on my iPhone. Help please.
Change your time zones in the settings, They are not on the same time zones.
-
Auto Update of characteristic values in PO from SRM.
Hi,
For Configurable material we have characteristics values.
Material is configurable material with material type as services.
Same ECC material is replicate in SRM.
Create Shopping cart in portal SRM EBP for Multiple line item for material. Each material item will have different characteristics value.
Currently User attaching excel sheet with different characteristic value in Shopping cart.
Once Shopping cart no is created and Shopping cart no goes for approval.
Once approved, PR is created automatically.
Attached document is available in PR.
Buyer has to maintain manually characteristics value for material in Purchase order (PO) for each material item.
Is any way to Update Characteristics values in PR automatically when saving?
Regards,
Swapnilcheck if the condition is marked as statstical one in the pricing procedure
-
Auto Update of configuration values in PR from SRM.
Hi,
For Configurable material we have characteristics values.
Material is configurable material with material type as services.
Same ECC material is replicate in SRM.
Create Shopping cart in portal SRM EBP for Multiple line item for material. Each material item will have different characteristics value.
Currently User attaching excel sheet with different characteristic value in Shopping cart.
Once Shopping cart no is created and Shopping cart no goes for approval.
Once approved, PR is created automatically.
Attached document is available in PR.
Buyer has to maintain manually characteristics value for material in Purchase order (PO) for each material item.
Is any way to Update Characteristics values in PR automatically when saving?
Regards,
BabarHello,
updated_by and update_datePlease use triggers to populate audit data. That's the best way to do.
CREATE OR REPLACE TRIGGER "TRG_TABLE_NAME_BRU"
BEFORE UPDATE ON "TABLE_NAME"
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
BEGIN
IF NOT UPDATING ('UPDATED_BY') OR :NEW.UPDATED_BY IS NULL THEN
:NEW.UPDATED_BY := NVL(v('APP_USER'),USER);
END IF;
IF NOT UPDATING ('UPDATE_DATE') OR :NEW.UPDATE_DATE IS NULL THEN
:NEW.UPDATE_DATE := SYSDATE;
END IF;
END TRG_TABLE_BRU;
/Regards,
Hari -
We're deploying an applet, and want to be sure to use a specific version of the JRE. So far we've been using 1.4.2 without problems, and now its time to support 1.5.0 (5.0).
We intend to do this with <object classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA">....
as outlined in:
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html
The 1.5.0 control panel (for Windows) also includes an "Update" pane where java will be auto updated, if a newer version is found. (The 1.4.2 version apparently also contained that, but I was never updated to 1.5.0....)
What will the "Java Update mechanism" do when a 1.5.1 version is released at some point? Will the installed 1.5.0 version automatically be replaced by the new 1.5.1 version, so the <object classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"> gets broken? Or will 1.5.1 be installed in addition to 1.5.0, so our applet tags still work? Or will the "Java Update mechanism" only install newer updates to 1.5.0 (e.g. 1.5.0_03)?
Naturally, our tech support won't be thrilled to get calls from every single customer complaining that the 1.5.0 JRE can't be found immediately after Sun releases 1.5.1... :-D
I'm assuming that once installed, 1.5.0 will never be "auto-removed" due to "Java Update mechanism". Is this a correct assumption?
Thanks for reading this far,
PeterWe're deploying an applet, and want to be sure to use a specific version of the JRE. So far we've been using 1.4.2 without problems, and now its time to support 1.5.0 (5.0).
We intend to do this with <object classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA">....
as outlined in:
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html
The 1.5.0 control panel (for Windows) also includes an "Update" pane where java will be auto updated, if a newer version is found. (The 1.4.2 version apparently also contained that, but I was never updated to 1.5.0....)
What will the "Java Update mechanism" do when a 1.5.1 version is released at some point? Will the installed 1.5.0 version automatically be replaced by the new 1.5.1 version, so the <object classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"> gets broken? Or will 1.5.1 be installed in addition to 1.5.0, so our applet tags still work? Or will the "Java Update mechanism" only install newer updates to 1.5.0 (e.g. 1.5.0_03)?
Naturally, our tech support won't be thrilled to get calls from every single customer complaining that the 1.5.0 JRE can't be found immediately after Sun releases 1.5.1... :-D
I'm assuming that once installed, 1.5.0 will never be "auto-removed" due to "Java Update mechanism". Is this a correct assumption?
Thanks for reading this far,
Peter -
Towards the end of an automatic Firefox update, the program opens a dialogue box that says it's checking compatibility of the new version with my addons. It also mentions that I should be patient, that the process could take several minutes. The process continues without normal termination, and I have to use Windows Task Manager to stop it. I've let it run form as long as 35 minutes, but it never completes the process. This has happened for each of the last 3 or 4 auto updates. What's going on?
We're sorry to hear that your Firefox seems to be crashing when you open it. Please perform the following steps to give us a crash report ID that helps us find out more about the cause of the crash.
#Press the following shortcut to get a Run window: [Windows] + [R]. This should bring up a window that contains a text field.
#In that text field, enter %APPDATA% and press Enter. An explorer window should open.
#From that explorer window, double-click on the ''Mozilla'' folder, then double-click on ''Firefox'' and then on ''Crash reports''. Double-click on ''submitted''.
#Now, you should see a list of files that contain reports. Go to ''View'' > ''Arrange Icons by'' > ''Modified'' to get the most recent files at the top of the window.
#Open the most recent 5 files with a text editor and copy the IDs.
#Paste each ID with '''bp-''' into the reply window on the forums.
Thanks in advance!
You can find more information and troubleshooting steps in the [[Firefox crashes]] article. -
Add Users from people picker field to sharepoint group
Hi,
I have created infopath form and added people picker control and then created data connection to add users to sharepoint group.
Used UserGroup webservice and "AddUserToGroup" operation. If I select single user in people picker and click submit button, web service data connection adding user to sharepoint group without any issue but it's not working for multiple users.If
I select multiple users in people picker, web service adding only first user to sharepoint groups. In our company we do not prefer custom coding.
Can anybody help me out to resolve this issue?
Any help or suggestions would be appreciated.
Thank you,
AA.You ll be able to achieve this by placing people picker in repeating table control in the form, below url may help you.
http://infopath.wordpress.com/2013/04/02/people-picker-email-addresses-repeating-tables-infopath-2010/
Sivabalan
Maybe you are looking for
-
How can I will declare the symbol u2018 (Single Quote) in the report
Hi , Could you please tell me how can I will declare the symbol u2018 (Single Quote) in the report. My requirement is that I have concate the data with single quote and after that I have to store the data in to an internal table and I have to downloa
-
HP Laserjet P4014 Stopped – 'Filter' failed
I've seen discussion of this for other printers and versions of OS X. Has anyone seen this on 10.9.5 and, better still, solved it? If I try to print to a networked HP Laserjet P4014, the print queue gives up with the message Stopped – 'Filter' failed
-
How to Rename Windows Partition
I used WinClone to create a Windows partition on my Mac drive and restored a previously-saved backup of the Windows installation. Everything worked perfectly except that WinClone renamed the Windows partition "untitled" when it performed the restorat
-
Transition not 'sticking' to end of timeline
I am able to drag my 'Cross Dissolve' into my movie in between segments, but I dont seem to be able to stick it onto the end of a segment (but I can sometimes). I can't work out why it works in some clips and not in others?!
-
Java Sockets and Output Streams
Hi All, I am beginning sockets programming and I have a problem. If there is a server listening in the background for incoming connections and say for example 4 client programs programs which we shall call client1...client4 connect. How best can I ca