Override parent business rule(s)

Greg42
Mega Guru

Hi All,

I have extended the alm_asset table as I will need most but not all of the functionality from the parent table. I would like to change the behaviour of some of the business rules slightly and am wondering if it is possible to override it on a child table. I am also thinking about excluding my extended table on parent's business rule condition I want to change and add new one(s) on my child table - but overriding seems like a better way if possible.

Is overriding business rules on tables possible in SNow or my second idea is the way to go?

Not extending and moving functionalities I want maybe? Seems like too much of unnecessary work.

Maybe you guys have other ways for achieving it?

What would be the best way to do it?

Any hints or guidance will be much appreciated.

Cheers

Greg

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

You can write the business rule on the parent table and script it like below to apply it to specific table.



if(current.sys_class_name='tablename1')


{


code


}



if(current.sys_class_name='tablename2')


{


code


}


View solution in original post

8 REPLIES 8

Thank you guys. I think I will have to go for the classic then with copy, change and deactivate just to keep the original for the reference of what has been changed.



Cheers


yadavsatya
Tera Contributor

Hi,

I have one table say employee and this table is extended from Task table. when i open Employee table records , task table Business rule also applies. i want to restrict Task table business rule to be applied to Employee table, is that possible?

 

Regards

-Satya

Hi Satya,

By this "i want to restrict Task table business rule to be applied to Employee table, is that possible?" do you mean: "i want to restrict Task table business rule to NOT be applied to Employee table, is that possible?" as what you asked is basically how it works.
If you could clarify.


Regards

Greg

yadavsatya
Tera Contributor

Hi Greg, 

Thanks for quick reply.

My question here is suppose there is  a Business Rule say BR1 (which sets default value  for Description field )on TableA. Now i have created my new custom table say tableB  which is extending from tableA and i want that Description field should be empty when tableB form is loaded, so how can i achieve this?

 

Regards

-Satya