Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: How to get user input to create a report
Topic Summary:
Created On: 29-Mar-2007 15:11
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 29-Mar-2007 15:11
User is offline View Users Profile Print this message


Kristy Horner

Posts: 1
Joined: 29-Mar-2007

I have created a report to get module defintions by Diagram, but I want the diagram name to be a user supplied parameter so that before a user runs a report he/she can specify the diagram name.  I know you can specify search criteria before you run a report in the Reports Define Dialog box but does anyone know how I can create my own search parameter? 

Edited: 29-Mar-2007 at 15:14 by Kristy Horner
Report this to a Moderator Report this to a Moderator
 10-Apr-2007 10:17
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Hi

You need to edit the report file in Notepad (NOT in the internal editor).
Add this to the top of the report file :-

DEFINE "Enter Diagram Name" "MyDiagram"

Then modify your WHERE clause to be

 WHERE Name = "Enter Diagram Name"

It is nice to add a description to the report (after the REPORT title line)
DESCRIPT "Select 'Report' menu, click on 'Define...' to change the diagram name"

So your report file might look like attached.

To change the diagram name you have to use the 'Report' menu in the reporting system, then choose 'Define...' and type in the name.

Alternatively the 'Current Diagram' check box (in the report editor - at the top level) is quite a nice way to do reports on diagrams. The user just opens the diagram and then runs the report.

Hope this helps
Ian



-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.