|
<< Click to Display Table of Contents >> Navigation: Telegram > 2018 > 05 > 01 > Telegram_2018-05-01T16 |
2018-05-01T16:00:04
You can see the modifications?
2018-05-01T16:00:56
Oh, I did not realize you uploaded something. Let me download it. Thanks!
2018-05-01T16:02:11
Copy the folders where you want OK.
2018-05-01T16:03:34
ok, working on it
2018-05-01T16:04:07
ok, got it open in 10.2.3
2018-05-01T16:05:29
when run, there is more than just an empty web page now.
2018-05-01T16:06:15
I see mastertemplate.html defines in the server controller
2018-05-01T16:06:35
yes, and a template IWForm6.html
2018-05-01T16:07:04
Yes, I see the file. Whee is that used?
2018-05-01T16:07:58
every Form has your template
2018-05-01T16:08:16
open forms i sent to you
2018-05-01T16:08:34
in mater i put evething i need and ONLY $body
2018-05-01T16:09:12
OK, so is Unit6.pas still the main form that opens?
2018-05-01T16:10:20
I am missing something very obvious. Sorry.
2018-05-01T16:10:56
Yes because you have ONLY one form
2018-05-01T16:11:04
and it's the principal
2018-05-01T16:11:44
So what property in that form tells me that it will use a template?
2018-05-01T16:11:53
LayoutMgr?
2018-05-01T16:13:05
Yes
2018-05-01T16:13:28
if you don't inform the name, they look for a FORM name in tlempate
2018-05-01T16:14:03
So IWTemplateProcessorHTML1 is in that property.
2018-05-01T16:14:38
When I did that in my test app, it did not work. Do I have to set something up in the IWTemplateProcessorHTML1 object?
2018-05-01T16:17:33
Yes, RenderStyles to FALSE
2018-05-01T16:22:16
True or False...it still shows the master template
2018-05-01T16:23:55
Question, What the the sever controller property called Full Path represent?
2018-05-01T16:26:04
How can I change that to where my app is really running?
2018-05-01T16:26:42
Is that the issue? Because I changed where the app EXE is created to a folder that is not under the development folder?
2018-05-01T16:28:48
You can see the template i send in action ?
2018-05-01T16:29:08
yes, that works
2018-05-01T16:29:22
ah ok
2018-05-01T16:29:40
I still do not know what makes it work though
2018-05-01T16:30:02
all form need a template processor
2018-05-01T16:30:15
with renderStyle = false
2018-05-01T16:30:21
OK, so where to I do that?
2018-05-01T16:30:27
all form need a HTML
2018-05-01T16:31:58
And where in the form do you point to that HTML?
2018-05-01T16:32:03
what property?
2018-05-01T16:32:08
or is it code?
2018-05-01T16:33:31
1 min
2018-05-01T16:33:52
if is the SAME NAME is automatic
2018-05-01T16:34:09
I have IWForm6 showing in the Design tab. I have properties on the left. What tells IWForm6 that it is using a template?
2018-05-01T16:34:28
All I see is setting LayoutMgr to IWTemplateProcessorHTML1
2018-05-01T16:36:59
In my test, that is not working, but in yours, it seems to work.
2018-05-01T16:37:19
in form you SET LayouMgr
2018-05-01T16:38:04
Yes, it is set to IWTemplateProcessorHTML1
2018-05-01T16:38:23
ok
2018-05-01T16:39:32
in the template processor you can set a name of template.html OR leave empty. In the case if is empty, they search templte with the SAME NAME the FORM
2018-05-01T16:39:55
OH!
2018-05-01T16:40:32
the template IS: IWForm6.html
2018-05-01T16:43:12
YES!!!!!! IT now works! That was it! Thanks so much!
2018-05-01T16:44:21
I knew it was something I was not grasping and it would be simple, but I could not get my idea across. Again, thanks so much!
2018-05-01T16:44:51
I'm glad to help you.
2018-05-01T16:45:05
Me too :)
2018-05-01T16:45:39
You have to make beautiful things now.
2018-05-01T16:45:42
??