代码之家  ›  专栏  ›  技术社区  ›  Chan Yoong Hon

SAPUI5语义页,页脚内容中的按钮

  •  0
  • Chan Yoong Hon  · 技术社区  · 7 年前

    包含索引.html像是或是本地化索引.html包含 data sap resourceroots属性。当前,您的项目没有 包含这样的文件.found在负缓存中: https://sapui5.hana.ondemand.com/1.56.4/resources/sap/f/semantic/customFooterContent.js : 数据sap resourceroots属性。目前,您的项目没有 包含这样的文件。

    以下是我的网页代码

    <semantic:SemanticPage id="ViewCartPage" headerPinnable="false" toggleHeaderOnTitleClick="false" preserveHeaderStateOnScroll="false" showFooter="true">
        <semantic:titleHeading>
                <Button id="continueShoppingButton" press="onContinueShoppingPressed" text="Continue Shopping" type="Transparent"/>
        </semantic:titleHeading>
    
        <!-- Header Content -->
        <semantic:headerContent>
            <Label class="CartHeader" text="Your Cart"  width="100%" />
            <FlexBox alignItems="Start" justifyContent="SpaceBetween">
                <items>
                    <Panel backgroundDesign="Transparent">
                        <content>
                            <core:Icon id="shoppingCartIcon" height="3rem" size="3rem" src="sap-icon://cart" alt="{i18n>xfld.keyWord2}"/>
                        </content>
                    </Panel>
                    <Panel backgroundDesign="Transparent">
                        <content>
                            <Label text="Customer : " width="100%" id="lbl1_Customer"/>
                            <Label class="OrderContent" text="{/objectDescription/customer}" width="100%" id="lbl2_Customer"/>
                        </content>
                    </Panel>
                    <Panel backgroundDesign="Transparent">
                        <content>
                            <Label text="Salesperson : " width="100%" id="lbl1_Salesperson"/>
                            <Label class="OrderContent" text="{/objectDescription/salesperson}" width="100%" id="lbl2_Salesperson"/>
                        </content>
                    </Panel>
                    <Panel backgroundDesign="Transparent">
                        <content>
                            <Label text="Number of Items : " width="100%" id="lbl1_NoOfItems"/>
                            <Label class="OrderContent" text="{/objectDescription/items}" width="100%" id="lbl2_NoOfItems"/>
                        </content>
                    </Panel>
                    <Panel backgroundDesign="Transparent" class="OrderColumn">
                        <content>
                            <Label text="Total Amount : " width="100%" id="lbl1_TotalAmount"/>
                            <Label class="OrderContent" text="{/objectDescription/amount}" width="100%" id="lbl2_TotalAmount"/>
                        </content>
                    </Panel>
                    <!--<ObjectStatus text="Continue Shopping" state="{/objectDescription/status}"/>-->
                </items>
            </FlexBox>
        </semantic:headerContent>
    
        <!-- Content -->
        <semantic:content>
            <Table id="idProductsTable" inset="false" items="{path:'/ProductCollection'}">
                <columns>
                    <Column minScreenWidth="Tablet" demandPopin="true">
                        <Text text="Name"/>
                    </Column>
                    <Column minScreenWidth="Tablet" demandPopin="true">
                        <Text text="Quantity"/>
                    </Column>
                    <Column minScreenWidth="Tablet" demandPopin="true">
                        <Text text="UOM"/>
                    </Column>
                    <Column minScreenWidth="Tablet" demandPopin="true">
                        <Text text="Price"/>
                    </Column>
                    <Column minScreenWidth="Tablet" demandPopin="true">
                        <Text text="Subtotal"/>
                    </Column>
                    <Column id="buttonColumn" width="15%" minScreenWidth="Tablet" demandPopin="true" popinDisplay="WithoutHeader" hAlign="Right" class="sapMTableContentMargin">
                        <header>
                            <Label id="cartItemDelete" text="Cancel" visible="{= ${device>/system/phone}}"/>
                        </header>
                    </Column>
                </columns>
                <items>
                    <ColumnListItem vAlign="Middle">
                        <cells>
                            <ObjectIdentifier title="{Name}" text="{ProductId}"/>
                            <Input value="{Quantity}" width="70px"/>
                            <Text text="{UOM}"/>
                            <Text text="{Price}"/>
                            <Text text="{Subtotal}"/>
                            <!-- Add Button -->
                            <Button id="addToCartButton" tooltip="Delete Item" icon="sap-icon://decline" press="deleteCartItemPressed" type="Transparent"/>
                        </cells>
                    </ColumnListItem>
                </items>
            </Table>
        </semantic:content>
        <semantic:customFooterContent>
                <Button id="confirmOrder" text="Confirm" press="onConfirmOrder"/>
        </semantic:customFooterContent>
    </semantic:SemanticPage>
    

    1 回复  |  直到 7 年前
        1
  •  2
  •   jasbir    7 年前

    使用的sap.f.semantic footer聚合错误,它应该是以下之一

    https://sapui5.hana.ondemand.com/#/api/sap.f.semantic.SemanticPage

    <!-- Custom Footer Content-->
            <semantic:footerCustomActions>
                <Button text="Save" />
                <Button text="Cancel" />
            </semantic:footerCustomActions>
    
    推荐文章