|
|
Customers GenoPro version: 2.5.4.1
Last Login: Sunday, October 30, 2022
Posts: 45,
Visits: 1,256
|
I've had success generating a Report Template that is an ASP page, but how do I attach parameters to the page. I've created an ASP page that holds my svg tree and I want the individuals in the tree to link to another generated ASP page.The OutputFile in the Report Template for "individual.htm" adds {Name.LastOrLast2:25}-{Name.FirstMiddle:35}-{id} | before the .htm extension.I would like to generate a similar ASP file that attaches the 'id' after the ASP extension, like the following... "individualsdetailpage.asp?id={id}" | I understand the code here is incorrect, but...is this possible?I'm pretty new to ASP. I'm creating my website with ASP VBScript, and I've just discovered and am starting to understand the skins folder and how to customize the pages in the Report Generator. I'm currently using GenoPro v2b17i. Any help on how to attach parameters (or any other suggested way) to my generated ASP page is greatly appreciated. Thanks, rfiorille
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Thursday, January 16, 2025
Posts: 4,886,
Visits: 22,775
|
You can always include the file "individualsdetailpage.asp" to Config.xml, and create hyperlinks with a query string. You don't need to use For attribute to generate multiple pages. If you take a look how the files GenoMap.htm and GenoMap.svg, you will notice you can use the method Report.BufferWriteToFile which does the same as the For attribute in Config.xml.As for the query string, you can always link to page individualsdetailpage.asp with a query string. I would recommend to use the Session object to store the query string. i.Session("QueryString") = "?id=123" |
When you create an hyperlink, use the following code. Report.Write "<a href='individualsdetailpage.asp{}'>View Details of {&t}</a>", i.Session("QueryString"), i.Name |
By the way, can you elaborate a bit more what/how you do with the report generator? This will help us understand our users and develop a solution.
Edited: Sunday, August 13, 2006 by
GenoProSupport
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Sunday, October 30, 2022
Posts: 45,
Visits: 1,256
|
By the way, can you elaborate a bit more what/how you do with the report generator? This will help us understand our users and develop a solution. I've been building a family site with ASP VBScript. I'm starting to put my own ASP webpages into the "Customized English Narrative Report" so the Report Generator generates those pages (I'm just testing this now - before I would run the Report Generator and copy the original generated pages that I wanted into the root folder of my website). I just recently realized that I could add my own pages into the Report Generator and get rid of those that are not needed. Because I'm using ASP, I don't need all the individual pages that the Report Generator creates. So I can delete <Report Template="individual.htm" OutputFile="{Name.LastOrLast2:25}-{Name.FirstMiddle:35}-{id}.htm" For="Individuals" LoopItemName="i" /> |
in config.xml and then generate my own individual ASP file. But...the Genomap.svg file links back to the individual.htm pages when a person is clicked, or to the family.htm when a family is clicked. This is where my problem is. I would like the GenoMap.svg file to link back to my individual.asp page. I believe I have to change the code somewhere in the svg file and attach (as you recommended) a QueryString that will pull the individual's id. I have not found where to change this code in the svg file yet and I'm not sure where to place the code that you gave me. I can try to clarify any specific questions you have if I'm not making this clear here. I'm leaving for vacation myself on Wednesday. Although, I'll have access to my GenoPro and website and look forward to having some time to spend on it (seem to find very little time now). Have a nice time!
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 2 hours ago
Posts: 3,413,
Visits: 26,320
|
You need to edit the genomap.svg template in your customized skin folder.change this line (~357) If i.href <> "" Then Report.WriteFormattedLn "<g onclick=""displaylink('../{}', 'detail')"">", isource.href to If isource.href <> "" Then Report.WriteFormattedLn "<g onclick=""displaylink('../individualsdetailpage.asp?id={&t}', 'detail')"">", isource.id and this line (~409) If i.href <> "" Then Report.WriteFormattedLn "<g onclick=""displaylink('../{&t}', 'detail')"">", isource.Href to If isource.href <> "" Then Report.WriteFormattedLn "<g onclick=""displaylink('../individualsdetailpage.asp?id={{&t}', 'detail')"">", isource.id |
I think there was a bug in the original code so I have changed i.href to isource.href in the above so that if an internal hyperlink is clicked then details of the main individual are displayed.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Sunday, October 30, 2022
Posts: 45,
Visits: 1,256
|
Hi Ron -- I have created a copy of the customized skin folder that only includes the following files...Config.xml, Dictionary.xml, genomap.svg, genomapcanda.asp (this asp page holds the genomap.svg file), script.js, script.es, svgcheck.js and svgcheck.vbs. I removed all the othere files because I do not need them personally (I don't know if I need them to generate the report correctly). I changed the "report generator" part of the Config.xml file to the following ( is not posting here correctly, I'm not sure why, so I deleted < and > from the code so you can read it)...
[code]ReportGenerator ScriptLanguage="VBScript"
_fValidatePictureCache="Y" fUseTreeIndexes="Y" fHidePictureDetails="N" fHideFamilyDetails="Y" fHideOtherRelationships="N" fJoinPlaceNames="N" fJoinSourceCitationNames="N" fCollapseNotes="Y" fCollapseReferences="Y" fLinkToSvgMap="Y" fCompressSvg="Y" cTocExpand="1000" PictureSizeSmall="100x100" PictureSizeLarge="248x248" PicturePadding="15" />
Report Template="genomap.svg" Report Template="genomapcanda.asp"
default.htm
ReportGenerator |
I then generate the report to the root folder of my website. However, now I receive the following error when I open the genomapcanda.asp file that holds the svg file...
Microsoft JScript runtime error Object expected Line: 1, Column: 0
I believe this is because I have removed too many files from the skin and/or code from the Config.xml file. I have read this post http://support.genopro.com/FindPost12451.aspx but I am able to view the svg file when I generated with the original GenoPro skin. So I do not believe it is a problem with my server.
When I view the svg code, it does not appear to be appending the links correctly either. The following is a sample of the svg code (again < and > removed)...
g onclick="displaylink('../','detail')" line x1="653" y1="-1516" x2="1164" y2="-1516" style="cursor:pointer;fill:none;stroke: black;stroke-width:2px;" text x="908,5" y="-1522" style="stroke: none;fill:#000000;stroke-width:1px;font-size:11px;"II. 2-7-1895 text g
When generating the report, I would like to include as few files as possible to allow me to generate the svg file and the genomapcanda.asp file that holds it. If I can correct the JScript error, then I will be able to see if the svg code you gave me will link to my individualsdetails.asp page.
I'm sure I'll have more questions regarding that as well. Although I feel it wise to get the JScript error corrected before asking more questions. I appreciate your help and cannot tell you how nice it is having the svg file you created to display the genomap. How to display the genomap on a website without having to ask the user to download genopro was always a concern. Thanks for your help! rfiorille
Edited: Friday, August 18, 2006 by
rfiorille
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Sunday, October 30, 2022
Posts: 45,
Visits: 1,256
|
I just generated another report, this time including all the files in the Customized English Narrative Report. I still receive the JScript error.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 2 hours ago
Posts: 3,413,
Visits: 26,320
|
Unfortunately IE/Jscript is not exactly verbose when it comes to reporting errors!. The Jscript error info is quite useless. Try downloading Mozilla Firefox (1.5.0.x) and opening your website with that browser. Run up the 'Javascript Console' under the Firefox Tools menu - it will show a lot more error detail than IE. I have still have a suspicion your site doesn't like script.es. Try renaming it to say script1.js and also change its reference in genomap.svg. I also think your custom skin will need genomap.htm as this provides the HTML interface with SVG.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Sunday, October 30, 2022
Posts: 45,
Visits: 1,256
|
I regenerated the svg file and tried in Mozilla. There was no JScript error. Therefore, there was nothing in the council.
Currently, my genomapscanda.asp page that acts as the interface for the genomap0.svg file opens in IE, but comes up blank with a partial green arrow in the upper left of the svg part of the page when using Mozilla.In the genomap.svg template, I have deleted the code that creates the "genomaps" folder. I did this because I have created a file named genomapcanda.asp to replace the genomap.htm file as the interface for the genomap.svg file and I insert server-side includes in the genomapcanda.asp file. Getting rid of the "genomaps" folder keeps me from having to create a virtual path for the server-side include to the genomap folder. I have also been careful to delete ".../" before the .js, .vbs, and .es files written in the genomapscanda.asp file. In other words, I'm trying to keep all files in the same folder. If I write the following code for an individual in the already generated svg file in my site...
('/individualsdetails.asp?id={&t}', 'detail')"
|
then when I click this individual in the genomap0.svg tree it opens a new page with the "page cannot be displayed error".
I've been attempting this so many times that I have lost track of the svg template that generated the svg file that's working in my site at the moment.
I've attempted multiple times putting in the code that you gave me with no results. Do you have any other suggestions. This may be asking much, but could you possibly send me an svg file with the code that you think would work with my asp file and have the individuals in the svg tree link to the asp page "individualsdetails.asp". I really appreciate your help.
Thank you, Robert
Edited: Saturday, August 19, 2006 by
rfiorille
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 2 hours ago
Posts: 3,413,
Visits: 26,320
|
rfiorille (8/19/2006) Currently, my genomapscanda.asp page that acts as the interface for the genomap0.svg file opens in IE, but comes up blank with a partial green arrow in the upper left of the svg part of the page when using Mozilla.This is exactly what I would expect to happen if you have removed genomap0.htm but not replaced its functionality! Response parameters are passed in the link to genomap0.htm that the scripts then use to position the SVG image correctly by tranforming the image to move its centre point to the centre of the window. I suggest you retain these genomap'n'.htm files and ensure your asp page generates the correct parameters as per the original template script.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Sunday, October 30, 2022
Posts: 45,
Visits: 1,256
|
Ron (8/20/2006) This is exactly what I would expect to happen if you have removed genomap0.htm but not replaced its functionality! Response parameters are passed in the link to genomap0.htm that the scripts then use to position the SVG image correctly by tranforming the image to move its centre point to the centre of the window. I suggest you retain these genomap'n'.htm files and ensure your asp page generates the correct parameters as per the original template script.I do think I have replaced the functionality of the file genomap0.htm into my genomap.asp file, but perhaps I'm incorrectly doing this. I have left all the files in my skin folder and also in the config.xml file. I have added my own asp files into the skin folder and added those files to the config.xml file using the <Report Template = "" /> script. In order to ensure my asp page "generates the correct parameters", I have changed the script in the genomap.svg file. I'm attaching my modified genomap.svg file if you can take a look at it. This is the svg file before I generate. I've changed lines, 73, 232 and 306. I'm generating the pages outside of the genomap folder for reasons stated above. Thanks...
genomap.svg
(350 views,
36.46 KB)
|