FormInDialogue intermittent issue

Ok, will do that and keep You informed.

Thanks again for (evening) support !!

Hi Hans,

Servoy start using a newer version of javascript and therefore the script was changed a bit, one '' more. The question mark needs to be escaped in the regex. I did send you the new version of the frameworks but here you have it again.

function svy_utl_queryParser(_query, _args) {

	if (_args == null) {
		return query;
	}

	if (_args.length != utils.stringPatternCount(_query, "?")) {
		return "-ERROR- args: " + _args.length + "; query: " + utils.stringPatternCount(_query, "?") + ";";
	}

	var _val;

	for (var i = 0; i < _args.length; i++) {
		switch (typeof _args[i]) {
		case "string":
			_val = "'" + _args[i] + "'";
			break;
		case "object": //date
			_val = "'" + utils.dateFormat(_args[i], "yyyy-MM-dd HH:mm:ss:SSS") + "'";
			break;
		default: //number, integer
			_val = _args[i];
		}
		_query = _query.replace(/\?{1}/, _val);
	}

	return _query;
}

Thanks Sanneke,

Was this new version of javascript introduced in 5.0 or 5.1 or ??

Is there a list of changed functionallity, so we can check our own code ??

The issue started after we upgraded from 4.x to 5.1.4

Regards,

Hi Hans,

In 5.0, this was the only change because of the javascript.