| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Is there a way to change the Config file for the window editor to do this? When entering a server name in the Data Server property of the window, I want all my server to pass SELF. I want to change this, in the INIT IF !IsNil(oServer) SELF:Use(oServer) ELSE SELF:Use(SubmittalSRV{}) ENDIF To this IF !IsNil(oServer) SELF:Use(oServer) ELSE SELF:Use(SubmittalSRV{SELF}) ENDIF TIA Geoff |
|
#2
| |||
| |||
| Geoff, No, unfortunately. CA and GrafX never gave us a way to manage this. I have often wanted it too. But there is a way out. Do not supply the server to the WED but do it in the PostInit instead. Geoff "Geoff Chambers" <gchambers02@msn.com> wrote in message news:a8616299-870a-42ff-ba02-e08c7012267b@y38g2000hsy.googlegroups.com: > Is there a way to change the Config file for the window editor to do > this? When entering a server name in the Data Server property of the > window, I want all my server to pass SELF. > > I want to change this, in the INIT > > IF !IsNil(oServer) > SELF:Use(oServer) > ELSE > SELF:Use(SubmittalSRV{}) > ENDIF > > To this > > IF !IsNil(oServer) > SELF:Use(oServer) > ELSE > SELF:Use(SubmittalSRV{SELF}) > ENDIF > > TIA > Geoff |
|
#3
| |||
| |||
| Geoff Try editing the Cavowed.TPL file to insert the line /tSELF:Use(SubmittalSRV{SELF}) in the postinit method and don't put anything in the property of the window. Eg [PostInit] method PostInit(%INITPARAMS%) class %FORM:NAME% \t//Put your PostInit additions here \tSELF:Use(SubmittalSRV{SELF}) \treturn NIL NOTE: I think *every* window you create in the editor will get this line inserted<g> No idea if TPL files are still used in CAVO2.8 or not. CYA steve |
|
#4
| |||
| |||
| <g> This is not all that cool Steve because all windows will now get the same server. Might as well just manually add the postinit. And yes, 2.8 still uses TPL files. Geoff "Stephen Quinn" <stevejqNO@SPbigpond.AMnet.au> wrote in message news:mXFtk.32148$IK1.19692@news-server.bigpond.net.au: > Geoff > > Try editing the Cavowed.TPL file to insert the line > > /tSELF:Use(SubmittalSRV{SELF}) > > in the postinit method and don't put anything in the property of the window. > Eg > [PostInit] > method PostInit(%INITPARAMS%) class %FORM:NAME% > \t//Put your PostInit additions here > \tSELF:Use(SubmittalSRV{SELF}) > \treturn NIL > > NOTE: I think *every* window you create in the editor will get this line > inserted<g> > > No idea if TPL files are still used in CAVO2.8 or not. > > CYA > steve |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.