Trying to use Web LCID property to get the List name in client object Model
Hi ,
I am trying to change the "Personal Documents" list NoCrawl property under MySite using SharePoint Client Object Model. As we use web.Lists.GetByTitle("Personal
Documents"); method to get the list,but here problem is :for different language List name is in their language.So I tried to use LCID property of the WEB and
have taken key-value pair (PersonalSiteOnet_List_PersonalDocuments) from the resource file for that language from 14 hive.
Example:I have selected Spanish language .there are so many LCID for Spanish language but Microsoft has given only one language pack for Spanish.
Then,My Question is that
"All LCID for Spanish language are using same Spanish language pack dictionary file OR something else"
Hi,
According to your post, my understanding is that your requirement is getting list in different language.
Here are two ways for your reference:
1. We can use getById method instead, so that we can avoid the language issue.
2. We can use an array to store the different list name in different language in you JavaScript code, then use the code snippet below to get the list:
var userLcid =_spPageContextInfo.currentLanguage;
var localizedStrings = {
ListName: {
_1033: "EnglishName",
_3082: "SpanishName"
var listName=localizedStrings.ListName["_" + userLcid];
var list=web.Lists.getByTitle(listName);
More information:
http://msdn.microsoft.com/en-us/library/hh670609.aspx
http://wellytonian.com/2012/11/language-packs-sharepoint-2010/
Best Regards
Dennis Guo
TechNet Community Support
Similar Messages
-
How to use viewslifetime managed property to get the list of sites which are least accessed?
Hi,<o:p></o:p>
I am trying to get the subsites of a site collection which are least accessed. I am using ViewsLifeTime managed property in a content search web part with a condition like this:
ViewsLifeTime < 0
OR
ViewsLifeTime = 0.
However, It is not giving any results. I even tried with ViewsLifeTime < 10. I have some subsites which are accessed less than 10 times. I came to know this when I saw the value of ViewsLifeTime
property.
Can anyone suggest how to add a condition on ViewsLifeTime property?
Thanks in advance.Hi Mohan,
Here is a thread with similar issue for your reference:
http://social.technet.microsoft.com/Forums/en-US/770f100d-eadb-45d1-9305-15f11cf9038d/ctxcurrentitemviewslifetime-is-showing-null?forum=sharepointsearch
If you would like to get site usage report in SharePoint 2013, there is OOTB feature for you to view popular trends report for a site, you could refer to the link below:
http://blogs.technet.com/b/tothesharepoint/archive/2014/01/28/view-and-configure-usage-analytics-reports-in-sharepoint-server-2013.aspx
In addition, custom script for usage report for SharePoint sites might be more helpful to your requirement to know access times:
http://blog.falchionconsulting.com/index.php/tag/audit/
Regards,
Rebecca Tu
TechNet Community Support -
When trying to use my banking apps I get the error "Network Required This application requires an active Internet Connection. Please try again". This happens with two different apps from two different banks. One of them works occasionally and have not figured out why. I have cell signal and I am on a strong WiFi network. Same thing happens when I turn off the WiFi too. I have tried uninstalling and re-installing the app with no improvement. I can't seem to find any setting that would cause this. Does anyone have any suggestions?
I can access the internet just fine in the browser and i can use any other app i have.
Sent from my Verizon Wireless 4G LTE DROID -
I am having issues with installing it. I have Windows7 that is also brand new so any help will be greatly appreciated.
PSE12 works fine with W7amp; and W8.1. So you need to contact Adobe directly using the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
1. Adobe Photoshop Elements
2. Adobe ID, and signing-in
3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on.
Click here to get help now Contact Customer Care -
I only recently learned/read about SharePoint's JavaScript Client Object Model. I'm reading online trying to figure this out but not having much luck.
On newform.aspx (and dispform.aspx) I want to get the
current list,
the last item created, and it's attachments. I now the CAML query I need to get the last item created, but first I have to get the current list and I am not sure how to do that.
I tried this but it returns null:
SP.ListOperation.Selection.getSelectedList()Hi,
For your issue, you can get the list name from the new form url and retrieve the list last created item :
https://social.msdn.microsoft.com/Forums/office/en-US/b90a64f8-2255-41b0-9d91-78335dd4a4cf/get-list-name-from-list-url-through-javascript?forum=sharepointdevelopmentprevious
http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Hi
May be a simple question, but I can't figure out how actually.
When I'm doing this
var obj:Object = new Object();
obj.test = "My Test";
for(var i:* in obj)
trace(i + " : " + obj[i]);
The output is -> test : My Test
My problem comes when I put an object inside the object
var obj:Object = new Object();
obj.test = new Object()
obj.test.secondTest = "My Test";
for(var i:* in obj)
trace(i + " : " + obj[i]);
The output is -> test : [object Object]
So any idea how to get the variable name instead of [object Object], just like the first output but with the second code. I have an object inside an object.
ThanksThe following approach will dig it's way in. I added other variables to the main object just for demo sake...
var obj:Object = new Object();
obj.test1 = "test string";
obj.test = new Object();
obj.test.secondTest = "My Test";
obj.test2 = new Object();
obj.test2.secondTest2 = new Object();
obj.test2.secondTest2.val = "deeper test";
function traceObjectVars(obj_arg:Object):void {
for(var i:* in obj_arg){
if(typeof(obj_arg[i]) == "object"){
traceObjectVars(obj_arg[i]);
} else {
trace(i + " : " + obj_arg[i]);
traceObjectVars(obj); -
How to get the list of values for a dynamic parameter using Web Services SDK?
<p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>
<p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>
-
After years of owning all things Mac, I am finally trying to use iChat, and can't get it to work. I am using gmail, and I see my buddy (no camera icon next to her name), but all I can do is send a message--the video and audio chat icons are gray, as is inviting to a video chat under Buddies. My buddy has the same problem as I. We are able to do video chat through gmail, but I had hoped to use iChat. I am using OS 10.6.8, iChat v. 5.0.3. What am I missing?
HI,
iChat will Video chat to another iChat in a Jabber Buddy List (Google run a Jabber server for GoogleTalk)
However it will not Video to the Web Page login to iGoogle or the Web Mail Page login. (where people can Google Chat as it were in a Web Browser).
Nor does it video to the Google Talk Stand alone app for PCs or any other Jabber apps on any platform.
iChat uses a connection Process called SIP (Session Initiation Protocol) which is also used by other VoIP devices.
Jabber/XMPP invited the Jingle Protocol for Jabber Applications.
Google have included this in their Standalone app and the Plug-in for Web Browsers on both PCs and Mac (you can get this as a Standalone Plug-in or as part of Chrome)
More on this here This article has been changed several time in the recent months. It now claims a greater involvement by Google in writing the Jingle Library (Although now Google's version does not work with the others)
This tends to mean that using the web Login to Google to Chat also cannot video chat to other Jabber apps that are using Jingle.
If your Buddy is using iChat then check the Video Menu has two items to Enable Camera/Video chat and Microphone/Audio chats are ticked.
In the View Menu the Show Status Items should be ticked (Selecting them toggles the tick and the function On or Off)
It could be Internet speed but at this stage I would doubt this at this stage.
10:27 PM Saturday; January 21, 2012
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
Exception when trying to use web service login method
Hi all,
we've installed Discoverer, upgraded OAS to version 10.1.2 and installed the web service patch successfully. I can get the list of web service methods through
http://app1.localdomain:7778/discoverer/wsi
We've also created a bipublisher user in oiddas, and got it's guid. When I try to use the login method of the web services I get this exception:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>oracle.discoverer.applications.ws.util.DiscovererWSException: An error occurred during SSOUsername/GUID lookup.</faultstring>
<faultactor>/discoverer/wsi</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>Does anyone have a clue what the problem is? I should also mention that after my DBA's advice we didn't upgrade the infrastructure instance, only the middle tier discoverer installation and then installed the repository upgrade.
A few months back on a test installation I had tried to switch to SSO and then reverted back and managed to connect without SSO enabled.
Edited by: dvm on Nov 11, 2008 7:22 AMWell... this is definitelly not a requirement.
The code snippet came from the test (junit) for something which is much bigger. And of course the 1-char long table name has nothing to do with desing. At all.
We have a system where a user defines (named) xml structures, so to say. The structures are then "translated" into DB entities. So the result DB schema is fully auto-generated. The system supports 4 different SQL dialects. Oracle is just one of them.
Having restrictions like "name of a structure must be at least two characters" is no problem. But I still can`t believe Oracle has such a limitation. It does not sound logical (to me at least). And I had a hope may be someone has an explanation for that thing.
The code above works just fine if I do not request certain columns back after the statement is executed. (e.g. without the second parameter).
But anyway... I would post a bug for this, if I knew where to post it to :)
Thanks. -
When trying to log into face time I get the registering device does not have appropriate credentials after I sign in, I have OSX 10.8.4 on my Mac Pro. I can log into face time without a problem using my IPAD.>
Please take each of the following steps that you haven't already tried, until the issue is reolved. If there's no resolution after Step 3, post your results.
Step 1
Sign out of iMessage in the Accounts tab of the preferences dialog, then sign back in.
Step 2
Log out of your user account and log back in.
Step 3
Boot in safe mode and test, then reboot as usual and test again.
Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. -
I'm new to Mac and the program/all called Numbers. I'm trying to use both Average and small in the same formula. What's I'm trying to do is take 20 cells in a column, find the 10 lowest numbers, then get the average and after that multiply it by .96 I used to use Excel and the formula worked fine in that. Here is my Formula
=(average(small(H201:H220,{1,2,3,4,5,6,7,8,9,10})))*.96
This formula worked in Excel and when I converted my spreadsheet over to Numbers, this formula no longer works.
The best that I have been able to do so far is use small in 10 different cells, then get the average of the 10 cells and finally multiply that average by .96 So instead of using 1 cell, I'm using 12 cells to get my answer.
This is a formula that I will be using all the time. The next cell would be =(average(small(H202:H221,{1,2,3,4,5,6,7,8,9,10})))*.96
Hoping I explain myself well enough and that someone can help me.
ThanksYou can still do it in one cell but it will be more unruly than the Excel array formula.
=average(small(H201:H220,1),small(H201:H220,2),small(H201:H220,3),...,small(H201:H220,10))*0.96
where you would, of course, replace the "..." with the remaining six SMALL functions. -
I have not used my CS3 version for about 3-4 years. I tried to use it recently and I get a message about activation. Called the phone number recommended but no longer in use. How do I start using MY version I paid for? Using PC
Can you activate CS3. If you lost your serial you can retrieve it from Adobe.com. Sign in at Adobe.com the use this link https://www.adobe.com/account/my-products-services.html When your Adobe Product list is displayed click on your CS3 product your serial number should be displayed.
-
I'm trying to export my Aperture masters to use in Lightroom, can't get the ratings to export. Tried writing the IPTC data to the masters and adding the IPTC4XMP file when exporting, neither worked. The ratings show up in Lightroom if I export the versions. These are all .jpg's that I am exporting. Any ideas on how to fix this?
ThanksThere are two problems here:
1) Aperture does not modify its "original" files on export. Meaning with the JPEG files that Aperture will NOT modify them, and it will not write IPTC data to them. It exports the XMP sidecar files, as you're seeing.
2) Adobe will NOT read IPTC sidecar files for non-RAW images. So if it sees a JPEG file, it will not look for an XMP sidecar file. It just doesn't read them, so the data won't be imported by Lightroom.
If you are using JPEG files, then probably the solution is to check the box in Aperture to tell it to write XMP metadata to the original files. They're not RAW files, so they're not proprietary in any way, so writing the XMP metadata to the JPEG files is probably pretty safe. -
Hi there,both my uncle and i are using iphone 5 that runs on 6.1.2 whenever i send or receive tweets i'am not getting the twitter default sound,i'am getting tri-tone sound.My uncle however would get the default twitter sound whenever he sends or receive.What's up with that?
Check: Settings - Sounds - Tweet - Set to your preference.
-
Hello everyone. I am having trouble writing a utility that uses SharePoint web services to upload a file and metatag it. It keeps throwing the following error message:
"The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/_forms/default.aspx?ReturnUrl=%2fsites%2fgk%2f_vti_bin%2fcopy.asmx">here</a>.</h2>
</body></html> --."
Not sure why. I pass the file that I am going to upload to the subroutine and it is suppose to upload it to the appropriate library. I have burned several days on this problem and I am not sure what is going on. I would appreciate anyone that can point me in
the right direction. Below is the subroutine that I have that is causing the problem. Obviously, I have stripped the name from the example.
Thanks
Mike
******** <Begin snip of code> **********************
Public Shared Sub CreateNewDocumentWithCopyService(ByVal fileName As String)
Dim c As New copyservice.Copy
c.PreAuthenticate = True
c.Credentials = New System.Net.NetworkCredential("[email protected]", "mypassword")
c.Url = "https://x.sharepoint.com/sites/gk/_vti_bin/copy.asmx"
Dim myBinary As Byte() = System.IO.File.ReadAllBytes(fileName)
Dim destination As String = "https://x.sharepoint.com/sites/gk/Gatekeeper%20Reference/" & System.IO.Path.GetFileName(fileName)
Dim destinationUrl As String() = {destination}
Dim info1 As New copyservice.FieldInformation
info1.DisplayName = "Title"
info1.InternalName = "Title"
info1.Type = copyservice.FieldType.Text
info1.Value = "new title"
Dim info2 As New copyservice.FieldInformation
info2.DisplayName = "Modified By"
info2.InternalName = "Editor"
info2.Type = copyservice.FieldType.User
info2.Value = "-1;#servername\\testmoss"
Dim info As copyservice.FieldInformation() = {info1, info2}
Dim resultTest As New copyservice.CopyResult
Dim result As copyservice.CopyResult() = {resultTest}
Try
' When creating new content use the same URL in the SourceURI as in the Destination URL argument
c.CopyIntoItems(destination, destinationUrl, info, myBinary, result)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
******** <End snip of code> **********************Hi,
If you want to upload a file to a library in SharePoint 2013 online, I suggest you use Client Object Model or REST API.
The code snippets in the two threads below will be helpful:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/deac7cb7-c677-47b0-acdc-c56b32dfaac8/uploading-bigger-files-using-csom
http://stackoverflow.com/questions/17057074/how-to-download-upload-files-from-to-sharepoint-2013-using-csom
Uploading Files Using the REST API
http://blogs.msdn.com/b/uksharepoint/archive/2013/04/20/uploading-files-using-the-rest-api-and-client-side-techniques.aspx
You can handle the authentication with
SharePointOnlineCredentials object:
http://www.vrdmn.com/2013/01/authenticating-net-client-object-model.html
Best regards
Patrick Liang
TechNet Community Support
Maybe you are looking for
-
Why does Dreamweaver force an image sub-directory, and how can I stop that behaviour?
This is from a person (me) who has made lots of web pages, but doesn't use sub-directories, so you might decide I am unsophisticated. So be it. I do not use sub-directories, but every time I open one of my web pages, Dreamweaver decides that all of
-
Hi everyone, i'm just writing a method, that gets a string and a XPath and want writes the string to the specific XPath in my xml document. The problem ist, that the string itself can contain nodes like (e.g. <image> or something else from my dtd, so
-
SQL query and Delete the data based on condition
Hi All, I have one requirement like I need to fetch the data from the table, In that table one filed (XXXXX) domain type is STAMP. delete the data if the sy-datum ( length 8) is greater than field XXXXX which has length 14. Please suggest me how to
-
How to avoid redo/rollback?
Hi Alls, I want to delete some data in a table without rollback? How can I do? Thanks. Witchuda.
-
I created a applescript to automatic fill the login information for a webpage. I made it four months ago and it works fine untill a month aprox. The problem is very wierd, It fills the first field, the username, using the command "keystroke" and it d