0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Publisher】Creating a menu report

Last updated at Posted at 2023-04-28

In this article, I will show how to create a menu report.

Creating a menu report

Open Sharperlight application menu.
Select Publisher.
Choose Other -> Create Menu Report from the right-click menu.
image.png
WIth the default option, click OK to proceed.
image.png
The list of published reports will open so choose reports which you want to add to the menu.
Click OK to go next.
image.png
You would be able to see what you selected with a grid. Click OK.
image.png
The dialog will let you input some information for the menu. Leave it as it is and click OK.
image.png
You would see this when the menu report is created successfully.
image.png
The menu is also a type of published report like this.
image.png

Managing the menu report

Let's open the menu report you just created and see the details and edit it.
The Code, Group and Title have the default values like this.
image.png
You would be able to edit them like this.
image.png
Then let's have a look the query definition for this menu report as the menu is created by the query.
Click Edit Query button to open Query Builder.
image.png
The query definition looks like this and this part is the definition for generating the menu structure.
image.png
Click this button to open the editor for it
image.png
It is a comma delimited list.
image.png
If you click Grid Edit button you would be able to see the definition in grid.
As you can see, those five columns are at least required.
The value for each column on the header row has a special format, Column Name::Data Type.
We need to keep this as they are.
image.png
Click Cancel for now. Also click Cancel for the query builder as well.
Then click OK for the menu report to save it because you editted the Code, Group and Title.

Opening the menu report

Start Sharperlight service.
Select the report in the Publisher dialog, choose View Report from the right-click menu.
image.png
You would see two tab menus like this.
image.png
They are come from these definitions in the query.
image.png
When the cursor is placed on "Reports" tab, the sub menu items would be displayed.
image.png
These sub menus are generated with these definitions in the query.
image.png
Let's click the sub menu "SAP Sales Invoice", the report would be displayed under the menu bar.
This is the default settings when the defined URL is like this.

/Report/?query=SAP.SalesInvoices

image.png
When you would like to open the report with a new tab/window, you can add the option (&openInNewWin=blank) to the URL.

/Report/?query=SAP.SalesInvoices&openInNewWin=blank

image.png

Setting the default content

With the example above, under the menu bar shows nothing and you can display any report under the menu bar as default by specifing the report unique code here.
image.png
image.png
image.png

Header of the menu

image.png
The header is defined in the Header option on the Options tab and they are written with the standard HTML code like this. You would write your own custom header here.
image.png
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?