getThirdZzyimage function
dynamic
getThirdZzyimage(
- dynamic dbData
Implementation
getThirdZzyimage(dbData) {
dynamic data = dbData;
if (isNull(data)) {
data = [
{
"id": "cc2ab91c-3385-4f93-be5c-2fddac281956",
"name": "main",
"image":
'https://ipt.imgix.net/201444/x/0/?auto=format%2Ccompress&crop=faces%2Cedges%2Ccenter&bg=%23fff&fit=crop&q=35&h=944&dpr=1', //"http://localhost/main.jpg",
"entryid": "756a6fd0-81d7-47c6-9496-8252aad3cdeb",
"entrytime": "1701378304769"
},
{
"id": "04fd2e55-2c1f-40f9-a721-f0a4a8ae8791",
"name": "not available",
"image": "http://localhost/notavailable.jpg",
"entryid": "756a6fd0-81d7-47c6-9496-8252aad3cdeb",
"entrytime": "1701378302931"
},
{
"id": "5db14c27-fc3c-46fc-81c4-d8ca431dca0c",
"name": "myicon",
"image": "http://localhost/icon.png",
"entryid": "756a6fd0-81d7-47c6-9496-8252aad3cdeb",
"entrytime": "1701378304894"
}
];
}
return [
{
"action": "processTab",
"data": [
{
"colorIndex": 0,
"label": "null",
"type": "table",
"actionid": "Zzyimage",
"param0": "hometab",
"where": "",
"transpass": null,
"body": {
"Zzyimage": {
"timestamp": 1702418946495,
"attr": {
"canInsert": true,
"canEdit": true,
"canDelete": true,
"label": "Image",
"logmerge": "Y",
"parenttab": "Configuration",
"isCommon": false,
"needCache": true,
"inheritData": true,
"icon": 61728,
"namereal": null
},
"columns": [
{
"id": "id",
"dbid": "id",
"type": "hidden",
"label": "id",
"defaultValue": "",
"required": false,
"minLength": 0,
"length": 255,
"hash": false,
"unit": "character",
"prefixIcon": null,
"inputType": "hidden",
"fontSize": null,
"letterSpacing": 0.0,
"isPrimary": false,
"isKeyword": false,
"droplist": "",
"uniqueKey": "",
"isUnique": false,
"colType": "java.lang.String",
"isFile": false,
"seq": 10,
"canshow": true,
"fromsource": "",
"isFrozen": false,
"addNewCheck": false,
"isWholePage": false,
"after": "",
"showrange": ""
},
{
"id": "name",
"dbid": "name",
"type": "text",
"label": "name",
"defaultValue": "",
"required": true,
"minLength": 0,
"length": 50,
"hash": false,
"unit": "character",
"prefixIcon": null,
"inputType": "text",
"fontSize": null,
"letterSpacing": 0.0,
"isPrimary": true,
"isKeyword": false,
"droplist": "",
"uniqueKey": "",
"isUnique": true,
"colType": "java.lang.String",
"isFile": false,
"seq": 20,
"canshow": true,
"fromsource": "",
"isFrozen": true,
"addNewCheck": false,
"isWholePage": false,
"after": "",
"showrange": ""
},
{
"id": "image",
"dbid": "image",
"type": "text",
"label": "image",
"defaultValue": "",
"required": false,
"minLength": 0,
"length": 300,
"hash": false,
"unit": "character",
"prefixIcon": null,
"inputType": "text",
"fontSize": null,
"letterSpacing": 0.0,
"isPrimary": false,
"isKeyword": false,
"droplist": "",
"uniqueKey": "",
"isUnique": false,
"colType": "java.lang.String",
"isFile": true,
"seq": 30,
"canshow": true,
"fromsource": "",
"isFrozen": false,
"addNewCheck": false,
"isWholePage": false,
"after": "",
"showrange": ""
},
{
"id": "entryid",
"dbid": "entryid",
"type": "label",
"label": "entryid",
"defaultValue": "",
"required": false,
"minLength": 0,
"length": 50,
"hash": false,
"unit": "character",
"prefixIcon": null,
"inputType": "hidden",
"fontSize": null,
"letterSpacing": 0.0,
"isPrimary": false,
"isKeyword": false,
"droplist": "Zzyuser",
"uniqueKey": "",
"isUnique": false,
"colType": "java.lang.String",
"isFile": false,
"seq": 40,
"canshow": true,
"fromsource": "",
"isFrozen": false,
"addNewCheck": false,
"isWholePage": false,
"after": "",
"showrange": ""
},
{
"id": "entrytime",
"dbid": "entrytime",
"type": "label",
"label": "entrytime",
"defaultValue": "",
"required": false,
"minLength": 0,
"length": 255,
"hash": false,
"unit": "character",
"prefixIcon": null,
"inputType": "datetime",
"fontSize": null,
"letterSpacing": 0.0,
"isPrimary": false,
"isKeyword": false,
"droplist": "",
"uniqueKey": "",
"isUnique": false,
"colType": "java.lang.Long",
"isFile": false,
"seq": 50,
"canshow": true,
"fromsource": "",
"isFrozen": false,
"addNewCheck": false,
"isWholePage": false,
"after": "",
"showrange": "table"
}
],
"data": data
}
}
}
]
}
];
}