Guest User

Untitled

a guest
May 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <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">
  2. <Page showHeader="true" title="Check-in campaign" showFooter="false" showNavButton="true" navButtonPress="_onPageNavButtonPress">
  3. <content>
  4. <TableSelectDialog title="Campaigns" items="{path:'/Campaign'}" contentHeight="300px" >
  5. <columns>
  6. <Column>
  7. <Text text="Campaign ID" />
  8. </Column>
  9. <Column>
  10. <Text text="Name" />
  11. </Column>
  12. <Column>
  13. <Text text="Description" />
  14. </Column>
  15. <Column>
  16. <Text text="Created at" />
  17. </Column>
  18. <Column>
  19. <Text text="Created by" />
  20. </Column>
  21. </columns>
  22. <items>
  23. <ColumnListItem>
  24. <Text text="{CampaignId}"/>
  25. <Text text="{CampaignName}"/>
  26. <Text text="{Description}"/>
  27. <Text text="{CreatedOn}"/>
  28. <Text text="{CreatedBy}"/>
  29. </ColumnListItem>
  30. </items>
  31. </TableSelectDialog>
  32. </content>
  33. <footer/>
  34. <headerContent/>
  35. <subHeader/>
  36. <customHeader/>
  37. </Page>
  38.  
  39. var uname = "UNAME";
  40. var pw = "PW";
  41.  
  42. var oModel = new sap.ui.model.odata.v2.ODataModel("https://host:port/sap/opu/odata/sap/CUAN_CAMPAIGN_SRV/",
  43. true, uname, pw);
  44.  
  45. this.getView().setModel(oModel);
Add Comment
Please, Sign In to add comment