By "selection based listbox" I assume you mean traditional record selection
listbox and not an entity selection/collection listbox. I have not tested this,
but I think it will work without changing the highlighted records or scroll
position.
COPY SET("UserSet";"MySet")
CUT NAMED SELECTION([Table];"CurrentSelection")
USE SET("MySet")
$entitySelection:=Create entity selection([Table])
USE NAMED SELECTION("CurrentSelection")
COPY SET("MySet";"UserSet")
Since it is not possible to pass an entity selection from one process to
another, it would be really nice if 4D provided direct commands to convert sets
and named selections into entity selections.
John DeSoi, Ph.D.
> On Dec 28, 2019, at 7:35 AM, Jeremy Roussak via 4D_Tech
> <[email protected]> wrote:
>
> I have a selection-based listbox. I’d like to make an entity selection from
> the highlighted rows in the box. Is there an easy way? I’m new to ORDA, so
> I'probably missing something obvious.
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************