How to uniquely identify a report

Stimulsoft Reports.WEB discussion
Post Reply
pappan
Posts: 6
Joined: Wed Jun 03, 2009 5:51 am
Location: US

How to uniquely identify a report

Post by pappan »

Hi

I'm loading a report from the report file and sending it to the client for editing as well as they can create new reports and hit save button to save it in server. Now I'm facing an issue. I'm not able to figure out the report that is coming as the argument of save event is a new report or the one I send to client for editing. If it is a new one then I need to create a new report file or overwrite the existing one. I have seen the property ReportGuid, but it is changing each time on the save event. I know we can use the ReportName or ReportAlias, but those are user editable fields, so not fit in this purpose. Is there any property in Report object that can set in server and not changable in client and will persist across the requests so that I can uniquely identify the reports that are editing in the client side ?

Thanks




Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How to uniquely identify a report

Post by Vladimir »

Hello, pappan

Now you can use "ReportFile" property in StiReport.
Patch will be available in next prerelease build on June, 8.

Thank you.
pappan
Posts: 6
Joined: Wed Jun 03, 2009 5:51 am
Location: US

How to uniquely identify a report

Post by pappan »

Hi

Thanks for your update and I'm waiting for your patch. The name of the property sounds like its going to return the path of the report file that we send to the client and that will work for our purpose. However, I do have a question, what if we load the report from a template string, that means if we are loading the report from a string not from a report file. Please ignore the question if this property is any user defined value. Also there is no way I can identify the report that is sending the request in the GetPreviewDataSet event. It would be really great if you can put the report object also as part of the event argument, that can reduce the amount of data that we are sending to the client and it is going to be a huge performance improvement in places where there are thousands of reports.

waiting for your reply

Thanks

pappan

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How to uniquely identify a report

Post by Vladimir »

Hello, pappan

Yes, the ReportFile property can be any user defined value.
Also you can identify report in GetPreviewDataSet event with help of this property (e.Report.ReportFile)

Thank you.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How to uniquely identify a report

Post by Vladimir »

Hello, pappan

Yes, the ReportFile property can be any user defined value.
Also you can identify report in GetPreviewDataSet event with help of this property (e.Report.ReportFile), it will be available in build on June, 8.

Thank you.
Post Reply