NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan de Klerk on August 26, 2020, 12:06:46 AM

Title: Errors with 11.42 and EIP Check Box on Browse
Post 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)
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Johan de Klerk on August 26, 2020, 06:49:39 AM
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)

.
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Johan de Klerk on August 26, 2020, 11:41:36 PM
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.
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Jane on August 27, 2020, 07:17:13 AM
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
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Johan de Klerk on August 27, 2020, 07:40:56 AM
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
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Jane on August 27, 2020, 07:59:13 AM
Thanks, Johan.
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Bruce on August 31, 2020, 12:51:55 AM
fixed in 11.43
Title: Re: Errors with 11.42 and EIP Check Box on Browse
Post by: Johan de Klerk on August 31, 2020, 02:09:50 AM
Thanks.

Will download and test as soon as you have 11.43 up.