The attribute value of a combobox should give me a default value. What value should I assign to this? The value of the display column or valuecolumn. I tried both but it yields nothing. Interestingly the value is displaye in preview mode, but not when I run the application. I have to admit that it is very debatable of usefulness. I have a table with statuses. In its basic form it will be ID Status 1 Opened 2 Closed 3 Investigation 4 Waiting Approval 5 Lodged Now the default is "Opened" with key ID 1. It will always be 1. I am storing these things in tables as I need deal with multiple languages and users can add additional statuses. But they can never remove ID 1. I am open to better suggestions to handle this.

asked 05 Mar '14, 05:19

Raymond's gravatar image

Raymond
24328
accept rate: 0%


Hi Raymond,

If the combobox (or any other component) is bound to a datasource column then Formspider ignores the value attribute of the component and uses the datasource column as the value attribute.

Your combobox probably has the column attribute populated, which means that it reads/writes from/to a datasource column. Populate the datasource column the combobox is pointing to with the default value you want and you should be OK.

Kind Regards, Yalim

link

answered 05 Mar '14, 05:51

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

edited 05 Mar '14, 05:57

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5

Ok I don't quite follow what you mean by "populate the datasource column the combobox is pointing to".

<cell columnspan="2" halign="Full" valign="Full"> <combobox value="Customer" filter="N" displaycolumn="CONTACT_TYPE_NAME" valuecolumn="CONTACT_TYPE_ID" displaynulloption="N" column="CONTACT_TYPE_ID" datasource="Contact1" listdatasource="ContactTypeList1"/> </cell>

(05 Mar '14, 06:17) Raymond

I think I should as how? Which event do I use

(05 Mar '14, 06:25) Raymond

In your example CONTACT_TYPE_ID (column="CONTACT_TYPE_ID") is the datasource column the combobox is pointing to (or bound to).

(06 Mar '14, 04:52) Yalim Gerger ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×30
×5
×4

Asked: 05 Mar '14, 05:19

Seen: 7,582 times

Last updated: 06 Mar '14, 04:52


© Copyright Gerger 2017