MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Bedienungsanleitung Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 39
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 20
CreateDisplays the user interface for creating a new account
EditDisplays the user interface for editing the details of an existing account
The code should look like this:
<s:states>
<s:State name="default"/>
<s:State name="create"/>
<s:State name="edit"/>
</s:states>
7. In the VGroup component, add the following components:
HGroupA horizontal group that will contain the buttons for creating new records, querying the local database, and
synchronizing with Salesforce.
LabelDisplays the total number of records.
DataGridReferences the list of accounts through an ActionScript variable and presents the records in the user interface.
FieldcontainerDisplays the user interfaces to either edit an existing account or create a new one.
The code should look like this:
<s:HGroup width="100%" verticalAlign="middle">
</s:HGroup>
<s:Label text="Displaying: {_gridDataProvider.length} account(s)"/>
<mx:DataGrid
id="_dataGrid"
width="100%"
height="100%"
resizeEffect="Resize"
dataProvider="{_gridDataProvider}"
itemClick="onDataGridItemClick()">
</mx:DataGrid>
<!-- edit mode: show UI components in inline edit mode -->
<flexforforce:FieldContainer
id="_editFieldContainer"
width="100%"
includeIn="edit">
</flexforforce:FieldContainer>
<!-- create mode: show UI components in full edit mode -->
<flexforforce:FieldContainer
id="_createFieldContainer"
startState="Create"
width="100%"
includeIn="create">
</flexforforce:FieldContainer>
17
Step 8: Create the Account Manager User Interface and
Application Logic
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 38 39

Kommentare zu diesen Handbüchern

Keine Kommentare