Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Show file open dialog directly
Topic Summary:
Created On: 13-Jan-2006 13:56
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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.
 13-Jan-2006 13:56
User is offline View Users Profile Print this message


Peter Hahlganss

Posts: 13
Joined: 17-Jun-2005

The dxl command "filename" places a text field and a browse button in an existing dialog. What I am looking for is a command to open the file open dialog directly (maybe without having a dialog box) to let the user select a file name. This must be exactly what is executed when i click on the browse button created by the filename command.
Does anybody know a solution for that?

Thanks
Peter

-------------------------
Peter
Report this to a Moderator Report this to a Moderator
 13-Jan-2006 15:56
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

There would be no problem launching a file browser on its own.
In what context do you want to launch the file browser?
And how would you get the file name back if not into a field on a DB?

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 16-Jan-2006 09:08
User is offline View Users Profile Print this message


Peter Hahlganss

Posts: 13
Joined: 17-Jun-2005

Thanks for your reply Tony. I want to launch the file browser from a dxl script that may not have a GUI. The file name shall be given back to the dxl script which has called the browser. Do you have an idea how to call the file browser on ist own?

-------------------------
Peter
Report this to a Moderator Report this to a Moderator
 1-May-2007 22:27
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Did anyone find a way to do this? I want to do the same thing.

I have a script that checks the length of text entered into certain columns and gives a report if any are out of bounds. I'd like to be able to just have a "Save..." button at the bottom that would open a standard file browser, which, when you hit "Okay" in it, would just go on and write the file---bypassing the need for a text box in the DB.

Chris
Report this to a Moderator Report this to a Moderator
 21-Jan-2008 17:12
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Better late than never, I suppose: you can display file open or save dialogues using OLE. The attached code illustrates two approaches for open, and one for save.

This works on XP, but the controls may be different on Vista, so to implement an OS-independent solution you may need a bit more logic!

This code uses the standard DOORS OLE functions, but if you're going to use OLE I'd highly recommend taking a look at the Include file to get OLE/COM easier thread.

regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
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.