Solved

Using xsl:variable in SelectParameters for SPDataSource

Posted on 2011-02-18
1
883 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

696 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