So in fact you're saying that it is not possible to use VALUELIST properties
in a form, other than in textboxes?

Joost

"Nuno Canas" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Joost,
>
> You have many way to do that...
>
> 1st) Property InOrEx As %IntegerAs %Integer(DISPLAYLIST = ",In,Ex",
> VALUELIST = ",0,1");
> ;
> 2nd) Property InOrEx As %Boolean; // Which means 0 or 1
> 3rd) Create a secondary table that has the Allowed Values i.e.(more than
> 2 let me know if you want to explain it in CSP)
> Relationship InEx As <Package>.<SecondaryTable> [ Cardinality = one,
> Inverse = InEx ];
>
> In CSP if you generate the form with Assistant On the first case You'll
get:
> 1)
> 2) With CheckBox (In=Checked Ex=Unchecked) --> %Boolean
>    <tr>
>      <td class="tb0f"><div align="right">In/Ex:</div></td>
>      <td><input class="ftext" type="checkbox" name="InOrEx"
> cspbind="InOrEx"></td>
>    </tr>
> 3) With Radio --> %Boolean
>    <tr>
>      <td class="tb1f"><b><div align="right">Sexo:</div></b></td>
>      <td>
>        <table class="ftext">
>      <TD><INPUT TYPE="RADIO" NAME="InOrEx" Value='1' CSPBIND="InOrEx"
> selected>In</TD>
>      <TD><INPUT TYPE="RADIO" NAME="InOrEx"
Value='0'CSPBIND="InOrEx">Ex</TD>
>    </tr>
> 4) With VALUELIST Hardcoded in Class
>    <tr>
>      <td class="tb1f"><b><div align="right">In/Ex:</div></b></td>
>      <td><select class="ftext" name="InOrEx" cspbind="InOrEx">
>          <option value="0">In</option>
>          <option value="1">Ex</option>
>        </select></td>
>    </tr>
>
>
>
> Hope this helps
>
> Nuno
> Joost Verhoog wrote:
>
> > I have a property
> >
> >
> >>   Property InOrEx As %String(VALUELIST = " In Ex");
> >
> >
> > that I want to place on a page that uses CSP binding. I can do that in
three
> > ways.
> >
> > _First_
> >
> >
> >><input type="text" name="InOrEx " cspbind="InOrEx "/>
> >
> >
> > But now the user has to know that there has to be In or Ex in the
textfield.
> > Just giving the options would be better:
> >
> > _Second_
> >
> >
> >>   <input type="radio" name="InOrEx " cspbind="InOrEx"
value="In"/>In<br/>
> >>   <input type="radio" name="InOrEx " cspbind="InOrEx" value="Ex"/>Ex
> >
> >
> > But not the csp-binding does not work. When I load the page with a
certain
> > object, the radio boxes are empty, even though the object has a
> > InOrEx-value.
> >
> > _Third_
> >
> >
> >>     <select name="InOrEx "
> >>             cspbind="InOrEx "
> >>         <option value="In">In</option>
> >>         <option value="In">Ex</option>
> >>     </select>
> >
> >
> > But this does not work either, for the same reson.
> >
> > Does anyone know how to do this?
> >
> > Joost Verhoog
> >
> >
>



Reply via email to