×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

FILEDEF and PCHOLD

FILEDEF and PCHOLD

FILEDEF and PCHOLD

(OP)
Hi,

I have a question concerning the use and behavior of FILEDEF in a NT-Web-Environment.

Usually you would write the FILEDEF-Command like this:
FILEDEF XXX DISK c:\temp\XXX.txt
to save a HOLD-File to your own harddisk
(ON TABLE HOLD AS XXX FORMAT ALPHA)

Our WebServer is a NT-Server. The users of WebFocus are not allowed to save files on its filesystem,  so, they are not allowed to save this XXX.txx-file on the c:-disk of the NT-Server. (The WebFocus-Reporting Server is located on another machine)

I thought, I could use FILEDEF as follows, to address my own local harddisk:
FILEDEF  XXX  DISK  \\mycomputer\c:\temp\XXX.txt

But unfortunately, this doesn't work neither. WebFOCUS doesn't recognize this command.

Is there a possibility to save a HOLD-File to my own c:-disk?

Thanks for any advice!
Sonja

RE: FILEDEF and PCHOLD

If it's actually a Data File then it won't work.

but if its a report, you may already know this but...

You don't have to do a FileDef, you could say
ON TABLE PCHOLD FORMAT PDF ... or WP or XL
and it will open locally within that program, or plugin within your browser - then you can save it  

RE: FILEDEF and PCHOLD

Hi Sonjas,

When you say "ON TABLE HOLD AS XXX FORMAT ALPHA" , etc.
Webfocus issues a default filedef for the file XXX.
Later you can re-issue this, if necesaary, as follows
FILEDEF XXX DISK c:\temp\XXX.ftm
You appear to be trying to pre-empt the system and to force
Focus to store the file in a *.txt file but I don't think you can do this. I hope I've undestood your question properly. Peter.

RE: FILEDEF and PCHOLD

Sonja,

We actually made a change in the 5.2.x releases, to accomplish what you want. The problem wais, for output formats which created a Master file as well as a data file, we didn't handle TWO files being downloaded, so we displayed them both in the browser. With the later releases, we SKIP the Master file, and allow you to SAVE the data file to disk. The browser would ask WHERE you wanted to save it. You couldn't use a FILEDEF, because the saving is done on the client machine, NOT on the data server.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close