showTableForm method
dynamic
showTableForm(
- dynamic data,
- dynamic context,
- dynamic backcolor
Implementation
showTableForm(data, context, backcolor) {
myLogAll('showTableForm');
//int index = data[gRow] ?? -1;
var tableName = data[gActionid] ?? data[gTableID];
var keyValue = getTableValueKey(tableName, data[gRow]);
if (data is Map && (data[gLabel] ?? '') == gAdvanceSearch) {
keyValue = data[gLabel];
}
var id = '';
if (data[gRow] != null) {
id = data[gRow][gId] ?? '';
}
List actionData = [
{
gName: tableName,
gType: gScreen,
gItems: {
0: {
gItem: getJsonEncode(
{gType: gLabel, gValue: keyValue, gFontSize: 24.0})
},
1: {
gItem: getJsonEncode({
gType: gForm,
gValue: tableName,
gId: id,
gTypeOwner: gTable,
gAdvanceSearch: true
})
}
}
}
];
showScreenPage(actionData, context);
}