wg
Guest
|
Posted:
Thu Dec 23, 2004 12:49 am Post subject:
Pass sps user info to XML web part? |
|
|
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 |
|
wg
Guest
|
Posted:
Tue Jan 11, 2005 8:51 pm Post subject:
RE: Pass sps user info to XML web part? |
|
|
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 |
|
|