I have been using your Sample Plugin Editable List Maintenance to create various lists in support of some required business logic.
I have a need to drill down into some further detail for each record in one of these lists. I made up another Sample Plugin Editable List Maintenance based form for this detail, and added a JiwaLookupButtonCellType column to the calling list which calls:
- Code: Select all
var managerForm = new RunSheet(recId);
managerForm.ShowDialog();
The form pops up, but has no rows populated. I assume that when the Jiwa appliucation create a form it then subsequently makes a call to it to kick off the Read() process??? I have tried various approaches but keep getting "object not set" errors, so I guess I am making the call before instantiation has completed, but I can't find the correct event to hook into. Could you please advise?
As a related question ... you will notice above, the (recId) parameter passed to the constructor. This is used set set BusinessLogic.Tag, then I access base.Tag in the Read() override to set a @DeliveryRunID SQL parameter. I guess this should work (once I can get the rows displaying) but it seems a little fudgy. Is there a more correct approach to pass in a parameter to the Read() override?
Thanks,
Neil