jquery - SharePoint 2010 List -


I have the following code that uses SharePoint SP to do the right thing to complete jQuery from a list that works correctly

However:

  1. How can I include more columns in the code?

  2. This will not accept some column names such as [User ID] or [user email / name]

I I am thinking of the name of / or in the name of space. How can I eliminate the code instead of changing the name of the column in the SharePoint list?

  & lt; Asp: content content placeholder id = "placeholderman" runat = "server" & gt; & Lt; Script type = "text / javascript" src = "/ sitename / jquery / jquery-1.6.2.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "/ sitename / jquery / jquery.SPServices-0.7.2.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; . $ (Document) .ready (function () {$ () SPServices.SPAutocomplete ({SourceList: "MyListName", sourceColumn: "user", columnName: "user", NUMCHARS: 2, ignoreCase: True, slideDownSpeed: 100, Debug: true}};}); & Lt; / Script & gt;  

Space should not be an issue.

Note, sourceColumn is a stable name.

StaticName (as opposed to in DisplayName) means the built-in column name, for example, field_x0020_name column For this it is also called 'internal name'. DisplayName will be the name of the area, that is, the name of the column, which is shown on the form and as a header in the list views. Probably the easiest way to determine the static name if you do not know that this list has to go to settings and click on the column name link. When you visit the column properties page, check the URL. It will end like: /layouts/FldEdit.aspx?List=%7B37920121%2D19B2%2D4C77%2D92FF%2D8B3E07853114%7D&Field=Potential%5Fx0020%5FValue end StaticName the price for the field parameter . This is a bit tricky because some of the characters are further encoded. Any event should be replaced by an underscore '' 'example'% 5F ':

Potential% 5Fx0020% 5FValue -> Potential_x0020_Value Child% 5Fx0020% 5FSite% 5Fx0020% 5FName -> Child_x0020_Site_x0020_Name

DisplayName

DisplayName is (as opposed to StaticName) means the column name displayed in forms and headers in list views, for example For, area name Static name will be area_x0020_name, that is, the built-in column name


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -