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
223

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

 

 

simon-desch
Newcomer
0 Kudos

Have you tried adding a dummy section with empty title and no content? 
 
If i remeber properly, I did this previously. 

View Entire Topic
junwu
Active Contributor
0 Kudos

did you check the documentation? showTitle attribute.

junwu_0-1726255000941.png

 

pedromews
Associate
Associate
0 Kudos

Hi junwu, thanks for the answer.

Yes, I thought of the showTitle property too, but the note is discouraging: "Note: If a subsection is the only one (or the only one visible) within a section, its title is displayed instead of the section title even if this property is set to false". Anyway, I tested my application with lots of combinations for section's and subsection's showTitle, but nothing worked.