Hi
I am trying to access my views dynamically, as opposed to hardcoded in my App code. Is this possible?
So far, this is all I could think of.
function getAppURI(myobj) {
//1. Receiving
if (myobj.uri_scheme == 'link.receiving_main') {
link.receivng_main();
}
//2 Shipping
if (myobj.uri_scheme == 'link.shipping_main') {
link.shipping_main();
}
//3. Driver
if (myobj.uri_scheme == 'link.driver_main') {
link.driver_main();
}
//4. Maintenance
if (myobj.uri_scheme == 'link.maintenance_main') {
link.maintenance_main();
}
}