PgAccess Scripts & Forms

From: "Jigishu P Bhatt" <jigishubhatt(at)icenet(dot)net>
To: "Postgres Help Group" <pgsql-general(at)postgresql(dot)org>
Subject: PgAccess Scripts & Forms
Date: 2000-04-15 14:28:50
Message-ID: 006301bfa6e7$44e24940$88b70cc4@jigishubhatt.icenet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have problem of scripts in PgAccess. Which is as follows :
I developed a form say form1.
A startup script Scripts::open "form1 startup" connects all entries in form1 with a namespace eval DataControl(.form1.query1) { ... } in the same form using .form1.entry$x configure -textvariable DataSet(.form1.query1,variable_x) .
Now, I call another form by a button it the form1. This form2 searches for a Patient's record in the database. If record is found, then it should call a Script which gets data for that Patient from different tables. This data should be displayed in form1 entries.
So, in that script (for retrieving data) I use namespace eval DataControl(.form1.query1) { setSQL "select ...." open ... }
But this gives error that Unknown command 'setSQL'. If I use the same command in same namespace in the form2 itself, it works fine. Why it is so?
Why the namespace does not work alike in Forms and Scripts? I have specified some variables for status using namespce eval MainSpace { variable x; variable y; ... }. These variable can correctly be used in forms and scripts as $MainSpace::x, and so on.

Thanks in advance,
Sincerely yours,

Jigishu Bhatt
p.s.: Details of my platform, etc. can be found in my earlier emails.

Browse pgsql-general by date

  From Date Subject
Next Message Marten Feldtmann 2000-04-15 16:51:51 Re: database file size bloat
Previous Message Colin Smith 2000-04-15 13:09:16 Re: Parallel databases?