Switch to another application in Netgem

Posted By : Raman Joshi | 31-Mar-2015

In this blog we see that how we can switch from one application to another application in Netgem. You can get the list of applications running in the STB using NGM.application.typeListGet().

 var list = NGM.application.typeListGet();  
 NGM.dump(list); 
 

Use application type and open method.
Second parameter is an object that defines options and may depend on type.
For example, app.html template uses url in options to determine application source (here we start the application again !)

 
if (type == "app.html") {  
    return NGM.application.open(type, {'title': 'My application', "url": location.url});  
}  
  
if(type === "setup.standalone") {  
    //Random setting panel displayed for tutorial purpose  
    type += "?menu=setupSimpleFormatTV&nozap=1";  
}  
  
return NGM.application.open(type, {'title': 'My application'});  

For this example you can switch from one application to another by writing single one application.

Thanks
Raman Joshi
Email - [email protected]

About Author

Author Image
Raman Joshi

Raman is a bright web app developer with experience in Java , Groovy and Grails frameworks

Request for Proposal

Name is required

Comment is required

Sending message..