psdi.webclient.beans.report

Class CreateReportBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class CreateReportBean
    extends DataBean
    • Constructor Detail

      • CreateReportBean

        public CreateReportBean()
    • 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
      • addAll

        public int addAll()
                   throws MXException,
                          java.rmi.RemoteException
        This event is called from the Add All button on the Create Report dialog. It adds all of the available attributes meeting the current filter to the selected attributes table.
        Throws:
        MXException
        java.rmi.RemoteException
      • addSelectedAttributesSum

        public int addSelectedAttributesSum()
                                     throws java.rmi.RemoteException,
                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addSelectedAttributes

        public int addSelectedAttributes()
                                  throws java.rmi.RemoteException,
                                         MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • removeSelectedAttributes

        public int removeSelectedAttributes()
                                     throws java.rmi.RemoteException,
                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • refresh

        public int refresh()
                    throws MXException,
                           java.rmi.RemoteException
        This event is called from the Refresh button on the Create Report dialog. It reorders the selected attributes table based on the user-entered sequence number.
        Throws:
        MXException
        java.rmi.RemoteException
      • refreshCalc

        public int refreshCalc()
                        throws MXException,
                               java.rmi.RemoteException
        This event is called from the Refresh button on the Create Report dialog on the calulcate tab. It reorders the selected attributes table based on the user-entered sequence number.
        Throws:
        MXException
        java.rmi.RemoteException
      • removeAll

        public int removeAll()
                      throws MXException,
                             java.rmi.RemoteException
        This event is called from the Remove All button on the Create Report dialog. It removes all of the selected attributes as well as the group and sort selections.
        Throws:
        MXException
        java.rmi.RemoteException
      • removeGroupFields

        public int removeGroupFields()
                              throws MXException,
                                     java.rmi.RemoteException
        Clear selections in the group fields.
        Throws:
        MXException
        java.rmi.RemoteException
      • removeSortFields

        public int removeSortFields()
                             throws MXException,
                                    java.rmi.RemoteException
        Clear selections in the sort fields.
        Throws:
        MXException
        java.rmi.RemoteException
      • removeFilterFields

        public int removeFilterFields()
                               throws MXException,
                                      java.rmi.RemoteException
        Clear selections in the filter fields and the filter value entry table.
        Throws:
        MXException
        java.rmi.RemoteException
      • runAndSaveReport

        public int runAndSaveReport()
                             throws java.rmi.RemoteException,
                                    MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • previewReport

        public int previewReport()
                          throws java.rmi.RemoteException,
                                 MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • createuserreport

        public int createuserreport()
                             throws MXException,
                                    java.rmi.RemoteException
        This event is called from the Submit button on the Create Report dialog.
        Throws:
        MXException
        java.rmi.RemoteException
      • evaluateExpression

        public boolean evaluateExpression(boolean suppressValidate)
                                   throws MXException,
                                          java.rmi.RemoteException,
                                          java.text.ParseException
        Evaluates the expression created on the calculate tab.
        Throws:
        MXException
        java.rmi.RemoteException
        java.text.ParseException
      • testExpression

        public int testExpression()
                           throws MXException,
                                  java.rmi.RemoteException,
                                  java.text.ParseException
        Handles the event for clicking the test expression button on the calculate tab.
        Throws:
        MXException
        java.rmi.RemoteException
        java.text.ParseException
      • mathEvent

        public int mathEvent()
                      throws MXException,
                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • sumEvent

        public int sumEvent()
                     throws MXException,
                            java.rmi.RemoteException
        Handler to get the function button values
        Returns:
        EVENT_HANDLED
        Throws:
        MXException
        java.rmi.RemoteException
      • addSelectedAttributesCalc

        public int addSelectedAttributesCalc()
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • addExpression

        public int addExpression()
                          throws MXException,
                                 java.rmi.RemoteException,
                                 java.text.ParseException
        Add expression to the expressions table on the calculate tab. Checks to see if the user is currently editing. If so, will overwrite the current expression instead of adding.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        java.text.ParseException
      • getJdbcTypeName

        public static java.lang.String getJdbcTypeName(int jdbcType)
      • addSummary

        public int addSummary()
                       throws MXException,
                              java.rmi.RemoteException,
                              java.text.ParseException
        Add expression to the summary table on the summary tab.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        java.text.ParseException
      • cancelExpression

        public int cancelExpression()
                             throws MXException,
                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • cancelSummary

        public int cancelSummary()
                          throws MXException,
                                 java.rmi.RemoteException
        Clears all the text entry fields when cancel button is pressed.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • clearCalculateTabFields

        public void clearCalculateTabFields()
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • clearSummaryTabFields

        public void clearSummaryTabFields()
                                   throws MXException,
                                          java.rmi.RemoteException
        Clears the non-persistent fields.
        Throws:
        MXException
        java.rmi.RemoteException