"Unknown list item type 'list'" error
Hi Friends,
I am facing a problem while creating a listbox (in inDesign JScript). I have written the following syntax to create the same:
var myDialog1 = app.dialogs.add({name:"Simple Dialog"});
var styleList = new Array("Part Num","Part Title","Chap Num","Chap Title","Chap TOC");
var submenuItems = new Array("Style Formatting","Indents and Spacing","Paragraph Rules","Keep Options","Hyphenations","Nested Styles","Bullets and Numbering");
with(myDialog1){
with(dialogColumns.add()){
with(dialogRows.add()){
with(borderPanels.add()){
with(dialogColumns.add()){
var styles = dropdowns.add({stringList:styleList,selectedIndex:0,minWidth:133});
with(dialogColumns.add()){
var submenu = ListBox.add("list",submenuItems);
myDialog1.show();
But it is showing the following error message:
"Unknown list item type 'list'"
I want to know that what I should write in the parameter list. Please help me in this regard.
Thanks a lot in advance
Hi Adithi,
dialogColumns don't know a child called 'ListBox'.
You can use 'dropdowns' instead as you did in 'var styles = dropdowns.add({stringList:styleList,selectedIndex:0,minWidth:133});':
var submenu = dropdowns.add({stringList:submenuItems, selectedIndex:0});
Martin
Similar Messages
-
Copy one list items new list using client side object model
Hi,
I have a requirement like i need to copy one list information to new list with createdby and modified by fields.I need to use client side object model code.Can u please send me the code sample.
Regards,
PraveenHi,
According to your post, my understanding is that you want to copy one list items new list using client side object model.
You can use console application.
Here is a similar thread for your reference:
https://social.technet.microsoft.com/Forums/sharepoint/en-US/28a43891-7505-4d34-b513-fdd66773c2a3/copy-list-item-to-another-list-using-client-object-model-in-console-application?forum=sharepointdevelopmentprevious
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Item Type "List Item" dosn't work
I've tried to give the item type of a item to List item
After compiling, I launch the form and I get this:
NoClassDefFoundError
Plugin Java 10.7.2.11
Version JRE 1.6.0_31-b05 Java HotSpot(TM) Client VM
Could it be because of something incompatible in my versions? But it's first time it happens (only with List items)
Database: Oracle 10gXE
Forms Builder: 10.1.2.0.2
JRE: 1.6.0_31
Jinitiator: 1.3.1.22
Thanks in advance!This error should only appear when you use a list-item with the list-type set to combobox. A combobox in forms is a listitem where you can also enter your own text. If you nly need a dropdown list, set the liststyle to poplist. This works also without patching. if you really need the combobox, patch.
-
Hello All,
We recently (Monday) updated our farm to the feb 2015 CU. Since then we have been getting calls in from users that cannot access list items. They receive a correlation error. Looking at the logs the correlation error points to a critical
error: "Requested registry access is not allowed"
Doing some googling, others have seen this error but it is usually associated with managed accounts.
Has anyone else encountered this issue/error? Have you found a solution?
Thanks for your help
environment: SharePoint 2013 enterprise : 6 farm servers : OWA : project server : SQL 2012 always on backendThis would be the service account running the Web Application failing to access the registry key(s). What you should do is set up
Process Monitor to look at Registry keys, and look for ACCESS DENIED.
One thing you could just try out would be to run:
Initialize-SPResourceSecurity
Also, do you mean the March 2015 CU?
Trevor Seward
Follow or contact me at...
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Problem passing value from List Item to List Item
OK I will try to explain what I am trying to do. I have a Form that List Item at the top and they cascade from left to right. When I get to the BPOST_TAG I choose the Bpost then move to EPOST_TAG to choose the Epost. The EPOST_TAG should show all the Epost that go with Bpost you already chose, but it only showing 1 or 2. Below is the example of how should work!
SYSTEM COUNTY ROUTE BPOST_TAG EBPOST_TAG
1 77 80 025 030
------- The Return Values Should be as below-------------------------------------------------
Sy Co Route Dir Bpost Epost Miles Descrption
1 77 80 1 025 026 ? ?
1 77 80 1 026 027 ? ?
1 77 80 1 027 028 ? ?
1 77 80 1 028 029 ? ?
1 77 80 1 029 030 ? ?
1 77 80 2 025 026 ? ?
1 77 80 2 026 027 ? ?
1 77 80 2 027 028 ? ?
1 77 80 2 028 029 ? ?
1 77 80 2 029 030 ? ?
The top 5 List Items are based on the first Data Block (PMISCURR) and the bottom 8 columns are based on the second Data Block (PMISCURR1).
I have PRE-QUERY on the first Data Block (PMISCURR), below is code for the PRE-QUERY.
DECLARE
Wh_clause VARCHAR2(200);
BEGIN
IF :PMISCURR.SYSTEM is not null then
Wh_clause := 'SYSTEM = '||:PMISCURR.SYSTEM;
END IF;
IF :PMISCURR.COUNTY is not null then
Wh_clause := WH_CLAUSE ||'AND COUNTY = '||:PMISCURR.COUNTY;
END IF;
IF :PMISCURR.ROUTE is not null then
Wh_clause := WH_CLAUSE ||'AND ROUTE = '||:PMISCURR.ROUTE;
END IF;
IF :PMISCURR.BPOST_TAG is not null then
Wh_clause := WH_CLAUSE ||'AND BPOST_TAG = '||:PMISCURR.BPOST_TAG;
END IF;
IF :PMISCURR.EPOST_TAG is not null then
Wh_clause := WH_CLAUSE ||'AND EPOST_TAG = '||:PMISCURR.EPOST_TAG;
END IF;
END;
OK It's just not my day I can't even get this line-up! :)
Edited by: Monty on May 5, 2011 2:58 PMHello,
Simply get the current item value in a When-List-Changed trigger:
current_value := :block.listitem ;Francois -
Dear all,
I am getting application error while enabling the feature. if any body can point out the issue - that will be helpful.
content type
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field ID="{4C1B0A21-FCE0-4CFE-8742-A250672AFE4F}" Type="Note" Name="CourseDesc" DisplayName="Course Description" Required="TRUE" Group="Training Site Columns"/>
<!-- Parent ContentType: Item (0x01) -->
<ContentType ID="0x0100d57ecc53fde34177b096abd0ec90a8f9"
Name="TrainingCourses"
Group="Training Content Types"
Description="Defines a Course"
Inherits="TRUE"
Version="0">
<FieldRefs>
<FieldRef ID="{4C1B0A21-FCE0-4CFE-8742-A250672AFE4F}" Name="CourseDesc" DisplayName="Course Description" Required="TRUE"/>
</FieldRefs>
</ContentType>
</Elements>
List definition
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List Definition project item, an error will occur when the project is run. -->
<ListTemplate
Name="TrainingCourses"
Type="10100"
BaseType="0"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="410"
DisplayName="TrainingCourses"
Description="Training Courses List Definition"
Image="/_layouts/images/itgen.png"/>
</Elements>
List instance
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance Title="TrainingCourses"
OnQuickLaunch="TRUE"
TemplateType="10100"
Url="Lists/TrainingCourses"
Description="Training Course List Instance">
</ListInstance>
</Elements>
schema
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="TrainingCourses" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/TrainingCourses-LD_TrainingCourses" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentType ID="0x0100d57ecc53fde34177b096abd0ec90a8f9" Name="TrainingCourses" Group="Training Content Types" Description="Defines a Course" Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef ID="{4C1B0A21-FCE0-4CFE-8742-A250672AFE4F}" Name="CourseDesc" DisplayName="Course Description" Required="TRUE" />
</FieldRefs>
</ContentType>
</ContentTypes>
<Fields>
<Field ID="{4c1b0a21-fce0-4cfe-8742-a250672afe4f}" Type="Note" Name="CourseDesc" DisplayName="Course Description" Required="TRUE" Group="Training Site Columns" />
</Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu">
</FieldRef>
<FieldRef Name="CourseDesc">
</FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View>
<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="Attachments">
</FieldRef>
<FieldRef Name="LinkTitle">
</FieldRef>
<FieldRef Name="CourseDesc">
</FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>
I am applying the feature to SPWeb level.
cheers
Sathyaredeployed a new solution; since I was getting this error. I would have done typo errors etc.
https://naveengopisetty.wordpress.com/2011/09/10/error-occurred-in-deployment-step-activate-features-invalid-file-name-the-file-name-you-specified-could-not-be-used-it-may-be-the-name-of-an-existing-file-or-directory-or-you-may-not-have-pe/
Cheers
Sathya -
List-Items (Type=URL) - how to open in New Window
I use a List for deliver information in a region.
The list consist of some URLs.
I would like to open a new Window (not use the active Window), if one element was clicked.
With html-text-region I could user "target=...", but this is not usable in the List entries, it should be a simple URL.
Have we any attributes for such a behavior?Lutz,
You can achieve what you want in a list template. For example the sample application uses the following fragment in the Standard Unordered List template:
<li>#TEXT#</li>
Simple change that to
<li><a target="new" href="#LINK#" style="font-weight:bold;" class="list">#TEXT#</a></li>
or something similar.
Sergio -
How to create an alert at the list item of List box in vbs/c sharp
Dear All,
I need to know how can we create an alert, or a message on the execution of the last item in the List box.What do you mean by "on the execution of the last item in the list box"? Do you mean when that last item of a ListBox is selected? If so, you could use the following code:
Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) _
Handles ListBox1.SelectedIndexChanged
Dim lb As ListBox = CType(sender, ListBox)
If lb.SelectedIndex = lb.Items.Count - 1 Then
MessageBox.Show("Last item is selected")
End If
End Sub -
Playlist is doubled .... each list item is listed twice
12.1.0.5.0 iTunes up to date
All the items in my playlist listings are doubled: Diana Krall and Diana Krall 1 Dave Matthews and Dave Matthews 1 etc. Does this have something to do with the cloud or a setting. I delete the doubled item (followed by a 1) but if soon reappears.
Thanks
BarbYou're if statements aren't correct, As you have them now if the first
if result is equal to {"Co-Packer, 10.5oz"} then
doesn't fire none of the following if statements will be evaluated. What you want to do is use
if condition1 then
statement1
else if condition2 then
statement2
else if condition3 then
statement3
else
statement4
end
So you code becomes:
if result is equal to {"Co-Packer, 10.5oz"} then
your code
else if result is equal to {"Co-Packer, 32.0oz"} then
your code
else if result is equal to {"Co-Packer, Elixir"} then
your code
end
Message was edited by: Frank Caggiano - Added example from OP's code -
Content type, list definition and List instance - query
Dear all,
I created a list content type, list definition and list instance for a SessionsList.
I did mistake when created a event receiver file where field name is RegistrationsInfo - did typo error as RegistrationInfo. This field I want to make it as false in the ShowInNewForm= false
When I deploy it with event receiver file - I am getting stack trace error stating that the RegistrationsInfo field is missing.
Without event receiver file - when I deploy the solution and checked the field name - it is showing rightly as RegistrationsInfo.
Content Type:-
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field ID="{7113CBE5-57E9-4082-A0A2-492B35B69C8D}" Type="Lookup" List="Lists/Courses-List" ShowField="Title" Name="CourseTitle" DisplayName="Courses - Title" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{920AE6A7-2AAE-4E43-8855-7CBD9978EC5E}" Type="Lookup" List="Lists/SessionTrainer" ShowField="FullName" Name="Trainer" DisplayName="Trainer" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{F73D9A96-3C86-4E33-96D5-31E30B08BF40}" Type="Choice" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE" Group="Training Site Columns">
<CHOICES>
<CHOICE>Kerala Meeting Room</CHOICE>
<CHOICE>Orissa Meeting Room</CHOICE>
<CHOICE>Bihar Meeting Room</CHOICE>
</CHOICES>
</Field>
<Field ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" Type="Number" Decimals="0" Min="0" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{03281B47-F1D1-477E-9793-3A19118720EE}" Type="Number" Decimals="0" Min="0" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{8A900663-6351-445B-ACB3-394F44D45C8D}" Type="Calculated" ResultType="Number" ReadOnly="TRUE" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE" Group="Training Site Columns">
<Formula>=TotalSeatsInfo-RegistrationsInfo</Formula>
<FieldRefs>
<FieldRef Name="TotalSeatsInfo" ID="{03281B47-F1D1-477E-9793-3A19118720EE}"/>
<FieldRef Name="RegistrationsInfo" ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}"/>
</FieldRefs>
</Field>
<!-- Parent ContentType: Item (0x01) -->
<ContentType ID="0x0100a9dc01b7e78b45799fe59153d97e2b9e"
Name="SessionList"
Group="Session Content Types"
Description="Session Content Type"
Inherits="TRUE"
Version="0">
<FieldRefs>
<FieldRef ID="{7113CBE5-57E9-4082-A0A2-492B35B69C8D}" Name="CourseTitle" DisplayName="Courses - Title" Required="TRUE"/>
<FieldRef ID="{920AE6A7-2AAE-4E43-8855-7CBD9978EC5E}" Name="Trainer" DisplayName="Trainer" Required="FALSE" />
<FieldRef ID="{F73D9A96-3C86-4E33-96D5-31E30B08BF40}" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE"/>
<FieldRef ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE"/>
<FieldRef ID="{03281B47-F1D1-477E-9793-3A19118720EE}" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE"/>
<FieldRef ID="{8A900663-6351-445B-ACB3-394F44D45C8D}" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE"/>
</FieldRefs>
</ContentType>
</Elements>
Schema:-
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="SessionList" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/SessionList-LD-SessionList" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentType ID="0x0100a9dc01b7e78b45799fe59153d97e2b9e" Name="SessionList" Group="Session Content Types" Description="Session Content Type" Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef ID="{7113CBE5-57E9-4082-A0A2-492B35B69C8D}" Name="CourseTitle" DisplayName="Courses - Title" Required="TRUE" />
<FieldRef ID="{920AE6A7-2AAE-4E43-8855-7CBD9978EC5E}" Name="Trainer" DisplayName="Trainer" Required="FALSE" />
<FieldRef ID="{F73D9A96-3C86-4E33-96D5-31E30B08BF40}" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE" />
<FieldRef ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE" />
<FieldRef ID="{03281B47-F1D1-477E-9793-3A19118720EE}" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE" />
<FieldRef ID="{8A900663-6351-445B-ACB3-394F44D45C8D}" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE" />
</FieldRefs>
</ContentType>
</ContentTypes>
<Fields>
<Field ID="{7113cbe5-57e9-4082-a0a2-492b35b69c8d}" Type="Lookup" List="Lists/Courses-List" ShowField="Title" Name="CourseTitle" DisplayName="Courses - Title" Required="FALSE" Group="Training Site Columns" />
<Field ID="{920ae6a7-2aae-4e43-8855-7cbd9978ec5e}" Type="Lookup" List="Lists/SessionTrainer" ShowField="FullName" Name="Trainer" DisplayName="Trainer" Required="FALSE" Group="Training Site Columns" />
<Field ID="{f73d9a96-3c86-4e33-96d5-31e30b08bf40}" Type="Choice" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE" Group="Training Site Columns">
<CHOICES>
<CHOICE>Kerala Meeting Room</CHOICE>
<CHOICE>Orissa Meeting Room</CHOICE>
<CHOICE>Bihar Meeting Room</CHOICE>
</CHOICES>
</Field>
<Field ID="{b6e9c8f5-f1bd-4d98-bd30-194504859acc}" Type="Number" Decimals="0" Min="0" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE" Group="Training Site Columns" />
<Field ID="{03281b47-f1d1-477e-9793-3a19118720ee}" Type="Number" Decimals="0" Min="0" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE" Group="Training Site Columns" />
<Field ID="{8a900663-6351-445b-acb3-394f44d45c8d}" Type="Calculated" ResultType="Number" ReadOnly="TRUE" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE" Group="Training Site Columns">
<Formula>=TotalSeatsInfo-RegistrationsInfo</Formula>
<FieldRefs>
<FieldRef Name="TotalSeatsInfo" ID="{03281B47-F1D1-477E-9793-3A19118720EE}" />
<FieldRef Name="RegistrationsInfo" ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" />
</FieldRefs>
</Field>
</Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu">
</FieldRef>
<FieldRef Name="CourseTitle"></FieldRef>
<FieldRef Name="Trainer"></FieldRef>
<FieldRef Name="TrainingVenue"></FieldRef>
<FieldRef Name="RegistrationsInfo"></FieldRef>
<FieldRef Name="TotalSeatsInfo"></FieldRef>
<FieldRef Name="OpenSeatsInfo"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View>
<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="Attachments">
</FieldRef>
<FieldRef Name="LinkTitle">
</FieldRef>
<FieldRef Name="CourseTitle"></FieldRef>
<FieldRef Name="Trainer"></FieldRef>
<FieldRef Name="TrainingVenue"></FieldRef>
<FieldRef Name="RegistrationsInfo"></FieldRef>
<FieldRef Name="TotalSeatsInfo"></FieldRef>
<FieldRef Name="OpenSeatsInfo"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>
Event Receiver file:-
public override void FeatureActivated(SPFeatureReceiverProperties properties)
//Reference the newly created session list and perform the following
//1. Set the display name of the "Title" column to "SessID" and hide it from the New and Edit Forms
//2. Make the "SessID" column not required
//3. Set the default value of the RegistrationsInfo column to 0 and do not display it on the new form
//4. Add the built-in "Start Date" and "End Date" columns
//Reference the newly created session list
SPWeb currentWeb = properties.Feature.Parent as SPWeb;
//currentWeb.AllowUnsafeUpdates = true;
SPList sessionList = currentWeb.Lists["SessionList"];
//Title column update
SPField titleField = sessionList.Fields["Title"];
titleField.Required = false;
titleField.ShowInNewForm = false;
titleField.ShowInEditForm = false;
titleField.Title = "SessID";
titleField.Update();
//RegistrationsInfo column updates
SPField registrationField = sessionList.Fields["RegistrationsInfo"];
registrationField.DefaultValue = "0";
registrationField.ShowInNewForm = false;
registrationField.Update();
//Add the Start Date and End Date columns to the list, ensure they both display Date and Time, and add them to the default view of the list
SPFieldDateTime startDate = currentWeb.Fields["Starting_Date"] as SPFieldDateTime;
startDate.DisplayFormat = SPDateTimeFieldFormatType.DateTime;
SPFieldDateTime endDate = currentWeb.Fields["Ending_Date"] as SPFieldDateTime;
endDate.DisplayFormat = SPDateTimeFieldFormatType.DateTime;
sessionList.Fields.Add(startDate);
sessionList.Fields.Add(endDate);
SPView defaultView = sessionList.DefaultView;
defaultView.ViewFields.Add(startDate);
defaultView.ViewFields.Add(endDate);
defaultView.Update();
sessionList.Update();
//currentWeb.AllowUnsafeUpdates = false;
Can somebody help me - how to overcome the RegistrationsInfo missing field - error(in the stack trace) when activating the feature in the training site?
Thanks
SathyaHi Sathya,
Seems the field “RegistrationsInfo” is not been found when deploying with Event Receiver, a possible reason is that it might be damaged.
As a workaround, I suggest you retract the solution from your farm, make sure the “RegistrationsInfo” field is deleted using PowerShell, then create another project with the same
content and perform the deployment again.
About how to delete a field using PowerShell for your reference:
https://peterheibrink.wordpress.com/2011/12/09/powershell-delete-field-and-all-references/
http://www.sharepointfix.com/2011/04/powershell-script-to-delete-site.html
Feel free to reply if there any progress.
Thanks
Patrick Liang
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] -
Please help on List Item... I'm stucked... :(
Hi,
I created my Data Block (my data block is called Supply inside
have DeptId, VendorId and Date_Last_Meet) and Layout
(Windows/Canvases) using the Wizard, than I chg one of the
control item frm Text Item to List Item (Property Palette ->
Item Type). And I added the following code (below) into the WHEN-
NEW-FORM-INSTANCE trigger to populate the list:
DECLARE
group_id RecordGroup;
list_id ITEM;
BEGIN
group_id := Create_Group_From_Query ('my_group',
'SELECT DeptName FROM Department');
list_id := Find_Item('DeptId');
IF (Populate_Group(group_id) = 0) THEN
Populate_List(list_id, group_id);
END IF;
END;
When I run my form it give me this error (a popup error):
FRM-30351: No list elements defined for list item.
List DEPTID
Created form file C:\MP3\75131\TEST_LIST_ITEM.fmx
and this error (displayed in form status bar):
FRM-41334: Invalid record group for list population.
What wrong with the code? I tried every single code in this
forum, but none of them work for me... could someone please help
me out, I'm stucked... :(
Note: I'm using Oracle8i and Form Builder [32 Bit] Version
6.0.8.11.3 (Production).
Thank You.
Regard,
Wai ChongHello,
For populating list from Query you need to return 2 columns
from query, one will be display column and Second will be it's
corresponding value. Problem is in your query.Look at following
procedure. Value column must be converted to Character,that's
why I am using To_char here.
PROCEDURE POPULATE_ZONE IS
V_ZONEITEM ITEM;
V_ZONEGROUP RECORDGROUP;
N
NUMBER;
BEGIN
V_ZONEITEM := FIND_ITEM('TSTATEM.ZONE');
IF ID_NULL(V_ZONEITEM) THEN
MESSAGE('Item zone does not
exists.');
MESSAGE('.');
ELSE
V_ZONEGROUP :=
CREATE_GROUP_FROM_QUERY('ZONEGRP','SELECT NAME,TO_CHAR(ZONE0)
ZONE
FROM YOGI.TZONEM ORDER BY ZONE0');
N := POPULATE_GROUP('ZONEGRP');
IF N <> 0 THEN
MESSAGE('Group zone does
not contain entries.');
MESSAGE('.');
RAISE
FORM_TRIGGER_FAILURE;
ELSE
POPULATE_LIST
('TSTATEM.ZONE','ZONEGRP');
END IF;
END IF;
END;
Adinath Kamode -
Using REST to approve a list item
I am pretty sure I already know the answer to this, but I am hoping someone here can say if its a bug or not and maybe get some visibility in MS on this issue.
I am trying to approve a list item via JavaScript using the REST interface. I know how to do it with CSOM, but in this scenario I am crossing site collection boundaries and CSOM won't let you do that. I have
tried setting _ModerationStatus, _moderationstatus, ows_ModerationStatus, and 'Approval Status' to 0 but I keep getting an error that the column is not a valid column on the list item type. Does anyone know of something special that can be done to get to some
of the 'special' fields on a list item? My test code for reference.
function example() {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
processData: false,
beforeSend: function (xhr) {
xhr.setRequestHeader("If-Match", "*");
xhr.setRequestHeader("X-HTTP-Method", 'MERGE');
url: "http://myserver/sites/full/path/to/site/_vti_bin/listdata.svc/MyList(1)",
data: "{'ows_ModerationStatus':0}",
dataType: "json",
error: function (xhr) {
alert(xhr.status + ": " + xhr.statusText);
success: function () {
alert("success");
The exact error I am getting is:
"Error processing request stream. The property name 'ows_ModerationStatus' specified for type 'Microsoft.SharePoint.DataService.MyCustomItem' is not valid."Hi,
For your requirement, you can use the Lists Web Service to update the moderation status field for a specific list item with the Moderate operation.
UpdateListItems method
Here is a link with code demo for your reference:
https://www.nothingbutsharepoint.com/sites/devwiki/articles/Pages/Use-of-WSS-web-service-for-List-Library-content-updates.aspx
Thanks
Patrick Liang
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]
Patrick Liang
TechNet Community Support -
Dynamic Population of List Item Not Working
My requirement is to have 1 list item that is populated based on the value selected for a second list item. in the when-list-changed trigger of the second list item, i make a call to a procedure (code below). This seems to not like any of the clear_list or populate_list. the list item type is poplist. i set the class to list. if i use populate_list in when-new-form-instance, there's no problem. PLEASE HELP. When can't I populate list using a procedure??
ERROR: frm-40734 internal error pl sql error occurred
PROCEDURE Refresh_List IS
v_rg_name VARCHAR2(40) := 'RGTEST';
v_rg_id RecordGroup;
v_sql varchar2(2048);
problem EXCEPTION;
status number;
list_id item;
BEGIN
list_id := Find_Item('BLK_TEST.LST_TEST');
v_sql:='select column_name from sys.all_tab_columns where table_name=''testtable''';
v_rg_id := Find_Group( v_rg_name );
IF Not Id_Null(v_rg_id) THEN
DELETE_GROUP( v_rg_id ) ;
End if;
clear_list(list_id);
v_rg_id := Create_Group_From_Query( v_rg_name, v_sql ) ;
status := Populate_Group( v_rg_name );
POPULATE_LIST(list_id, v_rg_id);
POPULATE_LIST('BLK_TEST.LST_TEST', 'RGTEST'); also tried this.
if status <> 0 then
raise problem;
end if;
EXCEPTION
WHEN problem THEN
message('problem.');
WHEN others THEN
message('tooto');
END;Thanks for the response. I've tried this example too and it still doesn't like the things mentioned in previous post. In addition, it doesn't like SET_RECORD_PROPERTY(:system.cursor_record,'EMP',status,new_status); I get the same sort of error. The form compiles fine though.
Background on form:
this form was created to allow users to dynamically build an update statement. On this form are a number of list items and text boxes that are not populated from a database. So the datablock doesn't retrieve values from the database and the only updating that will be done is when the user clicks an "update" button to execute the sql statement that is built. Could this issue I'm having be related to the way i designed my datablock and items? When the user selects an item from one of the list items, the record status goes to "Changed". So I assumed my issue was because of this and thought the set_record_property statement would help...but that is generating the same error. what am i missing? if i look at the index value of the record group after create_group_from_query, it is -1. after populate_group, it is still -1. should it still be -1?? any help is greatly appreciated. -
How to filter data by list item
hi all,
I create list item on block BLK1 ,
name :emp_name
item type: list item
elements in list : list_elements : (null) list_item : (null)
data type : Char
maximum length : 200
and create PROCEDURE :
PROCEDURE POPULATE_LIST_BY_QUERY(P_LIST_NAME VARCHAR2,P_QUERY VARCHAR2) IS
RG_NAME VARCHAR2(30) := 'RG_CODE_DESC' ;
RG_ID RecordGroup;
errcode NUMBER;
LIST_ID ITEM;
BEGIN
RG_ID := FIND_GROUP(RG_NAME);
IF NOT ID_NULL (RG_ID)
THEN DELETE_GROUP (RG_ID) ;
END IF;
RG_ID := Create_Group_From_Query (RG_NAME, P_QUERY) ;
errcode := Populate_Group (RG_ID) ;
LIST_ID := FIND_ITEM (P_LIST_NAME) ;
POPULATE_LIST (LIST_ID,RG_ID) ;
END;and wrote in trigger WHEN_NEW_FORM_INSTANCE:
POPULATE_LIST_BY_QUERY('BLK1.emp_name', 'SELECT emp_name,emp_id FROM employees');
create table employees
(emp_no number(10) primary key,
emp_name varchar2(200))
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(1, 'hhh uuo');
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(2, 'hh ppp');
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(3, 'ph');
Insert into EMPLOYEES
(EMP_NO, EMP_NAME)
Values
(4, 'uuuuu');
COMMIT;when Run my form list item give me all data, no problem ,ok
My question is that can i want to filter data when write anythnig data is found im my list or part of data,
show data only by my filter,
for example:
I wrote in my list : hh
show data in list:
hhh uuo
hh ppp
I wrote in my list : h
show data in list:
hhh uuo
hh ppp
ph
I wrote in my list : uu
show data in list:
uuuuu
if not wrote anything fetch me all data,
Thanks a lotHi,
You can try,
POPULATE_LIST_BY_QUERY('BLK1.EMP_NAME', 'SELECT EMP_NAME, EMP_ID FROM EMPLOYEES WHERE EMP_NAME LIKE ''' || <your_search_variable> || '%''');Hope this helps.
Regards,
Manu. -
SharePoint: Workflow to retrieve all users and Create list item record for each user
Hi all,
My share point site have two Lists as Holidays and MyCalender.
Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
solution for this.. Thanks in advance!You don't need one workflow per user when a filtered view can do this for you. If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view. This will then return the assigned holiday filtering against the account that is logged in.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem.
Maybe you are looking for
-
Setting up SLS & DNS in particular
I would really appreciate some step-by-step guidance on setting up SLS and DNS in particular. I've read all Apple's documentation and dozens of guides and discussions but remain confused about several points, and my set-up still isn't working correct
-
How to make a big screen PLAY button for FLV which will fade away after the movie starts?
I wanted to make play button. Kind of this huge one in the middle of the screen as users used to see on YouTube. Here is the code for it which seems to work: play_btn.addEventListener(MouseEvent.CLICK, onClick_Play); function onClick_Play(event
-
How to run an AIR app from Javascript in browser?
Does anyone know how to do this?
-
Bridge scripting learning curve
I must admit I was a little confused when I first looked at Bridge scripting. I had some background writing photoshop scripts. This forum is an excellent resource to supplement the documentation. Anyway, I have figured out everything I needed to port
-
I recently returned from an Iraq Deployment and set my system back up to find it not working. When i set it up and plugged it in, nothing happened, the LED light did not turn and nor did i get the start up power noise. I checked the fuse and it is no