FoxInCloud
NGMEMBER
Gravatar is a globally recognized avatar based on your email address. NGMEMBER
  Vincent H.
  All
  Nov 14, 2020 @ 01:36am

Hi Thierry,

I have this error, but only in my website, not in localhost.

Do you have any idea of the problem ?

Thanks in advance

Error notified to the user
- awajax.lSuccess(.f.): Erreur détectée à la ligne n° 1,653 de la méthode 'awhtmlgen.odossier.opageact1.gethtml'
"HTML generation error"
<div class="awHTMLgenError" ><p class="awHTMLgenError">FoxInCloud HTML generator Version 2.31.0-beta.5 of 2020-09-23 14:20:16 (il y a 2 mois)</p><p class="awHTMLgenError">awHTMLgen error:</p><p class="awHTMLgenError">Méthode ou procédure cstyle_align() : erreur n° 12 ("Variable 'NGMEMBER' introuvable") à la ligne n° 13 777</p><p class="awHTMLgenError">Form: Object {BaseClass: "Form", ParentClass: "Vhecr", Class: "Varedit", ClassLibrary:"c:\program files (x86)\abaque\vhdev\appli\suitenot\tract\varedit.vcx", bordercolor: 14737632, datasession: 1, height: 325, icon: "", left: 954, name: "vargen_scx", showtips: .T., top: 277, wbsheight: 1.5, wbslhtmlgen: .T., wbssize: 2, wbswidth: 1.5, wcaliassave: "", wcaliassavenot: "cBible,codepost,notaires,agences,topad_commune ...", wchtml: "", wcid: "vargen_scx", wclanguser: "fr", wcmodalchoiceprop: "wuValue", wcpropsave: "woDatePickerOptions,ActivePage,Icon,Caption,AJ ...", wcpropsavenot: "", wcssclassadd: "", wcuserid: .NULL., wcwindowtheme: "mac
 _os_x", width: 615, wlanonymousallowed: .F., wlhtmlgen: .T., wlinitfirst: .F., wljqueryuidialog: .F., wllan: .F., wlpropsrestore: .F., wlpropssave: .F., wlreleaseforce: .F., wlsubform: .F., wlviews3requery: .F., wlweb: .T., wnreq: -1, wohtmlgen: object, wviewportheight: 918, wviewportwidth: 2540}</p><p class="awHTMLgenError">, Control: Object {BaseClass: "Label", ParentClass: "Vhclbl", Class: "Bslabel", ClassLibrary:"c:\program files (x86)\abaque\vhdev\classes\bslabel.vcx", parent: Pageact1, captioninet: "Absence", caption_: "Absence", name: "Ehf", tabindex: 5, wcid: "vargen_scx-dossier-pageact1-ehf", wcpropsave: "Enabled,Visible,WCLASSLABEL,MousePointer,Capti ...", wcpropsavenot: "", wcssclassadd: "", wlcaptionmerge: .F.}</p><p class="awHTMLgenError">, wcID: "vargen_scx-dossier-pageact1-ehf"</p><p class="awHTMLgenError">, BaseClass: "label"</p><p class="awHTMLgenError">call stack: 01 .processhit (561) > 02 .process (951) > 03 .routerequest (970) > 04 snoprocess.process (2807) > 05 
 wwprocess.process (272) > 06 snoprocess.domevent (4764) > 07 snoprocess.ajaxformrequest (4783) > 08 awajax.formrequest (9560) > 09 awajax.useraction (14344) > 10 awapphost.useraction (3276) > 11 awapphost.useraction_ (3467) > 12 menugen_scx.bsdropdown.clickinet (29) > 13 menugen_scx.bsdropdown.click (15) > 14 menugen_scx.bsdropdown.valid (10) > 15 gestion (117) > 16 ta (19) > 17 vi (8) > 18 wform (1231) > 19 wformnoshow (1305) > 20 awapphost.oform (2237) > 21 awapphost.formlaunch (2612) > 22 awapphost.formlaunch_ (2953) > 23 awapphost.cformhtml (1886) > 24 awhtmlgen.gethtml (1482) > 25 awhtmlgen.gethtml_ (1871) > 26 awhtmlgen.gethtml_cnt (2110) > 27 awhtmlgen.gethtml_cnt_members (2402) > 28 awhtmlgen.gethtml_cnt_members_bs_chtml_col (2584) > 29 awhtmlgen.gethtml_cnt_members_bs_chtml_col_ (2704) > 30 awhtmlgen.gethtml_member (2015) > 31 awhtmlgen.odossier.gethtml (1482) > 32 awhtmlgen.odossier.gethtml_ (1871) > 33 awhtmlgen.odossier.gethtml_cnt (2110) > 34 awhtmlgen.odossier.gethtml_
 cnt_members (2414) > 35 awhtmlgen.odossier.gethtml_member (2015) > 36 awhtmlgen.odossier.opageact1.gethtml (1482) > 37 awhtmlgen.odossier.opageact1.gethtml_ (1871) > 38 awhtmlgen.odossier.opageact1.gethtml_cnt (2191)</p></div>
Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  Vincent H.
  Nov 14, 2020 @ 03:48am

Troubleshooted with:

if .BaseClass == 'Label' and this.BSlHTMLgen && and (NGmember or NGdesc)

awhtml.prg

protected function cStyle_Align && {fr} Règle l'alignement du texte
lparameters ;
  toControl as awTxt of aw.vcx; && [this.oControl] {fr} Contrôle ou classe dont les styles sont à générer
, toClass as awTxt of aw.vcx && [this.oClass] {fr} Classe parent, .null. pour générer tous les styles 

toControl = Iif(Vartype(m.toControl) == 'O', m.toControl, m.this.oControl)
toClass = Iif(Vartype(m.toClass) $ 'XO', m.toClass, m.this.oClass)

WITH m.toControl as awTxt of aw.vcx
	
	LOCAL lcResult
	
	if .BaseClass == 'Label' and this.BSlHTMLgen AND VARTYPE (NGmember) == "L" and (NGmember or NGdesc)

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  Vincent H.
  Nov 14, 2020 @ 04:12am

I forgot to tell you that this is a class in which Refresh_():

IF THISFORM.wBSlHTMLgen
   WITH THIS
      THISFORM.wcScriptJSadd(TEXTMERGE([jQuery('#<<.wcID>>').addClass("label <<.wClassLabel>>");]))
      .Visible = .NOT. EMPTY (.Caption)
   ENDWITH 
ENDIF

wClassLabel is a property (eg: label-default)

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 16, 2020 @ 04:01am

awHTML stores all data regarding BootStrap responsive HTML generation into an alias (this.cBSalias) which is a table in development mode (for later check and/or debugging), and a cursor in production mode.

NGmember is a field in this alias, which is supposed to be current Alias() throughout the generation process (Alias() == this.cBSalias)

If that form (vargen.scx) works in the default data session (the application's data session, where awHTML also works), please check whether some of your .wcHTMLgen() code could either USE an alias in the same work area where this.cBSalias sits or select another alias without restoring afterwards (which in this case should behave the same in dev. and prod. modes)

Logging Alias() and select() just before the instruction in error may help understand what happens:

StrToFile(Textmerge([this.cBSalias: '<<this.cBSalias>>', Alias(): '<<Alias()>>', Select(): <<Select()>>]), 'cBSalias.txt', 1)
  if .BaseClass == 'Label' and this.BSlHTMLgen and (NGmember or NGdesc)
…
Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 16, 2020 @ 05:39am

What else ?

Alias(): 'CDEFUNT', Select(): 40Alias(): 'CDEFUNT', Select(): 40Alias(): 'CDEFUNT', Select(): 40Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'VHCFRMMB_FORM_VHCFRMMB', Select(): 41Alias(): 'CDEFUNT', Select(): 40Alias(): 'CINSTALLE', Select(): 43Alias(): 'CINSTALLE', Select(): 43Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CONNECTSN_SCX_FORM_VHECR', Select(): 41Alias(): 'CINSTALLE', Select(): 43Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_FORM_MENUGEN', Select(): 41Alias(): 'MENUGEN_SCX_FORM_MENUGEN', Select(): 41Alias(): 'MENUGEN_SCX_FORM_MENUGEN', Select(): 41Alias(): 'MENUGEN_SCX_FORM_MENUGEN', Select(): 41Alias(): 'MENUGEN_SCX_FORM_MENUGEN', Select(): 41Alias(): 'MENUGEN_SCX_FORM_MENUGEN', Select(): 41Alias(): 'MENUGEN_SCX_AGENDA_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'MENUGEN_SCX_AGENDA_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_DOSSIERS_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_CHARTS_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_RÉPERTOIRE_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_EMPRUNT_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_ACTES_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_CLIENTS_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_INDICES_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_CARNETADR_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_NÉGOCIATION_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_PVALUE_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_COURRIER_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_CALCULS_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_DOC_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_INFOS_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH1_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'MENUGEN_SCX_AGENDA_ECH1_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'MENUGEN_SCX_AGENDA_ECH1_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'MENUGEN_SCX_AGENDA_ECH1_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH2_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH3_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH4_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH5_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH6_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH7_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH8_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH9_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AGENDA_ECH10_CONTAINER_AGENDA_ECH', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_TACHE_CONTAINER_TACHE', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_DOSSRETARD_CONTAINER_DOSSRETARD', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_PARAMGEN_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_AIDE_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_HOTLINE_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'MENUGEN_SCX_QUITTER_CONTAINER_BOUTON_APPLI_LIB', Select(): 45Alias(): 'CINSTALLE', Select(): 43Alias(): 'CINSTALLE', Select(): 43Alias(): 'VI', Select(): 1Alias(): 'DOSSIER', Select(): 5Alias(): 'DOSSIER', Select(): 5Alias(): 'DOSSIER', Select(): 5Alias(): 'DOSSIER', Select(): 5Alias(): 'DOSSIER', Select(): 5Alias(): '', Select(): 48Alias(): '', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARIABLES', Select(): 21Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_BVOIR_CONTAINER_BOUTON_PNG', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_BFUSION_CONTAINER_BOUTON_PNG', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_BDOSSIER_CONTAINER_BOUTON_PNG', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_BINFOS_CONTAINER_BOUTON_PNG', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEACT1_PAGE_VHCPAG', Select(): 48Alias(): '', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT1_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT1_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT1_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT1_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT2_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT2_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_INTERVENANT2_CONTAINER_INTERVENANT', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS1_PAGE_VHCPAG', Select(): 48Alias(): '', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_ADJOINDREWEB_CONTAINER_ADJOINDREWEB', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_ADJOINDREWEB_CONTAINER_ADJOINDREWEB', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_ADJOINDREWEB_CONTAINER_ADJOINDREWEB', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_ADJOINDREWEB_CONTAINER_ADJOINDREWEB', Select(): 51Alias(): 'VARGEN_SCX_DOSSIER_PAGEDOS2_PAGE_VHCPAG', Select(): 48Alias(): '', Select(): 48Alias(): 'VARGEN_SCX_FORM_VAREDIT', Select(): 45Alias(): 'VARGEN_SCX_FORM_VAREDIT', Select(): 45Alias(): 'VARGEN_SCX_FORM_VAREDIT', Select(): 45Alias(): 'VARGEN_SCX_FORM_VAREDIT', Select(): 45Alias(): 'VARGEN_SCX_FORM_VAREDIT', Select(): 45Alias(): 'VI', Select(): 1
Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 16, 2020 @ 05:52am

Another clarification: my screen comes from a class that contains code in its init()

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 16, 2020 @ 06:05am

If that form (vargen.scx) works in the default data session (the application's data session, where awHTML also works), please check whether some of your .wcHTMLgen() code could either USE an alias in the same work area where this.cBSalias sits or select another alias without restoring afterwards (which in this case should behave the same in dev. and prod. modes)

OK, I found the problem with your explanations:

In Refresh_(), my control calls a function which creates a cursor (but which reestablishes the current alias ())

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 16, 2020 @ 07:48am

In your log, the last Alias() is VI, should be VARGEN_SCX_*

Please see which code does select VI

Note: HTML generation does not run .refresh_()

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 16, 2020 @ 07:59am

Please see which code does select VI

.Pageact1.Refresh()
SELECT 1

1 = "VI": this table is opened when the application is launched

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 16, 2020 @ 10:06am
modify command abDev.prg

&& please update 'abSetsMaintain' class definition as follows:

* ===========================================
define class abSetsMaintain as GA_LIGHTWEIGHT_CLASS of abGA.prg && {fr} Sauve les sets critiques et les restore s'ils ont changé
* ===========================================

hidden aSet[1], nSets, cAlias

*---------------------------------------------------------------------------
protected procedure init
lparameters ;
  tlSetsType; && [.null.] {en} type of SETs - .null.: all, .T.: scoped to the dataSession, .F.: global (not scoped to the dataSession)
, tlProcClass; && [.F.] {en} also save Set("Procedure") & Set("Classlib")

local success as Boolean;
, laSet[1];
, liSet;

this.cAlias = Alias()
this.nSets = aVFPsetsValue(; && see below
	 @m.laSet;
	, Iif(Pcount() > 0, m.tlSetsType, .null.); && [.null.] {en} SETs .T.: scoped to the dataSession, .F.: global, .null.: all
	, m.tlProcClass;
	)

success = m.this.nSets > 0
if m.success

	dimension this.aSet[m.this.nSets, Alen(m.laSet, 2)]
	acopy(m.laSet, this.aSet)
endif

return m.success
endproc

*---------------------------------------------------------------------------
procedure set as Boolean && {en} perform a SETting
lparameters lcSet, lnSet, luSet

&& {fr} Public car appelé par modify command awPublic > awSets.Set()
local aa[1], liSet

do case

case .F.;
or empty(m.lnSet) and (.F.;
 or .T.;
   and vartype(m.luSet) == 'C';
   and (.F.;
	  or InList(m.luSet, 'ON', 'OFF', 'AUTOMATIC');
	  or InList(m.lcSet, 'DATE', 'CLOCK');
	  or m.lcSet == 'CURRENCY' and InList(m.luSet, 'RIGHT', 'LEFT');
	  );
 or InList(m.lcSet, 'ENGINEBEHAVIOR', 'REPORTBEHAVIOR') and varSet(@m.luSet, Cast(m.luSet as M));
 );
or m.lnSet = 2 and m.lcSet == 'FIELDS'
	set &lcSet &luSet

case m.lcSet == 'TEXTMERGE'
	do case
	case m.lnSet = 1 && {fr} cLeftDelimiter and cRightDelimiter
		luSet = '"' + stuffc(m.luSet, len(m.luSet)/2 + 1, 0, '","') + '"'
		set textmerge delimiters to &luSet
	case m.lnSet = 2 and Empty(m.luSet) && {fr} cFileName
		set textmerge to
	case m.lnSet = 2 && {fr} cFileName
		set textmerge to (m.luSet)
	case m.lnSet = 3 && {fr} SHOW/NOSHOW
		set textmerge to &luSet
	endcase

case inlist(m.lcSet, 'CENTURY', 'MOUSE', 'REFRESH', 'UDFPARMS') && 2016-08-18 thn -- {en} , 'FIELDS', 'NOCPTRANS' removed http://support.west-wind.com/Thread4PC0SHQLT.wwt?rl=1#4PH0Q7H4B
	luSet = Cast(m.luSet as M)
	set &lcSet to &luSet

case inlist(m.lcSet, 'PROCEDURE', 'CLASSLIB') && 2016-08-18 thn -- {en} added
	SetProcClassRestore(m.luSet, m.lcSet == 'CLASSLIB') && modify command abDev - see below

case Empty(m.luSet) and Vartype(m.luSet) == 'C'
	set &lcSet to

case m.lcSet == 'LIBRARY'
	set library to
	for liSet = 1 to ALines(aa, m.luSet, 5, ',')
		set library to (m.aa[m.liSet]) additive
	endfor

otherwise
	try
		set &lcSet to (m.luSet)
	catch
	endtry

endcase
endproc

*---------------------------------------------------------------------------
protected procedure destroy

local liSet, lcSet, luSet, lnSet

for liSet = 1 to this.nSets

	if !this.aSet[m.liSet, 3] == uVFPsetValue(this.aSet[m.liSet, 1], this.aSet[m.liSet, 2]); && {en} restore only if different
		or .F. && .T. tests all restores

		this.set(;
			this.aSet[m.liSet, 1];
		, this.aSet[m.liSet, 2];
		, this.aSet[m.liSet, 3];
		)

	endif
endfor
if Used(m.this.cAlias)
	select (m.this.cAlias)
endif
endproc

* ===========================================
enddefine && {fr} CLASS abSetsMaintain
* ===========================================
Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 16, 2020 @ 11:47pm

Thanks Thierry, it works perfectly.
A screenshot to illustrate all the power and beauty of FiC ...

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Gilles Lajot-Sarthou
  Vincent H.
  Nov 17, 2020 @ 07:30am

Hi Vincent

Remarkable the precise positioning of objects using foxincloud and bootstrap!

Personally, I have problems with the exact management of dimensions, positions of objects in the form in bootstrap mode.

Nice work, Vincent

Cordialement,

Gilles

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  Gilles Lajot-Sarthou
  Nov 17, 2020 @ 09:40am

Merci Gilles !
Bien à toi,
Vincent

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 23, 2020 @ 02:31am

Sorry Thierry, but the error persists when the screen is first launched

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 23, 2020 @ 09:36am

Earlier you wrote it works perfectly. What has changed in between? Is it exactly the same error? Can you provide some debugging details?

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 23, 2020 @ 10:22am

Yes, I don't have a problem with localhost and believed a bad refresh on the live site, the error only occurring at the initial loading of the screen

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 23, 2020 @ 12:31pm

The problem has been on the production app since the beginning…
when you wrote it works perfectly, did you test on the prod server?

Gravatar is a globally recognized avatar based on your email address. re: NGMEMBER
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 23, 2020 @ 11:46pm

Yes, and I believed that the failure of the 1st time was due to a bad refresh, since after that it worked well

© 1996-2020