Page 1 of 1

How to uniquely identify a report

Posted: Fri Jun 05, 2009 5:44 am
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





How to uniquely identify a report

Posted: Mon Jun 08, 2009 2:41 am
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.

How to uniquely identify a report

Posted: Mon Jun 08, 2009 4:07 am
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


How to uniquely identify a report

Posted: Mon Jun 08, 2009 4:47 am
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.

How to uniquely identify a report

Posted: Mon Jun 08, 2009 7:00 am
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.