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:
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!
I got your point how to make these tabs visible. However, I tried in my implementation which is not working.
My code is something like this:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:lc="http://www.adobe.com/2006/livecycle" xmlns:ac="*" creationComplete="lcConnector.setReady();lcConnector.showAttachmentsView()" layout="absolute" >
I called the method on creationComplete event of the main application.
lcConnection is the SwfConnector object.
Is this the right place to invoke this method?
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;
//Configure the form to be displayed in the model component.
instructions = lcConnector.task.instructions;
fullname = lcConnector.getAuthenticatedUser().displayName;
personalMessage.text = 'Hi ' + fullname + '. ' + instructions;
<!-- Establish communication with LiveCycle Workspace ES2 -->
Hope that helps!
Many thanks. It works!
Now there is another issue:
I am able to see all three tabs now. However, If I click on the attachments tab, the form(iframe) is visible on top of the Attachments panel.
The same happens for Task Details tab too. What should I do to hide the Form Area when I click on any other tabs?