[OFBiz] Users - Form Widget drop-down (current*)

Chris Chesney cchesney at go-integral.com
Fri Sep 17 15:04:49 EDT 2004


Al/David,

I think I'm still a little fuzzy on the "current" options and what they
do, but yes, the no-current-selected-key was what I needed.  I have been
using the DTD, but that comment didn't seem to make sense to me at the
time.  It seems to now, though.  I thought I tried the
no-current-selected-key option before posting, but apparently not in the
right combination.  FYI, that's the only option I'm setting now.  I'll
keep playing and see if I can figure out more.  Thanks again for you
help.

Chris

-----Original Message-----
From: Al Byers [mailto:byersa at automationgroups.com] 
Sent: Friday, September 17, 2004 1:00 PM
To: OFBiz Users / Usage
Subject: Re: [OFBiz] Users - Form Widget drop-down (current*)

Chris,

Have you tried setting the "no-current-selected-key" to "N"? I have not 
used the "current" and "current-description" attributes. I wonder if 
they are new? "current" and "current-description" seem to be a way to 
override the current description if a value has been selected when the 
select is built. Is it possible that no value is present and you need to

use the "no-current..." attribute?

-Al

-Al
Chris Chesney wrote:

> I'm trying to get a specific entry in a drop-down selected and am 
> having difficulty. I'm using the following block:
>
> <field name="testfield" title="testtitle">
>
> <drop-down current="selected" current-description="N">
>
> <option key="Yes" description="Y"/>
>
> <option key="No" description="N"/>
>
> </drop-down>
>
> </field>
>
> Am I doing this right? I'm trying to get "N" selected. Is there a way 
> to get an item selected by specifying the key? Regardless of what I 
> do, it appears that the first item in the list is always the displayed

> one.
>
> Thanks,
>
> Chris
>
>-----------------------------------------------------------------------
-
>
> 
>_______________________________________________
>Users mailing list
>Users at lists.ofbiz.org
>http://lists.ofbiz.org/mailman/listinfo/users
>


-- 
Al Byers
Automation Groups Inc
801.400.5111
http://www.automationgroups.com
byersa at automationgroups.com

We're "Open for Business" (http://www.ofbiz.org) 
 - the leader in Java-based Web services development tools

 
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users


More information about the Users mailing list