Situation: You have an app that's already registered for BUI, but not enabled for the DWC. You then edit it in VSCode and try to launch it in DWC. You end up with this error:
!ERROR=60 (Cannot invoke "String.length()" because "this.input" is null)
[44] BBjAPI().getThinClient().browse(url!)
That's because the app was enabled for BUI, but not for the DWC and so the DWC URL is null:
To prevent this error, the web.bbj launcher program should explicitly ensure that the app is enabled for DWC before launching it in DWC. This can be accomplished by adding the last line of code below, just before the app is committed with the updated parameters:
app!.setString(app!.NAME, name!)
app!.setString(app!.PROGRAM, programme!)
app!.setString(app!.WORKING_DIRECTORY , wd!)
if (isDWC!) then app!.setBoolean(app!.DWC_ENABLED, 1)
When that line is added to the web.bbj launcher program, then the error 60 is avoided.
Situation: You have an app that's already registered for BUI, but not enabled for the DWC. You then edit it in VSCode and try to launch it in DWC. You end up with this error:
That's because the app was enabled for BUI, but not for the DWC and so the DWC URL is null:
To prevent this error, the web.bbj launcher program should explicitly ensure that the app is enabled for DWC before launching it in DWC. This can be accomplished by adding the last line of code below, just before the app is committed with the updated parameters:
When that line is added to the web.bbj launcher program, then the error 60 is avoided.