Unable to create a new Tables got err while submitting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 11:20 AM
Hello there,
I'm trying to create a new Table in my ServiceNow PDI but after entering all the required fields when I'm trying to submit/save. I received an err message on the page stating -
onSubmit script error: TypeError: widget.getAttribute is not a function:
function(){
return GwtListEditor._editListOnSubmitWrapper(listID);
}
I've checked the OOB Client Scripts of sys_db_object table for onSubmit but didn't found anything which should be related to this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 02:50 PM
Hi @raishiveshk
why would you create a table by a script?
Also, onSubmit is client script, isn't it? It doesn't seem right...
Rather navigate to: sys_db_object.list (it stores all the tables), select existing and extend it or create a new one.
Alternatively, you can create a new app in the Studio and new app means a new table as well.
Please, let me know what do you think about this
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 09:31 PM
Hello @GlideFather
Thanks for your time.
But, I think you misjudged my question or may be I didn't explained clearly.
I'm not trying to create a new table from script, I'm trying it from sys_db_object.list only and after entering the required details like Name, Extends table, etc when I'm trying to submit/save the record I got the mentioned error above.
I mentioned on submit Client Script in my statement because I had checked if any onSubmit Client Script stopping me to create the new Table from sys_db_object.list but didn't find anything appropriate.
By the way, I know we can create from Studio but I wants to know what's causing an error from sys_db_object.list table.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 06:28 AM
Aha @raishiveshk thank you very much for clarification.
In that case it is strange that you couldn't create a table via sys_db_object.list
Can you please try it again? Was the name unique? It wouldn't allow to create, I guess.
Then scope maybe...?
If you are ok, please what was the Table Name and Label? to retry it, and was it custom scope or global?
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 01:10 PM
Hello @GlideFather
Please have a look at the snapshot attached from my PDI, where i'm trying to create a new Table and now answering your questions - Yes, the name is unique and I'm trying this in Global only