Home » Developer & Programmer » Forms » Radio groups and Forms 10g Dev
Radio groups and Forms 10g Dev [message #253609] Tue, 24 July 2007 07:08 Go to next message
otakufran
Messages: 11
Registered: July 2007
Junior Member
Hi plp, I'm having some trouble with radio groups in my forms app. I create the group with every button I need, but when I run the app it doesn't recognize the default value I assigned to it in the properties tab. I suppose I'm giving a wrong value, but I can't see the problem. The data type is Number, and I put 1 as default value, but it gives me error FRM-40212.
I have to assign the value directly in my PRE-FORM trigger, that's the only way it works. But I think I'm doing something wrong in the properties tab...

Thanks a lot for your help.

See u
Re: Radio groups and Forms 10g Dev [message #255157 is a reply to message #253609] Mon, 30 July 2007 20:17 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Yes. Leave the Pre-Form trigger alone as it fires too early for most uses.

Please explain a bit more as to where you have the radio group - is it a control item or an item in a database block?

Please post the message as well as the error code, it saves us EACH having to search for the meaning. "FRM-40212: INVALID VALUE FOR FIELD <NameOfField>" is much more useful that just FRM-40212.

Check your datatype and the values you have specified for the readio group.

Have you tried to specify one of the values as 'null'?

David
Re: Radio groups and Forms 10g Dev [message #255206 is a reply to message #253609] Tue, 31 July 2007 00:45 Go to previous messageGo to next message
otakufran
Messages: 11
Registered: July 2007
Junior Member
Yes, it's inside a database block. One of the radios has value 1, and I assign that value to the group, but thast doesn't work, it says that the value is incorrect.
I'll try the null thing, thanks for your help.
Re: Radio groups and Forms 10g Dev [message #256048 is a reply to message #255206] Thu, 02 August 2007 20:20 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
What is the datatype of your item? Did you assign 1 or '1'? Please post your code. About 'null', I believe that radio group items don't LIKE to have an entry set to 'null'.

Please get back to us with the result of your testing.

David

Re: Radio groups and Forms 10g Dev [message #256150 is a reply to message #253609] Fri, 03 August 2007 03:21 Go to previous messageGo to next message
otakufran
Messages: 11
Registered: July 2007
Junior Member
With null value I don't get any result, it gives me error.
My item is a Number, and I assign the value 1, without '' (and I have a radio item with value 1 inside the group, obviously).

Thanks a lot for your help.
Re: Radio groups and Forms 10g Dev [message #256598 is a reply to message #256150] Mon, 06 August 2007 01:45 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please don't say things like "With null value I don't get any result, it gives me error." Tell us the number and description of that error.

I suggest simplifying your radio group so that it has only two 'radio buttons' and seeing if it works. When you get the simply one to work then you can expand it.

David
Previous Topic: how to use MS-Project in oracle forms and Move data from MS-Project to oracle forms and back (merged
Next Topic: Java Bean clock for Oracle Forms 10g
Goto Forum:
  


Current Time: Mon Mar 10 11:42:57 CDT 2025