Question

Unable to save a Skin rule with inheritance from

hi,

I am trying to create a new Skin and in the inheritance tab I am giving the organization skin , but while saving the skin its throwing the below errors. But when I save as Organizationl skin into my layer I don't get any errors. Appreciate if someone can let me know if you have faced the similar issue and found a root cause.

Attaching the screen shot as well.

This record has

11

Errors

IN

11

places

pyName—

** Error: Invalid style for 'A': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Outline': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Standard': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'D': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Sub Hidden': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'C': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Sub': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'B': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Standard Hidden': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Custom': this name is reserved for a legacy header style

pyName—

** Error: Invalid style for 'Simple': this name is reserved for a legacy header style

-- Suman

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
April 24, 2017 - 11:34am

It seems that you have some legacy styles enabled in your skin - these styles were used in old layouts and have been deprecated. You should not have them in your skin.

in your skin that cannot save, open the 'containers' component and check if the 11 formats listed above are visible in the list of formats. Try to uncheck the 'show legacy styles' checkbox if checked. If it does not help, try to also unchecked the 'show legacy styles' in your parent skin. 

 

Comments

Keep up to date on this post and subscribe to comments

April 24, 2017 - 8:28am

Hello Suman, 

Thanks for posting your query in PSC :)

As per the skin inheritance, I assume that you have created a new dependent skin. Refer https://pdn.pega.com/sites/pdn.pega.com/files/help_v722/procomhelpmain.htm#ui/ui-skin/skin-inheritance/ui-skin-inheritance-con.htm of Pega 7.2.2.

You are facing reported error while adding a parent skin(i.e. step-3 of https://pdn.pega.com/sites/pdn.pega.com/files/help_v722/procomhelpmain.htm#ui/ui-skin/skin-inheritance/ui-adding-parent-skin-tsk.htm). Is my understanding correct? Have you check 'inherit base settings from the parent' under Base setting tab of the skin?

Does techtalk on skin inheritance help at your end? 

Regards,

Rincy

April 24, 2017 - 9:21am
Response to RINCYRAPPAI_GCS

I did select the  'inherit base settings from the parent'  option in the skin rule

 

--Suman

Pega
April 24, 2017 - 10:24am
Response to Suman Palukuru

Hi Suman,

Can you send the screen shot of the css rule or the format which you want to modify in the current skin . Also screenshots these rules in the base layers.

April 24, 2017 - 10:39am
Response to sahuv1

I am not trying to modify any CSS or format for now. I am trying to create a new skin with the parent skin in the inheritance tab and getting the errors.

-- Suman

April 24, 2017 - 11:34am
Response to Suman Palukuru

It seems that you have some legacy styles enabled in your skin - these styles were used in old layouts and have been deprecated. You should not have them in your skin.

in your skin that cannot save, open the 'containers' component and check if the 11 formats listed above are visible in the list of formats. Try to uncheck the 'show legacy styles' checkbox if checked. If it does not help, try to also unchecked the 'show legacy styles' in your parent skin. 

 

April 24, 2017 - 12:31pm
Response to RichardMarsot

Thanks Rich. Issue got resolved after unchecking ' Include Pega 6 style formats"

--Suman

April 24, 2017 - 9:39pm
Response to Suman Palukuru

Thanks Suman for sharing the resolution. :)

May 8, 2017 - 8:24am

Can anyone tell me.How can I make a skin rule inherit from multiple skin rules in Pega 7.2.2?

May 8, 2017 - 6:24pm

Why are we not allowed to inherit from more than one skin rule?

 

May 9, 2017 - 12:35am
Response to MadhviS3

The skin supports multi-level inheritance but not multiple inheritance. Multilevel inheritance refers to a mechanism in OO technology where one can inherit from a derived class, thereby making this derived class the base class for the new class. As you can see in below flow diagram skin C inherits from skin B and B in inherits from skin A

This limitation was done to avoid having circular inheritance and avoid the multiple inheritance diamond problem -see https://en.wikipedia.org/wiki/Multiple_inheritance . Java for example only supports multi-level inheritance and not multiple inheritance - http://beginnersbook.com/2013/05/java-inheritance-types/

May 9, 2017 - 3:24pm
Response to RichardMarsot

Thank you so much Richard.