Solved

Using xsl:variable in SelectParameters for SPDataSource

Posted on 2011-02-18
1
879 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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