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

InputDialog doesn't work with file parameter #646

Closed
ikuchmin opened this issue Sep 1, 2021 · 0 comments
Closed

InputDialog doesn't work with file parameter #646

ikuchmin opened this issue Sep 1, 2021 · 0 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@ikuchmin
Copy link

ikuchmin commented Sep 1, 2021

Code to reproduce:

dialogs.createInputDialog(this).withCaption("Upload files")
                .withParameter(InputParameter.fileParameter("upload"))
                .withActions(DialogActions.OK)
                .show();

Exception:

java.lang.IllegalArgumentException: InputDialog doesn't support datatype: class io.jmix.core.metamodel.datatype.impl.FileRefDatatype
	at io.jmix.ui.app.inputdialog.InputDialog.createField(InputDialog.java:387)
	at io.jmix.ui.app.inputdialog.InputDialog.initParameters(InputDialog.java:321)
	at io.jmix.ui.app.inputdialog.InputDialog.onBeforeShow(InputDialog.java:126)
	at io.jmix.core.common.event.EventHub.publish(EventHub.java:170)
	at io.jmix.ui.screen.Screen.fireEvent(Screen.java:124)
	at io.jmix.ui.screen.UiControllerUtils.fireEvent(UiControllerUtils.java:58)
	at io.jmix.ui.sys.ScreensImpl.fireScreenBeforeShowEvent(ScreensImpl.java:1358)
	at io.jmix.ui.sys.ScreensImpl.show(ScreensImpl.java:354)
	at io.jmix.ui.screen.Screen.show(Screen.java:306)
	at io.jmix.ui.sys.DialogsImpl$InputDialogBuilderImpl.show(DialogsImpl.java:839)
	at com.haulmont.plannig.screen.plan.PlanEdit.onImportFromExcelClick(PlanEdit.java:155)
	at io.jmix.core.common.event.EventHub.publish(EventHub.java:170)
	at io.jmix.ui.component.impl.AbstractComponent.publish(AbstractComponent.java:85)
	at io.jmix.ui.component.impl.ButtonImpl.buttonClicked(ButtonImpl.java:78)
	at io.jmix.ui.widget.JmixButton.fireClick(JmixButton.java:77)
@knstvk knstvk added the type: bug Something isn't working label Sep 1, 2021
@knstvk knstvk added this to the 1.1.0 milestone Sep 1, 2021
@Flaurite Flaurite changed the title DialogMode doesn't work with file parameter InputDialog doesn't work with file parameter Sep 8, 2021
@Flaurite Flaurite closed this as completed Sep 8, 2021
@Flaurite Flaurite reopened this Sep 8, 2021
Flaurite added a commit that referenced this issue Sep 8, 2021
FileStorageUploadField does not support UriDatatype
@lovtsovaik lovtsovaik assigned imorenov94 and unassigned lovtsovaik Sep 8, 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