PgAccess Scripts & Forms - Mailing list pgsql-general

From Jigishu P Bhatt
Subject PgAccess Scripts & Forms
Date
Msg-id 006301bfa6e7$44e24940$88b70cc4@jigishubhatt.icenet.net
Whole thread Raw
List 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.
 

pgsql-general by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [Fwd: [HACKERS] Porting reports (cont'd)]
Next
From: Colin Smith
Date:
Subject: Re: RDBMSs comparison (on Linux)