IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Attachment Panel - Configuration and Modal Problem

  • 1.  Attachment Panel - Configuration and Modal Problem

    Posted Mon December 13, 2010 04:46 PM

    Hi

    I’m using a Attachment panel, however I need to configure it to show only one option to upload a file. How can I configure this control?

    I have the Attachment panel in a Modal dialog, however when I click in the Add button of the Attachment panel my modal dialog is also closed, how can I solve this?

    thanks


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Attachment Panel - Configuration and Modal Problem

    Posted Tue December 14, 2010 09:25 PM

    That functionality isn’t available out of the box. However, in 8.x you can Customize the Attachment List Panel and after a file is added you might disable the add button.

    Again, in 8.x you can Customize the Attachment List Panel, and change the async hidden command to toggle on the Modal Dialog. I’ve demonstrated this in the attached project.

    Regards,
    –mark
    AttachmentsDialog.zip (14.4 KB)


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: Attachment Panel - Configuration and Modal Problem

    Posted Wed December 15, 2010 01:00 PM

    Hi,

    So I can not use the Attachment Panel since I only have the version 7.1.3.

    I changed the control for the File Input and File Item, however now I have a new problem.

    In the server side I can only have the file, I mean the File Item, is only resolved if I have a Command Button, If I have a Async Command Button than the File Item is always null.

    The code to get the File Item is

    public org.apache.commons.fileupload.FileItem getFileItemAdicionar()  {
    
    if (fileItemAdicionar == null) {
    fileItemAdicionar = (org.apache.commons.fileupload.FileItem)resolveExpression("#{fileItem}");
    //TODO: create/set default value here
    }
    
    resolveDataBinding(FILEITEMADICIONAR_PROPERTY_BINDINGS, fileItemAdicionar, "fileItemAdicionar", false, false);
    return fileItemAdicionar;
    }

    Is there any example that I can see with Async Command Button?

    Thanks in Advance


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 4.  RE: Attachment Panel - Configuration and Modal Problem

    Posted Wed December 15, 2010 06:20 PM

    This isn’t possible in the 7.x version of CAF/MWS.

    Regards,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS