![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: Creating a hyperlink to a CS Report Topic Summary: Created On: 4-Aug-2005 17:48 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Is there a way to use a hyperlink to directly access a Change Synergy Report?
|
|
![]() |
|
![]() |
|
hello;
yes, there is. given a few variables, an url can be built which leads directly to the report page. There are indeed several ways to build such an url, depending on the type of repot you want. The best way to guess these is to dump network traffic between a web host and the server and to request the corresponding report thourgh the web interface. The url can then be rebuilt from the TCP stream (this is how i can answer you question). my (${ip_add}, ${report_name}, ${querystring}, ${/path/to/db}, ${role}) http://${ip_add}:8600/servlet/...o/db}&role=${role} best regards, -- Boris |
|
![]() |
|
![]() |
|
That is not necessary.
Save a CS report to your hard-drive, then inspect the java code to determine the URL parameters. Or ask somebody who has already done this. There seem to be two ways to access forms/attachments through direct URL links: By specifying the database to use By specifying a valid token to use Pros/Cons of specifying the DB in the URL: Pro - Each user who follows the link can edit the form per her account priviledges. Pro - Once a user logins to the ChangeSynergy database, they will be remembered on future visits for the rest of the day or week. Con - Users must login to follow the link. Con - Users are required to login regardless of whether they want to edit or just quickly view the form. Pros/Cons of specifying a Token: Pro - Anybody with access can follow the link and view the form or download the attachment. Pro - Users never need to login, and don't need accounts. Con - Token created with a 'no_privs' account will not allow editing of forms. Con - Cron job, etc., needs to be created to set up Token. Then Token needs to *somehow* be integrated into the URL links. Specifying a token is more work for the programmer, but easier and quicker for users who do not want to edit forms.
Using Perl I was able to easily start a daily Token generation system.
Examples of such URLs: URL to a form with DB specified: http://<IP_ADDRESS>:<PORT>/servlet/com.continuus.webpt.servlet.PTweb?ACTION_FLAG=frameset_form&TEMPLATE_FLAG=ProblemReportView&database=<DB_PATH>&role=User&problem_number=31 URL to a form with Token specified: http://<IP_ADDRESS>:<PORT>/servlet/com.continuus.webpt.servlet.PTweb?ACTION_FLAG=frameset_form&TEMPLATE_FLAG=ProblemReportView&role=User&problem_number=31&token=<19_DIGIT_TOKEN> Download URL with DB specified: http://<IP_ADDRESS>:<PORT>/servlet/com.continuus.webpt.servlet.PTweb?ACTION_FLAG=object_show_form&TEMPLATE_FLAG=DownloadAttachment&database=<DB_PATH>&role=User&cvid=10188 Download URL with Token specified:
|
|
![]() |
|
![]() |
|
Thanks for the input, Andre! I will give it a try!
Kristan |
|
![]() |
|
![]() |
|
If you try what I mentioned, and then still have trouble, I could assist you with more specific information. Just let me know!
Andre' A Quillen Raytheon |
|
![]() |
|
![]() |
|
I'm doing integration work between another of our corporate IS systems (salesforce) and Change/Synergy including creating CRs in synergy from the other system.
I'm interested in building a URL to a Change/Synergy CR that can be clicked/embedded in the source system, allowing the user to click on the URL and be presented with the synergy CR. I hit upon your e-mail thread about constructing URLs and found it interesting. What is a token? some sort of unique session ID generated by synergy that represents a log in or something? Ideally I'l like to allow anybody to view the synergy CR, but I don't know if this means we will need a read-only synergy account to be created and the credentials/role for that account hard-coded in to the URL? |
|
![]() |
|
![]() |
|
Hello Coman,
Yes, a token is an unique ID generated by Synergy. The token for a particular user does not change for the whole day regardless of how often the user logs in and out. The token changes each time the <something on the server> is reset/rebooted. You could create a guest account to use for anybody to use and you could hardcode the token for that day in the URLs. (This means that you would need to recreate the URL(s) and token(s) each morning. If you need help generating tokens, just holler back. Luck, Andre' Raytheon |
|
![]() |
|
![]() |
|
Is it possible to use an explicit username & password in the URL instead of a token?
The URL will be generated when information from synergy is extracted and imported in to the other system; therefore the URL will remain static, and from what you have said sessions IDs are not guaranteed to last forever. So if we were to create a read-only limited synergy account, could we embed the username and password for this account in the synergy URL? |
|
![]() |
|
![]() |
|
"I can neither confirm nor deny" the possibility of putting the password in a URL query. This URL functionality was never designed to be used by the public, so naturally there is no documentation on any of it.
Edited: 6-Nov-2006 at 20:29 by Andre Quillen |
|
![]() |
|
![]() |
|
Andre - You said (a year ago!) that you'd set things up to generate a token each day using Perl. I'm very keen to find out how to do this. Would you be able to let me have the Perl script you used? I'm wondering if this will still work with newer versions of Synergy, as I know the way tokens are used changed going from 4.3 to 4.4.
Many thanks Michael |
|
![]() |
|
![]() |
|
Hello Micael (and Boris, and all),
/usr/bin/perl_solaris/bin/perl ./GetTokenPRC.pl >> ./output/token_status.txt use ChangeSynergy::csapi; #Create a new instance of the csapi object. $host = "hostname"; $user = "guest"; $port = 86xx; #Eval block is used for error handling. #Login to the ChangeSynegy server. (user, password, role, database); #Write the contents of the returned result to the report.html file. #Close the output stream. #If any errors occured, print them to the screen. |
|
![]() |
|
![]() |
|
Thanks for that, Andre - worked fine!
|
|
![]() |
Telelogic SYNERGY
» SYNERGY/Change
»
Creating a hyperlink to a CS Report
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.