Copy person & group field value to another person or group field programmatically
Hi
I have one user list in SharePoint sitecollection1 having User in Title(having simple user name) and UserName in Person or Group type field.
I want to copy this list into my site list with same column names programatically using timer job.
How I can copy the person or Group field from siteColletion1 to person or group field of sitecollection2(my site),
as both column types are same.
Pleas suggest any solution.
I am getting user name and user id using following code,
foreach (Microsoft.SharePoint.Client.FieldUserValue userValue in oclistItem["UserName"] as Microsoft.SharePoint.Client.FieldUserValue[])
string username = userValue.lookupValue.tostring();
But how to get the login name ? or how can I get the User Object from this field?
Anybody got this type of issue before.
Please suggest any solution
Similar Messages
-
How to copy one column BLOB value into another column of another database.
How to copy one column BLOB value into another column of another database.
BLOB value contains word document.
I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
Is there any other better way to do this?You're welcome
BLOB fields contains binary data. I don't think you can do this
Also if I view the BLOB as text. Can I copy it and insert into the new database.
I think your options are as I said. Datapump or CTAS
Best Regards -
Formula to populate one Person or Group column depending on the value of another Person Group column
I am looking for a way to popluate the Account information of a Person based on another column where there name in another column. I have Two Columns "Name" which is a Person or Group information type and User Account which
is also a Person or Group Information type. When an Invidividuals name is entered into the Name column, I what the User Account column to prepolulate.Hi,
For your issue, you can automatically populate User Information depending on the value of another Person or Group column by connectting with User Information List or connectting with User Profile Web Service:
http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=172
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Field with a default value from another field
I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
Topic
Acrobat 5 - field with default value of another field
Ben PF - 03:31am Mar 23, 2007 Pacific
How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
I've tried, but I just can't figure it out!
Any help much appreciated.
Ben
| Back to Topic List | Bookmark | Subscribe
To start a NEW discussion click on the Back to Topic List link and select Add Topic.
If you are in an archive forum please go up to the main topic list (archives are read only).
Messages
2 messages. Displaying 1 through 2.
First Previous Next Last Show All Messages
Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
This, or some variation of this, should work:
if(this.getField("date2").value == ""{
this.getField("date2").value = this.getField("date1).value;
| Bookmark back to top
Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
Thanks very much.
I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
Thanks for your help.
BenOkay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
Put this:
this.getField("myField2").value = event.target.value;
Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes. -
Copy a group of cost centers from one controlling area to another
Hello,
is it possible to copy a group of cost centers from one controlling area to another?
Or a group of internal orders?
Thanks
JasminaNo. If you used any upload tools like LSMW, perhaps you may use that for uploading the second controlling area.
-
Adobe Bridge CC : metadata copy from one field to another for multiple files
So I am using Bridge CC for managing audio files and have many many MP3's that I need to copy or move one field of metadata to another.
ie: copy "Audio Artist" field to "IPTC Core Creator" Field
move "IPTC Core Description" to "Video Log Comment" field
Is there a script I can add that will let me select multiple files, and have it copy or move all the info from one of these fields to another?
Thanks
Scott
[email protected]Scott, I did have a go at this but I can't get the right path to the logComment in the XMP…
Coping artist to creator works fine… If I find the solution I will post back… -
How can i copy and referencing the value of a sub-total of a category into another cell?
How can i copy and referencing the value of a sub-total of a category into another cell?
Cells in Category rows 'exist' only when those categories are inserted using the Reorganize table. Those cells cannot be referenced from other cells.
If you want a category summed, you will need to do that in a cell that is still visible when the table is not sorted into categorie using the Reorganize pane. The function to use is SUMIF. You can find information regarding SUMIF (and SUMIFS) in the iWork Formulas and Functions User Gude. The guide may be downloaded using the link in the Help menu in Numbers '09.
Regards,
Barry -
Populate one text field on a form based on the value in another
I am new to APEX and building my first application.
When a user enters a value in one field, I would like to run a SQL command and then display a value in another field based on the value in the first field. For instance, if a user enters a part number in one field, when they tab off of the field, I would like to display the name of the part in the part name field.
ThanksThanks. That put me on the right track. I used that link to find the link http://htmldb.oracle.com/pls/otn/f?p=11933:11:2890374750690437 and then using the two was able to put together a solution.
I am down to one last issue. I am able to return the name back from the process and display it with an alert statement. Unfortunately, I am unable to display the value on the form.
I am doing the following.
<script language="JavaScript1.1" type="text/javascript">
function f_getCustomerName(id)
var v_id = id;
var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=getCustomerName',$v('pFlowStepId'));
get.addParam('x01',$v('P2_CUSTOMER_ID'));
gReturn = get.get();
get = null;
gReturn = (!gReturn)?'null':gReturn;
/* The below do not work
$s('P2_CUSTOMER_NAME',gReturn);
document.getElementById('P2_CUSTOMER_NAME').value = gReturn;
document.getElementById('P2_CUSTOMER_NAME').value = 'TEST';
alert(document.getElementById('P2_CUSTOMER_NAME').value );
alert(gReturn);
//-->
</script>
Process: getCustomerName
declare
l_customer_id customer.customer_id%type;
l_customer_name customer.customer_name%type;
begin
l_customer_id := to_number(wwv_flow.g_x01);
select customer_name
into l_customer_name
from customer
where customer_id = l_customer_id;
htp.p(l_customer_name);
end; -
Fields required based on a value in another field
Hi,
I am looking to have fields required (Annual Revenues and # of Employees) based on the value of another field (Ownership). Basically, if the value is Public the user is required to enter the Annual Revenue and Employees fields. I thought about using dynamic layouts but the only key field for Accounts is Account Type.
Thanks,
CarynHi Caryn!
I think it is not possible for making #Employees and Revenues required depending on Ownership(as it is a look up field).. it should be possible if you want to do it on any other criteria other than ownership by just renaming the Account Type, Disable all the values of Account Tyope add new values to Pick List and make it driving picklist upon your requirements..
If you require Account Type, create a custom picklist "Account-Type" and add the values. -
Default value from another table in dummy field on a portal form ..
A form based on a table :
id
name
xx_id
I created a dummyfield on the form in which i would like the
name corresponding to xx_id -> I would like to fetch a value
from another tabel into a dummy field.
thanx
Trine HindsholmI could do this task by creating the form manually - is there anyway I can modify the insert for a form created by the wizard?
-
10.1.3--Disable a field according to values of another field.
Hi,
I am trying to set a filed on the JSP to be disalbed according to values of another field.
eg. When the value in "ID" field is NOT 10 or 20, the "Bill" field should be disabled.
I have tried using only one condition which is when "ID" != 10 or "ID" != 20. They work fine. But when I try to combine two conditions together using "&&" sign, I got a syntax error. The JSP does not display at all. I asked an expert about it, the answer is:
#{(bindings.Deptno.inputValue.value !=10) &&(bindings.Comm.inputValue.value > 1000)}. I tried this on my application and got the same syntax error.
Has anybody had a similar situation? Any idea what could be wrong? Thanks in advance.
AnnieHi bsalvador,
I've had a simular situation once where I needed to make items disabled or required depending on a workflow step and on depending on other page items. Basically the disabling of items is done by javscript, keep in mind that readonly is not the same as disabled. When you use readonly, the item can still be manipulated with javascript. When you disable an item, the item is not even submitted to the database, so you have to make sure that your submit process can hadle that.
There are two different situations:
First you have the page load / page submit, there you can use PL/SQL to check which items should be submitted, hand them a javascript class or make them readonly/disabled straight away.
Second you have a situation where you want to disable certain items depending on the value of other items. This is done 'on the fly' and should be handled with a javascript function.
Keep in mind however that javascript runs client side and isn't a secure way to handle data integrity, so you would need a database process to validate which items need to be submitted as well.
Regards,
Vincent Deelen -
I have not been able to find any information on how I can copy personal dvds to my computer and then to my iPod. Any assistance will be greatly appreciated.
iPod 5th generation Windows XPRonald,
Videora iPod Convertor is used by many Windows users to do what you're asking for (along with DVD Decrypter).
To use Videora iPod Convertor to convert movies for use on your iPod, consult these helpful links:
To get started: Videora iPod Convertor Guide
If you have questions: Videora iPod Convertor Frequently Asked Questions
If you have more questions, post them here: Videora iPod Convertor Forum
Note that Videora iPod Convertor is a 3rd party program. If you need help with it, post your question there. -
Copying KF values to another KF
Hi,
I have to copy the previous months value of a KF to the Current months value of another KF. Can anyone please say how it can be done?
Regards,Hi Suprio,
Did you try using period offset? Sample config available on SAP2 model in key figure actuals qty prior year.
Regards,
Aditya G -
How to copy function group from one SAP system to another
dear all,
our company will set up a sub-company currently,and the sub-company want to copy some programs from our SAP system.
how to pack and copy function group?
pls help me,tks!Hello Snow zeng,
Will the 2 systems be connected ? I.e Same land scape ?
If they are non connected systems, check this Wiki by Marcin [How to copy Repository Objects between non-connected SAP systems|http://wiki.sdn.sap.com/wiki/display/ABAP/HowtocopyRepositoryObjectsbetweennon-connectedSAPsystems]
Regards -
Passing multiple values to another page via a sql report
Having trouble passing multiple values to another page via a popup SQL report
I have two fields one called "descr" and another called "Met"
when I use the code below all works fine and the value of "descr" is passed
Select '<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
|| 'P950_TYPE:'
|| descr
|| ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
|| descr
|| '</a>' "Note"
But when I want to pass another value, all goes bonkers and instead of the value of the field being passed the literal text is passed.
can someone look at my code below and see what may be wrong
Select '<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
|| 'P950_TYPE,P950_CODE:'
|| descr, Met
|| ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
|| descr
|| '</a>' "Note"
I appeciate your help looking into this
FYI (Here is the entire SQL for reference)
With t
as
(SELECT
CASE WHEN KEY = 2 then
CASE WHEN WCS_CPT > :P940_METRIC_1_WCS_CPT1 then
'<span style="color:Red; ">'||TO_CHAR(WCS_CPT,'FML999G999G999G999G990D00')||'</span>' else
'<span style="color:#399304; ">'||TO_CHAR(WCS_CPT,'FML999G999G999G999G990D00')||'</span>' end
else '<span style="color:#180c8b;">'||TO_CHAR(WCS_CPT,'FML999G999G999G999G990D00')||'</span>' end "WCSCPT",
CASE WHEN KEY = 2 then
CASE WHEN WCS_TOI_PER_FTE < :P940_METRIC_2_WCS_TOI_PER_FTE then
'<span style="color:Red; ">'||TO_CHAR(WCS_TOI_PER_FTE,'999G999G999G999G990')||'</span>' else
'<span style="color:#399304; ">'||TO_CHAR(WCS_TOI_PER_FTE,'999G999G999G999G990')||'</span>' end
else '<span style="color:#180c8b;">'||TO_CHAR(WCS_TOI_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSTOIPERFTE",
CASE WHEN KEY = 2 then
CASE WHEN WCS_SIO_PER_FTE < :P940_METRIC_3_WCS_SIO_PER_FTE then
'<span style="color:Red; ">'||TO_CHAR(WCS_SIO_PER_FTE,'999G999G999G999G990')||'</span>' else
'<span style="color:#399304; ">'||TO_CHAR(WCS_SIO_PER_FTE,'999G999G999G999G990')||'</span>' end
else '<span style="color:#180c8b;">'||TO_CHAR(WCS_SIO_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSSIOPERFTE",
CASE WHEN KEY = 2 then
CASE WHEN WCS_TC_PER_FTE < :P940_METRIC_4_WCS_TC_PER_FTE then
'<span style="color:Red; ">'||TO_CHAR(WCS_TC_PER_FTE,'999G999G999G999G990')||'</span>' else
'<span style="color:#399304; ">'||TO_CHAR(WCS_TC_PER_FTE,'999G999G999G999G990')||'</span>' end
else '<span style="color:#180c8b;">'||TO_CHAR(WCS_TC_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSTCPERFTE",
CASE WHEN KEY = 2 then
CASE WHEN WCS_ADSL_PER_FTE < :P940_METRIC_5_WCS_DSL_PER_FTE then
'<span style="color:Red; ">'||TO_CHAR(WCS_ADSL_PER_FTE,'999G999G999G999G990')||'</span>' else
'<span style="color:#399304; ">'||TO_CHAR(WCS_ADSL_PER_FTE,'999G999G999G999G990')||'</span>' end
else '<span style="color:#180c8b;">'||TO_CHAR(WCS_ADSL_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSADSLPERFTE",
CASE WHEN KEY = 2 THEN
TO_CHAR(MONTH,'MON-YY')
else
'METRICS'
end "MONTH"
FROM (
SELECT DISTINCT
ROW_NUMBER() OVER (ORDER BY KEY DESC) AS ROW_NUM, KEY, WCS_CPT, WCS_TOI_PER_FTE, WCS_SIO_PER_FTE, WCS_TC_PER_FTE, WCS_ADSL_PER_FTE, MONTH
from TW_M_KEYMETRICS
WHERE TO_DATE(UPPER(MONTH),'DD/MON/YY') >= TO_DATE(UPPER(:P940_START_OF_THIS_FIN_YEAR),'DD/MON/YY')
ORDER BY KEY ASC, ROW_NUM, MONTH)
WHERE ROW_NUM <= :P940_MONTHS_SINCE_FIN_START)
Select '<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
|| 'P950_METRIC_TYPE,P950_METRIC_VALUE:descr,MET'
|| ''
|| ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
|| descr
|| '</a>' "Note"
, max(Met) METRICS, max(Jul) Jul08, max(Aug) Aug08, max(Sep) Sep08, max(Oct) Oct08, max(Nov) Nov08, max(Dec)Dec08, max(Jan) Jan08, max(Feb) Feb08, max(Mar) Mar08, max(Apr) Apr08, max(May) May08, max(Jun) Jun08
from (
Select 'Cost Per Transaction' descr,
decode (MONTH, 'METRICS', WCSCPT) MET,
decode (MONTH, 'JUL-08', WCSCPT) Jul,
decode (MONTH, 'AUG-08', WCSCPT) Aug,
decode (MONTH, 'SEP-08', WCSCPT) Sep,
decode (MONTH, 'OCT-08', WCSCPT) Oct,
decode (MONTH, 'NOV-08', WCSCPT) Nov,
decode (MONTH, 'DEC-08', WCSCPT) Dec,
decode (MONTH, 'JAN-08', WCSCPT) Jan,
decode (MONTH, 'FEB-08', WCSCPT) Feb,
decode (MONTH, 'MAR-08', WCSCPT) Mar,
decode (MONTH, 'APR-08', WCSCPT) Apr,
decode (MONTH, 'MAY-08', WCSCPT) May,
decode (MONTH, 'JUN-08', WCSCPT) Jun
from t
union all
Select 'Total Orders Issued Per FTE' descr,
decode (MONTH, 'METRICS', WCSTOIPERFTE) MET,
decode (MONTH, 'JUL-08', WCSTOIPERFTE) Jul,
decode (MONTH, 'AUG-08', WCSTOIPERFTE) Aug,
decode (MONTH, 'SEP-08', WCSTOIPERFTE) Sep,
decode (MONTH, 'OCT-08', WCSTOIPERFTE) Oct,
decode (MONTH, 'NOV-08', WCSTOIPERFTE) Nov,
decode (MONTH, 'DEC-08', WCSTOIPERFTE) Dec,
decode (MONTH, 'JAN-08', WCSTOIPERFTE) Jan,
decode (MONTH, 'FEB-08', WCSTOIPERFTE) Feb,
decode (MONTH, 'MAR-08', WCSTOIPERFTE) Mar,
decode (MONTH, 'APR-08', WCSTOIPERFTE) Apr,
decode (MONTH, 'MAY-08', WCSTOIPERFTE) May,
decode (MONTH, 'JUN-08', WCSTOIPERFTE) Jun
from t
union all
Select 'SIOs Per Billing FTE' descr,
decode (MONTH, 'METRICS', WCSSIOPERFTE) MET,
decode (MONTH, 'JUL-08', WCSSIOPERFTE) Jul,
decode (MONTH, 'AUG-08', WCSSIOPERFTE) Aug,
decode (MONTH, 'SEP-08', WCSSIOPERFTE) Sep,
decode (MONTH, 'OCT-08', WCSSIOPERFTE) Oct,
decode (MONTH, 'NOV-08', WCSSIOPERFTE) Nov,
decode (MONTH, 'DEC-08', WCSSIOPERFTE) Dec,
decode (MONTH, 'JAN-08', WCSSIOPERFTE) Jan,
decode (MONTH, 'FEB-08', WCSSIOPERFTE) Feb,
decode (MONTH, 'MAR-08', WCSSIOPERFTE) Mar,
decode (MONTH, 'APR-08', WCSSIOPERFTE) Apr,
decode (MONTH, 'MAY-08', WCSSIOPERFTE) May,
decode (MONTH, 'JUN-08', WCSSIOPERFTE) Jun
from t
union all
Select 'Total Calls Answered per FTE' descr,
decode (MONTH, 'METRICS', WCSTCPERFTE) MET,
decode (MONTH, 'JUL-08', WCSTCPERFTE) Jul,
decode (MONTH, 'AUG-08', WCSTCPERFTE) Aug,
decode (MONTH, 'SEP-08', WCSTCPERFTE) Sep,
decode (MONTH, 'OCT-08', WCSTCPERFTE) Oct,
decode (MONTH, 'NOV-08', WCSTCPERFTE) Nov,
decode (MONTH, 'DEC-08', WCSTCPERFTE) Dec,
decode (MONTH, 'JAN-08', WCSTCPERFTE) Jan,
decode (MONTH, 'FEB-08', WCSTCPERFTE) Feb,
decode (MONTH, 'MAR-08', WCSTCPERFTE) Mar,
decode (MONTH, 'APR-08', WCSTCPERFTE) Apr,
decode (MONTH, 'MAY-08', WCSTCPERFTE) May,
decode (MONTH, 'JUN-08', WCSTCPERFTE) Jun
from t
union all
Select 'ADSL Orders per FTE' descr,
decode (MONTH, 'METRICS', WCSADSLPERFTE) MET,
decode (MONTH, 'JUL-08', WCSADSLPERFTE) Jul,
decode (MONTH, 'AUG-08', WCSADSLPERFTE) Aug,
decode (MONTH, 'SEP-08', WCSADSLPERFTE) Sep,
decode (MONTH, 'OCT-08', WCSADSLPERFTE) Oct,
decode (MONTH, 'NOV-08', WCSADSLPERFTE) Nov,
decode (MONTH, 'DEC-08', WCSADSLPERFTE) Dec,
decode (MONTH, 'JAN-08', WCSADSLPERFTE) Jan,
decode (MONTH, 'FEB-08', WCSADSLPERFTE) Feb,
decode (MONTH, 'MAR-08', WCSADSLPERFTE) Mar,
decode (MONTH, 'APR-08', WCSADSLPERFTE) Apr,
decode (MONTH, 'MAY-08', WCSADSLPERFTE) May,
decode (MONTH, 'JUN-08', WCSADSLPERFTE) Jun
from t
GROUP by descr
FrankBorg Species 5618 wrote:
Having trouble passing multiple values to another page via a popup SQL report
But when I want to pass another value, all goes bonkers and instead of the value of the field being passed the literal text is passed.
can someone look at my code below and see what may be wrong
Select '<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
|| 'P950_TYPE,P950_CODE:'
|| descr, Met
|| ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
|| descr
|| '</a>' "Note"
Hi Frank,
You should close this parameters with single quotation. Try this -
Select '<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
|| 'P950_TYPE,P950_CODE:'
*|| 'descr, Met'*
|| ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
|| descr
|| '</a>' "Note"
Hope this helps.
Regards,
M Tajuddin
http://tajuddin.whitepagesbd.com -
How to copy data in a table to another table with different structure
Hi,
I am having a table Employee with fields EID, ENAME and Age
i want to insert the values into another table Employee1 with fields
EID,ENAME,AGE and address. (Address can be null)
Can anyone provide the sql query to do this.I would say, just copy the orignal table and add a column to Employee1.
To copy the table:
CREATE TABLE Employee1
AS (SELECT EID, ENAME, Age
FROM Employee);
Then add the column address:
ALTER TABLE Employee1 ADD address varchar2(50);
I am just started working with Oracle DB and sql so their maybe a better solution when the alter table is not needed.
Maybe you are looking for
-
My ical calanders dont sync on iphone and ipad
my ical calanders dont sync between my iphone, ipad, and imac computer. I back them up to the cloud.
-
XI Installation: invalid XI SAP sid adm password
During an initial XI installation on top of an ABAP + JAVA NW04 system. In the Java Deployment > Windows Domain installation step i am unable to enter the correct SAP <sid>adm password with below error message: "Invalid password. DIAGNOSIS: The passw
-
Convert version 6.1 to 6.0
Please can anyone help me, I have my program as a version 6.1 from using a trial version of Labview 7.0 now I can open it in version 6.0. Can any one please help me convert back to version 6.0. Cheers Attachments: checkforproblems.llb 201 KB
-
Multiple Selection in Sun RI ui:table
Hi I want to implement multiple selection in the <ui:table> component. I have enabled the "selectMultipleButtons" check box in the component property but whenI click on it, nothing happens. How do I make the row selections work in the <ui:table>. Do
-
I Can't Open Any of my Pages 08 Documents
I never upgraded to Pages 09 because by the time I was ready to purchase it, I figured a new one was just around the corner. (Clearly this was a bad decision as I was kept waiting for 4 years, and then even then the upgrade is being offered for free