Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 13 MAY 2013 11:53:39AM David Boyle wrote:

Hi,

I have a problem with checkboxes in a column on an Editable. The first time it is clicked it requires 2 clicks to become checked. This only happens when I send an array of data to the table using Set_Property.

Anyone else experienced this?


* Building an Array in a loop

Table_Array = Insert(Table_Array,1,-1,0,@ID)

Table_Array = Insert(Table_Array,2,-1,0,CP_key)

Table_Array = Insert(Table_Array,3,-1,0,Name)

Table_Array = Insert(Table_Array,4,-1,0,Amount)

Table_Array = Insert(Table_Array,5,-1,0,Authorised)

Table_Array = Insert(Table_Array,6,-1,0,Check1)

Table_Array = Insert(Table_Array,7,-1,0,Signature1)

Table_Array = Insert(Table_Array,8,-1,0,Check2)

Table_Array = Insert(Table_Array,9,-1,0,Signature2)



* Create a CheckBox in Column6 

origColStyle = '' ;  newColStyle = '' ;  ColStyle = ''

origColStyle = Send_Message(@Window:".TABLE_CHQS", "STYLE_BY_POS", 6, 0)                 ;* Current Style

newColStyle = bitor(origColStyle, DTCS_CHECKBOX$)                                                             ;* New Style

ColStyle = Send_Message(@Window:".TABLE_CHQS", "STYLE_BY_POS", 6, 0, newColStyle)  ;* Column 6



Rv = Set_Property(@Window:".TABLE_CHQS","ARRAY",Table_Array)


At 13 MAY 2013 05:31PM Barry Stevens wrote:

Yep, very annoying.


At 14 MAY 2013 03:55AM David Boyle wrote:

Hi Barry,

Do you know of a way around this problem? Extremely frustrating when interacting with stored procedures!


At 14 MAY 2013 08:56AM David Boyle wrote:

I had another look at this this afternoon. Creating the checkboxes After populating the table seems to have fixed my problem…. for now!


* Put the Data on the window

Rv = Set_Property(@Window:".TABLE_CHQS","ARRAY",Table_Array)

		

* Create a CheckBox in Columns 6 & 8

OrigColStyle = '' ;  newColStyle = '' ;  ColStyle = ''

origColStyle = Send_Message(@Window:".TABLE_CHQS", "STYLE_BY_POS", 6, 0)           ;* Current Style

newColStyle = bitor(origColStyle, DTCS_CHECKBOX$)                                  ;* New Style

ColStyle = Send_Message(@Window:".TABLE_CHQS", "STYLE_BY_POS", 6, 0, newColStyle)  ;* Column 6

ColStyle = Send_Message(@Window:".TABLE_CHQS", "STYLE_BY_POS", 8, 0, newColStyle)  ;* Column 8


At 14 MAY 2013 03:18PM Barry Stevens wrote:

Ah, that is interesting, thanks.


At 14 MAY 2013 04:09PM mike ruane wrote:

I would have thought that it would always take two clicks - the first giving focus to the control or cell, the second checking or unchecking the checkbox.

Mike


At 14 MAY 2013 09:32PM Barry Stevens wrote:

Mike,

You are right technically, but, in a production environment that behavior is annoying.

The solution, as sted above is to create the checkboxes AFTER the data has filled the table, i.e. post read.

btw, I am suddenly not getting email forum notifications….over past couple of days I think.


At 15 MAY 2013 08:57AM ROBERT wrote:

Barry, I've been tracking some email delivery problems from the forum and I think it's been located. You should notice the email notifications are now working.


At 15 MAY 2013 10:18PM Barry Stevens wrote:

  • third_party_content/community/commentary/forums_works/a717e9f4916d1eaea097f27ba.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1