cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to prevent ObjectPageSubSection from promoting to ObjectPageSection?

pedromews
Associate
Associate
0 Kudos
293

According to SAPUI5 documentation, if there is only subsection within a section, its title is displayed instead of the section title. I wanted a way to disable that, or at least to workaround it, because my screen needs to be something like the image below, where both the title of the section ("Section 1") and the subsection ("Subsection") are displayed. I managed to do that only because I inserted a second subsection, but I want this behavior to persist even if there is only one subsection.

pedromews_2-1726249425929.png

As reference, this is what happens now when there is only one subsection:

pedromews_3-1726249457187.png

 

 

View Entire Topic
pedromews
Associate
Associate
0 Kudos

Hi @simon-desch 

Yes, I tried, but it didn't work as I wanted.

With an empty ObjectPageSubSection (no title and no content) the screen looks like the second image.

With an ObjectPageSubSection with no title but with an empty block, like a VerticalLayout, the screen looks like the first image without the "Second subsection to simulate desired behavior", i.e., it show a second white rounded square, which I don't want.