openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.Wizard ignoring showNextButton property

Open stefvanw opened this issue 7 years ago • 8 comments

OpenUI5 version: 1.56.12 - 1.62.1

Browser/version (+device/version): Chrome 72.0.3626.109 Internet Explorer 11.90416299.0

Steps to reproduce the problem:

  1. Create a new application from the openui5 basic template https://github.com/SAP/openui5-basic-template-app
  2. Copy the XML from the Wizard component sample in the documentation https://openui5.hana.ondemand.com/#/sample/sap.m.sample.Wizard/code/V.view.xml
  3. Set the showNextButton property to false in your XML
  4. Run the app and check the controls on the screen

What is the expected result? We expect the wizard to show without a 'Step 2' button.

What happens instead? The Wizard shows a 'Step 2' button.

Any other information? (attach screenshot if possible)

  1. This issue was already reported in #2350. This issue was closed, but the problem does not seem to be resolved.
  2. If we open the app and set the showNextButton property to true and then to false again using the UI5 inspector, the buttons are hidden as expected. Property seems to be ingnored on control initialization.

On startup: image

After changing the showNextButton property to true and then to false using the UI5 inspector: image

stefvanw avatar Feb 15 '19 12:02 stefvanw

Hello @stefvanw ,

Thank you for your ticket! I am not able to reproduce the issue. Please look at the attached screenshot - I`ve used the same sample and set the "showNextButton" property to false. As a result, the button disappeared. Please, check again if you set the property correctly?

Regards, Niya

niyap avatar Feb 18 '19 08:02 niyap

wizard_without_button

niyap avatar Feb 18 '19 08:02 niyap

Hi @niyap

If I check your screenshot, you just checked the samples and then adjusted the property using the UI5 inspector. As described in the additional information from my ticket, you should use a Wizard in a project and set the showNextButton to false by default, not after the Wizard has been instantiated. I double checked and the property showNextButton is set to false in the XML view:

image

Regards Stef

stefvanw avatar Feb 18 '19 09:02 stefvanw

Hello @stefvanw , You are not right. I changed the code of the sample, not just the value of the property from the UI5 inspector. I opened the inspector, just to show you the value, not to use it for reproducing the issue. I did exactly the same as that which is shown in your last screenshot. The problem was in the version that I used. I will do further analysis and later get in touch with you again.

Regards, Niya

niyap avatar Feb 18 '19 09:02 niyap

Thanks @niyap

stefvanw avatar Feb 18 '19 10:02 stefvanw

Dear @stefvanw ,

Thank you for sharing this finding. The issue is fixed with version 1.63, that is the reason to not work from 1.56 to 1.62 as you have mentioned. I've created an internal incident 1970156278. The issue will be fixed in 1.52 and 1.60, since that are the only stable versions. The status of the issue will be updated here in GitHub.

Regards, Niya

niyap avatar Feb 18 '19 11:02 niyap

Hi @niyap

Thanks for the feedback. This is an important bugfix for us since we are currently locking the UI5 version on some of our launchpad environments. I suppose the bugfix will be propagated to SAPUI5 too?

Regards Stef

stefvanw avatar Feb 18 '19 11:02 stefvanw

Hi @stefvanw,

The issue is fixed in version 1.60, which as mentioned is a stable one. It will be available with the next release.

Regards, @niyap

niyap avatar Mar 01 '19 05:03 niyap