itmanvn
Posts: 12
|
| Posted: 06/17/2009, 1:08 AM |
|
When I click Generate Code on Header page

This is my Header.cpp
<Page id="1" templateExtension="html" relativePath="." fullRelativePath="." secured="False" urlType="Relative" isIncluded="True" SSLAccess="False" isService="False" cachingEnabled="False" cachingDuration="1 minutes" wizardTheme="Blueprint" wizardThemeVersion="3.0" needGeneration="0" pasteActions="pasteActions">
<Components>
<Link id="7" visible="Yes" fieldSourceType="DBColumn" dataType="Text" html="False" hrefType="Page" urlType="Relative" preserveParameters="GET" name="Logout" hrefSource="Login.ccp" wizardDefaultValue="Logout" PathID="HeaderLogout" wizardUseTemplateBlock="False">
<Components/>
<Events>
<Event name="BeforeShow" type="Server">
<Actions>
<Action actionName="Custom Code" actionCategory="General" id="9" eventType="Server"/>
</Actions>
</Event>
</Events>
<LinkParameters>
<LinkParameter id="8" sourceType="Expression" format="yyyy-mm-dd" name="Logout" source=""True""/>
</LinkParameters>
<Attributes/>
<Features/>
</Link>
</Components>
<CodeFiles>
<CodeFile id="Code" language="PHPTemplates" name="Header.php" forShow="True" url="Header.php" comment="//" codePage="utf-8"/>
<CodeFile id="Events" language="PHPTemplates" name="Header_events.php" forShow="False" comment="//" codePage="utf-8"/>
</CodeFiles>
<SecurityGroups/>
<CachingParameters/>
<Attributes/>
<Features/>
<Events>
<Event name="BeforeShow" type="Server">
<Actions>
<Action actionName="Custom Code" actionCategory="General" id="10"/>
</Actions>
</Event>
<Event name="AfterInitialize" type="Server">
<Actions>
<Action actionName="Custom Code" actionCategory="General" id="11"/>
</Actions>
</Event>
</Events>
</Page>
Codechage 4.2
Oracle 10G Express
Apache 2.2 / PHP 5
|
 |
 |
mentecky
Posts: 321
|
| Posted: 06/17/2009, 9:31 AM |
|
itmanvn,
This line looks suspect:
<LinkParameter id="8" sourceType="Expression" format="yyyy-mm-dd" name="Logout" source=""True""/>
The ""True"" probably should be "True"
Rick
_________________
http://www.ccselite.com |
 |
 |
itmanvn
Posts: 12
|
| Posted: 06/17/2009, 6:44 PM |
|
Quote mentecky:
itmanvn,
This line looks suspect:
<LinkParameter id="8" sourceType="Expression" format="yyyy-mm-dd" name="Logout" source=""True""/>
The ""True"" probably should be "True"
Rick
Thank Rick,
I changed that line but the error still there
|
 |
 |
mentecky
Posts: 321
|
| Posted: 06/17/2009, 6:59 PM |
|
Try changing it to:
<LinkParameter id="8" sourceType="Expression" format="yyyy-mm-dd" name="Logout" source="2009-01-01"/>
If it then loads check the parameters for that link. It seems to think it's a date with a boolean source.
Rick
_________________
http://www.ccselite.com |
 |
 |
itmanvn
Posts: 12
|
| Posted: 06/17/2009, 11:51 PM |
|
Quote mentecky:
Try changing it to:
<LinkParameter id="8" sourceType="Expression" format="yyyy-mm-dd" name="Logout" source="2009-01-01"/>
If it then loads check the parameters for that link. It seems to think it's a date with a boolean source.
Rick
Hi Rick,
Tried your solution with no luck, I also delete 3 lines:
<LinkParameters>
<LinkParameter id="8" name="Logout"/>
</LinkParameters>
can not fixed
|
 |
 |
itmanvn
Posts: 12
|
| Posted: 06/19/2009, 6:37 PM |
|
anyone help?
|
 |
 |
damian
Posts: 838
|
| Posted: 06/19/2009, 7:06 PM |
|
have you tried to replicate the issue in another page?
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
itmanvn
Posts: 12
|
| Posted: 06/19/2009, 9:04 PM |
|
Quote damian:
have you tried to replicate the issue in another page?
Others page are ok, problem is I included Header to all others page. If this page cannot generated, others page will not run
|
 |
 |
mentecky
Posts: 321
|
| Posted: 06/19/2009, 9:12 PM |
|
itmanvn,
Recreated the page under a different name.
Then rename the broken HEADER to something else... when CCS asks if you want to update links say NO.
Then rename your new page HEADER.
It should work fine and you don't have to play with the XML.
Rick
_________________
http://www.ccselite.com |
 |
 |
itmanvn
Posts: 12
|
| Posted: 06/19/2009, 10:26 PM |
|
Quote mentecky:
itmanvn,
Recreated the page under a different name.
Then rename the broken HEADER to something else... when CCS asks if you want to update links say NO.
Then rename your new page HEADER.
It should work fine and you don't have to play with the XML.
Rick
Thank you Rick,
Will try and report back later
|
 |
 |
itmanvn
Posts: 12
|
| Posted: 06/20/2009, 10:57 AM |
|
OMG,
I found another problem, I create a new page, try to click Authentication Builder, CC show me a Grid Builder, click others builder still show Grid Builder.
Click any Form Builder, just show Add grid form.
CC gone crazy
|
 |
 |
peterr
Posts: 5971
|
| Posted: 06/20/2009, 2:12 PM |
|
This means that you are using a software crack to use CodeCharge Studio illegally.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |