MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Manual do Utilizador Página 1

Consulte online ou descarregue Manual do Utilizador para Software de publicação eletrónica MACROMEDIA FLEX BUILDER-USING FLEX BUILDER. Force.com Flex Quick Start Tutorial Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - Tutorial

Force.com Flex Quick StartTutorialSalesforce, Summer ’15 @salesforcedocsLast updated: April 28, 2015

Página 2

STEP 3: GENERATE YOUR ENTERPRISE WSDLWeb services are interfaces that enable the integration of applications over the Internet. The Web Services Descr

Página 3 - CONTENTS

STEP 4: INSTALL AND LAUNCH FORCE.COM FLEXForce.com Flex installs as a standalone version of Adobe® Flash® Builder. The standalone version does not aff

Página 4

STEP 5: CREATE A FORCE.COM FLEX PROJECT AND IMPORTYOUR WSDLForce.com Flex projects are Flex projects with additional ActionScript classes that add the

Página 5

Connect to Data/Service Link7. Select Salesforce, then click Next.8. Select your enterprise WSDL, then click Next. Force.com Flex creates a Fiber mode

Página 6

STEP 6: SET THE WINDOWEDAPPLICATION COMPONENTATTRIBUTESThe first component in the Force.com Flex desktop application template is a standard Flex Wind

Página 7

STEP 7: CREATE THE ACCOUNT MANAGER LOGIN SCREENCreate the logic for the Account Manager login screen in the Main.mxml file. The login screen launche

Página 8 - 4. Click Save

</mx:Form><mx:ProgressBarvisible="{app.loginPending}"indeterminate="true"label="{statusMessage}"/></s:Pan

Página 9 - Account and click OK

Indicates that the AccountsView file is part of the main UI••Passes the Integration component's F3DesktopApplication instance to the Account

Página 10

[Bindable]private var statusMessage : String = "";private var _username : String;private var _password : String;protected function loginClic

Página 11

<s:TextInput id="username" text=""/></mx:FormItem><mx:FormItem label="Password" direction="horizonta

Página 12 - YOUR WSDL

© Copyright 2000–2015 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc.,as are other names and ma

Página 13 - Connect to Data/Service Link

STEP 8: CREATE THE ACCOUNT MANAGER USER INTERFACEAND APPLICATION LOGICCreate the Account Manager user interface in a new file called AccountsView.mxm

Página 14 - ATTRIBUTES

•Create—Displays the user interface for creating a new account•Edit—Displays the user interface for editing the details of an existing accountThe code

Página 15

8. In the HGroup component, add the top bar containing the Create, Query, and Sync buttons. When a user clicks the buttons, theapplication logic cal

Página 16

paddingTop="5"verticalAlign="middle"><mx:Image source="{StaticAssets.ACCOUNT_IMAGE_32}"/><s:Label text="

Página 17

StaticAssets—A Force.com Flex component used to retrieve assets such as the account image to be presented in theUIs.••ToasterEvent—A Force.com Flex ev

Página 18

14. Define the following set function. The function passes the F3DesktopApplication object to the AccountsViewcomponent using app="{app}&qu

Página 19

16. Create the event handlers for the Save, Delete, and Cancel buttons that display when the user edits an account record Use thefollowing functions:•

Página 20 - AND APPLICATION LOGIC

currentState = "default";}17. Create the event handlers for the Save and Cancel buttons that display when the user is creating an account re

Página 21

}protected function commitToDB( managedObject : IManaged ) : void {_desktopWrapper.save(managedObject ) // After saving, go to edit mode and renderthe

Página 22

}}protected function onQueryResult( rows : ArrayCollection ) : void {_desktopWrapper.releaseQueryResults( _gridDataProvider );// populate datagrid_gri

Página 23 - Application Logic

CONTENTSCreating Your First Force.com Flex Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Step 1: Designate Yourself an Of

Página 24

xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"xmlns:flexforforce="http://flexforforce.salesforc

Página 25

},function( result : F3Message ) : void {LOG.error( "syncWithServer failed: " + result.toString());}));}protected function onQueryClick() :

Página 26

StaticAssets.REPORT_IMAGE_32,"Account deleted",status.description));}protected function onEditCancel() : void {_app.setStatus( null );// cle

Página 27

protected function commitToDB( managedObject : IManaged ) : void {_desktopWrapper.save(managedObject ) // After saving, go to edit modeand render the

Página 28

}protected function onQueryResult( rows : ArrayCollection ) : void {_desktopWrapper.releaseQueryResults( _gridDataProvider );// populate datagrid_grid

Página 29 - 19. Save the file

<s:VGroupwidth="100%"height="100%"paddingBottom="10"paddingLeft="10"paddingRight="10"paddingTop=&

Página 30

<s:Button label="Save" click="onEditSaveClick()"/><s:Button label="Delete" click="onEditDeleteClick()"

Página 31

STEP 9: TEST THE APPLICATIONThe Account Manager application is ready to test.1. Verify your machine has an active Internet connection.2. In Flash Buil

Página 32

Data Conflict Notification8. Click the green button and select Resolve in the status bar to launch the conflict resolution interface.Conflict Resoluti

Página 33

SUMMARYIn this tutorial, you created a simple Force.com Flex application that gives users the ability to view and edit Force.com data both withand wit

Página 35

CREATING YOUR FIRST FORCE.COM FLEX APPLICATIONForce.com Flex is a framework for creating Flex-based desktop and Web applications that leverage Salesfo

Página 36

The Account Manager User InterfaceClicking Create presents a user interface for creating a new account, with the fields appearing in full edit mode. C

Página 37 - STEP 9: TEST THE APPLICATION

Force.com Flex components simplify the process of accessing Force.com logic and data, and allow developers to easily add commonlyrequired functionalit

Página 38 - Conflict Resolution Interface

STEP 1: DESIGNATE YOURSELF AN OFFLINE USEROnly Salesforce users with the Offline User permission can develop or use Force.com Flex apps.1. In Salesf

Página 39

STEP 2: CREATE AN OFFLINE BRIEFCASE CONFIGURATIONYour Force.com Flex desktop application can access only the Force.com data specified in your assigned

Comentários a estes Manuais

Sem comentários