Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report WEB ASP (hyperlink).. HELPPPPP!

Status
Not open for further replies.

wolfieman

Programmer
Oct 17, 2002
10
0
0
DK
Hi everyone!

I am currently building a webreport using the the
RAS SDK from an asp page.

I am trying to make a "dynamic" hyperlink to a website,
for instance what i would like to do is this:


But this statement doesnt work in the following code!

I know how to make a "static" link, that is always the same. I do it like this:

Set NewReportObject = ObjectFactory.CreateObject("CrystalReports.FieldObject")
With NewReportObject
.Kind = FieldToAdd.Kind
.FieldValueType = FieldToAdd.Type
.DataSource = FieldToAdd.FormulaForm
.Left = left_start
.width = field_size
.format.EnableCanGrow = true

.Format.HyperlinkType = crHyperlinkTypeWebsiteFieldValue
.Format.HyperlinkText = "end with

Can anyone PPPLLEASE help me with an example or so..?
Should i do it another way?!!!

Write as soon as possible

Sincerly
Jan Tovgaard
 
What do you mean by "doesn't work"? Give an example of the symptoms of the error, or unexpected behaviour you're experiencing.
 
i think i am doing it with a wrong approach!

should i use condition formulas?!! does anyone have examples of thaT?....

what i am getting is no result!


for instance replacing this
.Format.HyperlinkText = "
with

.Format.HyperlinkText = "
does not give me the current rows table.id!
 
What's the string passing into your URL?

Also, what datatype is your table.id field? It needs to be converted to a string if it isn't already.

Parameters are passed as '...promptex0={Field1}&promptex1={Field2}...', as opposed to the literal strings 'company' and 'name'.

Naith
 
Well ... if i write these 2 lines for instance in my
code...

NewReportObject.Format.HyperlinkType = crHyperlinkTypeWebsite

NewReportObject.Format.HyperlinkText = "
when i run the asp code and see the result in the browser..
then i can click on a field as a http link...

but it will be a link like this:


which is NOT what i want...

i want it to be for instance:
and..
next row...

so it should change........
 
Jan - did you ever get this figured out? I would like to incorporate this same functionality in my report and have not figured out how. If you found a solution, I would appreciate it if you would share! Thanks!
 
Whoa. This is pretty old, and it looks like I just left you hanging, Wolfieman. I'm really very sorry about that. I didn't see your response til now.

If you're trying to pass parameter values, use the promptex or prompt commands. (Promptex for preference.)

The syntax would change so that it becomes like this:
Code:
"[URL unfurl="true"]http://page.asp&promptex0={ftrans.tekst}"[/URL]
There's a whitepaper on promptex and prompt on the Crystal site.

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top