Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

The field of entityParameter does not have 100% width in the InputDialog #443

Closed
sukhova opened this issue Apr 23, 2021 · 0 comments
Closed
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@sukhova
Copy link

sukhova commented Apr 23, 2021

  1. Create an input dialog like this:
dialogs.createInputDialog(this)
                .withCaption("Get values")
                .withParameters(
                        InputParameter.dateTimeParameter("deliveryTime")
                                .withCaption("Delivery Time")
                                .withRequired(true),// <1>
                        InputParameter.doubleParameter("amount")
                                .withCaption("Amount")
                                .withDefaultValue(1.0),// <2>
                        InputParameter.entityParameter("customer", Customer.class)
                                .withCaption("Customer"),// <3>
                        InputParameter.enumParameter("status", Status.class)
                                .withCaption("Status")// <4>
                )
                .withActions(DialogActions.OK_CANCEL)// <5>
                .withCloseListener(closeEvent -> {
                    if (closeEvent.closedWith(DialogOutcome.OK)) {// <6>
                        String name = closeEvent.getValue("name");// <7>
                        Double quantity = closeEvent.getValue("quantity");
                        Customer customer = closeEvent.getValue("customer");
                        Status status = closeEvent.getValue("status");
                        // process entered values...
                    }
                })
                .show();
  1. Launch the app

AR:

107.PNG

ER:

All fields except date and time must have a width of 100%

@sukhova sukhova added the type: bug Something isn't working label Apr 23, 2021
@sukhova sukhova added this to the 1.0.0 milestone Apr 23, 2021
@Flaurite Flaurite assigned Flaurite and unassigned glebfox Apr 29, 2021
@MikhailSilk MikhailSilk assigned DartVerder and unassigned lovtsovaik Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants