cancel
Showing results for 
Search instead for 
Did you mean: 

Make a button appear as type Accept

Murali_Shanmu
Active Contributor
0 Kudos

Hi,

I am currently doing extensions for a Standard SAPUI5 MyInbox App. I am able to add a button to the bottom right hand corner as shown below. Does anyone know how to make it look like an Accept button (Green color).

extHookChangeFooterButtons : function(oButtonList) {

if (oButtonList.aButtonList) {

     oButtonList.aButtonList.unshift({

     sBtnTxt : "Submit",

     onBtnPressed : function(event) {

          that.showItemApprovalDialog();

          }

          });

     }

}

Thanks,

Murali

Accepted Solutions (1)

Accepted Solutions (1)

karthikarjun
Active Contributor
0 Kudos

Hi Murali,

You should use type="Accept",

Will this heelp?  JS Bin - Collaborative JavaScript Debugging

Thanks,

Karthik A

seVladimirs
Active Contributor
0 Kudos

"My Inbox" app can have only one positive (green, type 'Accept') button and it somehow make sense.

Do you want to have two "green" buttons in the footer? If not, you can overwrite Approve to Submit as shown below.

Murali_Shanmu
Active Contributor
0 Kudos

Thanks guys. I gave type : "Accept". But it didnt work previously. Will try suggestion pointed by Vladimirs and update tomorrow.

Regards, 

Murali_Shanmu
Active Contributor
0 Kudos

Thanks. In my case, I dont have actions configured for a particular task type. I have placed a Sumbit button to appear only for that Task Type. However, its not green colour unlike other Task types for which I have configured Approve/Reject actions. Will try this out tomorrow and post the results.

seVladimirs
Active Contributor
0 Kudos

Well, you can define buttons based on Task Type via Customising -

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

give style attribute  sap.ui.commons.ButtonStyle.Accept

Regards