Pages

Thursday, August 14, 2014

Add lookup column through Visual Studio UI

Introduction

In my last blog post I described “How to add items to Choice field through Visual Studio 2012/2013”; in this blog post I will show “How to add lookup column through Visual Studio user interface”.

Solution

Step 01:

Create Column through Visual Studio with the type Lookup.

image

Step 02:

Exact Type in properties by clicking the + sign.

image

Description for red numbers from the screenshot.

1. The reference list (lookup list) url where you have your lookup column. – Mandatory

2. The lookup  column which you have to link to. – Optional. Incase you didn’t mention the field the title field will be shown.

Conclusion

Deploy the solution and after adding the data to the reference list; you can see data in your lookup column field.

No comments:

Post a Comment