Question

Suppose i have multiple features inside my wspbuilder. That includes a list definition, and a webpart.

  1. I want to fetch the records / items inside list, into my webpart. how we can do this ?

  2. As i explained , i have a list definition in my WSPBuilder project. the requirement is, to set the lookup field on that list itself on ID Or Title column. Can we do this ? What i have to do.

Was it helpful?

Solution

  1. Use a SPQuery object. But you should develop what you want to do. There is often native components that can do the job with a small amount of work

  2. either use the AddLookupMethod, or do the stuff in the list definition. The later way is quite hard, because the list definition schema is not always properly handled by SharePOint code. I also have to add, that the lookups needs to be used with precaution. You have to create the target list, then the child list (can't create the lookup on a non existing field)

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top