43
Views
6
Comments
Solved
[OutSystems UI Web] GetCssGlobalContext() not available in Outsystems Web UI
outsystems-ui-web
Web icon
Forge asset by OutSystems
Application Type
Traditional Web

Hi Community,

   I am migrating Our application from Silk UI web to Outsystems Web UI frame work, I Migrated all the components except "GetCssGlobalContext()" from Silk UI.

  Does any one of you know what is the purpose of this "GetCssGlobalContext()" and if i remove it from application what will happen and is there any other similar function is available in Outsystems web UI?


Please advice, Thanks in advance.

Balaji


2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello Balaji.

There's no direct migration between these two UI frameworks.
For that particular scenario that is something more structural and core, it will depend on where you need to use it. This is because for instance things like OS and browser are already added by the platform or by the LayoutWidgets block from OS UI Web on your DOM:

And also have a set of methods to deal with this:
Also, for accessibility you have some options you might need to use:

As I mentioned there's no direct migration and this is the hardest part, but with some investment in understanding the new framework (which is good even for learnability) and mostly on testing you have all the tools and more than you had in SilkUI.

Cheers,
GM

UserImage.jpg
Balaji Ravikumar

Hi GM,

       Thanks for your response, So if I create this function as clone to remove the dependencies is it works?

Thanks and Regards

Balaji

2022-11-12 11-28-30
Gonçalo Martins
Staff


Hello Balaji. 

Sorry if I didn't explain myself well but there's no direct migration between these two UI frameworks. Meaning, is not guaranteed that removing that will keep everything working. I was just showing that all those features available in Silk are also covered in OS UIWeb but in a different way, so you need to test case by case to make sure everything works as expected.

Cheers,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello Balaji

I also found this documentation maybe it can also help you in this migration.

Cheers,
GM 

UserImage.jpg
Balaji Ravikumar

Hi GM,

   Thanks for the document but for my case no luck, I did find any thing related to GetCssGlobalContext().

Thanks

Balaji

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Balaji Ravikumar 

Any update on this? Any feedback you might have to share with the community in order to share it with others?

Cheers,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.