cancel
Showing results for 
Search instead for 
Did you mean: 

How to place footer button in Value help dialog?

dheerajahuja000
Advisor
Advisor

Hi All,

I have created a Value help dialog and I want to place a button left to the cancel button. I'm using "buttons" aggregation but it places the button on the right. Is there a way that I can completely remove the default cancel button from Value Help Dialog and define my custom buttons or any custom button can be placed on left hand side?
Attaching screenshot for the same.

<ValueHelpDialog title="Solutioning Request" ok=".onSolVerCreateValueHelpOkPress" cancel=".onSolVerCreateValueHelpCancelPress" afterClose=".onSolVerCreateValueHelpAfterClose" supportMultiselect="false" supportRanges="false" key="SOLREQID" descriptionKey="SOLREQNAM">

<buttons> <m:Button text="Create New SV" id="idCreateNewSV" press="onNavtoCreateSV"/> </buttons> </ValueHelpDialog>

View Entire Topic
former_member620231
Participant
0 Kudos

Hi,

I think you can use the method destroyButtons after instantiating the value help dialog.

After that, add the buttons in javascript with the method addButton.

Both methods are public methods from sap.m.Dialog.

Alex