NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan de Klerk on August 26, 2020, 12:06:46 AM
-
Hi Bruce,
I have downloaded and 11.42.
Compiled fine with 11.41.
Compiling my app now gives me errors:
Unknown identifier: Y
Expected: <operator> ) , &= {
On this line:
packet.append(p_web.CreateInput('checkbox',p_web.nocolon('CompSetup:Paid'),1,p_web.combine(p_web.site.style.browseCheck,,loc:fieldclass),loc:extra,' data-true="'Y'" data-false="'N'"',,loc:javascript,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'eip') & p_web.CRLF)
-
Template Code in 11.41 (C:\Clarion10\accessory\template\win\netweb.tpw)
%gPacket.append(p_web.CreateInput('checkbox',p_web.nocolon('%nFieldEquate'),clip(%FieldTrue),p_web.combine(p_web.site.style.browseCheck,%FormFieldClass,loc:fieldclass),loc:extra,%extra,,loc:javascript,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),%FormFieldTooltip,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),,%datado) & p_web.CRLF)
%gPacket.append(p_web.CreateInput('checkbox',p_web.nocolon('%nFieldEquate'),clip(%FieldTrue),p_web.combine(p_web.site.style.browseCheck,%FormFieldClass,loc:fieldclass),loc:extra & ' disabled',%extra,,loc:javascript,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),%FormFieldTooltip,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),,%datado) & p_web.CRLF)
Template Code in 11.42 (C:\Clarion10\accessory\template\win\netweb.tpw)
%gPacket.append(p_web.CreateInput('checkbox',p_web.nocolon('%nFieldEquate'),1,p_web.combine(p_web.site.style.browseCheck,%FormFieldClass,loc:fieldclass),loc:extra,%extra,,loc:javascript,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),%FormFieldTooltip,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),,%datado) & p_web.CRLF)
%gPacket.append(p_web.CreateInput('checkbox',p_web.nocolon('%nFieldEquate'),1,p_web.combine(p_web.site.style.browseCheck,%FormFieldClass,loc:fieldclass),loc:extra & ' disabled',%extra,,loc:javascript,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),%FormFieldTooltip,'inp'&p_web.crc32('%Procedure_%nField'&%kfld),,%datado) & p_web.CRLF)
========================================================================================
Generated Code in 11.41
packet.append(p_web.CreateInput('checkbox',p_web.nocolon('CompSetup:Paid'),clip('Y'),p_web.combine(p_web.site.style.browseCheck,,loc:fieldclass),loc:extra,,,loc:javascript,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'eip') & p_web.CRLF)
packet.append(p_web.CreateInput('checkbox',p_web.nocolon('CompSetup:Paid'),clip('Y'),p_web.combine(p_web.site.style.browseCheck,,loc:fieldclass),loc:extra & ' disabled',,,loc:javascript,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'eip') & p_web.CRLF)
Generated Code in 11.42
packet.append(p_web.CreateInput('checkbox',p_web.nocolon('CompSetup:Paid'),1,p_web.combine(p_web.site.style.browseCheck,,loc:fieldclass),loc:extra,' data-true="'Y'" data-false="'N'"',,loc:javascript,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'eip') & p_web.CRLF)
packet.append(p_web.CreateInput('checkbox',p_web.nocolon('CompSetup:Paid'),1,p_web.combine(p_web.site.style.browseCheck,,loc:fieldclass),loc:extra & ' disabled',' data-true="'Y'" data-false="'N'"',,loc:javascript,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'inp'&p_web.crc32('BrowseCompanySetup_CompSetup:Paid'&CompSetup:Guid),,'eip') & p_web.CRLF)
.
-
It seems it does not like to the CheckBox to be Y (True) or N (False) anymore.
If the CheckBox is 1 (True) or 0 (False) then it does not give a compile error.
-
Will it compile if you use Y and N, but put them into the template just as Y and N and do not use 'Y' and 'N' ?
It appears the compiler is complaining because the string has extra single quotes?
The string you show in your first post begins with 'data-true="' so it's expecting Y to be a declared variable, rather than part of the string.
Jane
-
Hi Jane,
Just Y and N gives other errors.
Bruce just now said in the NetTalk WebInar that he know about the problem and are investigating it.
Will be fixed in 11.43.
Johan de Klerk
-
Thanks, Johan.
-
fixed in 11.43
-
Thanks.
Will download and test as soon as you have 11.43 up.