Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to pass credentials of the logged in user to BDC as input?

  Asked By: Shonda    Date: Dec 14    Category: Sharepoint    Views: 1312

I want to have my BDCs to act differently for different users. I mean in my scenerio the data to be dispalyed in BDC differs based on who is logged in.

Is there a way I can pass the credentials of the logged in user to the BDC so that it can use it as the input while consuming webservice?



1 Answer Found

Answer #1    Answered By: Constance Guerrero     Answered On: Dec 14

I solved this problem...... I created a custom webpart which gets the username from the current sharepoint context and implements IDataprovider to pass  this parameter to other webparts...... Then I careated a hidden BDC data  item Webparts which fetches the username from this custom webpart and gets the complete profile of that person.....

Then I created Association instances of the BDC i wanted and fed them the input  parameter from the hidden data item webpart..