-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Service Consumption Scenario without replication (#117)
Notes Scenario + Notes UI + Addresses UI
- Loading branch information
1 parent
e670e2a
commit cf13fe5
Showing
24 changed files
with
954 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
using NotesService from '../../srv/notes-mashup'; | ||
|
||
annotate NotesService.Addresses with @(UI : { | ||
LineItem : [ | ||
{ | ||
Value : businessPartner, | ||
Label : '{i18n>BusinessPartner}' | ||
}, | ||
{ | ||
Value : ID, | ||
Label : '{i18n>ID}' | ||
}, | ||
{ | ||
Value : street, | ||
Label : '{i18n>StreetName}' | ||
}, | ||
{ | ||
Value : city, | ||
Label : '{i18n>CityName}' | ||
}, | ||
{ | ||
Value : country, | ||
Label : '{i18n>Country}' | ||
} | ||
], | ||
HeaderInfo : { | ||
TypeName : '{i18n>ShippingAddress}', | ||
TypeNamePlural : '{i18n>ShippingAddresses}', | ||
Title : {Value : ID}, | ||
Description : {Value : businessPartner}, | ||
}, | ||
PresentationVariant : { | ||
Text : 'Default', | ||
Visualizations : ['@UI.LineItem'] | ||
}, | ||
Facets : [ | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
Target : '@UI.FieldGroup#Address', | ||
Label : '{i18n>ShippingAddress}', | ||
}, | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
Label : '{i18n>Notes}', | ||
Target : 'notes/@UI.LineItem' | ||
} | ||
], | ||
FieldGroup #Address : {Data : [ | ||
{ | ||
Value : street, | ||
Label : '{i18n>StreetName}' | ||
}, | ||
{ | ||
Value : houseNumber, | ||
Label : '{i18n>HouseNumber}' | ||
}, | ||
{ | ||
Value : postalCode, | ||
Label : '{i18n>PostalCode}' | ||
}, | ||
{ | ||
Value : city, | ||
Label : '{i18n>CityName}' | ||
}, | ||
{ | ||
Value : country, | ||
Label : '{i18n>Country}' | ||
} | ||
]}, | ||
}) { | ||
businessPartner | ||
@title : '{i18n>BusinessPartner}' | ||
@UI.HiddenFilter; | ||
ID | ||
@title : '{i18n>ID}' | ||
@UI.HiddenFilter; | ||
street | ||
@title : '{i18n>StreetName}'; | ||
city | ||
@title : '{i18n>CityName}'; | ||
country | ||
@title : '{i18n>Country}'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sap.ui.define(["sap/fe/core/AppComponent"], ac => ac.extend("addresses.Component", { | ||
metadata:{ manifest:'json' } | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
appTitle=Show Shipping Addresses | ||
appDescription=Show Shipping Addresses - Sample Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
appTitle=Zeige Lieferaddressen | ||
appDescription=Zeige Lieferaddressen - Beispielanwendung |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"_version": "1.8.0", | ||
"sap.app": { | ||
"id": "addresses", | ||
"type": "application", | ||
"title": "{{appTitle}}", | ||
"description": "{{appDescription}}", | ||
"dataSources": { | ||
"NotesService": { | ||
"uri": "/api/notes/", | ||
"type": "OData", | ||
"settings": { | ||
"odataVersion": "4.0" | ||
} | ||
} | ||
}, | ||
"-sourceTemplate": { | ||
"id": "ui5template.basicSAPUI5ApplicationProject", | ||
"-id": "ui5template.smartTemplate", | ||
"-version": "1.40.12" | ||
} | ||
}, | ||
"sap.ui5": { | ||
"dependencies": { | ||
"libs": { | ||
"sap.fe.templates": {} | ||
} | ||
}, | ||
"models": { | ||
"i18n": { | ||
"type": "sap.ui.model.resource.ResourceModel", | ||
"uri": "i18n/i18n.properties" | ||
}, | ||
"": { | ||
"dataSource": "NotesService", | ||
"settings": { | ||
"synchronizationMode": "None", | ||
"operationMode": "Server", | ||
"autoExpandSelect" : true, | ||
"earlyRequests": true, | ||
"groupProperties": { | ||
"default": { | ||
"submit": "Auto" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"routing": { | ||
"routes": [ | ||
{ | ||
"pattern": ":?query:", | ||
"name": "AddressesList", | ||
"target": "AddressesList" | ||
}, | ||
{ | ||
"pattern": "Addresses({key}):?query:", | ||
"name": "AddressesDetails", | ||
"target": "AddressesDetails" | ||
}, | ||
{ | ||
"pattern": "Addresses({key})/notes({key2}):?query:", | ||
"name": "NotesDetails", | ||
"target": "NotesDetails" | ||
} | ||
], | ||
"targets": { | ||
"AddressesList": { | ||
"type": "Component", | ||
"id": "AddressesList", | ||
"name": "sap.fe.templates.ListReport", | ||
"options": { | ||
"settings" : { | ||
"entitySet" : "Addresses", | ||
"navigation" : { | ||
"Addresses" : { | ||
"detail" : { | ||
"route" : "AddressesDetails" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"AddressesDetails": { | ||
"type": "Component", | ||
"id": "AddressesDetails", | ||
"name": "sap.fe.templates.ObjectPage", | ||
"options": { | ||
"settings" : { | ||
"entitySet" : "Addresses", | ||
"navigation" : { | ||
"notes" : { | ||
"detail" : { | ||
"route" : "NotesDetails" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"NotesDetails": { | ||
"type": "Component", | ||
"id": "NotesDetails", | ||
"name": "sap.fe.templates.ObjectPage", | ||
"options": { | ||
"settings" : { | ||
"entitySet": "Notes" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"contentDensities": { | ||
"compact": true, | ||
"cozy": true | ||
} | ||
}, | ||
"sap.ui": { | ||
"technology": "UI5", | ||
"fullWidth": false | ||
}, | ||
"sap.fiori": { | ||
"registrationIds": [], | ||
"archeType": "transactional" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.