Skip to Content

Powerbuilder app showing strange characters.

Hello,

I have some problems when I try to manage the display-only property on certain row in a datawindow.
The problem is that switching to another row using down-arrow inserts some random Chinese characters, like in this picture. (always the same characters)

PB version: 12.6

This is a simple app I made in order to be able to show you the problem. The only coding that exists in the app is the following:

main->dw_1-> rowfocuschanged():

    Event of_managereadonly(currentrow)

main->dw_1-> of_managereadonly():

If This.Describe( "DataWindow.ReadOnly" ) = 'yes' Then
	This.Modify( "DataWindow.ReadOnly=False" )
End If


int li_index
If ( This.GetItemNumber(currentRow, "f_access") = 1 ) Then
	for li_index = 1 to 1 
		This.Modify("char_"+string(li_index)+".protect='0'")
	
		If (This.Describe("char_"+string(li_index)+".Edit.DisplayOnly") <> "yes") Then
			This.Modify("char_"+string(li_index)+".Edit.DisplayOnly=True")
		End If
	
	next
	
	for li_index = 1 to 2 
		This.Modify("num_"+string(li_index)+".protect='0'")


		If (This.Describe("num_"+string(li_index)+".Edit.DisplayOnly") <> "yes") Then
			This.Modify("num_"+string(li_index)+".Edit.DisplayOnly=True")
		End If


	next




	for li_index = 1 to 1
		This.Modify("date_"+string(li_index)+".protect='0'")
		If (This.Describe("date_"+string(li_index)+".Edit.DisplayOnly") <> "yes") Then
			This.Modify("date_"+string(li_index)+".Edit.DisplayOnly=True")
		End If
	next


Else
	for li_index = 1 to 1 


		If (This.Describe("char_"+string(li_index)+".Edit.DisplayOnly") <> "no") Then
			This.Modify("char_"+string(li_index)+".Edit.DisplayOnly=False")
		End If


	next
	for li_index = 1 to 2


		If (This.Describe("num_"+string(li_index)+".Edit.DisplayOnly") <> "no") Then
			This.Modify("num_"+string(li_index)+".Edit.DisplayOnly=False")
		End If


	next


	for li_index = 1 to 1
		If (This.Describe("date_"+string(li_index)+".Edit.DisplayOnly") <> "no") Then
			This.Modify("date_"+string(li_index)+".Edit.DisplayOnly=False")
		End If
	next	


End If


Return 1

Does any of you confronted with this problem or knows a way to fix it?

Kind regards,

Andrei

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Feb 13 at 02:56 PM

    Hi Patricia, and thanks for the answer.

    I'm currently using build 3506.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Andrei,

      What build of PB 12.6 are you using? This looks like a fixed bug in the GA version of PB 12.6 (build 3506) that has been fixed.

      Please try updating to the latest EBF.

      Pat

  • Feb 13 at 03:02 PM

    Andrei,

    Please update to the latest EBF, 12.6 SP00 PL15 (build 4220).

    This looks like a known fixed issue (CR 771544) in the GA release (build 3506) that is fixed in any build 4011 or higher. If not fixed in the latest EBF, please open a support incident for this.

    Pat

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15 at 08:18 AM

    Hi Patricia, and thanks for your answer.

    I'm currently using build 3506, so I don't know what to say...

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15 at 08:52 PM

    Andrei,

    With that build, you will see these strange characters. It was a bug that has been fixed but to see the fix you must upgrade, there was not a workaround.

    Pat

    Add comment
    10|10000 characters needed characters exceeded