close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

variables in main page used in chart

Thread began 6/29/2009 12:21 pm by fab77721 | Last modified 6/30/2009 2:41 pm by Ray Borduin | 3541 views | 13 replies |

fab77721

variables in main page used in chart

Can anyone explain to me how I can pass a variable that I use in the main page that has my flash chart to the *_data1.asp page? I have a variable in the main page that I want to use in the select query and am not sure how I can pass this through?

Another question is does anyone know how to add more grid lines in either of the axis's?

Any help would be appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to save a session variable and reference it on the data page.

the x axis and y axis tags in the xml should allow you to add more grid lines as well. View the help documentation about the xml syntax to use.

Sign in to reply to this post

fab77721

Thanks Ray
I tried the following but couldn't get it to work.

In my main page (we'll call it mypage.asp) I have the following code

<%
strPITagname = "opcLab-19"
Session("cTag")=strPITagname
%>

I then test that it contains a value on this page by the following code which displays the correct value opcLab-19

<%Response.Write(Session("cTag"))%>

Then in my mypage_data.asp I have the following

Tag=Session("cTag")

and then go on to use the Tag variable in my SELECT query. Problem is I don't believe that the session variable is being carried over to this page? ...I know that the select query works because if I replace

Tag=Session("cTag")
with
Tag="opcLab-19"
then the chart loads correctly.

Any ideas

Sign in to reply to this post

Ray BorduinWebAssist

This post has been deleted.

fab77721

sorry one more thing. when I run the mypage_data.asp with the following

Tag=Session("cTag")
if Tag ="" Then
Tag = "opcLab-19"
End If

Then it loads correctly with data. If I run it with just

Tag=Session("cTag")

then it loads correctly as well. Difference is that in the first case when running mypage.asp the chart will show in the second case an error shows up in place of the chart. I can only see part of the error as its showing the full path but it looks like its referencing the mypage_dataparser.asp page?

Sign in to reply to this post

Ray BorduinWebAssist

OK... in ASP sessions aren't maintained. I think you need to pass it in the URL.

Sorry for the confusion I'm so used to working with php these days.

I believe you can pass the data in the chart reference url where the mypage_dataparser.asp is referenced add: ?cTag=opcLab-19

and use Request.QueryString("opcLab-19") to refer to the value.

Sign in to reply to this post

fab77721

This post has been deleted.

fab77721

ok I'll try the URL advise and get back to you

Sign in to reply to this post

fab77721

Is this the URL you are ref'ing to in my mypage.asp

<param name="movie" value="../DynamicWebCharts/open-flash-chart.swf?data=../DynamicWebCharts/Data/mypage_dataparser.asp?<%=Request.QueryString()%>" />

Sign in to reply to this post

fab77721

Just noticed that the dataparser is in to placed for this object. See below for the full code entered for this object. Can you help me understand where in there it needs to go.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="320" height="300">
<param name="movie" value="../DynamicWebCharts/open-flash-chart.swf?data=../DynamicWebCharts/Data/mypage_dataparser.asp?<%=Request.QueryString()%>" />
<param name="quality" value="high" />

<embed src="../DynamicWebCharts/open-flash-chart.swf?data=../DynamicWebCharts/Data/mypage_dataparser.asp?<%=Request.QueryString()%>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="320" height="300"></embed>
</object>

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...