From examination of the exported datawindow source code, I see the following:
Column id 96: ratkaisutyyppi char(8)
DDDW name: d_pop_koodi DisplayColumn: kuvaus DataColumn: poptunnus DDDW.limit = 0
Column id 16: liittymatyyppi char(8)
DDDW name: d_pop_koodi DisplayColumn: kuvaus DataColumn: poptunnus DDDW.limit = 40
Column id 11: taphtunalaji char(8)
DDDW name: d_pop_koodi DisplayColumn: kuvaus DataColumn: poptunnus DDDW.limit = 40
Column id 26: resepitunnus char(8)
DDDW name: d_muko_koodi DisplayColumn: nimi DataColumn: koodi DDDW.limit = 40
Since I do not have the source for d_pop_koodi and d_muko_koodi, I can only assume the columns identified as the DataColumn are also defined as char(8). That is one item I suggest needs to be checked.
I'm not sure why the dddw.limit is not the same for these columns. Another thing you could experiment with.
I suspect there may be a problem with the changes being made at execution time to switch languages. Since you have functions in global objects dynamically making significant changes to the main datawindow, I suggest you temporarily add a command button to the window that extracts and displays the dddw.displaycolumn and dddw.datacolumn properties of each of these four column objects... This can be done via dot notation:
String ls_displaycolumn, ls_datacolumn
ls_displaycolumn = d_tillittyma.Object.ratkaisutyyppi.dddw.displaycolumn
ls_datacolumn = d_tillittyma.Object.ratkaisutyyppi.dddw.datacolumn
or via Describe:
String ls_displaycolumn, ls_datacolumn
ls_displaycolumn = d_tillittyma.Describe("ratkaisutyyppi.dddw.displaycolumn")
ls_datacolumn = d_tillittyma.Describe("ratkaisutyyppi.dddw.datacolumn")
Then display these values (along with the column name) via MessageBox. I'm not familiar how this app works, but if possible, check these values before and again after switching languages.
The only other suggestion I have is to temporarily disable the dynamic property changes to these columns, if possible, to see if the errant behavior clears up. That might indicate or give a clue where the issue lies.
Since I do not have the source for d_pop_koodi and d_muko_koodi, I can only assume the columns identified as the DataColumn are also defined as char(8). That is one item I suggest needs to be checked.--->How do i take source for the d_pop_koodi and d_muko_kood .
I'm not sure why the dddw.limit is not the same for these columns. Another thing you could experiment with. ---> Current production version 6.5 it was working fine for these value columns.
I suspect there may be a problem with the changes being made at execution time to switch languages. Since you have functions in global objects dynamically making significant changes to the main datawindow, ---> If i login the application with one language and moving to the problem window i am facing the problem and if i changed to other language and it is working. Then again if i came back to the original login language its working fine. So i thought it should not be language change problem . Do i need to clear any buffer for the particular datawindow field?
I understand your frustration with this issue, but stating repeatedly that this code works in PB 6.5 is largely irrelevant... what's important is that the code does NOT work now, so I suggest you focus your efforts on diagnosing the problem.
Unfortunately, given the complexity of the application/code, I'm limited as the amount of help I can offer. I've described in general terms a possible way for you to perform further investigation, but that is only a suggestion. If you're unable or unwilling to do what it takes to diagnose the issue, you should consider opening a premium support ticket with Appeon or bring in an experienced consultant. I wish you the best of luck.