GetDefaultViewport method: Utils class
Syntax
GetDefaultViewport()
Description
Use the GetDefaultViewport method to return the default viewport settings from the system for this device and form factor.
Note:
The default viewport settings are those recommended by Oracle for each device and form factor.
Parameters
None
Returns
A String value.
Example
Local PT_PAGE_UTILS:Utils &oUtils = create PT_PAGE_UTILS:Utils();
Local string &sDefViewport = &oUtils.GetDefaultViewport();
If (find("height",&sDefViewport) < 1) Then
&oUtils.SetCustomViewport(&sDefViewport | ",height=device-height");
End-If;