cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Page Control

rhightower13
Participant
0 Kudos

I just noticed the upgrade to UI5 on the HCP trial system.  I created a basic SAPUI5 application and added a hello world button. The only other change the generated code I made was to add a function to the controller. My view:


<core:View controllerName="HelloWorld_001.controller.View1" xmlns:core="sap.ui.core" xmlns:html="http://www.w3.org/1999/xhtml"

  xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m">

  <Page title="{i18n>title}">

       <content>

            <Button

                   text="Say Hello"

                   press="doIt"/>

       </content>

  </Page>

</core:View>

When I run the application I see the header for the page but no button.  If I delete the Page control, I see the button.  I've tried other controls in instead of the Button and nothing shows up.

Is this a bug or am I missing something.

Thanks,

Ross

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

Hello Ross,

set your view height to e.g. 100%.

<core:View ... height="100%">.

Best Regards,

Florian

rhightower13
Participant
0 Kudos

Must be a new feature?  I don't think I've had to do that before including with the new version of openui5.

Thanks,

Ross

Answers (1)

Answers (1)

Vlado
Advisor
Advisor
0 Kudos

FYI: There is a dedicated SAPUI5 space:

--Vlado (HCP Space Moderator)

rhightower13
Participant
0 Kudos

Thanks.  Couldn't decide where to put it but because I haven't had that problem outside of HCP, this seemed like the right place.

Ross