Embedded view selection margin issue

I have a rather annoying issue that I cannot solve with the selection margin in an embedded view.

I need to show users a selection of documents based on a category - but each user must only see “his” category of documents.

For that, I embedded a view in a form and set the Show Single Category to the value needed.

Works fine, displays the right documents, everyone is happy - until someone tries to delete a document. Apparently, it “doesn’t work” (bug report in the finest user tradition).

A game of email-tennis ensues until I am thoroughly confused with the base of the issue and I get the user face-to-face to sort the problem out.

It turns out that, while I did specify the selection margin to display, it is nontheless halved in width when it gets to the form - and displays with that half-width for the user.

So the user selects a few documents (which he can do and see the result), then presses Del and . . no result, because the cross-mark that indicates deletion is actually off-frame. Thus I get a bug report.

The issue finally understood, I say to myself “there must be an option I missed”, and I scour the Properties of the form, the view and the Embedded Element to find something that I could use to give the selection margin its normal, double icon-size width.

To no avail. Nothing I try has any effect other than diminishing the usefullness of the embedded element as a whole.

Anyone got any ideas ? Is this a bug to be reported to IBM/Lotus ? Could someone then take up the issue ?

Thanks for anything,

Pascal.

Subject: RE: Embedded view selection margin issue

I have just answered your question in my blog, a link to which appears below. It might not have replicated to the internet yet, in which case wait an hour and try again.

  • Andre Guirard, IBM/Lotus Development

Useful blog: Best Practice Makes Perfect

For faster answers, be C R I S P Y

Subject: RE: Embedded view selection margin issue

Thank you very much for your swift response and in-depth analysis.I will keep an eye on your blog from now on, and I’m telling my colleagues about it.

Subject: Embedded view selection margin issue

I had embedded views with a value in the Show Single Category. The embedded views were in a tabbed table in a subform.

When I enabled the selection margin, the check mark would appear when a row was selected, and the row count would increase correctly.

However, when I attempted to uncheck a row, while the row count would decrease correctly, the check mark would remain - no matter how many times I would select and unselect the row. A button on the view would call an agent to unselect the rows, but it too failed to remove the check marks.

Consequently, I disabled the selection margin for the embedded views, and I added code to the Database Resources=>Database Script=>QueryDocumentDelete to ignore the delete key on an embedded view.