Extends Table AFter Creation

sandeepd14
Kilo Explorer

Can we Extend our custom table after creation ,Let say if I forgot to make it inherit from any table [extends table ],

10 REPLIES 10

marcguy
ServiceNow Employee
ServiceNow Employee

Pre Calgary Way:


var cr = new Packages.com.glide.db.table.TableParentChange('cmdb_ci_lb');


cr.change('cmdb_ci_server', 'cmdb_ci_netgear');   //move ci_lb to extend netgear as opposed to server



Post Calgary as per wiki article:


http://wiki.servicenow.com/index.php?title=Packages_Call_Replacement_Script_Objects



GlideTableMover Packages.com.glide.db.auxiliary.TableMover
GlideTableParentChange Packages.com.glide.db.table.TableParentChange

Hi,


Thanks for answering,but can you please tell me how you are checking list of methods available in package class.


Thaks


marcguy
ServiceNow Employee
ServiceNow Employee

A lot of them are on the wiki, in that list on that wiki page in fact. if you take some of those and search the wiki and community sites, you can see the use cases when they are used.



thanks,


Marc


Michael Kaufman
Giga Guru

I wrote an article about this a few months back that can help.



Extend an existing table — ServiceNow ELITE.com



Thanks,


Mike