Tag Archive for Fields

Enhanced Lookup Field – Part 4

This is the fourth and final part of the post describing how to create a custom lookup field for SharePoint.

Other pages in this post are:

This post describes how to implement the hidden related field for controlling the display within views.

Read more

Enhanced Lookup Field – Part 3

This is part three of the post on how to create a custom lookup field for SharePoint.

Other pages in this post are:

For this post, I’ll describe the implementation of the field control class.

Read more

Enhanced Lookup Field – Part 2

This is part two of the post showing how to create a custom lookup field for SharePoint.

Other pages in this post are:

This part will implement the field editor class.

Read more

Enhanced Lookup Field – Part 1

The SharePoint lookup field is far from perfect. Once configured, it’s not possible to change the list it gets it’s data from. This is a good thing while the list actually exists.

Now, if a user deleted the source list, the lookup field becomes next to useless and will need to be deleted and re-created.

Would it not be good to be able to re-configure it when this happens?

Or, how about when the source list or display field is deleted, items that have values are not deleted but instead display (in views and the item display form) the original value when they were created?

So, if you had a lookup field that retrieved its values from a list called Cities and in another list this column was added and had existing items. With the out of the box lookup field, if you delete the list Cities any fields that depends on this will stop showing the linked data. Wouldn’t it be good if the custom field detected this and showed the lookup values that were set when the item was last updated? When the list exists, the field would then show the current live item. So, if you changed the name of a city, the field would reflect this, delete the item and the original value would be shown.

Read on to find out how…
Read more

Manually Set Form Field Context

When you’re developing custom code for SharePoint, sometimes you’ll have a situation where you’re dynamically adding form field controls to your control or WebPart and the form context will not be automatically picked up by the controls. If you’re using them outside a new, display or edit form for example.

It’s relatively simple to force the control(s) to the desired context but there’s something you should be aware of.

Take a look the following code:
Read more

Follow

Get every new post delivered to your Inbox

Join other followers: