Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have developed a custom edit form with an external item picker as application page in visual studio. The picker is populated with data using the following method.

private ItemPickerExtendedData GetExtendedData(string lobInstanceName, string entityName, string entityNamespace, string titleFieldName,
        string secondaryColumnName)
    {
        ItemPickerExtendedData data = new ItemPickerExtendedData 
        {   
            SystemInstanceName = lobInstanceName,
            EntityName = entityName,
            EntityNamespace = entityNamespace,
            PrimaryColumnName = titleFieldName
        };

        if(!String.IsNullOrEmpty(secondaryColumnName))
            data.SetSecondaryColumnNames(new[] { secondaryColumnName });

        return data;           
    }

The picker should now display in it´s textfield the foreign item that is referenced by the currently edited item. E.g., if I edit a bill that is connected with a customer, I should see the customer that has currently been associated with the bill and saved as foreign key in the database.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.