FoxInCloud
Error after upgrading to beta.4
Gravatar is a globally recognized avatar based on your email address. Error after upgrading to beta.4
  Paul
  All
  Nov 6, 2019 @ 11:58pm

Hi,

Get this error when navigating to the first (login) form :

This request cannot be served at the moment due to technical difficulties.
Error Number: 1732
Error: Data type is invalid for this property.
Running Method: process_ante
Current Code: _Screen.Width = this.oSession.getSessionVar('_ScreenWidth') && overridden by next AJAX request
Current Code Line: 654

Yes, I do have some code in process_ante to resize master forms to the browser dimensions.
This used to work, but I see that this.oSession.getSessionVar('_ScreenWidth') now returns a string ("1800") rather than a number (1800).

PROCEDURE process_ante
if !empty(this.oSession.getSessionVar('_ScreenWidth'))
  _Screen.Width = this.oSession.getSessionVar('_ScreenWidth') && overridden by next AJAX request
  _Screen.Height = this.oSession.getSessionVar('_ScreenHeight')
Endif
Return

Paul

Gravatar is a globally recognized avatar based on your email address. re: Error after upgrading to beta.4
  FoxInCloud Support - Thierry N.
  Paul
  Nov 7, 2019 @ 05:17am

Double checked the awSession.getSessionVar() signature, you're supposed to provide the result vartype as 3rd parameter.

You can just use Cast(this.oSession.getSessionVar('_Screen*') as I)

Gravatar is a globally recognized avatar based on your email address. re: Error after upgrading to beta.4
  Paul
  FoxInCloud Support - Thierry N.
  Nov 7, 2019 @ 12:44pm

Ok, will do.

Paul

© 1996-2024