Wednesday, November 21, 2007
SharePoint 2007 - Create field lookup and associated list as a feature
8 comments:
-
- This comment has been removed by a blog administrator.
- December 7, 2007 at 1:47 AM
- Antoine Pichot said...
- This comment has been removed by the author.
- December 13, 2007 at 5:04 PM
- naijacoder said...
-
Hi Antoine,
I'm not sure whether your solution would solve my problem but
I have created 2 columns(Choice field - dropdown list) in a doc lib.
1)Category
2)Types
Currently when users are uploading document they have to select a category then a Types but this 2 fields aren't related.
But what i want is when they choose a Category i want certain fields of Types to populate based on the Category they selected.
I want to to have dependent dropdownlist like a normal asp.net app
Any ideas?
Thanks in advance - December 14, 2007 at 1:31 AM
-
-
Excellent work to improve the lookup field code. Did you use particular VS extensions to create the project. I am unable to open the VS project file in VS 05.
Thanks in advance - December 27, 2007 at 3:41 AM
- Antoine Pichot said...
-
I use VS 2005 Team Edition. It seems you can't this project with VS Tools for Application.
Naijacoder, you'll find a solution in developping a custom field. - December 31, 2007 at 2:18 PM
-
-
Hi Antoine,
Thank you for your solution, it's working great and saves me a lot of trouble. But still have an issue when using the resources; the resources are not working and i tried all the folders (12/resources; ...). Below the field declaration, thank you for any tips on this issue.
Field ID="{2227273B-3CA7-4507-9577-20EB18001CE3}"
Name="ServiceField"
StaticName="ServiceField"
SourceID="http://schemas.microsoft.com/sharepoint/v3"
Group="$Resources:SiteColumns,MyGroup;"
DisplayName="$Resources:SiteColumns,LookupField;"
Type="Lookup"
Mult="TRUE"
Required="FALSE"
List="CustomList;Services List"
ShowField="Title"
UnlimitedLengthInDocumentLibrary="FALSE"
DisplaceOnUpgrade="TRUE"
Field - February 21, 2008 at 8:29 PM
- Pierre G. said...
-
Hi Antoine,
I've deployed the solution, my lists are correctly created and my lookup fields reference these lists. But... when I try to create a item (using a lookup field), even if the dropdown list is correctly populated, I can't save the item :
"Invalid data has been used to update the list item. The field you are trying to update may be read only.".
Did you have the problem?
Thanks!
-------------------
Bonjour Antoine,
J'ai déployé la solution, les listes sont bien créées et les lookup fields associés pointent bien sur ces listes.
Mais... quand je veux créer un item (comportant un lookup field), même si la liste déroulante comporte les bonnes valeurs, je ne peux pas enregistrer :
"Invalid data has been used to update the list item. The field you are trying to update may be read only.".
As-tu déjà rencontré ce problème?
Merci! - March 20, 2008 at 10:23 AM
-
-
Thanks for the code, Antoine.
Some thoughts on it.
The most methods can be static. An utility class will be better than inline blocks of code. - June 30, 2008 at 9:31 AM