Hi, using Jmix 1.5,
we want to build an own screen for email send history.
The database has the table email_sending_message, but there’s no entity.
How do I create such entity?
Thanks,
br
HP
Hi, using Jmix 1.5,
we want to build an own screen for email send history.
The database has the table email_sending_message, but there’s no entity.
How do I create such entity?
Thanks,
br
HP
I’m using Jmix 2, as I skipped 1.5, so can’t be sure but I think its the same more or less.
There should be email_sending_message and email_sending_attachment
To create JPA entity that you can build views based on, under right-click menu of the Main Data Store, there should be “generate model from database” option , search for a database table there and generate the JPA entity, from there you can also do it for attachments, and then make sure that there is a composition relationship, and then you generate the new view and modify …
Are you sure that there is no e-mail history screen in Jmix 1.5, it should be available to be included to the Main menu? Under CUBA, the name of that screen was sys$SendingMessage.browse , under Jmix 2 its SendingMessageView ()
@ViewController("email_sendingMessageView")
@ViewDescriptor("sending-message-view.xml")
so, you can extend or override it which may be faster then creating them from scratch…
Kind regards,
Mladen
SendingMessage?
SendingMessageBrowser
uses it.
Thanks Yaroslaw,
Thanks so far.
When I use ’ new screen from overwrite template’ on top of email.sendmessage, that screen is build.
But application breaks with: no root screen started.
Deleting my sendmessage overwritten screen again, the app starts again.
Thinks I’m missing some connecting knowledge… sorry
best regards
HP
Maybe to explain my goal a litte bit,
I have several user in my app with different rights.
Some should see the send messages, some mustn’t.
Some should do something more with that list, others won’t have to.