Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Update Multi language field via script

$
0
0
Hello,

our item description is a multi language field. We are using French, German, Dutch and English. I want to avoid changing the data language all the time and created as well 4 CDFs for all languages. By changing one of these CDFs I want an Update on the tcibd001.cdscl in the right language. How can I make it happen?

I tried the following code, but it does not work in the user exit:

currlang = ml_get_datalang()
ml_set_datalang("en")

select tcibd001.cdscl
from tcibd001 for update
where tcibd001.item = :v.item.old
as set with 1 rows
selectdo
if tcibd001.cdscl <> tcibd001.cdf_deng then
tcibd001.cdscl = tcibd001.cdf_deng
ml_set_datalang(currlang)
else
ml_set_datalang(currlang)
endif
endselect

Any idea? Or another way?

Thanks and best regards,

Dennis

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>