View details when selecting item in form RRS feed

  • Question

  • Hello,

    I've a form for creating items. One of the frields is looking for data in another list.

    Is it possible that when i select an item that i'm seeing more of the details of the record that I select?



    Friday, March 30, 2012 7:44 AM

All replies


    Hi Remco,

    According to your post, you can customize the NewForm.aspx to add the additional feature. Please refer to this document to customize the newform.aspx, you can add custom list form and add control to it. Develop a webpart to query the detail of field, you can query the detail information by following codes:

    SPWeb web = Common.GetCurrentWeb();
                SPList announcementList = web.Lists["Announcements"];
                SPQuery query = new SPQuery();
                query.Query = @"
             <FieldRef Name='Title' />
             <Value Type='Text'>TitleOfItem</Value>
          <FieldRef Name='Created' />
                query.RowLimit = count;
                SPListItemCollection announcementCollectionList = announcementList.GetItems(query);
                DataTable dt = null;

    You can query the detail information when a user have selected an item.


    Lambda Zhao

    TechNet Community Support

    Tuesday, April 3, 2012 9:27 AM