Pass sps user info to XML web part?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Pass sps user info to XML web part?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
wg
Guest





Posted: Thu Dec 23, 2004 12:49 am    Post subject: Pass sps user info to XML web part? Reply with quote

Hi All,
Is there a way to append SPS distinct user info to the XMLLINK property of
the XML web part? Maybe through CAML or some other method?

I am currently referencing an ASPX page which provides XML back to the web
part. This works great, but I would like to modify the returned information
based on the user displaying the data (for example, sales activity for a
specific sales rep).

Any help would be greatly appreciated.
Thx,
wg
Back to top
wg
Guest





Posted: Tue Jan 11, 2005 8:51 pm    Post subject: RE: Pass sps user info to XML web part? Reply with quote

After looking far and wide, and no one ever answering my question...I finally
figured this one out by using the dataview web part in lieu of the xml web
part. In case someone else cares, I was able to accomplish what I needed by:

- creating a data source pointing to the .aspx xml file
- adding a dataview web part to a page using this data source
- adding the following to the code:

<udc:Attribute Name="href">
<udc:ClientParameterValue Name="InputFilePath"/>
<udc:ClientParameterValue Name="InputFile"/>
<udc:ClientParameterValue Name="UserID"/>
</udc:Attribute>

<udc:ClientParameterBinding Name="InputFile" Location="Connection"
DefaultValue="Sales.aspx?userid="/>
<udc:ClientParameterBinding Name="UserID"
Location="ServerVariable(LOGON_USER)" DefaultValue="[LOGON_USER]"/>
<ParameterBinding Name="InputFile" Location="Connection"
DefaultValue="Sales.aspx?userid="/>
<ParameterBinding Name="UserID" Location="ServerVariable(LOGON_USER)"
DefaultValue="[LOGON_USER]"/>


"wg" wrote:

Quote:
Hi All,
Is there a way to append SPS distinct user info to the XMLLINK property of
the XML web part? Maybe through CAML or some other method?

I am currently referencing an ASPX page which provides XML back to the web
part. This works great, but I would like to modify the returned information
based on the user displaying the data (for example, sales activity for a
specific sales rep).

Any help would be greatly appreciated.
Thx,
wg
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB