Hi Isomorphic,
please see this testcase:
/builtinds/war/ds/mytype.type.xml
/builtinds/war/BuiltInDS.html
(I used the normal (not modified) class BuiltInDS.java)
Expected Behaviour:
One of the customSelectExpression(s) in SimpleType "mytype" gets applied -> "as cSE Tag" or "in SimpleType" gets shown in column "commonName"
Real behaviour:
Neither of the customSelectExpression(s) gets applied, values are shown as in the database.
(I also testes two cases with only one cSE)
Its importent for us, that the customSelectExpression in SimpleType "mytype" gets applied. Please take a look at it, and let me know if there is something wrong with this usage or if this is a bug.
setup:
SmartClient Version: v12.0p_2019-04-11/PowerEdition Deployment (built 2019-04-11)
Thanks in advance,
Kind Regards
please see this testcase:
/builtinds/war/ds/mytype.type.xml
Code:
<SimpleType name="mytype" inheritsFrom="text" customSelectExpression="'in SimpleType'"> <field customSelectExpression="'in field Tag'" /> <customSelectExpression>'as cSE Tag'</customSelectExpression> </SimpleType>
/builtinds/war/BuiltInDS.html
Code:
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- --> <!-- Any title is fine --> <!-- --> <title>BuiltInDS</title> <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so that the SmartGWT resource are correctly resolved --> <script> var isomorphicDir = "builtinds/sc/"; </script> <!-- --> <!-- This script loads your compiled module. --> <!-- If you add any GWT meta tags, they must --> <!-- be added before this line. --> <!-- --> <script type="text/javascript" language="javascript" src="builtinds/builtinds.nocache.js"></script> <!-- The following script is required if you're running (Super)DevMode and are using module definitions that contain <script> tags. Normally, this script is loaded automatically by builtinds.nocache.js above, but this isn't possible when (Super)DevMode is running. Note: it should not create any issue to always load it below (even if already loaded). --> <script type="text/javascript" language="javascript" src="builtinds/loadScriptTagFiles.js"></script> </head> <!-- --> <!-- The body can have arbitrary html, or --> <!-- you can leave the body empty if you want --> <!-- to create a completely dynamic UI. --> <!-- --> <body> <!--load the datasources--> <script src="builtinds/sc/DataSourceLoader?dataSource=supplyItem,animals,employees,[B]mytype[/B]"></script> <!-- OPTIONAL: include this if you want history support --> <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> </body> </html>
Code:
<DataSource ID="animals" serverType="sql" tableName="animals" testFileName="animals.data.xml" > <fields> <field name="commonName" title="Animal" type="[B]mytype[/B]" /> <field name="scientificName" title="Scientific Name" type="text" primaryKey="true" required="true"/> <field name="lifeSpan" title="Life Span" type="integer"/> <field name="status" title="Endangered Status" type="text"> <valueMap> <value>Threatened</value> <value>Endangered</value> <value>Not Endangered</value> <value>Not currently listed</value> <value>May become threatened</value> <value>Protected</value> </valueMap> </field> <field name="diet" title="Diet" type="text"/> <field name="information" title="Interesting Facts" type="text" length="1000"/> <field name="picture" title="Picture" type="image" detail="true" imageURLPrefix="/isomorphic/system/reference/inlineExamples/tiles/images/"/> </fields> </DataSource>
(I used the normal (not modified) class BuiltInDS.java)
Expected Behaviour:
One of the customSelectExpression(s) in SimpleType "mytype" gets applied -> "as cSE Tag" or "in SimpleType" gets shown in column "commonName"
Real behaviour:
Neither of the customSelectExpression(s) gets applied, values are shown as in the database.
(I also testes two cases with only one cSE)
Its importent for us, that the customSelectExpression in SimpleType "mytype" gets applied. Please take a look at it, and let me know if there is something wrong with this usage or if this is a bug.
setup:
SmartClient Version: v12.0p_2019-04-11/PowerEdition Deployment (built 2019-04-11)
Thanks in advance,
Kind Regards
Comment