MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Oprogramowanie do publikowania MACROMEDIA FLEX BUILDER-USING FLEX BUILDER. Force.com Flex Quick Start Tutorial Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj

Podsumowanie treści

Strona 1 - Tutorial

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

Strona 2

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

Strona 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

Strona 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

Strona 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

Strona 6

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

Strona 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

Strona 8 - 4. Click Save

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

Strona 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

Strona 10

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

Strona 11

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 16

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

Strona 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

Strona 18

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

Strona 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:•

Strona 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

Strona 21

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

Strona 22

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

Strona 23 - Application Logic

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

Strona 24

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

Strona 25

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

Strona 26

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

Strona 27

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

Strona 28

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

Strona 29 - 19. Save the file

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

Strona 30

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

Strona 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

Strona 32

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

Strona 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

Strona 35

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

Strona 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

Strona 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

Strona 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

Strona 39

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

Komentarze do niniejszej Instrukcji

Brak uwag