Solved

Using xsl:variable in SelectParameters for SPDataSource

Posted on 2011-02-18
1
868 Views
Last Modified: 2012-05-11
Hi

I have a dataviewwebpart implemented in SPD 2007.  The SPDatasource for this webpart is a sharepoint list.

In the xsl sytlesheet for the DVWP, I have an xsl:variable that is used to store the result of a calculation based upon values of xsl:param values obtained from the Query string.  In other words, I have a number of parameter bindings to query string parameters.

My question is I now need to use this calculated xsl:variable as a selectparameter for the SPDatasource.  I am familiar with how to use the bound xsl:param themselves as selectparameters but I cannot find anything about using an xsl:variable.

Any help would be greatly appreciated.

Thanks

0
Comment
Question by:evanstest
1 Comment
 
LVL 14

Accepted Solution

by:
GeorgeGergues earned 500 total points
ID: 34925760
I don't think it is doable on a single webpart,

You might want to either hold that variable (value) in a Javascript and reload the second webpart with the value from the first.


The reason is the fact that this all run sequentially , so by the time you are at the end of the page (run) you can no longer modify other values.


It would be more beneficial of give some sample code of what you are trying to do  and list the objects you are getting values from and trying to write to.



best of luck.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now