Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iFrame and SharePoint document library

74 views
Skip to first unread message

Rick M

unread,
Jul 28, 2006, 9:50:01 AM7/28/06
to
I am looking for help in doing the following:

Creating an iFrame that will bring in a SharePoint document library page.
This page will be different for each client. How can I create a field on the
form that will pass the correct URL into the iFrame to show the specific SP
page for that client?

Thanks,
-Rick

Danielles Sturgess

unread,
Jul 28, 2006, 10:40:33 AM7/28/06
to
Rick,

I create a simple document library integration. Here are the steps I
followed:

1. I create field for the Account entity called "Sharepoint Folder".
2. I then created an IFRAME on a new Documents tab and pointed the URL to a
generic document library called "Accounts" (i.e.
http://companyweb/accounts).
3. Once that was setup I added JavaScript to the form's OnLoad event that
first checks if the "Sharepoint Folder" field is null. If so, then we assume
there is no sharepoint folder for the Account and the IFRAME continues to
point to the "Accounts" library. If the field contains data then I direct
the IFRAME URL to http://companyweb/accounts/ + <sharepoint folder field
value>. For example, if the "Sharepoint Folder" field contains the value
"AAA", then the IFRAME will point to http://companyweb/accounts/aaa.
4. I copied the same JavaScript to the "Sharepoint Folder" field's onChange
event.

Here is the JavaScript I used (it will have to be modifed for your
environment):

var aName = crmForm.all.new_sharepointfolder.DataValue;

var url = 'http://companyweb/clients/';

if(crmForm.all.new_sharepointfolder.DataValue != null){

crmForm.all.IFRAME_Sharepoint.src = url + aName;}

else{

crmForm.all.IFRAME_Sharepoint.src = url;

}

"Rick M" <Ri...@discussions.microsoft.com> wrote in message
news:8DE78ACE-9770-4D15...@microsoft.com...

Rick M

unread,
Jul 28, 2006, 11:18:02 AM7/28/06
to
Works great. thanks for your help.
-Rick
0 new messages