Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Code Block | ||
---|---|---|
| ||
import javax.servlet.http.HttpServletRequest; import org.joget.apps.app.dao.UserviewDefinitionDao; import org.joget.apps.app.model.UserviewDefinition; import org.joget.apps.app.service.AppUtil; import org.joget.apps.userview.service.UserviewService; import org.joget.workflow.util.WorkflowUtil; UserviewService userviewService = (UserviewService) AppUtil.getApplicationContext().getBean("userviewService"); UserviewDefinitionDao userviewDefinitionDao = (UserviewDefinitionDao) AppUtil.getApplicationContext().getBean("userviewDefinitionDao"); HttpServletRequest request = WorkflowUtil.getHttpServletRequest(); AppDefinition appDef = AppUtil.getCurrentAppDefinition(); UserviewDefinition userviewDef = userviewDefinitionDao.loadById("crm", appDef); if (userviewDef != null) { //create userview Userview userview = userviewService.createUserview(userview.getJson(), null, false, request.getContextPath(), request.getParameterMap(), null, false); } |
Thai |
---|
กระบวนการ |
public org.joget.apps.userview.model.Userview createUserview(java.lang.String json, java.lang.String menuId, boolean preview, java.lang.String contextPath, java.util.Map requestParameters, java.lang.String key, java.lang.Boolean embed)
English |
---|
Create userview fron json |
Thai |
---|
สร้าง userview จาก json |
...