Desktop productivity for business analysts and programmers

EG Style Manager and user-defined style templates

Accepted Solution Solved
Reply
Trusted Advisor
Posts: 1,213
Accepted Solution

EG Style Manager and user-defined style templates

Okay, I'm flummoxed by the EG style manager (SAS 9.3 on Linux, EG 4.3).

I used proc template to make a custom style MyHTML and save it in work.templat, because it's only for this session.

I can use this style fine in EG when I write my own ODS sandwich : ods html file=... style=MyHTML etc

I have HTML results turned on, so thought that to get my EG HTML output to use MyStyle, I would use the Style Manager.  But can't see how to add this style.

Is there an easy way for me to add a user-defined style template to the styles accessible to Style Manager?

Or is there a way via code to just say "Hey EG, when you make HTML output, please use this style" ?

If I add:
  ODS HTML (id=EGHTML) style=MyStyle ;

before my a code block it works, but I would have to add that for every submit block to over-ride the ODS statement generated by EG wrapper.

Maybe I need to create a CSS file and then import that, per:

http://blogs.sas.com/content/sasdummy/2011/08/02/how-to-add-htmlblue-to-your-list-of-styles-in-sas-e...

but while that makes sense for a permanent style template, doesn't make sense for a temporary one.

I guess the real issue is that EG isn't actually using the style templates from my ODS path, it uses these CSS definitions???

Or perhaps this approach makes more sense for use by a programmer (particularly since the template is in the work library):

http://support.sas.com/resources/papers/proceedings13/408-2013.pdf


Thanks,

--Q.


Accepted Solutions
Solution
‎08-13-2014 03:04 PM
Community Manager
Posts: 2,693

Re: EG Style Manager and user-defined style templates

Quentin,

We call your custom ODS style a "Server-side" style, and Style Manager tracks it as an "External style".  Add it this way.

1. In Style Manager, click Add.. (to add a new style definition)

2. In the Add New Style window, provide your Style name and check "SAS server style only".

serverstyle.png

Now this style should be available for selection in your HTML, PDF, and RTF destinations within EG.

stylepick.png

Chris

View solution in original post


All Replies
Solution
‎08-13-2014 03:04 PM
Community Manager
Posts: 2,693

Re: EG Style Manager and user-defined style templates

Quentin,

We call your custom ODS style a "Server-side" style, and Style Manager tracks it as an "External style".  Add it this way.

1. In Style Manager, click Add.. (to add a new style definition)

2. In the Add New Style window, provide your Style name and check "SAS server style only".

serverstyle.png

Now this style should be available for selection in your HTML, PDF, and RTF destinations within EG.

stylepick.png

Chris

Trusted Advisor
Posts: 1,213

Re: EG Style Manager and user-defined style templates

Thanks much Chris!   (I should have asked that question months ago... : )

Valued Guide
Posts: 3,206

Re: EG Style Manager and user-defined style templates

Quentin, yep the styles can be local client side with Eguide (ChrisH). You must have update rights to update the Eguide installation/user profiles. Sometimes uhh often desktopolicies will block that.

The ods is another place with defined styles and there are more places having them at the server side installation.

Web based interfaces are also using them but often not the same physical location.

Marvelous (joke) fore configuration and change questions.

---->-- ja karman --<-----
Trusted Advisor
Posts: 1,213

Re: EG Style Manager and user-defined style templates

Thanks Jaap.  Yeah, hadn't realized until today that those EG styles are client side.  Had assumed it was using my ODS path like the rest of SAS...  Mostly I don't care that much about the EG styles, since I'm using it mostly for development of code that will end up being run from other clients (mostly web).  So as long as EG results look mostly like the web results, I'm okay.  And I do final development/testing on the server it will actually run on.

SAS Super FREQ
Posts: 8,719

Re: EG Style Manager and user-defined style templates

And, when you are using the BI Platform and client applications like Web Report Studio, there might be different things you have to do to have your custom style recognized by WRS. If you do need to use your custom style with Web Report Studio and not with just EG, then you need to look at the documentation for how to work with Web Report Studio and change the style:

SAS(R) 9.3 Intelligence Platform: Web Application Administration Guide, Third Edition

cynthia

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 1903 views
  • 1 like
  • 4 in conversation