Skip navigation
Currently Being Moderated

Custom Approval Container Issue

Jun 20, 2010 5:19 AM

I am creating a Custom Approval container.

 

The requirement is as simple as having several process related fields at the bottom of the TaskForm container.

 

I tried to modified the Flex source (as mentioned in the documentation) and it just works. However, the three tabs (Task Details, Form and Attachments) are not shown.

 

Is this the default behavior? Is it possible to show them in the Custom Approval container?

 

Thanks for any advise,

Nith

 
Replies
  • Currently Being Moderated
    Jun 21, 2010 6:40 AM   in reply to $Nith$

    Hi Nith,

     

    The Approval Container was coded that way in the example by using the hideAllContainerView() method.  You can either remove that call or you can  add UI widgets like a button to make calls to the SwfConnector object  to display or hide the views you want using the following methods:

    - showTaskDetailsView

    - hideTaskDetailsView

    - showAttachmentsView

    - hideAttachmentsView

    - showFormView

    - hideFormView

     

    See the SwfConnector page for more details: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/lc/ procmgmt/formbridge/SwfConnector.html.

     

    Hope that helps!

     

    ...Gil

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2010 6:31 AM   in reply to $Nith$

    Hi Nith,


    You need to bind it to the setWorkspaceData event and of course remove the hideAllContainersView() function.

     

    Try making the call in a function that is bound to the setWorkspaceData event handler. It works for me:

    ...

     

    public function returnWorkspaceSession(event:SwfDataEvent):void
    {


    lcConnector.task = event.task;

    lcConnector.showAttachmentsView();
    //Configure the form to be displayed in the model component.
    model.configureLoadForm(lcConnector);
    var fullname:String;
    var instructions:String;
    instructions = lcConnector.task.instructions;
    fullname = lcConnector.getAuthenticatedUser().displayName;
    personalMessage.text = 'Hi ' + fullname + '. ' + instructions;
    }

    ....

     

    <!-- Establish communication with LiveCycle Workspace ES2 -->
    <lc:SwfConnector id="lcConnector"
    formInitialData="handleFormInitialData(event)"
    setWorkspaceData="returnWorkspaceSession(event)"
    unload="handleUnload()"/>

     

     

    Hope that helps!

     

    ...Gil

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2010 7:30 AM   in reply to $Nith$

    Can you send me your source at gilbertyulivecycle@gmail.com? I'm not seeing this behavior at all.

     
    |
    Mark as:
  • Currently Being Moderated
    May 23, 2011 1:44 AM   in reply to $Nith$

    Hi All

     

    I am trying to customize the ApprovalContainer to show the attachment view as you discussed, I add the line showAttachmentView() but it didn't work for me still no attachment view.

     

    Also I cannot find  hideAllContainersView() function to remove if it is the cause ???

     

    Any help??

     
    |
    Mark as:
  • Currently Being Moderated
    May 23, 2011 10:06 PM   in reply to $Nith$

    I found where it is many thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 7:57 PM   in reply to $Nith$

    Hey Nith,

    How did you fix the form area issue? When I click on the other tabs, the form area is still enabled.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points