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 30 APR 2013 01:41:25PM dsigafoos wrote:

I have the following bit of code for building a radio control in my CREATE routine


		O4WTableStart("tableCaseSensitivity"  )

			O4WSetCell(1,1)

			

			* NOTE: here we name both radios with the same name but different ids.  This links them

			* also note we are using CHANGE event for radio

			O4WRadioButton("Case Sensitive", "CASE", "RADIO_CASESENSITIVITY", "radioCaseSensitive", "")

			O4WSetCell(2,1)

			O4WRadioButton("Case Insensitive", "NONCASE", "RADIO_CASESENSITIVITY", "radioCaseInsensitive", "") 

			O4WUpdate("radioCaseInsensitive", "", styleReplace:selectMe)

			

		O4WTableEnd("tableCaseSensitivity")

Now, according to '212-986 O4W 9.3.1 Reference Guide.pdf' I can only find reference to the CHANGE event working with the RADIO contol. Is this right?

Assuming that is the case, the document for change event is …


Event: CHANGE 	

Description: Generate CHANGE event when the value of the specified element changes 	

Generates event in O4W commuter module: CHANGE event, with additional values 	

O4WChangeID (ID of element that changed) and O4WChangeValue (new value of element that 	

changed) which can be retrieved with O4WGetValue 	

ID: ID of element to watch, or NAME of element to watch 	

Param1: Type of control specified in ID parameter (values are “listbox”, “radio”, “checkbox”, 	

or “textbox”) 	

Param2: (Optional) Any additional name/value pairs to pass down to the commuter module with 	

the CHANGE notification (for example, “COMPANY=REVELATION&PRODUCT=OI”); 	

these values can be retrieved using O4WGetValue 	

Param3: N/A 	

Example: 	

  	

O4WTextbox(“”, “”, “”, “CONTACT”) 	

O4WQualifyEvent(“CONTACT”, “CHANGE”, “TEXTBOX”)	

From the reading of the above I would *assume* that the following would cause an event (CHANGE) to be fired off when selected/unselected.

O4WQualifyEvent("radioCaseInsensitive", "CHANGE", "radio")

But no matter how I add it it just doesn't want to fire an event. By the way i have a CASE 1 check with debug so it should fire.

Thoughts on how this should be set …

Thanks


At 30 APR 2013 02:09PM Dave Harmacek wrote:

O4WQualifyEvent( ID, "CHANGE", "radio")

try "RADIO_CASESENSITIVITY" for ID above

also try "CHANGED" instead of "CHANGE"

Dave Harmacek

Harmacek Database Systems


At 30 APR 2013 07:50PM dsigafoos wrote:

Thanks .. will do. I am sure i have just muffed it .. it couldn't be the docs :)

View this thread on the Works forum...

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