Menu

#14 Multiple Select Enhancement to DbSelectTag

open
nobody
None
5
2003-03-13
2003-03-13
No

For a current project, I needed to use a db:select tag
in an empty dbforms (no table) to display some
selectable information (report selection criteria). In
addition, needed to have the ability to select more
than one item from the selection. To facilitate this
situation, I added the following in the
DbSelectTag.generateSelectHeader method:
...
if (size != null)
{
if (size.endsWith("*")) { // MGS
size = size.substring(0, size.length()-1);
tagBuf.append(" MULTIPLE");
}
tagBuf.append(" size=\"");
tagBuf.append(size);
tagBuf.append("\"");
}
...
This way, when size is specified and it ends with an
'*' (i.e., size="6*"), the mulitple selection flag is
set for the control. This may or may not be useful to
others, but just in case, here it is.

Mike

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.