ASL FileRequester, DrawersOnly, MultiSelect

This forum is for general developer support questions.
Post Reply
User avatar
tbreeden
Posts: 160
Joined: Sat Jun 18, 2011 1:57 am
Location: Charlottesville, VA, USA
Contact:

ASL FileRequester, DrawersOnly, MultiSelect

Post by tbreeden »

There seems to be a problem with using the ASL file requester with both ASLFR_DoMultiSelect and ASLFR_DrawersOnly.

I would expect that the wa_Name field of the WBArgs returned would have the name of the selected drawer, and the wa_Lock would be a lock on the containing drawer or device - as it is for files.

Instead, what I see is that all the wa_Locks have a lock on the last selected drawer (the wa_Names are correct).

eg, if directories A, B, and C are selected, all residing in Work:DIR,
returned is

[0] -> wa_Lock "DH1:DIR/C", wa_Name "A"
[1] -> wa_Lock "DH1:DIR/C", wa_Name "B"
[2] -> wa_Lock "DH1:DIR/C", wa_Name "C"

I just happened to notice this in testing, and don't have any immediate need to multiselect DrawersOnly, but it probably should be fixed or noted in the SDK.

If ASLFR_DoMultiSelect is used without ASLFR_DrawersOnly, the problem does not occur - but if you select a mixture of drawers and files, you won't be able to tell which is which without more work. Maybe a FilesOnly tag would be helpful to show drawers, but not allow them to be selected?

Anyone else see this?

Tom
Post Reply