Skip to Content

Get CSS style parameters from Portal at runtime

Hi,

Is it possible to get some styling parameters from the CSS file at runtime in Web dynpro abap.


e.g. we create one UI element say checkbox and just assign a class name z_test_style to it at WD UI level.

Then portal team is doing the styling using CSS, so when the WD application is executed on portal, it gets the theming from CSS file.

I want to some how get some parameters like color, background color from that CSS file by passing my class name: z_test_style.

Please do let me know if this is possible.

Thanks,

Vaibhav Goel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 05, 2016 at 07:20 AM

    Not sure if the CSS mapping can be done dynamically. I think this thread might help you.

    Thanks,

    VS

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks Santosh.

      But my requirement is to read the CSS file.

      CSS and theming is already done by portal team. I want a way to read parameters from that CSS file using my styleclass name which I assign to an UI element in WD.