avatar image
Former Member

Status symbol and button in header content

Hey,

I wanna show a status symbol in the head of my master list. I have this piece of code:

        <semantic:customHeaderContent>
            <Button id="flushButton" icon="sap-icon://synchronize" press=""/>
            <ObjectStatus id="synchronizedStatus" visible="true" state="Error" icon="sap-icon://alert"/>
        </semantic:customHeaderContent>

But there is only one UI element showed, the button. When I change the order, only the status symbol is shown. How can I establish that both UI elements are shown?

Thanks for your help and best regards,

David

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 14, 2016 at 10:44 AM

    Hi David- Keep button and label in Vbox.

    <semantic:customHeaderContent>
    <VBox>
    <Button id="flushButton" icon="sap-icon://synchronize" press=""/>
    <ObjectStatus id="synchronizedStatus" visible="true" state="Error" icon="sap-icon://alert"/>
    </VBox>
    </semantic:customHeaderContent>

    Regards,

    Karthik A

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 14, 2016 at 10:36 AM

    Hi,

    Please put both of them in a VBox or HBox UI element then it should solve your problem.

    Regards,
    Mahesh

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 17, 2016 at 12:33 PM

    Hi David,

    As you are trying these to display on the header of the page so you have to "ContentLeft ContentRight ContentMiddle".


    Hope it works for you.


    Thanks,

    Deepak.

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content