Support Forum - Multiple types of reports on 1 RuntimeRep.

07/10/2019 18:29 Edgard L. Riba wrote:

Hi,
I have one complex RunTimeReport that allows me to do all kind of reports for
one of my systems.

Depending on the parameter passed, I can print reports:
1) For a given production batch,
2) For a given production program, or 
3) For a range of production dates

The "Report type/identifier" is "m_Batch_Detalle_Reports".

I would like to separate the different report sub-types within a "ReportManager"
procedure.   In other words, I would like to filter the "BATCH" reports, from
the "PROGRAM" reports, and from the "RANGE OF DATES" reports.

I can add the "RuntimeReport" multiple times to a given "ReportManager", but all
the reports display together on the first one.

Any suggestions on how to do this?  I would hate to have to replicate the same
RunTimeReport 3 times...

07/10/2019 21:40 Edgard L. Riba wrote:

Hi again, I tried to create a "proxy" procedure using the template included.  
However, it doesn't work because the original "RunTimeProcedure" validates 
that the "ReportIdentifier"..

Any ideas???

#PROCEDURE(FominRunTimeReportProxy,'Run-Time Report 
"Proxy"'),HLP('~RunTimeReportProxy')
  #PROMPT('P&arameters:', @s255), %Parameters
  #ENABLE(%ProcedureType='FUNCTION')
    #PROMPT('Return Value:',FIELD),%ReturnValue
  #ENDENABLE
  #PROMPT('Report 
type/identifier:',@S30),%ReportIdentifier,DEFAULT(%Procedure)
  #PROMPT('RunTime Report to call:',PROCEDURE),%FominRunTimeReport
  #BOXED('Hidden "procedure parameters" prompts'),AT(0,0),WHERE(%False),HIDE
     #INSERT(%HIDEProcedureParametersList(ABC))
     #PROMPT('RuntimeProcedure ParameterList',@S255),%ParameterList
  #ENDBOXED
#ATSTART
   #CALL(%LoadProcedureParametersPrototype(ABC))
   #SET(%ParameterList,'')
   #FOR(%ProcedureParameters)
      #SET(%ParameterList,%ParameterList & CHOOSE(%ParameterList <> 
'',',','') & %ProcedureParameterName)
   #ENDFOR   
#ENDAT

%Procedure PROCEDURE %Parameters
     CODE
   #IF(%ReturnValue <> '')   
   RETURN %FominRunTimeReport(%ParameterList)
   #ELSE
   %FominRunTimeReport(%ParameterList)
   #ENDIF

07/10/2019 22:32 Edgard L. Riba wrote:

Hi Oleg,
I found a way to trick the "RunTimeReport" into using another 
"ReportIdentifier", but I need a new EMBED point before calling ".EditPage".

  IF %ReportObjectName.FileName
  ...
  END
  #!This EMBED below! 
  #EMBED(%BeforeEditPage,'Before Calling EditPage')
  %ReportObjectName.EditPage


Could you please add this?   I added it in my installation, but I would 
prefer for it not to disappear on new versions.

Let me know,
Edgard

07/11/2019 17:32 Oleg Fomin wrote:

Hi Edgard,

Feel free to add new embed(s). And make sure to send me modified template
file(s). I will include the changes into the next FRB build.

Name:
E-Mail: (will not be published)
Subject:Multiple types of reports on 1 RuntimeRep.


Message body:

Verification code:

Please, do not include any URLs into the message.
Otherwise, your message will be rejected and IP blacklisted automatically.
Off topic messages will be deleted by moderator.