Background scripts are always run in global scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2020 10:00 PM
Experience of running background scripts is not the same in VS Code vs Instance (Scripts - Background)
While VS Code status bar shows the current scope, Background Script always runs in rhino.global scope, making scoped scripts untestable. For example, I cannot use deleteMultiple on a scoped table, obviously.
Is scope even supported?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 11:22 PM
What is the scope of the application (in VSCode) where you are trying to run ‘Run Background Script - Current’?
I’m guessing it’s global. Hence the scripts are running in rhino.global space.
Please let us know if it is not the case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 12:19 PM
I'm opening an application and only then I can run a background script. The application name is visible in the status bar on bottom right. That means I'm in the scope of that application, right? Now, whether I use
- Run Background Script - Current (OR)
- Run Background Script - Global
my script is run only in global scope.
Is there any other way to check the scope?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2020 07:48 PM
In platform, open sys_app.list, and look for the scope against the name of the application.
If the scope is non global, can you paste / attach the sample script you are running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2020 12:58 AM
I'm having some trouble authenticating PDI from VSCode. Will get back later.