I want to make a List Box that the user can rearrange (OpenInsight Specific)
At 16 JAN 1998 02:20:57PM Ivan Richmond, Forerunner Systems, Inc. wrote:
We want to create a List Box in which the user can move fields up and down. In other words, we want the user to be able to rearrange the order of the fields and then be able to save that order. Ultimately, we would like them to be able to select whole blocks and move them to a new position in the List Box. It would be great if they could do so by dragging and dropping.
The application of this functionality is that the user can look at all of the sizes an item comes in in their catalog (we sell to catalog companies) and arrange the sizes the way they want them arranged as opposed to having to sort them alphabetically or numerically. Let's say they sell a shirt in sizes: S, M, L and XL. These sizes will normally come up alphabetically as: L, M, S, XL. The list box we're imagining would bring up: L, M, S, XL and allow the user to rearrange them as S, M, L, XL.
So far we have one simple solution but it's not what we'd like. List Box does not support the PREVPOS property so we used an Edit Table. The user selects a position on the Edit Table and then double clicks a new position. Roughly, we grab the array and move the value at PREVPOS and insert into SELPOS. This has two problems: Edit Table does not support multiple selections and we can't figure out how to do drag and drop.
I'd be grateful for any help.
- Ivan
At 16 JAN 1998 03:43PM DSig (SigSolutions) wrote:
Ivan,
No controls in OI support drag/drop.
The Edit Table is the best answer for what you want AND it does support multiple row selection. I believe it is done through send_message.
If you can't find it (in help) and no one else response with exact code .. drop me a line and I will send off some source.
dsig
David Tod Sigafoos ~ SigSolutions
dsig@teleport.com cis:70302,77 voice: 503-639-8080
At 17 JAN 1998 05:41AM Andrew P McAuley wrote:
I have done this using a list box. The pseudo code is as follows
If double clickcheck item clicked ondoes it have string Sprezzatura Ltd[/url]World Leaders in all things RevSoft