[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 897
  • Last Modified:

Using xsl:variable in SelectParameters for SPDataSource

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
evanstest
Asked:
evanstest
1 Solution
 
GeorgeGerguesCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now