How to remove _super warnings?

When Tuan first set us up he showed us how to create a base form and how to access methods in that base form.

So in the base.js we have:

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} bFirstShow
 * @param {Object} oEvent
 *
 * @protected
 *
 * @properties={typeid:24,uuid:"13E99E18-1F08-4E93-840E-2CC758C06B77"}
 * @AllowToRunInFind
 */
function onShow( bFirstShow, oEvent )
{

And in forms that inherit from base we have things like:

/**
 * @properties={typeid:24,uuid:"459A08C3-84AD-4233-9098-8AA55D6C42F2"}
 * @override
 */
function onShow( bFirstShow, oEvent )
{
  _super.onShow( bFirstShow, oEvent );

But this leads to us getting Servoy warnings for every form that inherits from base and there are hundereds of them. Like:

Description	Resource	Path	Location	Type
Reference to undeclared variable or property _super	_100_Company_Details_User.js	/qfi/forms	line 440	JavaScript Problem

Is there a way to avoid this?

thanks,

Terry

Your code seems to be correct.
Are you sure the form with the warning still extends (inherits from) the base-form? This warning should only happen for forms that don’t extend a super form. Check the “extendsForm” property of the form.

Thanks Joas.

Yes, all of the forms reporting this warning have an “extendsForm” value of “base [quantech_base]”.
So “base” is in module “quantech_base” and that module is used by other modules in the solution.

Terry

Can you check the baseform, if there are errors in the code? like missing brackets?

This could lead to the parser not being able to find your functions in the baseform.

Look for “}” expected or error reading… in the warnings for the baseform.

I may have fixed it by changing:

/**
* Callback method for when form is shown.
*
* @param {Boolean} bFirstShow
* @param {Object} oEvent
*
* @protected
*
* @properties={typeid:24,uuid:"13E99E18-1F08-4E93-840E-2CC758C06B77"}
* @AllowToRunInFind
*/
function onShow( bFirstShow, oEvent )

to

/**
* Callback method for when form is shown.
*
* @param {Boolean} bFirstShow
* @param {JSEvent} oEvent
*
* @protected
*
* @properties={typeid:24,uuid:"13E99E18-1F08-4E93-840E-2CC758C06B77"}
* @AllowToRunInFind
*/
function onShow( bFirstShow, oEvent )

Does that seem possible?

thanks,

Terry