dbTalk Databases Forums  

HELP - CmView by Peter Zevenaar

comp.databases.paradox comp.databases.paradox


Discuss HELP - CmView by Peter Zevenaar in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeanette
 
Posts: n/a

Default HELP - CmView by Peter Zevenaar - 11-06-2006 , 03:50 PM







I sent below to 'seven (AT) paradoxcommunity (DOT) com' but it came back undeliverable.

I am trying to use CmView by Peter Zevenaar and am having THE WORSE TIME:
It could be that I have done nothing else the last few days but try to troubleshoot
what I am doing wrong and the brain is fried - sorry.



I have removed the min & max buttons from my dlg form AND I wish I could
remove the exit button but…



I want to find a contract # in one of 2 places using a dlg form. Once found
I want to place the records in a :PRIV:tableframe on another form and open
it.



I have created a dlg form asking the User to enter a Contract # (string)
and if I click ANYTHING or CANCEL my dlg returns false to the calling form
and goes no further – this is good. If I click OK my dlg returns true to
the calling form and opens it – this is good. If I click the ‘ x ’ button
– it does not execute the cancel code , not good !!!!



Also my form is not displaying the input field – what am I doing wrong?



I run Cash Form and it calls the dlg (basic) form via ARRIVE

I am using:

setfocus, keyphysical, arrive events

var method



TIA



Jeanette


Reply With Quote
  #2  
Old   
Liz McGuire
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 11-06-2006 , 08:44 PM






Jeanette,

Peter hasn't been around for a while. First, please give us the URL of
the page where you got his file, so we can be sure we know what revision
of the code you're using and can look at that for answers.

See inline.

Liz

Jeanette wrote:
Quote:
I have removed the min & max buttons from my dlg form AND I wish I could
remove the exit button but…
Put the form in design mode, and change its window style (one of the
options from when you right click on the form's title bar).

Quote:
I want to find a contract # in one of 2 places using a dlg form. Once found
I want to place the records in a :PRIV:tableframe on another form and open
it.
I'm pretty sure cmView wasn't made to do all this. (just mentioning)

Quote:
I have created a dlg form asking the User to enter a Contract # (string)
and if I click ANYTHING or CANCEL my dlg returns false to the calling form
and goes no further – this is good. If I click OK my dlg returns true to
the calling form and opens it – this is good. If I click the ‘ x ’ button
– it does not execute the cancel code , not good !!!!
See above for how to be rid of the x. Alternately, look for posts which
include menuCanClose (I believe) for how to trap all methods of closing
a form.

Quote:
Also my form is not displaying the input field – what am I doing wrong?
I thought cmView included a form you had to use... Will check when you
tell us where to find the rev you're using.

Quote:
I run Cash Form and it calls the dlg (basic) form via ARRIVE

I am using:

setfocus, keyphysical, arrive events
Note that I would not do anything in these events other than this:

self.postAction(UserAction+1)

OR

someObjectName.postAction(UserAction+1)

....where the +1 could be +<some other valid number if you're using 1
elsewhere>

....otherwise you could be interfering with the event model.

Liz


Reply With Quote
  #3  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 11-07-2006 , 09:47 AM



Its on my paradox resources page Liz.

Also note that going from design mode to run mode with a dialog form you WILL see
windows controls that won't be there when just opening the dialog in code.

The form, as I recall, was just a basic template for capturing and returning user
input. Other code can be added to it. It should, generally speaking, be called and
waited on and then return you to the calling form. If you need another form open,
let the calling form open the next form after closing the cmView form; don't stick
it in the middle of a sequence of opens.

Denn Santoro
President
Resource Development Associates
http://www.RDAWorldWide.Com
Offices in the United States and Germany
Providing solutions to health care, business, governments and non-profits since
1982



Reply With Quote
  #4  
Old   
Jeanette
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 11-07-2006 , 03:20 PM




Liz,

As you requested:

http://www.rdaworldwide.com/pdoxres.htm

Zevenaar, Peter: Generic Custom Dialog Demo. Download Now (17K)


Inline replies:

Put the form in design mode, and change its window style (one of the
options from when you right click on the form's title bar).
Thanks, this helped A LOT !!!

I'm pretty sure cmView wasn't made to do all this. (just mentioning)
Correct, I was trying to explain what I am TRYING to do.

I thought cmView included a form you had to use... Will check when you
tell us where to find the rev you're using.
Correct again, I wanted to keep the original for reference so I made a copy
with a different name and made some modifications.

I want to create a dlg so the User can enter a Contract # (string)
After the input I will check it’s validity
If OK do ‘stuff’
Load in a PRIV tableframe
Would like to do this in ARRIVE, INIT or OPEN
Display the form with the PRIV table data
If not OK display message
Don’t open form

Contract # is the driver of my App and in this new report request I’m designing
it’s key that a VALUE is available for validity check BEFORE any other work
is done.

ALSO, I am not sure which cmVIEW I should use.

Liz, as always, thanks for your help!

//////////////////////////////////////////////////////////////////////////////////////////////

Liz McGuire <liz (AT) paradoxcommunity (DOT) com> wrote:
Quote:
Jeanette,

Peter hasn't been around for a while. First, please give us the URL of

the page where you got his file, so we can be sure we know what revision

of the code you're using and can look at that for answers.

See inline.

Liz

Jeanette wrote:

I have removed the min & max buttons from my dlg form AND I wish I could
remove the exit button but…

Put the form in design mode, and change its window style (one of the
options from when you right click on the form's title bar).

I want to find a contract # in one of 2 places using a dlg form. Once
found
I want to place the records in a :PRIV:tableframe on another form and
open
it.

I'm pretty sure cmView wasn't made to do all this. (just mentioning)

I have created a dlg form asking the User to enter a Contract # (string)
and if I click ANYTHING or CANCEL my dlg returns false to the calling
form
and goes no further – this is good. If I click OK my dlg returns true
to
the calling form and opens it – this is good. If I click the ‘ x ’ button
– it does not execute the cancel code , not good !!!!

See above for how to be rid of the x. Alternately, look for posts which

include menuCanClose (I believe) for how to trap all methods of closing

a form.

Also my form is not displaying the input field – what am I doing wrong?

I thought cmView included a form you had to use... Will check when you

tell us where to find the rev you're using.

I run Cash Form and it calls the dlg (basic) form via ARRIVE

I am using:

setfocus, keyphysical, arrive events

Note that I would not do anything in these events other than this:

self.postAction(UserAction+1)

OR

someObjectName.postAction(UserAction+1)

...where the +1 could be +<some other valid number if you're using 1
elsewhere

...otherwise you could be interfering with the event model.

Liz


Reply With Quote
  #5  
Old   
Liz McGuire
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 11-07-2006 , 07:31 PM





Jeanette wrote:
Quote:
I want to create a dlg so the User can enter a Contract # (string)
Why not use "inpdlg.fsl" for this? That's what Peter's using and the
"basic" example (top push button in cmvdemo.fsl) demonstrates that...


if cmView("Enter","Contract #:","String", atSndRtrn) then
;// do your checks here
view(atSndRtrn) ;// for testing, comment in production
else
;// the user hit cancel
endIf

Quote:
After the input I will check it’s validity
If OK do ‘stuff’
Load in a PRIV tableframe
Would like to do this in ARRIVE, INIT or OPEN
Display the form with the PRIV table data
If not OK display message
Don’t open form
Since all this is separate from cmView, I'm going to skip it for now.
If you need help with one of these items, please post separately (so
folks know it's a separate issue and don't pass by because they don't
know about cmView).

Except for one thing, if you want "stuff.fsl" to open the input dialog,
get user input, validate it and if the user cancels or inputs an invalid
value, prevent "stuff.fsl" from finishing its open, then you'd better
use the init method and try this:

if cmView(..) then
if cmIsValid(atSndRtrn) then
;// continue
else
;// not valid
close()
return
endIf
else
;// user hit cancel
close()
return
endIf

....not sure if it's needed, but if it doesn't work well, try putting
this before close():

eventInfo.setErrorCode(UserError)

....NOTE: I'm not sure you can do all of that in any method before the
form finishes opening - The uses clause may not have even executed yet.

I wouldn't do it that way. I would get the user input in the form or
script that calls "stuff.fsl" and if the input isn't valid, don't even
start opening "stuff.fsl".

Quote:
ALSO, I am not sure which cmVIEW I should use.
The basic one - cmView(). Put your uses clause where the button calling
cmView can see it and be sure to open the lib and close it when done.
The demo form, second tab, explains this.

Liz


Reply With Quote
  #6  
Old   
peter zevenaar
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 12-18-2006 , 02:21 PM



Jeanette,

Quote:
I am trying to use CmView by Peter Zevenaar and am having THE WORSE TIME:
Hm... OK, I'll take that as a compliment ;-)

You probably got it working already with the help of Liz and Dennis. Let me
know if you still have trouble with the cmView methods. The most important
to check out are ReadMe.txt and the explanation in Cmvdemo.fsl

Bye,
Peter...

"Jeanette" <HarrisJR (AT) bwsc (DOT) org> schreef in bericht
news:454fae40$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
I sent below to 'seven (AT) paradoxcommunity (DOT) com' but it came back
undeliverable.

I am trying to use CmView by Peter Zevenaar and am having THE WORSE TIME:
It could be that I have done nothing else the last few days but try to
troubleshoot
what I am doing wrong and the brain is fried - sorry.



I have removed the min & max buttons from my dlg form AND I wish I could
remove the exit button but…



I want to find a contract # in one of 2 places using a dlg form. Once
found
I want to place the records in a :PRIV:tableframe on another form and open
it.



I have created a dlg form asking the User to enter a Contract # (string)
and if I click ANYTHING or CANCEL my dlg returns false to the calling form
and goes no further – this is good. If I click OK my dlg returns true to
the calling form and opens it – this is good. If I click the ‘ x ’
button
– it does not execute the cancel code , not good !!!!



Also my form is not displaying the input field – what am I doing wrong?



I run Cash Form and it calls the dlg (basic) form via ARRIVE

I am using:

setfocus, keyphysical, arrive events

var method



TIA



Jeanette





Reply With Quote
  #7  
Old   
Tony McGuire
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 12-18-2006 , 02:30 PM




PETER!

How goes the war in The Netherlands?

Hopefully well for you!

Nice to see you are still around and kicking.

---------------------------------------------------------
Tony McGuire



Reply With Quote
  #8  
Old   
Liz McGuire
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 12-18-2006 , 06:01 PM



Hi, Peter! Nice to hear from you. We miss you.

Hope life is treating you well.

Liz


peter zevenaar wrote:

Reply With Quote
  #9  
Old   
peter zevenaar
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 12-19-2006 , 01:35 PM



TONY!
You mean the Korean war? ;-)

See my post to Liz...
Bye... Peter

"Tony McGuire" <png.paradoxcommunity@com> schreef in bericht
news:4586fa69$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
PETER!

How goes the war in The Netherlands?

Hopefully well for you!

Nice to see you are still around and kicking.

---------------------------------------------------------
Tony McGuire





Reply With Quote
  #10  
Old   
Tony McGuire
 
Posts: n/a

Default Re: HELP - CmView by Peter Zevenaar - 12-19-2006 , 01:40 PM




Quote:
TONY!
You mean the Korean war? ;-)
No, life!

Quote:
See my post to Liz...
What post to Liz? :-)

---------------------------------------------------------
Tony McGuire




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.