Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Open Invoice from custom form or process

Developers
2013-01-19
2013-03-08
  • Hi Adempiere Community

    I created a personalized form in adempiere which among other things creates a sale invoice, at the end of the process I require open invoice created and  show it to the user, anyone know how can I open the window and show a specific invoice from a custom form or process?

    Thank you for help in advance

    Freddy Rodriguez,
    Java Developer/Integrator
    SmartJSP Solutions
    http://www.smartjsp.com

     
  • Michael McKay
    Michael McKay
    2013-01-20

    Hi Freddy,

    The zoom across function does something like that.  See client/src/org.compiere.apps.AZoomAcross.java.

        /**
         *  Launch Zoom
         *  @param pp KeyPair
         */
        private void launchZoom (final ZoomInfoFactory.ZoomInfo zoomInfo)
        {
            final int AD_Window_ID = zoomInfo.windowId;
            final MQuery query = zoomInfo.query;
    
            logger.info("AD_Window_ID=" + AD_Window_ID 
                + " - " + query);
    
            AWindow frame = new AWindow();
            if (!frame.initWindow(AD_Window_ID, query))
                return;
            AEnv.addToWindowManager(frame);
            if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) ) 
            {
                AEnv.showMaximized(frame);
            }
            else
            {
                AEnv.showCenterScreen(frame);
            }
            frame = null;
        }   //  launchZoom
    

    Hope this helps.

    Mike.

     
  • Hi Mike, thank you for your quick response.

    I think this method you suggest me is to open the window using the desktop client, opening the window I'm centrate do is using web methods and I have a conflict here because I can not use swing classes.  You know if there is another class that allows me to do that on web?

    Thanks a lot!!

    Freddy