×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

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!

*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

Skip db file opening when procedure starts (window)

Skip db file opening when procedure starts (window)

Skip db file opening when procedure starts (window)

(OP)
Hello

I use postgresql as database backend. When program starts user can pick/add/edit  database he wants to work with (main, testing, develop ...). I use table{PROP:Owner} to set connection string.
Problem is when window opens and table{PROP:Owner} is empty error "File not found (2)" occurs and kills apps. Can you help me to find solution to skip file checking ?
(Clarion 7.3 (ABC))

Best regards,
Mariusz

 

RE: Skip db file opening when procedure starts (window)

Hi!

Assuming that you have a window procedure to choose the database, call that procedure at the beginning of the main procedure/app frame i.e. WM.Init - first embed.

Ideally, you should not bypass file opening but if you really want to do so, click on Source in the embed editor and you can see all the embed points. Place an OMIT('***SKIP***') in the embed before the tables are opened and a ***SKIP*** in the embed after the table opening. If other statements other than the table opening ones are being skipped, copy them after the ***SKIP*** line. And, after the user chooses the Database, you should execute the table opening commands you omitted.

Regards
 

RE: Skip db file opening when procedure starts (window)

(OP)

ShankarJ : Assuming that you have a window procedure to choose the database, call that procedure at the beginning of the main procedure/app frame i.e. WM.Init - first embed.

 ... and after choosing database window I'll run source procedure ( which doesn't open files ) to check if connection is correct and let init continue.
or ...
Is there a way to open file (defined in dictionary) manually without adding it to other files tree?

Mariusz

RE: Skip db file opening when procedure starts (window)

Hi Mariusz,

The code is ::

CODE

Relate:<TableName>.SetOpenRelated()
Relate:<TableName>.Open()

There is also a individual table opening method ::

CODE

Access:<TableName>.Open()

Could you post the generated code of the WM.Init method so that I can give you specific advice?

Regards
 

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