AS

Hi,

I'm looking for option to add row to the table control of the dialog template. I created a dialog template and add the table control to it. After that I would like to add some rows to the table one by one and not to use the function setItems of the table control. And also If it is possible to make part of rows editable and part of it not at all.

Thanks.

by Tricarico Romain
Posted on Wed, 06/22/2016 - 11:57

Hi, in my mind,

you should use getItems then, add your new item in the returned list, then use setItems to rewrite the list in the table.

In order to define editable columns and not editable columns, use the 6th parameter when you define your table :

Table ( int X, int Y, int DX, int DY, String[] columnArray, int[] editorInfo, String[] columnInfo, String Field, int Options )

 

In the help :

editorInfo

: This one-dimensional array defines the representation or the editor for each column. The array must be of the same length as columnArray.,nl. This parameter can be null, in which case none of the columns in the table are editable. Possible values:

Constants.TABLECOLUMN_DEFAULT : Default behavior

Constants.TABLECOLUMN_SINGLELINE : One line representation of text

Constants.TABLECOLUMN_SINGLELINE_EDIT : One line representation of text, editable

Constants.TABLECOLUMN_MULTILINE : Multi-line representation of text

Constants.TABLECOLUMN_MULTILINE_EDIT : Multi-line representation of text, editable

Constants.TABLECOLUMN_BOOL : Representation as selection box

Constants.TABLECOLUMN_BOOL_EDIT : Representation as selection box, editable

Constants.TABLECOLUMN_FILE_EDIT : One line text display with "..." button for file selection dialog.

 

 

Best Regards.

Romain Tricarico

www.bpmap.fr

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock