How to set a BCS field in document library via PowerShell?
Hi,
In my doclib there's a BCS field named "CUSTOMERS3". When I set it as:
$item["CUSTOMERS3"]="BADO"
I see the text "BADO" in "View All Properties". But if I click on "Edit Item" button in the toolbar I see the proper picker empty. How should I set my BCS field correctly via PS?
Hi,
According to your post, a problem occurred when you set an External Content Type field using PowerShell.
Here is a similar thread for you to take a look at:
Updating an “external content type” field on an SPList using PowerShell
http://stackoverflow.com/questions/8402655/updating-an-external-content-type-field-on-an-splist-using-powershell
Best Regards
Dennis Guo
TechNet Community Support
Similar Messages
-
How to read the "Name" field from document library in workflow?
Hi,
The task I'm trying to accomplish looks pertty simple: I need to read a value of the item's "Name" field inside the workflow. I try to do it using LookupSPListItem and GetDynamicValueProperties activities. I can get value of the "Title"
field, also I created custom field and can read it too.
But the "Name" field always comes empty.
I guess I need to use some tricky syntax or this field has some different "internal name"?
The workflow is designed in VS 2013.Thank you. Looks correct, since when I enter this path (FileLeafRef) into GetDynamicValueProperties
and change Entity Type to list of documents it changes to Name
automatically.
But somehow it doesn't work too. (:
I also tried LinkFilenameNoMenu and LinkFilename
- same result.
EDIT: Solved. :)
Looks like FileLeafRef is not loaded by default by LookupSPListItem, so you have to pass this property name via
Properties collection. The bad news is that in this case other properties won't be loaded if you didn't add them to this collection.
Anyway, it works. :) -
How to set Mandatory Choice field while Creating Custom Task using Sharepoint Designer 2007
Hi,
I am new to Sharepoint development.I dont know whether i am posting the question in Correct place.Kindly redirect me to the correct place if i am posting it in wrong place.
I created a custom task in Sharepoint Designer 2007 using
Collect Data from User
Action.
I created a field in the task form which is of choice type and
unchecked allow blank values
because i wanted that field to be a mandatory field.When i handled that task ,i was able to complete that task
without selecting that mandatory field.But, I was expecting not to allow me to complete the task without selecting that field. Kindly tell me how to set the choice field as mandatory.Hi,
You are using SharePoint Designer 2007, so I moved the thread to the appropriate forum for MOSS 2007.
This is by design that
Workflow-generated form (for action Collect data from User) does not perform validation properly on drop-down choices, the workaround is to use JavaScript to perform the field validation.
This thread has the JavaScript code can help you:
http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/0ad7fc3c-97a1-464e-ae89-c3133462dda8/
Xue-Mei Chang -
How to set the data fields column wide at sqlplus
Dear Sir/Madam
I would like to know how to set the data fields column wide at sqlplus
Thanks
Francissee
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
and the FORMAT clause of the COLUMN command in
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF -
How to update managed metadata column for all file in document library using powershell
Hi,
How to update managed metadata column for all file in document library using powershell?
Any help on it.
Thanks & REgards
Poomani SankaranHi TanPart,
I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation Document Library.But i am getting below error in powershell.
Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
Could you tell me which is the issues in it?
See the code below.
$web = Get-SPWeb http://ntmoss2010:9090/Site
$list = $web.Lists["DocLib"]
$query = New-Object Microsoft.SharePoint.SPQuery
$query.ViewAttributes = "Scope='Recursive'";
$query.RowLimit = 2000
$caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
'<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
$query.Query = $caml
do
$listItems = $list.GetItems($query)
$spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
foreach($item in $listItems)
#Cast to SPListItem to avoid ambiguous overload error
$spItem = [Microsoft.SharePoint.SPListItem]$item;
Write-Host $spItem.Title
while ($spQuery.ListItemCollectionPosition -ne $null)
Thanks & Regards
Poomani Sankaran -
How to copy a folder from one document library to another document library ?
How to copy a folder from one document library to another document library by programmtically?
Samarendra Swain
Team Sharepoint
www.manuhsolutions.comYou can use the SPFolder.CopyTo method.
public static void CopyFolder()
SPFolder folder = null;
using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
using (SPWeb web = site.OpenWeb())
folder = web.GetFolder("shared%20documents/newfolder");
folder.CopyTo("tester4/newfolder");
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
certdev.com -
How to grant anonymous access on sharepoint document library/list only not for web application
Hello
How to grant anonymous access on sharepoint document library/list only not for web application.I have claim based sharepoint site and has to be but i want to grant access on document library/list only.Is this possible?
Thanks
Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.As i am using following code
SPSite site = SPContext.Current.Site;
SPWeb web = SPContext.Current.Web;
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite ospSite = new SPSite(site.ID))
using (SPWeb webs = ospSite.OpenWeb(web.ID))
// Enable anonymous access on web application
webs.AllowUnsafeUpdates = true;
SPUrlZone urlZone = SPUrlZone.Default;
SPWebApplication specifiedWebApplication = ospSite.WebApplication;
SPIisSettings iisSettings = specifiedWebApplication.IisSettings[urlZone];
//iisSettings.AuthenticationMode = AuthenticationMode.Windows;
iisSettings.AllowAnonymous = true;
specifiedWebApplication.Update();
// Get document library collection here and fetch all the document urls
SPDocumentLibrary docLib = (SPDocumentLibrary)web.Lists["Documents"];
if (docLib != null)
docLib.BreakRoleInheritance(true, false);
docLib.AllowEveryoneViewItems = true;
docLib.AnonymousPermMask64 = SPBasePermissions.ViewPages | SPBasePermissions.OpenItems | SPBasePermissions.ViewVersions
| SPBasePermissions.Open | SPBasePermissions.UseClientIntegration | SPBasePermissions.ViewFormPages | SPBasePermissions.ViewListItems;
//docLib.AnonymousPermMask64 = SPBasePermissions.EmptyMask;
docLib.Update();
Should working but getting access denied......i am totally stuck at this point.
Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything. -
How to set ApplIndentityData header field in JMS adapter
Hi Guys ,
I have one requirement for update the field in SAP JMS header. I am using transport protocol for IBM Websphere MQ in JMS adapter.
While sending data to IBM Websphere MQ Queue via JMS Adapter, need to set the field called ApplIndentityData with the appropriate value which is populate to a MQHRF2 header of a message.
So, regarding that where will do it? Means JMS receiver adapter or IBM MQ level. If JMS receiver adapter, I think using ASMA, So please guide me how to set this filed value in JMS adapter or share any document you have.
Thanks & regards
Vijaykumar SHi RejaSekar,
I reffered your blog and did the below settings in JMS module and ASMA settings.
1) Changed the mode for u201CJMS-Complaintu201D instead of u201CWebsphere MQ(non JMS)u201D
2) Additional JMS message properties tab created below property name and java type.
LocalName --> String
Partname --> String
3) In module parameter tab added the below module name and key
AF_Modules/DynamicConfigurationBean --> LocalEnterpriseBean --> RFH2HEADER
4) Under parameter Tab
RFH2HEADER --> key.0 --> insert http://sap.com/XI/System/JMS DCJMSMessageProperty0
RFH2HEADER --> key.1 --> insert http://sap.com/XI/System/JMS DCJMSMessageProperty0
RFH2HEADER --> value.0 --> LocalName
RFH2HEADER --> value.1 --> PartnerName
Kindly check the above settings whether this is correct or wrong. If anything wrong please let me know what we need to change JMS receiver adapter.
Actually my requirement is need to set these parameters and set the value to that parameters and pass in to /usr folder of a WebsphereMQ message.
Kindly check and help me out.
Thanks & regards
Vijayakumar S -
Is there a simple way to set a form field focus... so basically on load the field focus is set to a specific field? I know how to write it in javascript but was wondering if there is a simple way to basically select the field and click a button or two and get the same result? thanks.
The script for that is extremely small and very simple.
In all hosety, it would probably take longer to edit it through the DW interface than by hand.
Add this after your form and change the bold areas to the name of the form and the name of the input you want to have focus on...
<script type="text/javascript" language="JavaScript">
document.forms['myform'].elements['mytextfield'].focus();
</script>
Those two things are the only items that will ever change. -
Hi,
I'd like to know how I can set a RAW field with the correspondent '10' value (for '10' i mean the byte value of '00000101').
Is there a manner to do this at low level, without cast ?
Thanks and best regards,
NeilThe string 00000101 generally represents the binary value of 5 so I am unsure of exactly what you want but maybe the following will help:
UT1 > set echo on
UT1 > col dumped format a30
UT1 > drop table example;
Table dropped.
UT1 > create table example (fld1 varchar2(10), fld2 raw(02));
Table created.
UT1 > insert into example values ('Row 1',hextoraw('05'));
1 row created.
UT1 > insert into example values ('Row 2',hextoraw('0A'));
1 row created.
UT1 > select fld1, fld2, dump(fld2,16) as dumped from example;
FLD1 FLD2 DUMPED
Row 1 05 Typ=23 Len=1: 5
Row 2 0A Typ=23 Len=1: a
Being that on a big endian machine the 8 bits of a byte are 0 - 7 numbered left to right and on a little endian machine the bits are 0 - 7 right to left this may be where the confusion in your post is coming from. On my system the Oracle functions appear to follow big endian set and display patterns but I suspect that the physical byte settings match. You would need to test this by dumping the raw data on the target platform. The only difference this makes is the character value you would choose to get the bit pattern you want.
The dbms_raw package provides varchar2 to raw and back conversion functions.
HTH -- Mark D Powell -- -
How to set a payload field value only once for multiple instances selected?
The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
Thanks,
Carlos.In the action which displays the edit page just set the form idx value before displaying the jsp.
-
JQuery to set Title field to Name field in Document Library
I want to use some simple JQuery to populate the Title field of a document with the contents of the Name field. I am able to populate the Title field with basic text using:
<script type="text/javascript">
$(function() {
$('input[title=Title]').attr({value: 'Test'});
</script>
That works fine - but how can I change it to pass the contents of the Name field into the Title field? This code runs on the EditForm.aspx for the document library. Thanks!Are you editing the webpart in visual studio and designing custom webpart?
-
How to set the expires field to stop caching of pages
I want to set the expires fields of the HTML data on pages delivered by weblogic, so caching servers(ie ISA) and clients dont cache the my pages. How do I do this?
Thanks for any helpI guess that's the NI Domain (NI Security Login) user name. Check out Tools->Security->Login in LV main menu.
-
How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.
Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
tell application "Adobe InDesign CC"
set newPreset to make new PDF export preset with properties ¬
{name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
tell newPreset to set PDF color space to unchanged color space
end tell -
How to set an mandatory field to non-mandatory.
Hi,
In my form, I will need to set a field to mandatory in certian condition and then set it to not mandatory under different condition.
I know how to set it to mandatory: field.mandatory = "error"
Can someone let me know how to reset the field to not mandatory.
Thanks,
LauraYou can try:
field.mandatory = "disabled";
Thanks
Srini
Maybe you are looking for
-
CS4 Master Collection Install - Can't Select Flash to Install
I'm trying to install the Master Collection on my PC here at work, however when I get to the option to select the "Easy Install", or "Custom Install", Flash CS4 isn't selectable to "Check" to install. It doesn't change if I got to Easy, or Custom. Bo
-
Unable to start the Universal Connection Pool error
Hi, I am trying to deploy two instances of one and the same web application on Tomcat 6. I have application test.war, I have copied and renamed it to test2.war and moved both wars in Tomcat' webapps folder. One of those (which Tomcat decides to start
-
SD invoice can't be reversed due to foreign currency valuation
Hi, I have an invoice which relates to an Sales order,it was posted in several months again(cross monthly closing). Now I want to reverse this invoice,but the system can't cancel the relevant FI document due to we have done the foreign currency evalu
-
Error: 1021001 Failed to Establish Connection With SQL Database Server
Hello, Someone you already MEETS it the following error during an essbase retrieve DLR. My client oracle essbase on my server is 64bit, Essbase 11.1.2.2 x64 I run the odbc located in% windir% \ system32 \ odbcad32.exe "Error: 1021001 Failed to ESTABL
-
Trouble with Benq DC C 700 digital camera on Satellite L30 105
Hello I'm having trouble with my digital camera when I connect it to my laptop. Every time I connect the camera the laptop freezes and gives me the blue screen of death, that is, the screen you get when a fatal error occurs, and then my laptop has to