MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Manuale Utente Pagina 21

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 39
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 38 39

Commenti su questo manuale

Nessun commento