Skip to Content

Use two semantic positive action button

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 16, 2018 at 10:10 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2018 at 12:02 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Oct 16, 2018 at 04:54 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.