¡Hola Gurus!
Tenemos una sap.m.table con 3 columnas en mi detail.view.xml:
<html:style type="text/css">
td[data-colorCode="Overdue"] {
background-color: pink !important;
}
.cyan { background-color : rgba(0, 255, 255, 0.28) }
</html:style>
<Table id="meetingDetailTable" items="{screenModel>/meetingTable}">
<columns>
<Column id="meetTabIBpId"><header><Label text="{i18n>meetTabIBpId}" /></header></Column>
<Column id="meetTabIDevId"><header><Label text="{i18n>meetTabIDevId}" /></header></Column>
<Column id="meetTabIDevDesc"><header><Label text="{i18n>meetTabIDevDesc}" /></header></Column>
</columns>
<items>
<ColumnListItem id="meetingDetailTableList">
<cells>
<ObjectIdentifier
text="{screenModel>BusinessProcessId}"
title="{screenModel>BusinessProcessDesc}"/>
</cells>
<cells>
<Text
text="{screenModel>ExtId}" />
</cells>
<cells>
<Text
text="{screenModel>DevelopmentDesc}" />
</cells>
</ColumnListItem>
</items>
</Table>
Luego agregamos algunas columnas dinámicamente:
var oModelData = oController.getModelData("screenModel");
var oMeetingTab = oController.byId("meetingDetailTable");
var oMeetinglist = oController.byId("meetingDetailTableList");
for (var i=0; i < oModelData.columns.length; i++){
if (oModelData.
Pedro Pascal
Se unió el 07/03/2018