Multiple instances of a datamodule

I have a data module defined called "dm".
One of the tables in dm is called "items".
In the report specification the fields are referenced as [dm.items."FieldName"]

At runtime I may have multiple instances of my data module and they can come and go depending on what the user is doing.

How can I get my report to know which instance of the datamodule to use?

My solution so far:

When a datamodule is created that I know is for use by a report, I assign the name property of the datamodule at runtime that I then use in the report specification.

For example I say dm.name :="dmrpt" at runtime. This way I can reference fields in the report as [dmrpt.items."FieldName"] and the report won't try and use my generic data module.

This is all well and good until a user starts two reports at the same time.

How can I get the report to use the correct instance of the data module? Any suggestions?

Thanks,

Erik

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.