Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Dropdown of srp edit table isn't working
Hi, see the code below:
set_dropdown:
debug
TypeData = ""
TypeData<1> = "Combo"
a = size_array<1>
swap @vm with @stm in a
TypeData<2, 3> = a
TypeData<2, 2> = "L"
TypeData<2, 4> = 1 ;// column 2 contains the values we care about
TypeData<2, 5> = 1 ;// auto fill on
TypeData<2, 6> = 0 ;// case sensitive off
TypeData<2, 7> = 10 ;// 10 visible rows max
TypeData<2, 8> = 0 ;// Don't fire the OnOptionClick
TypeData<2, 9> = 1 ;// Reduce the list to partial matches
TypeData<2, 10> = 0 ;// Only show the drop down when the user types
TypeData<2, 11> = 0 ;// Do not use LIST Format
TypeData<2, 12> = 1 ;// Autofill on first names
TypeData<2, 13> = 1 ;// Hide dropdown when user clears cell
TypeData<2, 14> = 1 ;// Let navigation keys show the drop down
TypeData<2, 15> = 1 ;// Show the drop down regardless of the cell's contents
TypeData<2, 16> = 0 ;// Show the drop down during autofill
TypeData<2, 17> = 1 ;// Remove selection when user backspaces/deletes
TypeData<2, 18> = 0 ;// Show Popup while in read only mode
TypeData<2, 19> = 1 ;// Show Popup When Navigating
TypeData<2, 20> = 1 ;// Always Tab Out on Enter
TypeData<2, 21> = -1 ;// Always show the dropdown above when close to the screen bottom
Set_Property(grd_ctrl$, "OLE.CellType[1; All]", TypeData)
return
The drop down doesn't appear in the table. Is there something wrong with the code?
Thanks
set_dropdown:
debug
TypeData = ""
TypeData<1> = "Combo"
a = size_array<1>
swap @vm with @stm in a
TypeData<2, 3> = a
TypeData<2, 2> = "L"
TypeData<2, 4> = 1 ;// column 2 contains the values we care about
TypeData<2, 5> = 1 ;// auto fill on
TypeData<2, 6> = 0 ;// case sensitive off
TypeData<2, 7> = 10 ;// 10 visible rows max
TypeData<2, 8> = 0 ;// Don't fire the OnOptionClick
TypeData<2, 9> = 1 ;// Reduce the list to partial matches
TypeData<2, 10> = 0 ;// Only show the drop down when the user types
TypeData<2, 11> = 0 ;// Do not use LIST Format
TypeData<2, 12> = 1 ;// Autofill on first names
TypeData<2, 13> = 1 ;// Hide dropdown when user clears cell
TypeData<2, 14> = 1 ;// Let navigation keys show the drop down
TypeData<2, 15> = 1 ;// Show the drop down regardless of the cell's contents
TypeData<2, 16> = 0 ;// Show the drop down during autofill
TypeData<2, 17> = 1 ;// Remove selection when user backspaces/deletes
TypeData<2, 18> = 0 ;// Show Popup while in read only mode
TypeData<2, 19> = 1 ;// Show Popup When Navigating
TypeData<2, 20> = 1 ;// Always Tab Out on Enter
TypeData<2, 21> = -1 ;// Always show the dropdown above when close to the screen bottom
Set_Property(grd_ctrl$, "OLE.CellType[1; All]", TypeData)
return
The drop down doesn't appear in the table. Is there something wrong with the code?
Thanks
Comments
don't worry. It's working now.
Thanks