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

Returning a subset of fields

$
0
0
I am translating my application, and I have some texts in the db, which also have to be translated.

So I have a table:
id, text_en, text_de

In my datasource I have both fields, and depending on the language, I select one of them.
But the fetch returns ALL fields, so it would return both text_en, text_de,which would waste bandwidth. Is there a way to fetch only one of the fields, depending on something, in this case, of the language?

Using smartgwt 4.1p Power.

Viewing all articles
Browse latest Browse all 4756

Trending Articles