Jump to content
Software FX Community

Build URL's in a loop?


User (Legacy)
 Share

Recommended Posts

I am looping through data to build the pie chart (see below) but do not

understand the documentation when it comes to adding Parameters to the URL.

The lines below (marked by *) are the lines where I loop through my

recordset to populate the parameters, but only one (the first in the loop)

URL is created and used by all sections on the pie chart. I tried moving

the chart.URL(0) into the loop and replaced it with chart.URL(YCounter-1)

but then no links were created at all. Any assistance or pointers would be

much

appreciated.

chart.OpenDataEx COD_VALUES,1,3

for YCounter = 1 to benefit.rows

benefit.row = YCounter

If benefit.Value("BEN-USED") <> "0.00" then

Chart.Value(Ycounter-1) = benefit.Value("BEN-USED")

End If

next

chart.CloseData COD_VALUES

chart.URL(0) = "/claims.asp"

chart.URLOptions = CHART_URL_JUMP Or CHART_URL_GLOBAL Or

CHART_URL_PARAM

* for YCounter = 1 to benefit.rows

* benefit.row = YCounter

* If benefit.Value("BEN-USED") <> "0.00" then

* chart.URLParamMask = "Value="&benefit.Value("BEN-USED")

* End If

* next

chart.ImgTags = "BORDER=0"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...