Session timeout - invalid data

If a user is logged into a deployed application and the session times out while they are away. When they come back and click on a button they see an ugly popup “Invalid Data”. Not very helpful and not user friendly.

How can this instead be re-directed to the login window?

check this macro
[TABLE=“cellpadding: 0, cellspacing: 0”]
[TR]
[TD]sc_apl_default(‘application’, ‘type’);[/TD]
[/TR]
[TR]
[TD] [TABLE]
[TR]
[TD]This macro allows that the user defines in your initial application what will happen when the application lost the session.

					The macro has the following parameters:

Apl: Here it is necessary to inform which application the macro will redirect after lost the session.

Type: Here we will inform the redirecting type that will occur. There are two types:

  • [B]R[/B]: The application will only redirect to the initial application.
  • [B]M[/B]: Will be shown a message before the redirecting.
					Example: In a login application defined as the initial application, we can define that this application will redirect to himself. 

sc_apl_default(“app_login”,“R”)[/TD]
[/TR]
[/TABLE]

		Macro Scope 			[TABLE="cellpadding: 0, cellspacing: 0"]

[TR]
[TD]calendar application[/TD]
[TD]chart application[/TD]
[TD]Grid application[/TD]
[TD]Search application[/TD]
[TD]Form application[/TD]
[TD]Control Form[/TD]
[TD]ReportPDF application[/TD]
[/TR]
[TR]
[TD=“width: 120px”]onCalendarScriptInit
onScriptInit[/TD]
[TD=“width: 120px”]onScriptInit[/TD]
[TD=“width: 120px”]onScriptInit[/TD]
[TD=“width: 120px”]onFilterInit[/TD]
[TD=“width: 120px”]onScriptInit[/TD]
[TD=“width: 120px”]onScriptInit[/TD]
[TD=“width: 120px”]onScriptInit[/TD]
[/TR]
[/TABLE]
[/TD]
[/TR]
[/TABLE]

Thanks. The english can be confusing however. So this macro is set within the login application and then applies to the whole session?

yes thats correct

check https://www.youtube.com/watch?v=U6zDTsl7hJc&t=3525s

explanation starts around 57min30sec

Thanks. I’ve never watched a single video as I just don’t have that much time on my hands.

Desafortunadamente esta macro no sirve en su totalidad, yo tengo problemas con la inactividad de sesiones y esta macro no soluciona el problema.