cancel
Showing results for 
Search instead for 
Did you mean: 

New components for Form Properties

marc_carrio
Champ in-the-making
Champ in-the-making
Hi,

I'm migrating Forms of my old process in Activiti < 5.7 to Form Properties (5.7), but I need more components… like this, textarea, radio button…  :?

Further I have 20 fields in my Form, and I need put in two colums for being useful. 

My question are if you think work more in Form Properties in the next future, or if is better that I work in this now. I would not do useless work, because you develop better than me  Smiley Very Happy

If not, can you tell me what strategy and classes for change?  :roll:

Thanks a lot!!  :mrgreen:
13 REPLIES 13

frederikherema1
Star Contributor
Star Contributor
You should just expose the FIeld-interface on the component you write, and the field should be a Widget, that is. Look at the UserComponent for an example.

marc_carrio
Champ in-the-making
Champ in-the-making
Ok, Smiley Happy but…

First, the UserComponent, is the table used for admin the groups?

org.activiti.explorer.ui.management.identity.UserDetailPanel
  protected void initGroups() {
    HorizontalLayout groupHeader = new HorizontalLayout();
    groupHeader.setWidth(100, UNITS_PERCENTAGE);
    groupHeader.setSpacing(true);
    groupHeader.setMargin(false, false, true, false);
    groupHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
    addDetailComponent(groupHeader);
   
    initGroupTitle(groupHeader);
    initAddGroupsButton(groupHeader);
   
    groupLayout = new HorizontalLayout(); // we wrap the table in a simple layout so we can remove the table easy later on
    groupLayout.setWidth(100, UNITS_PERCENTAGE);
    addDetailComponent(groupLayout);
    initGroupsTable();
  }

Second, the Field-interface needs implements 80 methods, and don't stand the layouts and components that uses UserComponent example.  I want to be sure that this is the correct way, because i don't know if I understand all good. Because I think that is a bit complicated…

Thanks a lot for all your support, best regards,

Marc

frederikherema1
Star Contributor
Star Contributor
I meant the SelectUserField -> this is a form-property that allows you to select a user…

marc_carrio
Champ in-the-making
Champ in-the-making
Much better!  Smiley Very Happy  Smiley Very Happy

I test with this! thanks a lot!

Marc