will
|
Posted: 07/04/2003, 1:15 PM |
|
Hi, two questions:
1.how can i make a check box "not editable" on the list page (i'm using the
wizard)
2.When i check an option, it saves the value 1 to the database, but when i
list it again the option looks unchecked, but in the database the value is
still 1
|
|
|
DonB
|
Posted: 07/04/2003, 2:01 PM |
|
1. You can easily make it always readonly by changing the "disabled"
property on the "Format" tag of the property window. It's a bit harder to
do this at runtime. The Format properties are not available for
modification at runtime. Because of the sequence of event execution, you
can always build a checkbox out of appropriate HTML keywords at runtime,
which lets you completely configure it.
The way to do this is to put a simple Label on the page with it's content
set to allow HTML. Then in its BeforeShow event, you write out a string of
HTML to the label. The easy way to do this would be to temprarily create a
"normal" checkbox like you want it to be, then copy the html CCS creates for
it into your text string in the event code. Then delete the checkbox. At
runtime, you will see the Label as a checkbox. This works for any sort of
HTML, not just a checkbox.
2. This is because you have a mismatch between CCS and database as to how
you represent True and False. It might be as simple as the checkbox "type"
needing to be changed from Integer to Boolean.
The value destined for the checkbox is not recognized and so it can't be
rendered as a checkmark.
DonB
"will" <pcboss1976@hotmail.com> wrote in message
news:be4n93$glo$1@news.codecharge.com...
> Hi, two questions:
>
> 1.how can i make a check box "not editable" on the list page (i'm using
the
> wizard)
>
> 2.When i check an option, it saves the value 1 to the database, but when i
> list it again the option looks unchecked, but in the database the value is
> still 1
>
>
>
>
|
|
|
|