Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using xsl:variable in SelectParameters for SPDataSource

Posted on 2011-02-18
1
Medium Priority
?
887 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 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

610 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