Hi all,
Using PB11.5.1. build 5097
One of our customers wants our whole application to be in caps. So every datawindow input needs to be automatically in caps.
We wrote a function for our master dw object which works fine for normal char inputs.
Coming to dropdowndatawindows with the option - Allow Editing checked , we are experiencing a problem.
Below you can find our CAPS function. Problem is whenever the Edit.Case=1 is being executed , the arrow of the dddw dissapears...
We did some searching and added the UseAsBorder=Yes modify to our function, but this didn't change anything.
1) How come the arrow dissapears for dddw's with allow editing checked after the edit.case has been set to 1 ?
2) How to get the arrow back ?
number_of_columns = integer(dw_a.Describe("DataWindow.Column.Count"))
for i = 1 to number_of_columns
str_a = dw_a.Describe ("#" + string(i) + ".Name")
str_c = dw_a.Describe(str_a + '.ColType')
str_datatype = Left(str_c,Pos(str_c,'(') - 1)
// edit.style
ls_a = str_a + ".Edit.Style"
str_edit = dw_a.describe(ls_a)
If (str_datatype = 'char' ) and (str_edit = 'edit' or str_edit = 'dddw') Then
str_b = dw_a.Modify(str_a + ".Edit.Case='1'")
If str_edit = 'dddw' Then
//dw_a.Modify(str_a + ".UseAsBorder=Yes")
End If
End If
next
return 0
TIA
John