Implementation of SAP smart toolbar’s XML element Report

Time:2021-8-5

http://localhost:8080/resourc…

Smarttabletoolbar.fragment.xml contains breakoutactions.fragment:

Implementation of SAP smart toolbar's XML element Report

http://localhost:8080/resourc…

Implementation of SAP smart toolbar's XML element Report

Source code:

<core:FragmentDefinition xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
                         xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:build="sap.build">

    <template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
        <template:repeat list="{tmpEntitySet>Actions}" var="customaction">
            <!--all break out actions which are neither determining nor global-->
            <template:if test="{= !${customaction>determining} &amp;&amp; !${customaction>global}}">
                <Button id="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionButtonId'}"
                        enabled="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionEnabledKey'}"
                        text="{customaction>text}"
                        press="{customaction>press}" type="Transparent">
                    <layoutData>
                        <OverflowToolbarLayoutData priority = "{customaction>importance}"/>
                    </layoutData>
                </Button>
            </template:if>
        </template:repeat>
    </template:if>
</core:FragmentDefinition>

At runtime, the XML view source code is parsed by xmlprocessor.js:

Implementation of SAP smart toolbar's XML element Report

Implementation of SAP smart toolbar's XML element Report

Smarttabletoolbar.fragment.xml contains breakoutactions.fragment.xml:

Implementation of SAP smart toolbar's XML element Report

Implementation of SAP smart toolbar's XML element Report

Implementation of SAP smart toolbar's XML element Report

getBreakoutActionButtonId:

Implementation of SAP smart toolbar's XML element Report

More Jerry’s original articles are: “Wang Zixi”:
Implementation of SAP smart toolbar's XML element Report

Recommended Today

“Self test” stay up late to summarize 50 Vue knowledge points, all of which will make you God!!!

preface Hello everyone, I’m Lin Sanxin. A lot of things have happened these days (I won’t say what’s specific). These things have scared me to treasure my collection these yearsVue knowledge pointsI took out my notes and tried my best to recall them. Finally, I realized these 50Knowledge points(let’s not be too vulgar. It’s not […]