Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Unable to create a new Tables got err while submitting

raishiveshk
Tera Contributor

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. 

7 REPLIES 7

GlideFather
Tera Patron

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

_____
Answers generated by GlideFather. Check for accuracy.

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

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?

 

_____
Answers generated by GlideFather. Check for accuracy.

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