cancel
Showing results for 
Search instead for 
Did you mean: 

Use two semantic positive action button

HemendraS
Participant
0 Kudos

Dear Experts,

I have created Semantic dynamic page and my requirement is to have two "Semantic Positive Action Buttons" consecutively in the footer of the page.

I tried creating the same, please see code below:

<!-- Semantic Footer Buttons -->
<semantic:positiveAction>
    <semantic:PositiveAction id="bckupId" text="{i18n>backUp}"/>
</semantic:positiveAction>
<semantic:positiveAction>
    <semantic:PositiveAction id="shareId" text="{i18n>share}"/>
</semantic:positiveAction>
 

But whenever I see the output, it shows only second button i.e. Share. Probably this is overwriting the other one. Could you please suggest how to showcase two positiveAction button together in page footer?

Thanks,

Best Regards

Hemendra

Accepted Solutions (1)

Accepted Solutions (1)

raina_goyal
Participant
0 Kudos

Dear Hemendra,

May be u can try with CSS with standard libarary generated for that buttons in your tag footerCustomActions. Probably a workaround.

Thanks,

Best Regards,

Raina

Answers (2)

Answers (2)

UxKjaer
Product and Topic Expert
Product and Topic Expert
0 Kudos

It could be that this simply doesn't allow you to have two positive actions in the footer. Change the page to a sap.m.page then you should be fine.

UxKjaer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hemandra,

I don't think you can do that with a semantic page. The idea is that everything is preset for you, so it created consistency. Try to use the aggregation customFooterContent instead and then set the type to positive.

HemendraS
Participant
0 Kudos

Thanks Jakob for your quick response. But unfortunately this is also not solving the purpose. As I already tried that and the buttons are not getting "Green". Now I have changed the code below but showing two buttons without Green effect:

		<semantic:footerCustomActions>
			<Button  text="{i18n>toBackup}" type="Accept" press="onPress"/>
			<Button  text="{i18n>sharing}" type="Accept" press="onPress"/>
		</semantic:footerCustomActions

Also I forget to mention, I am using sap.f.semantic.

Thanks,

BR- Hemendra