This pacakge imports an Action which allows you to take a SQL query and convert it into a Query Definition (QD). It also has functionality to generate a report based on the generated Query Definition.
The intended use of this is to migrate Self Service Reports (SSR) to the new Reporting capability. Instructions on how to export your SSRs as SQL queries will be included in the usage instructions below.
Built Using: C# .NET
Please note that each release of this project is version-dependent. To avoid potential errors, please ensure that you download the release of this project corresponding to your installed version of Aras Innovator.
Release | Notes |
---|---|
V1.0 | First release. |
Project | Aras |
---|---|
v1.0 | Releases 28-31 |
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed (Releases 28-31)
- Backup your code tree
- This project makes modifications to core files, so it is highly recommended that you backup your files first
- Open the
Method-config.xml
file within yourInnovator/Server
folders. - In the
<ReferencedAssemblies>
tag, add the following line:<name>$(binpath)/Microsoft.SqlServer.TransactSql.ScriptDom.dll</name>
- Within the CSharp Template (around line 300) add the following Using directive to the collection at the top
using Microsoft.SqlServer.TransactSql.ScriptDom;
- Reset IIS
- Open up the Aras Package Import tool.
- Enter your instance URL and click login to be directed to the login screen. Note: You must log in as
root
for the package import to succeed! - Enter the path to your local ..\SQL-import-forSSR-Migration\imports.mf file in the Manifest File field.
- Select labs_SqlImporter in the Available for Import field.
- Select Type = Merge and Mode = Thorough Mode.
- Click Import in the top left corner.
- Close the Aras Package Import tool.
You are now ready to login to Aras and start importing your Self Service Reports.
This tool is intended to be used to take the exported SQL of a Self Service Report and transform that into a Query Definition and Report.
NOTE: The export process is only possible for instances where you have access to Izenda libraries, meaning you can not export your SQL from 31+.
To export your SSR as a SQL Statement:
- Log into Aras as a user who can edit the SSR you wish to export.
- Open and Edit the desired SSR.
- In the upper toolbar, select the
Export to SQL
option. This button only shows up when the SSR is in edit mode. - The SSR has been exported to a local txt file on your machine. The export could be broken up into a few sections. We only care about the
Detail
portion of this file. - Copy everything under
Detail
To import your SQL into your new Query Definition:
- Log in to Aras as admin. If you want to generate Reports, make sure admin has that permission.
- Click your User Icon in the top right of the screen.
- Under
Actions
clickImport SQL for Report Generation
- Paste the SQL excerpt from the previous section into the SQL text area, set a name for your QD, and select whether or not you would like a Report to be generated as well.
- Click the Submit button to create your QD and Report!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
For more information on contributing to this project, another Aras Labs project, or any Aras Community Project, shoot us an email at [email protected].
Project created by Aras Development and AJ Sebastian at Aras Labs. @asebastian-aras
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.