Custom layout, wizard style

Hello everybody !

For the needs of our customer, we are about to create a wizard view, where we will manage screen by screen different entities that are linked between them. I followed this article (https://sugarclub.sugarcrm.com/dev-club/b/dev-blog/posts/how-to-build-custom-record-views-in-sugar) in order to have custom views.

Here is my first view : 

Here is the structure of my files : 

create-wizard layout for the Manda_Mandats module

Files created for the Manda_Mandats module : 

Before going deeper in details, did you ever try or achieve such a wizard ? Can you share at least some low level details ?

Thanks a lot !

Best regards,

Enes

Parents
  • Well, I think my question is oriented in a too specific way :-)

    I could address you a more generic problem : 

    Is there a smooth way of generating a dynamic layout ? In fact, here is my problem : 

    In my Mandat object, I have an enum field that contains the type of a mandat, naming the number of broker that are allowed to save. When setting a quadri-exclusive mandat (for example), my next screen should display four rows of "Broker - Contact" items: 

    With the dropdowns corresponding to Accounts and Contacts modules. 

    Do you have an idea on how to do that ? 

    Many thanks and best regards,

    Enes

  • I have done something similar in the past. But then in a dashlet. What it came down to is to have a hbs file that loops over your records and generate the field markup 'by hand'. This is not a great solution I know but it gets the job done. If you are in the same layout / view you can create multiple templates in the same folder and call them with the call this.template = app.template.get(this.name + ".dnb-no-duns"); After this a render should show the template you set as the current template. 

    Just be aware that you are entering a world of pain (*Big Lebowski reference*) and yes it's doable. ;)

  • Hello Jeroen,

    I'll try to "reproduce" the behaviour of the Quote Line Items, it is relatively similar to what I want to do. Not so easy I think :-D

Reply Children
No Data