Normal Topic Anchor HRef Links in Reports? (Read 2854 times)
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Anchor HRef Links in Reports?
May 18th, 2019 at 11:24pm
Print Post Print Post  
Hey folks,

I'm building a new application in Sesame that is much simpler than our work application, but requires me to do a bunch of things I've never done before ... so, help please?

I am building a static report that I have been requested to add HTML anchor links to, which I figured out (I have a group header break on alphabetical letter changes with the following code):

Code
Select All
CAPBREAK = "<a href=" + @chr(34) + "#" + @left(LE4,1) + @chr(34) + ">" + @left(LE4,1) + "</a>"
 



Now in the header, I need to create hyperlinks to jump to the different letters of the alphabet … but to do that I need to know the exact name of the report that has been created.  Is there a way to call on that, or specifically set the report name?  I'm doing this through the report buider, not @PrintAReport …

Thanks!
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Anchor HRef Links in Reports?
Reply #1 - May 20th, 2019 at 2:09pm
Print Post Print Post  
I'm a bit lost here Blair. Why do you need the report name?

What you are creating there are links to an ID in the same report. Which is what you need to do in the Report Header but you can just hardcode the 26 that you need. ex:
Code
Select All
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a> 



Then in your Group Header you want to make the anchors, something like
Code
Select All
CAPBREAK = "<h2 id=" + @chr(34) + @left(LE4,1) + @chr(34) + ">" + @left(LE4,1) + "</h2>" 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Re: Anchor HRef Links in Reports?
Reply #2 - May 21st, 2019 at 5:07pm
Print Post Print Post  
Worked perfectly Ray, thanks!
  
Back to top
IP Logged