Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Is my BDC or Code the issue for retrieving empid? What syntax to use for BDC search of empid?

  Asked By: Kaci    Date: Sep 25    Category: Sharepoint    Views: 820

I have a custom bdc that works fine in a web part, for example pulls exactly by empid. However when i use a filter in my object model code, it doesn't work. i have a second filter wildcard that works fine search by job category. I'm trying to narrow the problem by deciphering if my bdc or my code is the problem? Anyone have any ideas on how i can resolve this issue that has plagued me for months?



1 Answer Found

Answer #1    Answered By: Shashwat Takle     Answered On: Sep 25

It sounds like the method that is working in the web  part is a specific finder method that is using the empid field. In code, this would not be accessed by using a filter. Instead, use the FindSpecific method similar to the following:

DbEntityInstance record = (DbEntityInstance)entity.FindSpecific(Identifier, lobInstance);