Skip to Content
2
Sep 13, 2023 at 07:22 PM

FileUploader: Dialog opens more than once after upgrade to UI5 version 1.108

346 Views Last edit Sep 13, 2023 at 07:25 PM 4 rev

Hi,

today we updated our SAP NW FES to 7.57. So UI5 version changed from 1.96.5 to 1.108.19.

After the update our UI5 FileUploader components behave strange.

When we click the "Browse" button the FileSelect Dialog opens twice, means the dialog opens, we select a file and then the dialog opens again and we have to select the file again. The beforeDialogOpen, afterDialogClose and change events of the FileUploader component are only fired once.

Our code is fairly simple. We have an ObjectPage with a SimpleForm on it. Inside the SimpleForm there is the FileUploader (see code below).

Before we updated the FileUploader behaved as expected.

What is even more strange is that if we run the application locally on our development PC as a standalone app it works as expected. It only behaves like this on FES, no matter if we run the app in Fiori Launchpad or as standalone app.


<op:ObjectPageLayout enableLazyLoading="true" upperCaseAnchorBar="false" showAnchorBar="false" showFooter="true">
...
<op:ObjectPageSection titleUppercase="false" title="{i18n>dokumente}" showTitle="true">
<op:subSections>
<op:ObjectPageSubSection titleUppercase="false">
<l:DynamicSideContent id="dokumente_dsc" class="sapUiContentPadding" sideContentFallDown="BelowM" containerQuery="true">
<l:mainContent>
<f:SimpleForm>
<f:content>
<Label text="{i18n>geburtsurkunde}"/>
<u:FileUploader id="geburtsurkunde_file_upload" name="geburtsurkundeFile" width="100%" fileType="pdf" />
<Label text="{i18n>arbeitgebernachweis}"/>
<u:FileUploader id="arbeitgebernachweis_file_upload" name="arbeitgebernachweisFile" width="100%" fileType="pdf"/>
<Label text="{i18n>mutterschutznachweis}" visible="{= ${general>Gesch} !== '1' }"/>
<u:FileUploader
id="mutterschutznachweis_file_upload"
name="mutterschutznachweisFile"
width="100%"
visible="{= ${general>Gesch} !== '1' }"
fileType="pdf"
/>
</f:content>
</f:SimpleForm>
</l:mainContent>
<l:sideContent>
<FormattedText htmlText="{i18n>dokumente.hint}"/>
</l:sideContent>
</l:DynamicSideContent>
</op:ObjectPageSubSection>
</op:subSections>
</op:ObjectPageSection>
...

Did anyone encounter a similar behaviour?

Thanks and BR
Helmut