UpviseJS : LeftPane and Tablet / Web support
If you want to target Web interface or Tablet, you msust implement a global function called leftpane() function called by the framework.
The last statement of this function implementation must be
List.show("leftpane")
function main() {
if (WEB()) {
// This executes for Web Browser
ist.addItemTitle("Web Home Page");
} else {
// This executes for phone and tablet
List.addItemTitle("Mobile Home Page");
}
List.show();
}
function leftpane() {
if (WEB()) {
// Web Browser
List.addItem("Home", "main()");
....
} else {
// Mobile tablets
List.addItem("Home", "main()");
.....
}
List.show("leftpane");
}