Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Accessing fmt messages in CustomSQL

$
0
0
Hi,

I have a DS XML file in which I have written a customSQL as shown below

Code:

SELECT 'HELLO', COL1, COL2 FROM TABLE_NAME
The word HELLO is hard coded in the sql which is in english.
But when I go to other language our users want it in other language. So I tried to use as below. For the Datasource Tag in ds xml file I have given it as

Code:


<DataSource ID="...." serverType="sql" tableName="...." dbName=".." xmlns:fmt="WEB-INF/">
        <fmt:bundle basename="qa.gov.moi.erp.util.resources.messages" />


<fields>
.....
</fields>

<operationBindings>
<operationBinding operationType="fetch">
  <customSQL><![CDATA[
      SELECT '<fmt:message key="Label.HELLO"/>', COL1, COL2 FROM TABLE_NAME
  ]]> 
  </customSQL>
</operationBinding>
</operationBindings>

<DataSource>


If I am trying to do it wrong, could you please let me know how to do it. Is there any other way of doing it.

We are working on below environment:

Version: Isomorphic SmartClient/SmartGWT Framework (SmartClient_v90p_2014-03-07_PowerEdition)

Browser: IE9


Thanks in Advance.

Viewing all articles
Browse latest Browse all 4756

Trending Articles