.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

Insert an item in a Lookup column's source List from the NewForm

Posted By:      Posted Date: October 03, 2010    Points: 0   Category :SharePoint
 

When Lookup Column of a List does not contain a value in the DropDown menu can it be added/inserted into the source Lookup List from the NewForm without leaving the NewForm? 

Is there code or example how to insert the Item in the source List, then refresh/repopulate the Lookup Column's DropDown menu (in the NewForm)?

 




View Complete Post


More Related Resource Links

BDC Entity as a Data Source for a Lookup column

  
Is it possible to create a custom lookup field type to have a BDC entity as the data source?

how to in Insert database NULL if drop down list item is not selected ?

  
hi,   on my aspx I have the below DDL   <asp:DropDownList ID="ColorDDL" runat="server" DataSourceID="ColorObj"                                                 DataTextField="Size" DataValueField="BustId" Width="150px"                                                 AppendDataBoundItems="True">                                                    <asp:ListItem Value="-1">(Optional)</asp:ListItem>                             &n

MOSS 2007: list column that lookup to multiple documents stored in doc library

  
Hi All, I'm trying to understand how to customise MOSS to achieve the following: I need to lookup from a list to multiple documents stored in a documetn library. Example: - List item 1 --------> Lookup to Doc 2                   --------> Lookup to Doc 5 - List item 2 --------> Lookup to Doc 3                   --------> Lookup to Doc 5                   --------> Lookup to Doc 8 - List item 3 --------> Lookup to Doc 1 How can I achieve this? is it possible that in the lookup I have a "search" option? Thanks all Vit

Lookup column in the list

  
I have one list on SharePoint. I want to create another list and one of the columns should pick up values from the other list. However, when I create a new column and select the type as "Lookup (information already on this site) and select my old list in "Get Information from" , I don't see all the columns of the old list but a selected few. Why is that and how can I make sure that in my lookup column in the new list, I see all the columns as I need information from the other columns?

get sharepoint list item column choices using caml

  
basicallly the title says it all, is there a way to get a sharepoint list's column's choices using CAML query? i'm trying to get the choices using the sharepoint web service

Create Lookup Site Column based on External List (SharePoint 2010)

  

I've got an External List and I want to create a Site Column, which is Lookup to a column in my external list. If I tick any of the columns in 'Add a column to show each of these additional fields' and click OK i get the following error message:

[NullReferenceException: Object reference not set to an instance of an object.]
  Microsoft.SharePoint.SPBusinessDataField.IsInDefaultView() +58
  Microsoft.SharePoint.SPBusinessDataField.CreateSpFieldForBdcType(String bdcName, Boolean hidden, Boolean readOnly, Boolean idField, SPAddFieldOptions op) +809
  Microsoft.SharePoint.SPBusinessDataField.AddNeededSecondaryFields(String wssNames, String[] oldNames, String[] newNames, SPAddFieldOptions op) +315
  Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op) +240
  Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) +759
  Microsoft.SharePoint.SPFieldCollection.Add(SPField field) +61
  Microsoft.SharePoint.ApplicationPages.FieldNewPage.Save() +513
  Microsoft.SharePoint.ApplicationPages.FieldNewPage.BtnOk_Click(Object sender, EventArgs e) +46
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +139
  Syste

How to copy a Column data from one List to another list whenever a new item created .

  

Hello ,

 

I have List A and List B

List A

-----------------------------------------------------

Ticket ID

Column A

Column B

Column C

 

List B

-----------------

Ticket ID

Column 1

Column 2

Column 3

I want to copy only Ticket ID from List A to List B , whenever a new item created in List A.

can you please give your thoughts?

how to do it?

Thanks in Advance!

 


Share Knowledge and Spread Love!

Append an Item to a SP List and NewForm dropdown menu

  

When Lookup Column on a NewForm.aspx, that was populated from another SP List, does not contain a value in the DropDown menu can it be added/inserted into the source SP List from the NewForm without leaving the NewForm? 

Is there code or example how to insert the Item in the SP List, then refresh/repopulate the Lookup Column's DropDown menu (in the NewForm)?

Or is there a better way to do this add an item both the List and the dropdown without resetting the values already entered in the NewForm?

 


Column to show count of attachments uploaded for each List item in MOSS 2007

  

We have two requirements:

First, we need a column which shows the count of attachments that are for uploaded each item, the list structure is like below:

No. Of Files Attached Title Category Description Owner

Cross site lookup field value contains the parent list item id and the title field separated by ;# i

  
Actually we are using third party component for cross site lookup and facing the problem with cross site lookup field value. Its showing the correct value in default list view mode, but in "Edit in Datasheet" and "Export to Datasheet" view cross site lookup field value contains the parent list item id and the title field separated by ;#. I need the actual value in "Edit in Datasheet" and "Export to Datasheet" view as shown in default list value, i dont want that appended parent list item id and separated by ;#.

Is there any OutOfBox soluiton for this. Please suggest me for the same.

 
Thanks,
Rajanikanth

Refreshing list after insert item

  
Hi, im having problems in a custom list, i develop a custom form with sl and configure a content type to use this form as a newform item, when i clic on new item all its fina my custom form is opened and i can insert the item the thing is when i close this form the custom list behind dont show the new item i mean this list don refresh by itself i have to press F5 to reload the page and see my new item in the list is there a way to make this automatically ? thanks in advance.

list refresh after insert item

  
Hi, im having problems in a custom list, i develop a custom form with sl and configure a content type to use this form as a newform item, when i clic on new item all its fina my custom form is opened and i can insert the item the thing is when i close this form the custom list behind dont show the new item i mean this list don refresh by itself i have to press F5 to reload the page and see my new item in the list is there a way to make this automatically ? thanks in advance.

How to make a sharepoint list column readonly or invisible while add/edit list item in sharepoint UI

  

 Hi Everybody,

I have created a list in sharepoint. In that list there is a field which I want to make read only or invisible when the user tries to add or edit a list item through sharepoint UI. I want this because that particular field gets populated through a webpart and direct data entry into that field is unnecessary. Is there any way to make a sharepoint column (for me its a picture column) read only or invisible in the sharepoint UI.

thank you,

Arun Dutt


Refreshing list after insert item

  
Hi, im having problems in a custom list, i develop a custom form with sl and configure a content type to use this form as a newform item, when i clic on new item all its fina my custom form is opened and i can insert the item the thing is when i close this form the custom list behind dont show the new item i mean this list don refresh by itself i have to press F5 to reload the page and see my new item in the list is there a way to make this automatically ? thanks in advance.

Creating new List Item with Lookup, Owner and DateTime fields WebService

  

Hi,

I've created a function that creates a List Item, given a bunch of values (Using the WebService). This works fine when I try to populate plain text fiels. But in the list item there are a few picklists and an owner field. When I try to populate these, I get no error but the new record is not created:

      //batch.SetAttribute("OnError", "Continue");
      batch.SetAttribute("ListVersion", "1");
      batch.SetAttribute("ViewName", "");

      batch.InnerXml =
        "<Method ID='1' Cmd='New'>" +
        " <Field Name='ID'>New</Field>" +
        " <Field Name='Title'>" + title + "</Field>" +
        " <Field Name='Owner'>" + owner + "</Field>" +
        " <Field Name='Status'

SharePoint List Lookup Not Showing All Column's From List Identified

  
In SharePoint 2010 I"m using a lookup column and I have the option to "Add a column to show each of these additional fields:".  The problem is that these additional fields listed are not all the fields in the target list.  How do I get the field I need to show up on that list? 

Newform.aspx column lookup

  
I know  a cascaded lookup column's dont work for a column type of person or group.  Is there another way like javascript or something  for me to pull out the data from one list into a person group field in my newform.aspx page off of a column selected on the page
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend