Skip to content
Snippets Groups Projects
Commit 97e7e2d6 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Product: no image was shown in lookup; image-processing as in any other aentity

parent 1030b1e0
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
<contentTitleProcess>%aditoprj%/entity/Product_entity/contentTitleProcess.js</contentTitleProcess>
<afterUiInit>%aditoprj%/entity/Product_entity/afterUiInit.js</afterUiInit>
<iconId>VAADIN:HAMMER</iconId>
<imageProcess>%aditoprj%/entity/Product_entity/imageProcess.js</imageProcess>
<titlePlural>Products</titlePlural>
<recordContainer>db</recordContainer>
<entityFields>
......@@ -127,7 +128,6 @@
<entityField>
<name>PICTURE</name>
<contentType>IMAGE</contentType>
<displayValueProcess>%aditoprj%/entity/Product_entity/entityfields/picture/displayValueProcess.js</displayValueProcess>
</entityField>
<entityConsumer>
<name>StockCounts</name>
......
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) {
if (vars.get("$field.PICTURE"))
result.string(vars.get("$field.PICTURE"));
else
result.string(vars.get("$param.ProductText_param"));
}
import("system.vars");
import("system.result");
if (vars.get("$field.PICTURE"))
result.string(vars.get("$field.PICTURE"));
else
result.string(vars.get("$param.ProductText_param"));
......@@ -32,7 +32,6 @@
<children>
<tableViewTemplate>
<name>Products</name>
<iconField>IMAGE</iconField>
<titleField>PRODUCTNAME</titleField>
<subtitleField>PRODUCTCODE</subtitleField>
<entityField>#ENTITY</entityField>
......@@ -41,8 +40,8 @@
</linkedColumns>
<columns>
<neonTableColumn>
<name>2b03ec87-92a8-44dd-932e-80df160b2c8e</name>
<entityField>PICTURE</entityField>
<name>f645a000-fd3c-418a-bdd3-b762551974d3</name>
<entityField>#IMAGE</entityField>
</neonTableColumn>
<neonTableColumn>
<name>ee627d12-c60c-48c2-a86e-2a144f5853e6</name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment