Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Tutorial/3.8/webservices/Create Company Form"

< Scout‎ | Tutorial‎ | 3.8
Line 49: Line 49:
 
  Name: Change
 
  Name: Change
 
  Class name: ChangeField
 
  Class name: ChangeField
 
  
 
Because <code>ChangeField</code> represents a procentual value, click on that field and check the property <code>Percent</code> in Scout Property View [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_7.png].
 
Because <code>ChangeField</code> represents a procentual value, click on that field and check the property <code>Percent</code> in Scout Property View [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_7.png].
 +
 +
== Associate CompanyForm with CompanyTablePage ==
 +
To edit and create companies, you have to add 2 menus to the <code>CompanyTablePage</code>.
 +
On client node, go to the node 'Desktop' | 'Outlines' | 'MainOutline' | 'Child Pages' | 'CompanyTablePage' | 'Table' | 'Menus'. Click on the menu node [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_8.png] to create the following 2 menus:
 +
 +
* The New menu as described here: [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_9.png]
 +
* The Edit menu as described here: [http://wiki.eclipse.org/Image:Org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_10.png]
 +
  
  
Line 60: Line 67:
 
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_5.png|thumb|Set datatype for Form Field]]
 
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_5.png|thumb|Set datatype for Form Field]]
 
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_6.png|thumb|Set properties of Form Field]]
 
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_6.png|thumb|Set properties of Form Field]]
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_7.png|thumb|Make ChangeField to represent procentual values]]
+
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_8.png|thumb|Create menu on CompanyTablePage]]
 +
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_9.png|thumb|Create the NEW menu]]
 +
[[Image:org.eclipse.scout.tutorial.jaxws.CreateCompanyForm_10.png|thumb|Create the EDIT menu]]

Revision as of 16:25, 8 November 2011

Create Company Form

On the client node, go to 'Forms'. Right click on the node to create the Company The Scout documentation has been moved to https://eclipsescout.github.io/. [1]. As the name of the form, enter Company and choose to create the Form ID which is the primary key of the company [2]. Click next to choose from the artefacts which also should be created by Scout SDK [3]. Uncheck all permissions as The Scout documentation has been moved to https://eclipsescout.github.io/. is not part of this tutorial.

Create Form Fields

On the CompanyForm node, go to the 'MainBox'. Right click on the MainBox to create the following 9 Form The Scout documentation has been moved to https://eclipsescout.github.io/.'s [4]:

NameField
Type: String Field [5]
Name: Name [6]
Class name: NameField [7]
SymbolField
Type: String Field
Name: Symbol
Class name: SymbolField
TradeTimeField
Type: Date Field
Name: Trade time
Class name: TradeTimeField
ValueLastField
Type: Double Field
Name: Value last
Class name: ValueLastField
ValueOpenField
Type: Double Field
Name: Value open
Class name: ValueOpenField
ValueLowField
Type: Double Field
Name: Value low
Class name: ValueLowField
ValueHighField
Type: Double Field
Name: Value high
Class name: ValueHighField
VolumeField
Type: Long Field
Name: Volume
Class name: VolumeField
ChangeField
Type: Double Field
Name: Change
Class name: ChangeField

Because ChangeField represents a procentual value, click on that field and check the property Percent in Scout Property View [8].

Associate CompanyForm with CompanyTablePage

To edit and create companies, you have to add 2 menus to the CompanyTablePage. On client node, go to the node 'Desktop' | 'Outlines' | 'MainOutline' | 'Child Pages' | 'CompanyTablePage' | 'Table' | 'Menus'. Click on the menu node [9] to create the following 2 menus:

  • The New menu as described here: [10]
  • The Edit menu as described here: [11]


Create Company Form
Create Company Form
Create Form artefacts
Create Form Field
Set datatype for Form Field
Set properties of Form Field
Create menu on CompanyTablePage
Create the NEW menu
Create the EDIT menu

Back to the top