psdi.webclient.beans.report

Class ReportDialogBean

    • Constructor Detail

      • ReportDialogBean

        public ReportDialogBean()
    • Method Detail

      • initialize

        public void initialize()
                        throws MXException,
                               java.rmi.RemoteException
        Description copied from class: DataBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and sets the current row to 0. If the DataBean isn't bound to a table then initialize fetches the first mbo (sets the current row to 0). If this method is overridden under most case you will want to call super.initalize at the end of the the new initialize method.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(int nRow,
                             java.lang.String attribute,
                             java.lang.String value,
                             long accessModifier)
                      throws MXException
        Description copied from class: DataBean
        Updates an attribute's value on the given row. Fires a row change event to all the listeners upon success.
        Overrides:
        setValue in class DataBean
        Throws:
        MXException
      • runrequestpage

        public int runrequestpage()
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • displayRequestDialog

        public int displayRequestDialog(java.lang.String pageName)
                                 throws MXException,
                                        java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isLookupMultiSelect

        public boolean isLookupMultiSelect(BoundComponentInstance component,
                                           boolean isQueryInput)
        Description copied from class: DataBean
        Override this method in individual beans if other application-specific factors need to be considered in addition to whether or not the control is query-based to determine if a lookup is MultiSelect or not.
        Overrides:
        isLookupMultiSelect in class DataBean
      • requestreportrun

        public int requestreportrun()
                             throws MXException,
                                    java.rmi.RemoteException,
                                    java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • editadhocreport

        public int editadhocreport()
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createScheduleRecord

        public void createScheduleRecord(java.util.Hashtable reportParams,
                                         DataBean rptParmBean,
                                         MboRemote thisRpt)
                                  throws MXException,
                                         java.rmi.RemoteException,
                                         java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • validateSchedFields

        public boolean validateSchedFields(DataBean rptParmBean,
                                           java.util.Hashtable reportParams)
                                    throws MXException,
                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getEmailSchedParams

        public java.util.Hashtable getEmailSchedParams(java.util.Hashtable reportParams,
                                                       DataBean rptParmBean,
                                                       java.lang.String reportType)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setRedirect

        public java.util.Hashtable setRedirect(java.util.Hashtable reportParams,
                                               java.lang.String reportType,
                                               java.lang.String overridePath,
                                               java.lang.String quickPrintType)
                                        throws MXException,
                                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getWhereParams

        public java.util.Hashtable getWhereParams(java.util.Hashtable reportParams,
                                                  MXSession mxsession,
                                                  DataBean rptParmBean,
                                                  java.lang.String reportNum,
                                                  boolean useWhere)
                                           throws MXException,
                                                  java.rmi.RemoteException,
                                                  java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • getWhereParams

        public java.util.Hashtable getWhereParams(java.util.Hashtable reportParams,
                                                  MXSession mxsession,
                                                  DataBean rptParmBean,
                                                  java.lang.String reportNum,
                                                  boolean useWhere,
                                                  boolean isdetail)
                                           throws MXException,
                                                  java.rmi.RemoteException,
                                                  java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • getStdParams

        public java.util.Hashtable getStdParams(java.util.Hashtable reportParams,
                                                MXSession mxsession)
                                         throws MXException,
                                                java.rmi.RemoteException,
                                                java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • getRptRecordParams

        public java.util.Hashtable getRptRecordParams(java.util.Hashtable reportParams,
                                                      MXSession mxsession,
                                                      MboSetRemote reportData)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getMaxPropRptParams

        public java.util.Hashtable getMaxPropRptParams(java.util.Hashtable reportParams,
                                                       MXSession mxsession)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • fetchProperty

        public java.lang.String fetchProperty(java.util.Properties maxProps,
                                              java.lang.String propName)
      • getCustomReportProps

        public void getCustomReportProps(java.util.Properties maxProps,
                                         java.util.Hashtable reportParams)
      • noDef

        public java.lang.String noDef(java.lang.String val)
                               throws MXException,
                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • spcDef

        public java.lang.String spcDef(java.lang.String val)
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • nsDef

        public java.lang.String nsDef(java.lang.String val)
                               throws MXException,
                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getMaxProps

        public java.util.Properties getMaxProps()
                                         throws MXException,
                                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • qualifyWhere

        public java.lang.String qualifyWhere(MXSession mxsession,
                                             java.lang.String where,
                                             java.lang.String baseTable)
                                      throws MXException,
                                             java.rmi.RemoteException
        Deprecated. Replaced by ReportUtil.qualifyWhere(where, baseTable)
        Throws:
        MXException
        java.rmi.RemoteException
      • getFileDesc

        public java.lang.String getFileDesc(java.lang.String appName,
                                            java.lang.String filename)
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • linkFileDesc

        public MboRemote linkFileDesc(java.lang.String destfoldername,
                                      java.lang.String filename,
                                      java.lang.String ext)
                               throws MXException,
                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • sortDate

        public java.lang.Integer[] sortDate(java.util.Hashtable fileList)
      • setReportMaxRows

        public void setReportMaxRows(int maxrows)
        Set the maximum number of rows a report can print. This overrides the default setting of 200 rows
        Parameters:
        maxrows -
      • getSelectionWhere

        public java.lang.String getSelectionWhere(DataBean resultsBean)
                                           throws java.rmi.RemoteException,
                                                  MXException
        Constructs an returns the "in" statement for the selected records based on the results bean passed in. Returns "" if no records are selected
        Parameters:
        resultsBean -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String expression)
                    throws MXException
        Description copied from class: DataBean
        Sets a QBE expression to the attribute. Result set will be based on this expression. This function throws MXException or RemoteException if the Qbe could not be set on the attribute.
        Overrides:
        setQbe in class DataBean
        Throws:
        MXException
      • setDate

        public void setDate(java.lang.String controlId,
                            java.lang.String attribute,
                            java.util.Date value)
                     throws MXException
        Description copied from class: DataBean
        Once this is removed, merge setDate and setDateInternal
        Overrides:
        setDate in class DataBean
        Throws:
        MXException
      • handleQuickReporting

        public int handleQuickReporting(java.lang.String reportType,
                                        WebClientEvent event,
                                        java.util.Hashtable reportParams,
                                        java.lang.String reportNum,
                                        boolean attachdoc,
                                        java.lang.String rptParmKey,
                                        java.lang.String brosDPUrl)
                                 throws java.rmi.RemoteException,
                                        MXException,
                                        java.sql.SQLException
        Creates the Birt PDF url and pass control to PrintDocs if PAD option is selected
        Parameters:
        reportType -
        event -
        reportParams -
        reportNum -
        attachdoc -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
        java.sql.SQLException
      • submitWOChangePrintJob

        public int submitWOChangePrintJob(java.lang.String repKey)
                                   throws MXException,
                                          java.rmi.RemoteException
        Special duplicate method required to handle Print Attach Docs when called from WOStatus Change UI behaviour is different from the regular Toolbar action.
        Parameters:
        repKey -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getSearchFolder

        public java.lang.String getSearchFolder()
        This is a dummy method. The subclasses should override this method to populate correct value