Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4110 > unrolled thread
| Started by | grantd@dunsmoreinfo.com |
|---|---|
| First post | 2012-09-20 10:17 -0700 |
| Last post | 2012-09-21 10:12 -0700 |
| Articles | 12 — 7 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Unable to popup Window with with EditFocusChsnge() ? grantd@dunsmoreinfo.com - 2012-09-20 10:17 -0700
Re: Unable to popup Window with with EditFocusChsnge() ? JohnMartens <martens@tennishulp.info> - 2012-09-20 19:48 +0200
Re: Unable to popup Window with with EditFocusChsnge() ? Fireball <grantd@dunsmoreinfo.com> - 2012-09-20 12:15 -0700
Re: Unable to popup Window with with EditFocusChsnge() ? JohnMartens <martens@tennishulp.info> - 2012-09-20 21:51 +0200
Re: Unable to popup Window with with EditFocusChsnge() ? Fireball <grantd@dunsmoreinfo.com> - 2012-09-20 13:38 -0700
Re: Unable to popup Window with with EditFocusChsnge() ? Frans Wauters <info@wautersit.com> - 2012-09-20 15:34 -0700
Re: Unable to popup Window with with EditFocusChsnge() ? Fireball <grantd@dunsmoreinfo.com> - 2012-09-20 17:49 -0700
Re: Unable to popup Window with with EditFocusChsnge() ? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-09-21 05:35 +0000
Re: Unable to popup Window with with EditFocusChsnge() ? JohnMartens <martens@tennishulp.info> - 2012-09-21 07:48 +0200
Re: Unable to popup Window with with EditFocusChsnge() ? Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-09-21 08:54 +0200
Re: Unable to popup Window with with EditFocusChsnge() ? Massimo Bighelli <info@arcasistemi.it> - 2012-09-21 18:12 +0200
Re: Unable to popup Window with with EditFocusChsnge() ? Fireball <grantd@dunsmoreinfo.com> - 2012-09-21 10:12 -0700
| From | grantd@dunsmoreinfo.com |
|---|---|
| Date | 2012-09-20 10:17 -0700 |
| Subject | Unable to popup Window with with EditFocusChsnge() ? |
| Message-ID | <4301a729-9a20-4399-9b76-e5af43dcbf36@googlegroups.com> |
Hello All
Using VO 2.8 and I am trying to use EditFocusChange() within a data entry window to pop up another window to choose a customer. When I do this I get the error: Error Code 13 [NO EXPORTed METHOD]. I have used this technique to call other validation method but not a pop up window. The calling code is as follows:
"CASE oControl:NameSym == #sleCustomer
oDCsleCustomer:Value := self:Getcustomer(oControl:CurrentText)"
GetCustomer is a window of the same class as the calling program. Can anyone tell me why this dosen't work?
Thank you for any help.
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2012-09-20 19:48 +0200 |
| Message-ID | <505B56D7.7000206@tennishulp.info> |
| In reply to | #4110 |
Shouldn't it be something like this:
LOCAL oNewWindow as MyWindowClass
CASE oControl:NameSym == #sleCustomer
oNewWindow := MyWindowClass{self}
oNewWindow:Getcustomer(oControl:CurrentText)
oDCsleCustomer:Value := oNewWindow:cMyReturnText
Op 20-9-2012 19:17, grantd@dunsmoreinfo.com schreef:
> Hello All
> Using VO 2.8 and I am trying to use EditFocusChange() within a data entry window to pop up another window to choose a customer. When I do this I get the error: Error Code 13 [NO EXPORTed METHOD]. I have used this technique to call other validation method but not a pop up window. The calling code is as follows:
>
> "CASE oControl:NameSym == #sleCustomer
> oDCsleCustomer:Value := self:Getcustomer(oControl:CurrentText)"
>
> GetCustomer is a window of the same class as the calling program. Can anyone tell me why this dosen't work?
> Thank you for any help.
>
[toc] | [prev] | [next] | [standalone]
| From | Fireball <grantd@dunsmoreinfo.com> |
|---|---|
| Date | 2012-09-20 12:15 -0700 |
| Message-ID | <f05f4434-e8b9-48ee-94d8-c6f118922d8c@googlegroups.com> |
| In reply to | #4111 |
On Thursday, 20 September 2012 10:48:02 UTC-7, JohnMartens wrote:
> Shouldn't it be something like this:
>
>
>
> LOCAL oNewWindow as MyWindowClass
>
> CASE oControl:NameSym == #sleCustomer
>
> oNewWindow := MyWindowClass{self}
>
> oNewWindow:Getcustomer(oControl:CurrentText)
>
> oDCsleCustomer:Value := oNewWindow:cMyReturnText
>
>
>
>
>
> Op 20-9-2012 19:17, grantd@dunsmoreinfo.com schreef:
>
> > Hello All
>
> > Using VO 2.8 and I am trying to use EditFocusChange() within a data entry window to pop up another window to choose a customer. When I do this I get the error: Error Code 13 [NO EXPORTed METHOD]. I have used this technique to call other validation method but not a pop up window. The calling code is as follows:
>
> >
>
> > "CASE oControl:NameSym == #sleCustomer
>
> > oDCsleCustomer:Value := self:Getcustomer(oControl:CurrentText)"
>
> >
>
> > GetCustomer is a window of the same class as the calling program. Can anyone tell me why this dosen't work?
>
> > Thank you for any help.
>
> >
Yes I hadn't created the oNewWindow object or initialized it. Now I have it as follows but still dosen't work:
LOCAL oNewWindow as GetCustomer
....
....
CASE oControl:NameSym == #sleCustomer
oNewWindow := GetCustomer{self}
oNewWindow:GetCustomer(oControl:CurrentText)
but I still get the error [NO EXPORTED METHOD] when I try to call GetCustomer
I can open the window 'GetCustomer' from a menu but not from within the 'EditFocusChange' method.
[toc] | [prev] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2012-09-20 21:51 +0200 |
| Message-ID | <k3fs4o$j8n$1@dont-email.me> |
| In reply to | #4112 |
Where do you show the GetCustomer window ?
What is the prototype of GetCustomer method ?
Op 20-9-2012 21:15, Fireball schreef:
> On Thursday, 20 September 2012 10:48:02 UTC-7, JohnMartens wrote:
>> Shouldn't it be something like this:
>>
>>
>>
>> LOCAL oNewWindow as MyWindowClass
>>
>> CASE oControl:NameSym == #sleCustomer
>>
>> oNewWindow := MyWindowClass{self}
>>
>> oNewWindow:Getcustomer(oControl:CurrentText)
>>
>> oDCsleCustomer:Value := oNewWindow:cMyReturnText
>>
>>
>>
>>
>>
>> Op 20-9-2012 19:17, grantd@dunsmoreinfo.com schreef:
>>
>>> Hello All
>>
>>> Using VO 2.8 and I am trying to use EditFocusChange() within a data entry window to pop up another window to choose a customer. When I do this I get the error: Error Code 13 [NO EXPORTed METHOD]. I have used this technique to call other validation method but not a pop up window. The calling code is as follows:
>>
>>>
>>
>>> "CASE oControl:NameSym == #sleCustomer
>>
>>> oDCsleCustomer:Value := self:Getcustomer(oControl:CurrentText)"
>>
>>>
>>
>>> GetCustomer is a window of the same class as the calling program. Can anyone tell me why this dosen't work?
>>
>>> Thank you for any help.
>>
>>>
>
> Yes I hadn't created the oNewWindow object or initialized it. Now I have it as follows but still dosen't work:
>
> LOCAL oNewWindow as GetCustomer
> ....
> ....
> CASE oControl:NameSym == #sleCustomer
> oNewWindow := GetCustomer{self}
> oNewWindow:GetCustomer(oControl:CurrentText)
>
> but I still get the error [NO EXPORTED METHOD] when I try to call GetCustomer
>
> I can open the window 'GetCustomer' from a menu but not from within the 'EditFocusChange' method.
>
[toc] | [prev] | [next] | [standalone]
| From | Fireball <grantd@dunsmoreinfo.com> |
|---|---|
| Date | 2012-09-20 13:38 -0700 |
| Message-ID | <69352e10-a232-4726-a35e-32a3ff6edfd1@googlegroups.com> |
| In reply to | #4113 |
On Thursday, 20 September 2012 12:51:52 UTC-7, JohnMartens wrote:
> Where do you show the GetCustomer window ?
I want to pop a window onto the current active display window and then choose a customer and return it to the calling window. I know I could use a Combo Box or List Box for the control but I am testing here and ultimately would like to see if I can use a bBrowser3 eventually because I should be able to do more with it.
I can call the window from a menu or push button fine.
The GetCustomer method is just a test DataWindow I created to try and test the operation so far but I haven't been able to get it working.
>
> What is the prototype of GetCustomer method ?
>
>
>
> Op 20-9-2012 21:15, Fireball schreef:
>
> > On Thursday, 20 September 2012 10:48:02 UTC-7, JohnMartens wrote:
>
> >> Shouldn't it be something like this:
>
> >>
>
> >>
>
> >>
>
> >> LOCAL oNewWindow as MyWindowClass
>
> >>
>
> >> CASE oControl:NameSym == #sleCustomer
>
> >>
>
> >> oNewWindow := MyWindowClass{self}
>
> >>
>
> >> oNewWindow:Getcustomer(oControl:CurrentText)
>
> >>
>
> >> oDCsleCustomer:Value := oNewWindow:cMyReturnText
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> Op 20-9-2012 19:17, grantd@dunsmoreinfo.com schreef:
>
> >>
>
> >>> Hello All
>
> >>
>
> >>> Using VO 2.8 and I am trying to use EditFocusChange() within a data entry window to pop up another window to choose a customer. When I do this I get the error: Error Code 13 [NO EXPORTed METHOD]. I have used this technique to call other validation method but not a pop up window. The calling code is as follows:
>
> >>
>
> >>>
>
> >>
>
> >>> "CASE oControl:NameSym == #sleCustomer
>
> >>
>
> >>> oDCsleCustomer:Value := self:Getcustomer(oControl:CurrentText)"
>
> >>
>
> >>>
>
> >>
>
> >>> GetCustomer is a window of the same class as the calling program. Can anyone tell me why this dosen't work?
>
> >>
>
> >>> Thank you for any help.
>
> >>
>
> >>>
>
> >
>
> > Yes I hadn't created the oNewWindow object or initialized it. Now I have it as follows but still dosen't work:
>
> >
>
> > LOCAL oNewWindow as GetCustomer
>
> > ....
>
> > ....
>
> > CASE oControl:NameSym == #sleCustomer
>
> > oNewWindow := GetCustomer{self}
>
> > oNewWindow:GetCustomer(oControl:CurrentText)
>
> >
>
> > but I still get the error [NO EXPORTED METHOD] when I try to call GetCustomer
>
> >
>
> > I can open the window 'GetCustomer' from a menu but not from within the 'EditFocusChange' method.
>
> >
[toc] | [prev] | [next] | [standalone]
| From | Frans Wauters <info@wautersit.com> |
|---|---|
| Date | 2012-09-20 15:34 -0700 |
| Message-ID | <fb1ba317-2d85-4aaf-a3b2-e37a79027126@googlegroups.com> |
| In reply to | #4114 |
Hi Fireball,
Resume:
One datawindows with a sleCustomer control.
Calling the popup using a datawindows button = ok.
Calling the popup trough the datawindows menu = ok.
Calling the popup when EditFocusChange() = fail.
The button - METHOD btn_Popup() - is called from the button action and/or trough the menu of the first datawindow, so the method btn_Popup() knows what code to perform.
So why not call the btn_Popup() in EditFocusChange() as:
CASE oControl:NameSym == #sleCustomer
SELF:btn_Popup()
Regards,
Frans
[toc] | [prev] | [next] | [standalone]
| From | Fireball <grantd@dunsmoreinfo.com> |
|---|---|
| Date | 2012-09-20 17:49 -0700 |
| Message-ID | <826dfa9b-15ff-4e36-83c0-340a579db63a@googlegroups.com> |
| In reply to | #4115 |
On Thursday, 20 September 2012 15:34:48 UTC-7, Frans Wauters wrote: > Hi Fireball, > > > > Resume: > > > > One datawindows with a sleCustomer control. > > Calling the popup using a datawindows button = ok. > > Calling the popup trough the datawindows menu = ok. > > Calling the popup when EditFocusChange() = fail. > > > > The button - METHOD btn_Popup() - is called from the button action and/or trough the menu of the first datawindow, so the method btn_Popup() knows what code to perform. > > > > So why not call the btn_Popup() in EditFocusChange() as: > > > > CASE oControl:NameSym == #sleCustomer > > SELF:btn_Popup() > > > > > > Regards, > > Frans You have summarized the problem exactly. I can call the GetCustomer() window from a menu but when I do it directly as you suggested I get the error Error Code 13 [NO ESPORTED METHOD]. The same occurs when I create and initialize an object as suggestd by JohnMartens. I must be missing something about calling a window from within an EditFocusChange() method. I can call any other method from the EditFocusChange just not a another window.
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-09-21 05:35 +0000 |
| Message-ID | <ac2ck9Favm2U1@mid.individual.net> |
| In reply to | #4116 |
Hi, > You have summarized the problem exactly. I can call the GetCustomer() > window from a menu but when I do it directly as you suggested I get > the error Error Code 13 [NO ESPORTED METHOD]. The same occurs when I > create and initialize an object as suggestd by JohnMartens. I must be > missing something about calling a window from within an > EditFocusChange() method. I can call any other method from the > EditFocusChange just not a another window. EditFocusChange() can be called where the initialization of the windows, so make sure that the initializazion of the window is terminated before you call your validation code. Wolfgang --
[toc] | [prev] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2012-09-21 07:48 +0200 |
| Message-ID | <k3gv3j$bmp$1@dont-email.me> |
| In reply to | #4117 |
in order to prevent EFC to be called again and again I do this: Methos EditFocosChange CLASS MyWindow SELF:lPerformEfcAgain := false DO CASE CASE ! SELF:lPerformEfc // Do nothing extra CASE oControl:NameSym == #sleCustomer // Do your stuff ENDCASE SELF:lPerformEfcAgain := true I do not know wether this is a neat solution or not but it works for me John Op 21-9-2012 7:35, Wolfgang Riedmann schreef: > Hi, > >> You have summarized the problem exactly. I can call the GetCustomer() >> window from a menu but when I do it directly as you suggested I get >> the error Error Code 13 [NO ESPORTED METHOD]. The same occurs when I >> create and initialize an object as suggestd by JohnMartens. I must be >> missing something about calling a window from within an >> EditFocusChange() method. I can call any other method from the >> EditFocusChange just not a another window. > > EditFocusChange() can be called where the initialization of the > windows, so make sure that the initializazion of the window is > terminated before you call your validation code. > > Wolfgang > >
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-09-21 08:54 +0200 |
| Message-ID | <il3o5811koj9fgkf5bdejtagc1gl0df7fc@4ax.com> |
| In reply to | #4118 |
John, IMHO it would suffice to set SELF:lPerformEfcAgain := false in the init and SELF:lPerformEfcAgain := true at the end of Show() Karl >in order to prevent EFC to be called again and again I do this: > >Methos EditFocosChange CLASS MyWindow > >SELF:lPerformEfcAgain := false > >DO CASE >CASE ! SELF:lPerformEfc > // Do nothing extra >CASE oControl:NameSym == #sleCustomer > // Do your stuff >ENDCASE > >SELF:lPerformEfcAgain := true > >I do not know wether this is a neat solution or not but it works for me > >John > > > > >Op 21-9-2012 7:35, Wolfgang Riedmann schreef: >> Hi, >> >>> You have summarized the problem exactly. I can call the GetCustomer() >>> window from a menu but when I do it directly as you suggested I get >>> the error Error Code 13 [NO ESPORTED METHOD]. The same occurs when I >>> create and initialize an object as suggestd by JohnMartens. I must be >>> missing something about calling a window from within an >>> EditFocusChange() method. I can call any other method from the >>> EditFocusChange just not a another window. >> >> EditFocusChange() can be called where the initialization of the >> windows, so make sure that the initializazion of the window is >> terminated before you call your validation code. >> >> Wolfgang >> >>
[toc] | [prev] | [next] | [standalone]
| From | Massimo Bighelli <info@arcasistemi.it> |
|---|---|
| Date | 2012-09-21 18:12 +0200 |
| Message-ID | <k3i3ll$l1r$4@speranza.aioe.org> |
| In reply to | #4112 |
you have a dialogwindow called GetCustomer this dialogwindow has a method called GetCustomer ? I don't understand call your window give it a show() in this window set an exported property of the caller and return with result=1 hth Massimo
[toc] | [prev] | [next] | [standalone]
| From | Fireball <grantd@dunsmoreinfo.com> |
|---|---|
| Date | 2012-09-21 10:12 -0700 |
| Message-ID | <61c9ca4c-626e-4ca6-92c3-054d17215190@googlegroups.com> |
| In reply to | #4136 |
On Friday, 21 September 2012 09:12:42 UTC-7, Massimo Bighelli wrote: > you have a dialogwindow called GetCustomer > > this dialogwindow has a method called GetCustomer ? > > I don't understand > > call your window > > give it a show() > > in this window set an exported property of the caller > > and return with result=1 > > > > hth > > > > Massimo Yes that is where I went wrong. I was trying to call the window directly from the EditFocusChange of the main window. When I called a method and used the method to show the window it works. Thank you all for your help.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web