Posts

Showing posts with the label sapui5

Why can I give items as property?

Why can I give items as property? The Table is extended from the ListBase. On the Table, I can you use items aggregation from ListBase as a property like as following: <Table inset="false" items="{ path: '/ProductCollection', sorter: { path: 'Name' } }"> Why can I use items as a property, although is defined as aggregation? items Not sure what exactly the question is.. Are you asking what items="{...}" does? Or how the framework handles items in the background, thus "why" it works? This question is missing some context. – Boghyon Hoffmann 2 days ago items="{...}" items 2 Answers 2 In UI5, there are basically two ways of filling an aggregation. One is by adding the elements dire...

Create a new entry with association

Create a new entry with association I have a problem to create new entry with association to existing entity. In fact, I have 2 tables database, one is PERSONNEL (called T024) and another is PLANNING (called T027). The relationship between them is manyTomany, it means that a person has many plannings and a planning has many persons. I have created a person (ID_PERSONNEL: ‘T02400004’) Another person (ID_PERSONNEL: ‘T02400005’) And created also a planning (ID_PLANNING: 4) I would like create a “link” between this planning with 2 persons Can you give me some advice please? Here is my oData/$metadata <EntityType Name="T024"> <Key> <PropertyRef Name="ID_PERSONNEL"/> </Key> <Property Name="FIRSTNAME_PERSONNEL" Type="Edm.String"/> <Property Name="ID_PERSONNEL" Type="Edm.String" Nullable="false"/> <Property Name="LASTNAME_PERSONNEL" Type="Edm.String"/...