ERD2WWizardCreationPage and the subclass ERNEUWizardCreationPage are page-level components for editing an entity in a wizard-style user interface. The attributes to edit (including attributes of related entities via relationships), and even page and section titles are all provided by the rules file.
Assume there is an entity Employee
, with a to-one relationship contactDetails
to an entity ContactDetails
. The following rule:
100 : (task = 'edit' and entity.name = 'Employee') => displayPropertyKeys = ("[Page 1]","(Personal Details)",firstName,lastName,"[Page 2]","(Address)", "contactDetails.address1","contactDetails.address2", "contactDetails.address3","contactDetails.suburb","contactDetails.state", "contactDetails.postcode","(Contact)","contactDetails.email", "contactDetails.phone","contactDetails.fax")
will create a wizard with the following properties:
- Two pages, entitled "Page 1" and "Page 2"
- Page 1 will have a single section entitled "Personal Details", with fields for
firstName
andlastName
attributes. - Page 2 will have two sections, "Address" and "Contact", where each of those sections will have fields for the attributes of the
ContactDetails
entity retrieved via thecontactDetails
relationship as listed in the rule above.
The changes are saved after hitting the Save button on the final page.