Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <mvc:View xmlns:mvc="sap.ui.core.mvc" controllerName="com.sap.build.controller.CheckIn" xmlns="sap.m" xmlns:form="sap.ui.layout.form" xmlns:core="sap.ui.core">
- <Page showHeader="true" title="Check-in campaign" showFooter="false" showNavButton="true" navButtonPress="_onPageNavButtonPress">
- <content>
- <TableSelectDialog title="Campaigns" items="{path:'/Campaign'}" contentHeight="300px" >
- <columns>
- <Column>
- <Text text="Campaign ID" />
- </Column>
- <Column>
- <Text text="Name" />
- </Column>
- <Column>
- <Text text="Description" />
- </Column>
- <Column>
- <Text text="Created at" />
- </Column>
- <Column>
- <Text text="Created by" />
- </Column>
- </columns>
- <items>
- <ColumnListItem>
- <Text text="{CampaignId}"/>
- <Text text="{CampaignName}"/>
- <Text text="{Description}"/>
- <Text text="{CreatedOn}"/>
- <Text text="{CreatedBy}"/>
- </ColumnListItem>
- </items>
- </TableSelectDialog>
- </content>
- <footer/>
- <headerContent/>
- <subHeader/>
- <customHeader/>
- </Page>
- var uname = "UNAME";
- var pw = "PW";
- var oModel = new sap.ui.model.odata.v2.ODataModel("https://host:port/sap/opu/odata/sap/CUAN_CAMPAIGN_SRV/",
- true, uname, pw);
- this.getView().setModel(oModel);
Add Comment
Please, Sign In to add comment