237
Views
5
Comments
Solved
 Cannot read properties of null (reading 'classList') or Layout is null
Question
Application Type
Reactive
Service Studio Version
11.14.3 (Build 56735)

Hi All,

I am creating a custom layout for my reactive web application. but I am receiving following error in chrome - 

"Cannot read properties of null (reading 'classList')"


If I remove OnReady event from the Custom Layout WebBlock then their is no error.

Also, when I resize the window, there is no menu on clicking the three bars -


Any help will be appreciated. I have attached the OML file.


Thanks

Vaibhav

LayoutTest.oml
2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi Vaibhav,

I have update your oml and its working.

like you need to add 

layout

class in your custom layout and close in one container.

find the attached oml it will help you.

LayoutTest.oml
2023-08-07 06-06-09
Vaibhav Gijre

Hi Rahul,

This worked perfectly. I also added layout-top class.

Thanks

Vaibhav

2021-06-02 20-50-04
Márcio Carvalho
Solution

Dont forget to add the OutSystems UI script to the layout. Just Incase.

Regards,

Marcio

2023-08-07 06-06-09
Vaibhav Gijre

Hi Marcio,


Thank you. I also added this, as without adding the OutSystemUI script I was receiving the following error -

 

Thanks

Vaibhav

2021-06-02 20-50-04
Márcio Carvalho

Brilliant!!

I'm glad I could be of help, in this case, the script is needed, as you can see all other layouts when calling outsystems actions they use the OutSystemsUI script.

Regards,

Márcio

2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi Vaibhav,

I have update your oml and its working.

like you need to add 

layout

class in your custom layout and close in one container.

find the attached oml it will help you.

LayoutTest.oml
2023-08-07 06-06-09
Vaibhav Gijre

Hi Rahul,

This worked perfectly. I also added layout-top class.

Thanks

Vaibhav

2021-06-02 20-50-04
Márcio Carvalho
Solution

Dont forget to add the OutSystems UI script to the layout. Just Incase.

Regards,

Marcio

2023-08-07 06-06-09
Vaibhav Gijre

Hi Marcio,


Thank you. I also added this, as without adding the OutSystemUI script I was receiving the following error -

 

Thanks

Vaibhav

2021-06-02 20-50-04
Márcio Carvalho

Brilliant!!

I'm glad I could be of help, in this case, the script is needed, as you can see all other layouts when calling outsystems actions they use the OutSystemsUI script.

Regards,

Márcio

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