NetTalk Central

Author Topic: Errors with 11.42 and EIP Check Box on Browse  (Read 5030 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Errors with 11.42 and EIP Check Box on Browse
« 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)
Clarion 10, NT 11.57

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #1 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)

.
« Last Edit: August 26, 2020, 09:34:03 PM by Johan »
Clarion 10, NT 11.57

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #2 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.
Clarion 10, NT 11.57

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #3 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

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #4 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
Clarion 10, NT 11.57

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #5 on: August 27, 2020, 07:59:13 AM »
Thanks, Johan.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #6 on: August 31, 2020, 12:51:55 AM »
fixed in 11.43

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Errors with 11.42 and EIP Check Box on Browse
« Reply #7 on: August 31, 2020, 02:09:50 AM »
Thanks.

Will download and test as soon as you have 11.43 up.
Clarion 10, NT 11.57