Skip to content
Snippets Groups Projects
Commit 08b30d9f authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: xRM-Sales][TicketNr.: 1074369][Productprice: Falsche Lademethode...

[Projekt: xRM-Sales][TicketNr.: 1074369][Productprice: Falsche Lademethode führt zu Performanceproblemen]
parent 6f85aabe
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@
<mandatory v="true" />
<stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>CONTACT_ID</name>
......
import("system.result");
import("system.neon");
import("system.vars");
import("Sql_lib");
// TODO: This should only be a temporary solution, till it's possible to also group fields of pageable dbRecordContainers that have their displayValue set via displayValueExpression (#1077182)
if((vars.exists("$param.ProductId_param") && vars.get("$param.ProductId_param") && vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
|| vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW)
{
result.string(newSelect("PRODUCTNAME")
.from("PRODUCT")
.whereIfSet("PRODUCT.PRODUCTID", "$field.PRODUCT_ID")
.cell());
}
\ No newline at end of file
import("system.result");
result.string("select PRODUCTNAME from PRODUCT \n\
where PRODUCT.PRODUCTID = PRODUCTPRICE.PRODUCT_ID");
\ No newline at end of file
// TODO: Fill this instead of the displayValueProcess once it's possible to also group fields of pageable dbRecordContainers that have their displayValue set via displayValueExpression (#1077182)
\ No newline at end of file
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