GlideDBObjectManager.getTable in Scoped App
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2018 04:39 PM
Hi,
We have a custom scoped widget for Service Portal that is also reading all the related lists to show them as additional tabs.
This line that is giving an error message is: data.tableHierarchy = GlideDBObjectManager.getTables(data.table).toArray().join();
We are trying to replace with: getRelatedTables
But we are getting this error: Function getRelatedTables is not allowed in scope x…
Would you be able to provide a method that can be used in a scoped app for Service Portal?
Thank you.
Karina
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 10:49 AM
var table = new GlideTableHierarchy("cmdb_ci_server");
gs.info(table.getBase())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2019 03:29 AM
data.tableHierarchy = new GlideTableHierarchy(data.table).getTables();