FoxInCloud
Problem with automatic adaptation of form Init()
Gravatar is a globally recognized avatar based on your email address. Problem with automatic adaptation of form Init()
  Paul
  All
  Jan 8, 2019 @ 07:36pm

Hi,

I have found many forms that have not had the Init() properly adapted with the if m.this.wlInitFirst or !m.this.wlWeb code.
The problem is that the FiC code has been inserted above the lparameters statement, thus making this invalid.

I speculate this is caused by a conflict between our standard method commenting style and something that FAA is searching for?

Here is an example of the improper result :

&& Added by FoxInCloud Adaptation Assistant version 2.27 (source mode) on 11/23/2018 16:37:26
if m.this.wlInitFirst or !m.this.wlWeb

&& Move here the code to be executed IN DESKTOP MODE and only when form is first instantiated IN WEB MODE:
&&  custom member initialization, BindEvent(member, 'event', thisform, 'method'), etc.
endif

if m.this.wlInitFirst
&& WEB MODE: form's initial instantiation; code below this block will later execute for each user of this form
return
endif
&& / Added by FoxInCloud Adaptation Assistant version 2.27 (source mode) on 11/23/2018 16:37:26

*--------------------------------------------------------------------
*--- METHOD Init
*--- Parameters: 
*---	TheActivityID			: string	; activity ID
*---	TheActivityRevision		: string	; activity revision
*---	TheActivityLineID		: string	; activity line ID
*---	TheActivityType			: string	; activity type
*--- Purpose: Kit the allocated stock of the entered/scanned pack onto the specified activity.
*--- Notes:
*---	1.	The user will scan a barcode on the label of a "production pack", a pack created from the Pre-Stage process.
*---		A barcode defined in the barcode system is required.
*--- Author : Paul S. Elliott
*--------------------------------------------------------------------
Lparameters TheActivityID, TheActivityRevision, TheActivityLineID, TheActivityType
...
...

Thanks
Paul

Gravatar is a globally recognized avatar based on your email address. re: Problem with automatic adaptation of form Init()
  FoxInCloud Support - Thierry N.
  Paul
  Jan 8, 2019 @ 11:54pm

yes, you need to move the code block down manually;

we'll fix to allow comments before the [l]parameters statement

© 1996-2019