PDA

View Full Version : Adding a combo box.


MikeM
12-19-2008, 03:35 PM
I am adding a combo box to my object. It shows up in the software and I can select an item, but when saving, i get "an error has occurred connecting to database", so I clear the box and try to save and then I get Error 457 and 450.

I've attached photos (I think)

TigerSoftware
12-19-2008, 06:37 PM
I am adding a combo box to my object. It shows up in the software and I can select an item, but when saving, i get "an error has occurred connecting to database", so I clear the box and try to save and then I get Error 457 and 450.

I've attached photos (I think)

Mike, can you close down that Software Object or even the software itself and try it again.

For a combo box, all you need to do is add value in the Property Items window. That is what will be shown in the combo box.



Thomas

MikeM
12-19-2008, 07:12 PM
I did all that. I'm at home now and created the same program on my home computer and it works fine. I must have done something wrong when I created it at work. I'll delete it and check it on Monday.

Thanks.

TigerSoftware
12-19-2008, 07:22 PM
I did all that. I'm at home now and created the same program on my home computer and it works fine. I must have done something wrong when I created it at work. I'll delete it and check it on Monday.

Thanks.

Did you name it the same on both computers?



Thomas

MikeM
12-19-2008, 08:55 PM
No. At work I first created a checkbox editor, and put in 4 values, thinking it would create 4 checkboxes with those values beside them, then I could just check off 1 of them. Well, that didn't work, as there was only 1 checkbox with the caption I gave the bunch of them. So I deleted that and created a drop down, and I think at first I used the same name.

Then I had the errors, so I deleted that drop down and created another one with a different name. Same problem. When I got home, I created the same software, using different names, (which shouldn't matter cause I had never created a drop down at home before) and everything worked. So the problem is on my work computer and is probably because of a naming thing. Just don't understand why it still didn't work with a different name.

Once you delete an editor in an object is it gone from the database or does it remain in limbo?

TigerSoftware
12-19-2008, 09:28 PM
No. At work I first created a checkbox editor, and put in 4 values, thinking it would create 4 checkboxes with those values beside them, then I could just check off 1 of them. Well, that didn't work, as there was only 1 checkbox with the caption I gave the bunch of them. So I deleted that and created a drop down, and I think at first I used the same name.

Then I had the errors, so I deleted that drop down and created another one with a different name. Same problem. When I got home, I created the same software, using different names, (which shouldn't matter cause I had never created a drop down at home before) and everything worked. So the problem is on my work computer and is probably because of a naming thing. Just don't understand why it still didn't work with a different name.

Once you delete an editor in an object is it gone from the database or does it remain in limbo?

It should be gone for good.

Take a look at the radio groups. This might be what you were trying to accomplish. The radio group will more than one button that you can click but only one can be clicked at one time.


You add the different buttons by adding Property Items. You enter in a caption and a value for each one. They do need to be different, which makes me realize I need to enforce a rule there. hehe


The combo only needs the value of the Property Item.


Thomas

MikeM
12-20-2008, 10:16 AM
Thanks Thomas I'll play with it some more.