
Indicates that the AccountsView file is part of the main UI
•
•
Passes the Integration component's F3DesktopApplication instance to the AccountsView component by setting
its app attribute
•
Sets the relative dimensions of the AccountsView window
<local:AccountsView
includeIn="main"
app="{app}"
width="100%"
height="100%"/>
4. Save the file.
The final code for the Main.mxml file should look like this:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
xmlns:local="*"
backgroundColor="#e7e7e7"
width="800"
height="600"
frameRate="31"
currentState="login"
xmlns:flexforforce="http://flexforforce.salesforce.com"
title="Account Manager">
<s:layout>
<s:BasicLayout/>
</s:layout>
<fx:Declarations>
<flexforforce:F3DesktopApplication
id="app"
statusChanged="statusChangedHandler(event)"
loginComplete="loginCompleteHandler(event)"
loginFailed="loginFailedHandler(event)"
sessionExpired="sessionExpiredHandler(event)"
requiredTypes="Account,Contact"/>
</fx:Declarations>
<fx:Script>
<![CDATA[
import com.salesforce.events.LoginFaultEvent;
import com.salesforce.events.LoginResultEvent;
import com.salesforce.events.SessionExpiredEvent;
import com.salesforce.events.StatusChangedEvent;
import mx.controls.Alert;
13
Step 7: Create the Account Manager Login Screen
Kommentare zu diesen Handbüchern