FoxInCloud
combo init
Gravatar is a globally recognized avatar based on your email address. combo init
  Tuvia Vinitsky
  All
  Mar 2, 2017 @ 08:51am

Congratulations on the new release!

In beta 10, if I have this in a combo .Init

lparameters fake_parameter_reminder_return_dodefault_after_your_code_you_can_remove_me

IF thisform.wlHTMLgen
	RETURN
ENDIF

this.RowSource = ''
SELECT cdescrip, nreportnum FROM REPORTS1 WHERE lactive = .t. INTO ARRAY this.waRowSource ORDER BY nreportnum NOCONSOLE 
this.RowSource = 'this.waRowSource'

RETURN DODEFAULT()

I have a problem: the array inits one time and then never again. So let's say user 2 comes along, or a browser refresh, and in between the data in the reports dnbf has changed, the combo will not re-init with those new values.

Update: It seems the problem is not the .Init per se, but that FiC is not refreshing the dbf contents when the dbf records were modified outside of FiC. IOW if I change record 2 column 1 to be 'HELLO', if I do that from within the app I am fine. if I do it outside the app, I cannot get FiC to refresh and see the change.

Gravatar is a globally recognized avatar based on your email address. re: combo init
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Mar 2, 2017 @ 08:57am

Yes, form.Members.Init() execute only once at initial form instantiation

In this case you'd move the code to .refresh_()

Gravatar is a globally recognized avatar based on your email address. re: combo init
  Tuvia Vinitsky
  FoxInCloud Support - Thierry N.
  Mar 2, 2017 @ 10:04am

See Update above. Some times even reloading server is not enough to get FiC to see changed dbf's new data.

Gravatar is a globally recognized avatar based on your email address. re: combo init
  Tuvia Vinitsky
  Tuvia Vinitsky
  Mar 2, 2017 @ 10:13am

I'm havng some difficulty isolating exactly under what circumstances this happens. Any ideas on debugging ?

Gravatar is a globally recognized avatar based on your email address. re: combo init
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Mar 2, 2017 @ 02:06pm

not sure what you're asking for… did you move the code to .refresh_()?

© 1996-2017