Page 1 of 1

View Page Compilation Error (v10)

Posted: Thu Mar 10, 2016 5:29 pm
by snookie

Hi,
when I click View on a record, I get an compilation error. The entire compilation error is listed at the bottom of this article.
I have been looking in the *view.vbhtml files and found the erronuous code below. It misses the <text> ...</text> tags, which causes the error.
Is there a proper solution or workaround for this?

----Erroneous code--------------------------------------
@If ew_Empty(test.Export) Then
<script type="text/javascript">
ftestview.Init();
</script>

End If

When I replace it with the code below it is solved:

----Working code--------------------------------------
@If ew_Empty(network.Export) Then@<text>
<script type="text/javascript">
// Write your table-specific startup script here
// document.write("page loaded");
</script>

</text>End If

*Compilation Error:*

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30636: '>' expected.

Source Error:

Line 174:<br />
Line 175:@If ew_Empty(subnetwork.Export) Then
Line 176:<script type="text/javascript">
Line 177:fsubnetworkview.Init();
Line 178:</script>

Source File: D:\Inetpub\wwwroot\testview.vbhtml Line: 176

Compiler Warning Messages:

Show Detailed Compiler Output:

Show Complete Compilation Source:

Regards, snookie


Re: View Paeg Compilation Error

Posted: Fri Mar 11, 2016 10:10 am
by motfs

What version you use? Make sure you use the latest version to generate.


Re: View Paeg Compilation Error

Posted: Tue Mar 15, 2016 4:32 pm
by snookie

I use v10.


Re: View Page Compilation Error (v10)

Posted: Wed Mar 16, 2016 4:26 pm
by motfs

You may need to modify the generated file. Or search in template to modify it. Not familiar with V10 as the version is too old.