Create an ordermanagement app in CUBA

Hi,

i just recently created a Youtube Video showing how to use CUBA to create an ordermanagement application within round about an hour.

You might want to check it out: https://youtu.be/K8kIrEwnTJ4

All current and upcoming videos for this topic can be found in the corresponding playlist
CUBA platform ordermanagement

I would like to get your feedback on it, if you like it, if you think I can do something better or perhaps you have even topics that I should cover.

Bye
Mario

11 Likes

Great work! I’m looking forward to the next instalment (especially the part about multi-tenancy).

Perhaps in the next one you could show an example of internationalization. Nothing expansive, just show how the string properties work in Studio.

Hi,

I’ve uploaded the second part of the video series “02 - ordermanagement - auto generate invoice and save to order”:

2 Likes

Hi Ray,

thanks for the feedback. I uploaded a small one regarding the i18n topic. You can check it out here:

I hope you’ll find it useful. Next time, you can also raise an issue in the corresponding github repository: https://github.com/mariodavid/rtcab-ordermanagement/issues

Bye
Mario

2 Likes

Another great job. :+1:t5:

I was hoping you’d get as far as the full text search, but I can wait.

:slightly_smiling_face:

Thanks again. Very handy. I didn’t know that there were UI translations available.

Hi,

attached you’ll find the fourth video in the series. This time it is about the full text search capabilities and how to use them as a user and as a developer:

04 - ordermanagement - search data via full text search:

Bye
Mario

3 Likes

Another good job, Mario. And also shows what a great job Cuba have done with making the FTS really easy to set up and use.

Hi Mario.

Went back to this video because there was a small detail I wasn’t clear on.

When you created the Document entity, you set up a many-to-one relationship with the FileDescriptor. Why didn’t you use a one-to-one? I would have thought that you would only associate one FileDescriptor with one Document.

I’ve no glue. Probably i was just wrong. How about that: change it in https://github.com/mariodavid/rtcab-ordermanagement, look if it behaves the same and send a pull request. I’ll merge it in :slight_smile:

Bye
Mario

1 Like

Hi there!

Trying to get the project to run, but I’m running into problems with the translations stuff. I’ve added the content module for the DE translation, which got rid of the errors I was getting that prevented the project from loading into Cuba Studio, but now the build process is having trouble picking up items from the Cuba repo (I think)

Could not GET 'https://repo.cuba-platform.com/content/groups/premium/com/haulmont/translation/german/translation_DE-global/6.3.5.2/translation_DE-global-6.3.5.2.pom

hi, correct.

I’ve answered that here:
https://www.cuba-platform.com/discuss/t/unable-to-load-app-component-in-internationalization-project/4520

I will try to create a app component that is directly downloadable from bintray - then the problem should disappear…

Hi,

attached you’ll find the next part:

05 - ordermanagement - hide customer selection in order screen

I hope you enjoy it.

Bye
Mario

3 Likes

Good job. I struggled with the notion of making sections of the page visible and invisible when I first came to the platform. I think I was suffering from JSP-thinking.

Oh, and the composition error you ran into was a stroke of luck. Good that you showed the steps to solving it.

Ah! Thanks very much. I see that I missed a step.

I tried the one-to-one file descriptor mapping on my own project and it works fine. I’ll have a crack at changing it on yours.

Hi,

attached you’ll find the next part:

06 - ordermanagement - role with subset of features

I hope you enjoy it.

Bye
Mario

2 Likes

Hi,

attached you’ll find the next part:

07 - ordermanagement - automatic download of translation app component

Bye

1 Like

Hi,

here’s the next part:

08 - ordermanagement - storing tenant information with business objects

Bye

1 Like

Hi Mario, first thing, Your tutorials are great! I have gone threw all of the documentation, but thanks to Yor tutorial I am finaly getting a hang of Cuba-Platforn. Thank You!
Now I am stuck on the first video (22:51). I am trying to set up a entity listener, but in Intelij i n the middlewear section I onlly see Service and Beans. Did I do something wrong, that i do not see the Entity Listeners? I am using Cuba 7.0 and it seams that in You tutorial You are using 6.x.
Could You please help me with this issue?

Hi,

good to hear that you liked it. You are right, the tutorials are tailored towards CUBA 6.x with the corresponding studio version.

In CUBA 7 entity listeners are still available (and you can look it up here: https://doc.cuba-platform.com/manual-7.0/entity_listeners.html. In studio you can just create a “Bean” in the middleware section and implement the corresponding interfaces manually. I think the automatic creation from studio is gone in version 7.x if I recall correctly.

Furthermore - depending on your use case, you might want to switch to the new mechanism called EntityChangedEvent - see: https://doc.cuba-platform.com/manual-7.0/entityChangedEvent.

If you want to learn more about the topic of events, here’s a dedicated guide for exactly that in CUBA 7: https://www.cuba-platform.com/guides/decouple-business-logic-with-app-events#entity_changes_through_entitychangedevent

Bye
Mario

2 Likes