&
Fábio Pagoti
Cursos de
HANA, UI5, Fiori, Gateway
e tantos outros...
1.25
1.28
Smart Form
Smart Table
1.30
Semantic Page
1.34
Smart Chat e Smart Micro Chart
1.38
<SmartBulletMicroChart
entitySet="Products" />
As regras de exibição estão no backend, escritas em oData Annotations
<EntityType Name="Subscription">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" MaxLength="32" />
<Property Name="user" Type="Edm.String" MaxLength="12" />
<Property Name="title" Type="Edm.String" MaxLength="255" />
<Property Name="deliveryAddress" Type="Edm.String" />
</EntityType>
<EntityType Name="Subscription"
sap:semantics="subscriptions"
sap:content-version="1">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" MaxLength="32"
sap:label="Sub. ID"
sap:creatable="false"
sap:updatable="false"
sap:filterable="false" />
<Property Name="user" Type="Edm.String" MaxLength="12" sap:label="User Name" sap:creatable="false" sap:filterable="false" />
<Property Name="title" Type="Edm.String" MaxLength="255" sap:label="Title" sap:filterable="false" />
<Property Name="deliveryAddress" Type="Edm.String" sap:label="Delivery Address" sap:filterable="false" />
</EntityType>
Os annotations básicos são definidos via interface gráfica
XMLs que criam novos annotations
<Term Name="Updatable"
AppliesTo="EntityType"
Type="Edm.Boolean"
DefaultValue="true" >
<Annotation Term="Core.Description">
<String>
Specifies whether the annotated entity can be updated
</String>
</Annotation>
</Term>
"dataSources": {
"mainService": {
"uri": "/sap/opu/odata/sap/ZPROJETO_TIPO_1_SRV/",
"type": "OData",
"settings": {
"annotations": [
"ZPROJETO_TIPO_3"
],
"localUri": "localService/metadata.xml"
}
},
"ZPROJETO_TIPO_3": {
"uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZPROJETO_TIPO_3',Version='0001')/$value/",
"type": "ODataAnnotation",
"settings": {
"localUri": "localService/ZPROJETO_TIPO_3.xml"
}
}
},
SAPUI5 Explored (Pesquisar por "Smart")
https://sapui5.netweaver.ondemand.com/explored.html
Web IDE Annotation Modeler
https://help.hana.ondemand.com/webide/frameset.htm?fe8ba75588964d3bbfc5c1bf96b04d1e.html
<MessageStrip
text="Obrigado!!!"
type="Success"
showIcon="true">
</MessageStrip>