on 06-21-2005 7:11 AM
Hi,
do you know if there is a possibility, to get some Portal Information in a .net IView?
For example I would like to read out, which font is used, which color does the font have and so on.
I want to fulfill the branding requirements for a certification.
Regards
Erhan
Hi,
Yes, you can get portal info in the iView. Use the API of the portalComponent for most things (profile, user etc'), and use PDK services for getting detailed UME and System landscape info. It's all in the PDK documentation.
As for design info, the portal uses CSS files to manage that, and not an API. You can use the classes in those css files in your html (this will ensure themes are supported). Note that if you use NetWeaver controls this is handled for you.
Regards,
Ofer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, you got me right.
But what you should understand is that you <b>can't</b> access the css of the portal <b>programmatically</b>.
A simple way to start is to just look at the output of a portal page and see the linked css files in the source ("view source" in the browser). Then you can open these css files and see the classes there. You will notice that this files are really big and contain many classes... this is because SAP's UR (Unified Rendering) is quite complicated!
Note also that for different themes the portal uses different css files, but with the same class names.
Now for an important warning: This is not a supported way and is not guaranteed to be consistent with future portal upgrades (class names could and would probably change, new classes are added sometimes, others removed).
Therefor, the only way to keep consistency with SAP's UR is to use the NetWeaver controls.
Regards,
Ofer
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.