Skip to content
Snippets Groups Projects
Commit a2c3f0e5 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Product searchfields

parent 822dfead
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,9 @@
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Product_entity/documentation.adoc</documentation>
<title>Product</title>
<siblings>
<element>Productprice_entity</element>
</siblings>
<contentTitleProcess>%aditoprj%/entity/Product_entity/contentTitleProcess.js</contentTitleProcess>
<afterUiInit>%aditoprj%/entity/Product_entity/afterUiInit.js</afterUiInit>
<iconId>VAADIN:HAMMER</iconId>
......@@ -481,14 +484,17 @@
<dbRecordFieldMapping>
<name>ADVERTISING.value</name>
<recordfield>PRODUCT.ADVERTISING</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>GROUPCODEID.value</name>
<recordfield>PRODUCT.GROUPCODEID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>MINSTOCK.value</name>
<recordfield>PRODUCT.MINSTOCK</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRODUCTCODE.value</name>
......@@ -501,6 +507,7 @@
<dbRecordFieldMapping>
<name>PRODUCTNAME.value</name>
<recordfield>PRODUCT.PRODUCTNAME</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>STANDARD.value</name>
......@@ -509,14 +516,17 @@
<dbRecordFieldMapping>
<name>STATUS.value</name>
<recordfield>PRODUCT.STATUS</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>UNIT.value</name>
<recordfield>PRODUCT.UNIT</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CONTACT_ID.value</name>
<recordfield>PRODUCT.CONTACT_ID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>GROUPCODEID.displayValue</name>
......
......@@ -245,22 +245,27 @@
<dbRecordFieldMapping>
<name>BUYSELL.value</name>
<recordfield>PRODUCTPRICE.BUYSELL</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CURRENCY.value</name>
<recordfield>PRODUCTPRICE.CURRENCY</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>FROMQUANTITY.value</name>
<recordfield>PRODUCTPRICE.FROMQUANTITY</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRICE.value</name>
<recordfield>PRODUCTPRICE.PRICE</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRICELIST.value</name>
<recordfield>PRODUCTPRICE.PRICELIST</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRODUCTPRICEID.value</name>
......@@ -269,22 +274,27 @@
<dbRecordFieldMapping>
<name>PRODUCT_ID.value</name>
<recordfield>PRODUCTPRICE.PRODUCT_ID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CONTACT_ID.value</name>
<recordfield>PRODUCTPRICE.CONTACT_ID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_FROM.value</name>
<recordfield>PRODUCTPRICE.VALID_FROM</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_TO.value</name>
<recordfield>PRODUCTPRICE.VALID_TO</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VAT.value</name>
<recordfield>PRODUCTPRICE.VAT</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CURRENCY.displayValue</name>
......
import("system.neon");
import("system.vars");
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW)
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW && vars.get("$local.value")) // local.value is previous operationgstate or null. This fixes not working Filter
{
neon.refresh();
}
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1">
<name>Prod2prodFilter_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterable v="true" />
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<treeTableViewTemplate>
<name>PartlistTree</name>
<parentField>DEST_ID</parentField>
<favoriteActionGroup1>alter</favoriteActionGroup1>
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
<name>43d3c9b0-21ab-4996-8d24-af74a5ee1e1a</name>
<entityField>PRODUCTCODE</entityField>
</neonTableColumn>
<neonTableColumn>
<name>4a80fcac-b962-4af6-93c4-d2f5626fb623</name>
<entityField>QUANTITY</entityField>
</neonTableColumn>
<neonTableColumn>
<name>2382a57f-7bf9-4057-8c3c-51819a06620f</name>
<entityField>OPTIONAL</entityField>
</neonTableColumn>
<neonTableColumn>
<name>3ce55692-e3ff-4448-b7df-9cc121ca47dc</name>
<entityField>TAKEPRICE</entityField>
</neonTableColumn>
</columns>
</treeTableViewTemplate>
</children>
</neonView>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1">
<name>Prod2prodFilter_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<treeTableViewTemplate>
<name>PartlistTree</name>
<parentField>DEST_ID</parentField>
<favoriteActionGroup1>alter</favoriteActionGroup1>
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
<name>43d3c9b0-21ab-4996-8d24-af74a5ee1e1a</name>
<entityField>PRODUCTCODE</entityField>
</neonTableColumn>
<neonTableColumn>
<name>4a80fcac-b962-4af6-93c4-d2f5626fb623</name>
<entityField>QUANTITY</entityField>
</neonTableColumn>
<neonTableColumn>
<name>2382a57f-7bf9-4057-8c3c-51819a06620f</name>
<entityField>OPTIONAL</entityField>
</neonTableColumn>
<neonTableColumn>
<name>3ce55692-e3ff-4448-b7df-9cc121ca47dc</name>
<entityField>TAKEPRICE</entityField>
</neonTableColumn>
</columns>
</treeTableViewTemplate>
</children>
</neonView>
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