This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Methods in Custom Reports,

walekarsa - Tuesday, January 12, 2010 4:29 AM:

Hi,

How do I attach a Method to a Custom Report.

There are OOTB Reports like the ProjectTimeReport which have methods attached to it. How do I attach a similar method to the Custom Report. I cannot see any field for doing so.

Thanks in Advance,



guyIncognito - Tuesday, January 12, 2010 10:36 AM:

I was asking myself the same question for quite a while.  Here's the solution I used:

  1. Open/Edit the Report ItemType.
  2. Under the Views tab open and lock Report_Tab_Report.
  3. In the Unused Properties dropdown select method and add it to the form.
  4. Unlock and save everything.

You should now be able to associate methods to reports.  Keep in mind, though, that when a report uses a method it completely ignores the report_query and xsl_stylesheet defined therein.  It's not too hard, however, to access that information from within the method.

Hope that helps



walekarsa - Wednesday, January 13, 2010 2:43 AM:

Hi,

I tried to follow your method. But still could not get it.

Here the form name in the item type is "Report" and not "Report_Tab_Report". here According to me the Report Generation page is controlled by the Report.Html file. By your method if I add the method field from the unused properties if shows on teh form, but when I try to create a new report that field is still not visible.

I am using Aras Innovator 9.0.1 are you referring to the same version.

Also in the end you mentioned about qyery and xslt not having any part if method is used, but I see 1 of OOTB report i.e. ProjectTimeReport using both method and xslt and query.

Hoping for your kind reply.



guyIncognito - Wednesday, January 13, 2010 10:26 AM:

I'm using 9.1.0 but there's still something you could try.

Did you remember to clear the form cache?

Tools > Admin > Clear Client form Cache

While you're at it, you may as well clear the meta data (in the same menu) and clear you IE cache.

That should do it.