FoxInCloud
Executing wViewParmSet()
Gravatar is a globally recognized avatar based on your email address. Executing wViewParmSet()
  Paul
  All
  Jun 3, 2019 @ 10:04pm

Hi,

I have just upgraded to FoxInCloud-V2.28.1-beta.9-Full-en and get this error when executing thisform.wViewParmSet() : "View xxx can't be found or parameter yyy is invalid"

This is because awcolview.wParmSet() requires that the view already be open before this method is called.
I generally call thisform.wViewParmSet() before opening a view and I have never received this error in previous versions of FiC - is this a new requirement that the call be made afterwards instead?

Thanks
Paul

Gravatar is a globally recognized avatar based on your email address. re: Executing wViewParmSet()
  FoxInCloud Support - Thierry N.
  Paul
  Jun 4, 2019 @ 02:05am

it's just an assert that executes in full version only (set asserts on)

As a rule of thumb, you need to open all views nodata in or before thisForm.Load(), and call thisForm.wViewParmSet() in form.Init() (eg. based on parameter passed in wForm*()) and subsequent user events -- nothing more than the regular way of addressing data binding in VFP.

Gravatar is a globally recognized avatar based on your email address. re: Executing wViewParmSet()
  Paul
  FoxInCloud Support - Thierry N.
  Jun 4, 2019 @ 02:30pm

Actually, it's not an assert; it is the result of used() returning .F.

luResult = .T.;
 AND Vartype(m.cView) == 'C';
	 AND Used(m.cView);
	 AND lView(m.cView);
 AND Vartype(m.cParm) == 'C';
	 AND NOT Empty(m.cParm);
 OR cResultAdd(...  

Has this changed since earlier versions of FiC?
I can move my code around to suit this coding pattern, but personally I don't see any harm in calling this before opening the view.

© 1996-2019