Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
import org.joget.apps.app.dao.DatalistDefinitionDao; import org.joget.apps.app.model.AppDefinition; import org.joget.apps.app.model.DatalistDefinition; import org.joget.apps.app.service.AppUtil; import org.joget.apps.datalist.model.DataList; AppService appService = (AppService) AppUtil.getApplicationContext().getBean("appService"); DatalistDefinitionDao datalistDefinitionDao = (DatalistDefinitionDao) AppUtil.getApplicationContext().getBean("datalistDefinitionDao"); String id = "crm_account"; String appId = "crm"; Long appVersion = appService.getPublishedVersion(appId); AppDefinition appDef = appService.getAppDefinition(appId, appVersion.toString()); DatalistDefinition datalistDefinition = datalistDefinitionDao.loadById(id, appDef); DataList dataList = JsonUtil.fromJson(datalistDefinition.getJson(), DataList.class);
public static final java.lang.String PROPERTY_ACTION = "action";
Key to retrieve the action value from JSON Object properties
public static final java.lang.String PROPERTY_ACTIONS = "actions";
Key to retrieve the actions from JSON Object properties
public static final java.lang.String PROPERTY_BINDER = "binder";
Key to retrieve the binder from JSON Object properties
public static final java.lang.String PROPERTY_CLASS_NAME = "className";
Key to retrieve the class name value from JSON Object properties
public static final java.lang.String PROPERTY_COLUMNS = "columns";
Key to retrieve the columns from JSON Object properties
public static final java.lang.String PROPERTY_DESC = "description";
Key to retrieve the description value from JSON Object properties
public static final java.lang.String PROPERTY_FILTER_TYPE = "type";
Key to retrieve the type value from JSON Object properties
public static final java.lang.String PROPERTY_FILTERS = "filters";
Key to retrieve the filter value from JSON Object properties
public static final java.lang.String PROPERTY_FORMAT = "format";
Key to retrieve the format value from JSON Object properties
public static final java.lang.String PROPERTY_HIDDEN = "hidden";
Key to retrieve the hidden value from JSON Object properties
public static final java.lang.String PROPERTY_HIDE_PAGE_SIZE = "hidePageSize";
Key to retrieve the Id value from JSON Object properties
public static final java.lang.String PROPERTY_ID = "id";
Key to retrieve the Id value from JSON Object properties
public static final java.lang.String PROPERTY_LABEL = "label";
Key to retrieve the label value from JSON Object properties
public static final java.lang.String PROPERTY_NAME = "name";
Key to retrieve the name value from JSON Object properties
public static final java.lang.String PROPERTY_OPERATOR = "operator";
Key to retrieve the operator value from JSON Object properties
public static final java.lang.String PROPERTY_ORDER = "order";
Key to retrieve the order value from JSON Object properties
public static final java.lang.String PROPERTY_ORDER_BY = "orderBy";
Key to retrieve the order by value from JSON Object properties
public static final java.lang.String PROPERTY_PAGE_SIZE = "pageSize";
Key to retrieve the page size value from JSON Object properties
public static final java.lang.String PROPERTY_PROPERTIES = "properties";
Key to retrieve the properties values from JSON Object properties
public static final java.lang.String PROPERTY_RENDER_HTML = "renderHtml";
Key to retrieve the render html value from JSON Object properties
public static final java.lang.String PROPERTY_ROW_ACTIONS = "rowActions";
Key to retrieve the row actions from JSON Object properties
public static final java.lang.String PROPERTY_SORTABLE = "sortable";
Key to retrieve the sortable value from JSON Object properties
public static final java.lang.String PROPERTY_STYLE = "style";
Key to retrieve the style value from JSON Object properties
public static final java.lang.String PROPERTY_WIDTH = "width";
Key to retrieve the width value from JSON Object properties
public static <T extends java.lang.Object> T fromJson(java.lang.String json, java.lang.Class<T> classOfT)
Converts from JSON string into an object. Specifically to support data list model classes.
public static java.lang.String generateDefaultList(java.lang.String listId, org.joget.apps.app.model.DatalistDefinition datalistDef)
Used to generate a datalist definition JSON
public static java.lang.String generateDefaultList(java.lang.String listId, org.joget.apps.app.model.DatalistDefinition datalistDef, org.joget.apps.app.model.DatalistDefinition copyDatalistDef)
Used to generate a datalist definition JSON based on another datalist definition
public static org.joget.apps.datalist.model.DataListAction parseActionFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist action from JSON Object
public static java.util.Collection<org.joget.apps.datalist.model.DataListAction> parseActionsFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist actions from JSON Object
public static org.joget.apps.datalist.model.DataListBinder parseBinderFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist binder from JSON Object
public static java.util.Collection<org.joget.apps.datalist.model.DataListColumn> parseColumnsFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist column from JSON Object
public static java.lang.Object parseElementFromJson(java.lang.String json)
Converts from JSON java.lang.String into an object. Specifically to support data list model classes.
public static java.lang.Object parseElementFromJsonObject(org.json.JSONObject obj) throws java.lang.Exception
Used to creates Datalist object from JSON Object
public static java.util.Collection<org.joget.apps.datalist.model.DataListFilter> parseFiltersFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist filters from JSON Object
public static org.joget.apps.datalist.model.DataListFilterType parseFilterTypeFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist filter type from JSON Object
public static org.joget.apps.datalist.model.DataListColumnFormat parseFormatterFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist formatter from JSON Object
public static java.util.Collection<org.joget.apps.datalist.model.DataListAction> parseRowActionsFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException, java.lang.InstantiationException, java.lang.IllegalAccessException
Used to retrieves datalist row actions from JSON Object