{"_id":"59c4ef512a1c380010cea925","project":"54523fec04160008005b1cc8","version":{"_id":"57b557f0d3092517007cfac3","project":"54523fec04160008005b1cc8","__v":2,"createdAt":"2016-08-18T06:38:40.018Z","releaseDate":"2016-08-18T06:38:40.018Z","categories":["57b557f0d3092517007cfac4","57b557f0d3092517007cfac5","59c4d73c5237e3003c4532c3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"59c4d73c5237e3003c4532c3","project":"54523fec04160008005b1cc8","version":"57b557f0d3092517007cfac3","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-22T09:26:20.780Z","from_sync":false,"order":9999,"slug":"cloud-app-javascript-api","title":"Cloud App JavaScript API"},"user":"54523f0604160008005b1cc0","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-22T11:09:05.930Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"File is opened for editing using `rollAppCloud.launch()`.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"rollAppCloud.launch(\\\"localc\\\", {userId: \\\"1a2b3c4d5e6f\\\"});\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\nWith this call application will open in a separate window. User will then be able to interact with the applications and use all of its features.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"To prevent pop-up blocker from interfering with application launch this method has to be called from an event handler for click or key press.\\n\\nMore about pop-up blocker [from Mozilla developers][0].\\n\\n[0]: https://support.mozilla.org/en-US/kb/pop-blocker-settings-exceptions-troubleshooting\",\n  \"title\": \"Pop-up Blocker\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Parameters\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"appAlias\",\n    \"1-0\": \"options\\n*optional*\",\n    \"2-0\": \"onError\\n*optional*\",\n    \"3-0\": \"onSuccess\\n*optional*\",\n    \"0-1\": \"Alias of the application to be launched. The alias also identifies specific build, version or configuration of the application.\",\n    \"1-1\": \"Optional set of additional options for launching the application.\",\n    \"2-1\": \"Called when attempt to the application failed for any reason.\",\n    \"3-1\": \"Called after the app was launched successfully.\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nSupported options are following:\n[block:parameters]\n{\n  \"data\": {\n    \"0-1\": \"User ID is used to load preserved application settings and to route launch request to the instance of the application, which is already running for this user.\",\n    \"h-1\": \"Description\",\n    \"h-0\": \"Option\",\n    \"0-0\": \"userId\\n*optional*\",\n    \"1-1\": \"A string that is appended to configured application launch command as additional command line parameters.\",\n    \"1-0\": \"commandLine\\n*optional*\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]","excerpt":"","slug":"cloudapp-js-launch","type":"fn","title":"launch(appAlias, options, onError, onSuccess)"}

launch(appAlias, options, onError, onSuccess)


File is opened for editing using `rollAppCloud.launch()`. [block:code] { "codes": [ { "code": "rollAppCloud.launch(\"localc\", {userId: \"1a2b3c4d5e6f\"});", "language": "javascript" } ] } [/block] With this call application will open in a separate window. User will then be able to interact with the applications and use all of its features. [block:callout] { "type": "warning", "body": "To prevent pop-up blocker from interfering with application launch this method has to be called from an event handler for click or key press.\n\nMore about pop-up blocker [from Mozilla developers][0].\n\n[0]: https://support.mozilla.org/en-US/kb/pop-blocker-settings-exceptions-troubleshooting", "title": "Pop-up Blocker" } [/block] [block:api-header] { "type": "basic", "title": "Parameters" } [/block] [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "0-0": "appAlias", "1-0": "options\n*optional*", "2-0": "onError\n*optional*", "3-0": "onSuccess\n*optional*", "0-1": "Alias of the application to be launched. The alias also identifies specific build, version or configuration of the application.", "1-1": "Optional set of additional options for launching the application.", "2-1": "Called when attempt to the application failed for any reason.", "3-1": "Called after the app was launched successfully." }, "cols": 2, "rows": 4 } [/block] Supported options are following: [block:parameters] { "data": { "0-1": "User ID is used to load preserved application settings and to route launch request to the instance of the application, which is already running for this user.", "h-1": "Description", "h-0": "Option", "0-0": "userId\n*optional*", "1-1": "A string that is appended to configured application launch command as additional command line parameters.", "1-0": "commandLine\n*optional*" }, "cols": 2, "rows": 2 } [/block]