What is the difference between getDataValue and getPlainDataValue methods in data utility
Solved! Go to Solution.
Hi @TDT
getDataValue returns an object named Component that is shown in the UI tables, attributes etc. generally in MVC Wizards and detail page tables.
Component object can be Label, Icon, CheckBox, ComboBox, TextArea etc...
but Google Web Toolkit can use just String that is plainDataValue.
So getPlainDataValue is used in the GWT tables and sub tabs as a CAD Structure WTPart structure and MPMLink structure.
GWT environment always use the getPlainDataValue method instead of the getDataValue
PetrH
Hi @TDT
getDataValue returns an object named Component that is shown in the UI tables, attributes etc. generally in MVC Wizards and detail page tables.
Component object can be Label, Icon, CheckBox, ComboBox, TextArea etc...
but Google Web Toolkit can use just String that is plainDataValue.
So getPlainDataValue is used in the GWT tables and sub tabs as a CAD Structure WTPart structure and MPMLink structure.
GWT environment always use the getPlainDataValue method instead of the getDataValue
PetrH
There has to be a work around for this in PSB. We have WPA Process Adapter installed, and it shows icons. Also there are two columns we have added to custom views for Change Notices and Alternates that both show icons.
Hi @SE_4597606
No there is not.
You can try to recompile the Google Web Toolkit package try to find configuration how the API are connected together, then customize it with own code if you found how to do so, then compile it back and try if it works.
Believe me you don't have time to do so.
PetrH
PS:
You can try following code with jsonObject for icon,, but it works only in GWT Attribute Tab, it does not work in GWT structure table. Table always shows the full string...
JSONObject jsonObject = new JSONObject();
WTProperties wtproperties = null;
wtproperties = WTProperties.getServerProperties();
String httpAdress = wtproperties.getProperty("wt.server.codebase");
jsonObject.put("type", "icon");
jsonObject.put("iconPath", httpAdress + "/netmarkets/images/myIcon.png"); // nakopirovat 70:32 pixelu
jsonObject.put("tooltip", "My label");
jsonObject.put("label", "My label");
jsonObject.put("target", "_top");
jsonObject.put("link", url);
return jsonObject.toJSONString();
PetrH