Question

Dynamic display of columns in Quick Report

  • 1 April 2024
  • 3 replies
  • 64 views

Userlevel 1
Badge +3

Hi all,

Need your help to understand whether there are possibilities to display columns dynamically in IFS10 quick report category. 

 

Below is the sample format which is expected as an output. 

  AGE
YEARS G1 G2 G3
19      
20      
21    

 

Example: If an employee falls under years 20 and grade under G1 then only the output should be displayed like below. 

 

  GRADE
YEARS G1
20 1
Total 1
   

 

Could you please suggest.

This is bit urgent and your inputs will be helpful.

 

   
 

3 replies

Userlevel 4
Badge +8

You can get this done by querying an Oracle Package Function, where the Function returns a pipelined table functionality. The Oracle Pipelined table functions are table functions that return or “pipe” rows back to the calling query, and the query can be simply look like below.

SELECT * FROM <schema>.<API>.<function>(<signature>).

E.g.: SELECT * FROM IFSAPP.Custom_API.Get_Emp_Grades(‘&EMP’)

Within the function, write your own query to generate the result set and return the table rows as a pipelined table. The SQL output then show the returned rows only.

have a read: Pipelined Table Functions (oracle.com)

 

Another idea:

  • If it’s possible, this can be done by using Custom RMB menus, but I’m not sure if it’s convenient. Two menu items on any relevant IFS screen, which perhaps called “Generate EMP GRADE data” and “Run EMP_GRADE QR”, and they do exact as they are named.
  • “Generate EMP GRADE data” will run your logic against the selected record and generate the required data into a temp table, or will generate a view dynamically which will return the data you expect.
  • “Run EMP_GRADE QR” is simply to execute the quick report which queries the aforementioned temp table \ view.

Hope these help.

Userlevel 4
Badge +7

Hi,

can you share the IFS mask where you see the Grade info?
Am I rigth that you need a list a summed up values?
How many people with Age x and Grade z?

CU

Michael

Userlevel 2
Badge +8

Depending on the original data, maybe a pivot wouldgenerate the format you are looking for.

 

A Practical Guide to Oracle PIVOT By Real-world Examples (oracletutorial.com)

Reply