on 03-15-2024 2:16 AM
Hi, UI5 Expert ,
I added custom action in object page header .
The UI5 custom action can open a fragment, but when I click the close button close in the fragment, there is no reponse . It seems the fragment still search the function in standard controller of object page .Would you please help me on this ?
Update the fragement with the following:
<core:FragmentDefinition xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core" xmlns:u="sap.ui.unified" xmlns:upload="sap.m.upload" >
<Dialog id="uploadDialogSet" title="File Upload" core:require="{handler: 'freightorderattachmgt/ext/fileHandle/FileHandle'}">
<content>
<upload:UploadSet uploadEnabled="true" id="uploadSet" items="{path: '/', templateShareable: false}" fileTypes="png,pdf" maxFileNameLength="200" beforeUploadStarts="handler.onBeforeUploadStart" uploadCompleted="handler.onUploadSetComplete" afterItemRemoved="handler.onItemRemoved"
terminationEnabled="true">
<upload:UploadSetItem id="_IDGenUploadSetItem1" visibleRemove="true" visibleEdit="false" fileName="{name}" url="/upload">
<upload:attributes>
<ObjectAttribute id="_IDGenObjectAttribute1" title="Uploaded by" text="{user}" active="false"/>
</upload:attributes>
</upload:UploadSetItem>
</upload:UploadSet>
</content>
<buttons>
<Button id="_IDGenButton1" text="Upload" press="handler.onUploadSet" icon="sap-icon://upload-to-cloud" type="Emphasized"/>
<Button id="cancel" press="handler.onCloseDialog" text="Cancel" icon="sap-icon://cancel"/>
</buttons>
</Dialog>
</core:FragmentDefinition>
Then the issue gone .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.