- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2020 10:46 AM
Looking to get table name at the current list with a UI Action List Button.
Is there an OOB method to retrieve a table name of the current list you're looking at?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 05:50 AM
Hi Justin,
Try this,
g_list.getTableName(); OR current.getTableName();
Regards,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 05:28 AM
Madhuri,
Thank you for replying. However, I'm wondering if there's a way to retrieve table name in a client script so an alert can occur with that table name.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 05:31 AM
current.getTableName();
// or for client script something like below.
g_form.getTableName();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 05:41 AM
If I'm in list view and looking at a list of records, I don't believe the g_form object is available unless I'm looking at an individual record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 06:41 AM
in that case "g_list" is your savior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 05:50 AM
Hi Justin,
Try this,
g_list.getTableName(); OR current.getTableName();
Regards,
Sagar Pagar