Dear Team,
For a DataSource named "DEPARTMENT", I have a column named "COM_CODE" of type CHAR(5) but user can store any length which is less than 5.
I have decleared the filed in the Data Source as follows
In the Dynamic Form this column is showing as a text box where is user is allowed to enter text but the problem is trailing spaces are coming to the end because the column in the database is CHAR(5)
So I was asked to do TRIM while fetching and store it as it is while storing.
So I have written the filed as follows.
After writing this, because I have written customSelectExpression for this column, the column values are not stored in the Database then onwards.
What should I do to overcome this problem.
Hope for your reply.
We are working on the below environment:
SmartClient version : Isomorphic SmartClient/SmartGWT Framework (10.0p_2014-12-23/PowerEdition Deployment 2014-12-23)
Browser : IE9
Thanks in advance.
For a DataSource named "DEPARTMENT", I have a column named "COM_CODE" of type CHAR(5) but user can store any length which is less than 5.
I have decleared the filed in the Data Source as follows
Code:
<field name="COM_CODE" type="text" length="5"/>
So I was asked to do TRIM while fetching and store it as it is while storing.
So I have written the filed as follows.
Code:
<field name="COM_CODE" type="text" length="5" customSelectExpression="TRIM(COM_CODE)"/>
What should I do to overcome this problem.
Hope for your reply.
We are working on the below environment:
SmartClient version : Isomorphic SmartClient/SmartGWT Framework (10.0p_2014-12-23/PowerEdition Deployment 2014-12-23)
Browser : IE9
Thanks in advance.
Comment