| Table of Contents |
|---|
Description
| Thai |
|---|
ลักษณะ |
- org.joget.apps.form.service.FormUtil
- Under wflow-core module
- Utility methods for the Form module.
Code Sample
| Thai |
|---|
ตัวอย่างโค้ด |
| Code Block |
|---|
import org.joget.apps.app.dao.FormDefinitionDao;
import org.joget.apps.app.model.FormDefinition;
import org.joget.apps.app.model.AppDefinition;
import org.joget.apps.app.service.AppUtil;
import org.joget.apps.form.model.Form;
import org.joget.apps.form.service.FormService;
import org.joget.apps.form.service.FormUtil;
AppService appService = (AppService) AppUtil.getApplicationContext().getBean("appService");
FormDefinitionDao formDefinitionDao = (FormDefinitionDao) AppUtil.getApplicationContext().getBean("formDefinitionDao");
FormService formService = (FormService) AppUtil.getApplicationContext().getBean("formService");
String id = "crm_account";
String appId = "crm";
Long appVersion = appService.getPublishedVersion(appId);
AppDefinition appDef = appService.getAppDefinition(appId, appVersion.toString());
FormDefinition formDef = formDefinitionDao.loadById(formId, appDef);
if (formDef != null) {
//create the form
Form form = (Form) formService.createElementFromJson(formDef.getJson(), true);
//Find an element by field id
Element e = FormUtil.findElement("accountName", form, null);
} |
Fields
| Thai |
|---|
ฟิลด์ |
FORM_BUILDER_ACTIVE
public static final java.lang.String FORM_BUILDER_ACTIVE = "formBuilderActive";
Key used to sets the request attribute to indicate the current request is from form builder.
| Thai |
|---|
คีย์ที่ใช้เพื่อตั้งค่าแอ็ตทริบิวต์คำร้องขอเพื่อระบุว่าคำร้องขอปัจจุบันมาจากตัวสร้างฟอร์ม |
FORM_ERRORS_PARAM
public static final java.lang.String FORM_ERRORS_PARAM = "_FORM_ERRORS";
| English |
|---|
| Key used to passes the form errors to the next submission for comparison. |
| Thai |
|---|
รหัสที่ใช้ในการส่งข้อผิดพลาดของแบบฟอร์มไปยังการส่งครั้งถัดไปสำหรับการเปรียบเทียบ |
FORM_META_ORIGINAL_ID
public static final java.lang.String FORM_META_ORIGINAL_ID = "_FORM_META_ORIGINAL_ID";
Key used to stores the form record id in a hidden field of a form
| Thai |
|---|
รหัสที่ใช้ในการจัดเก็บ id บันทึกแบบฟอร์มในเขตข้อมูลที่ซ่อนอยู่ของแบบฟอร์ม |
FORM_RESULT_LOAD_ALL_DATA
...
Key used by Multi Paged Form to loads all the data from child forms.
| Thai |
|---|
คีย์ที่ใช้โดย Multi Paged Form เพื่อโหลดข้อมูลทั้งหมดจากฟอร์มย่อย |
PROPERTY_CLASS_NAME
public static final java.lang.String PROPERTY_CLASS_NAME = "className";
Key used to retrieves class name from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงชื่อคลาสจากคุณสมบัติ |
PROPERTY_CUSTOM_PROPERTIES
...
Prefix for a form id used to builds Hibernate Query (HQL) conditions
| Thai |
|---|
คำนำหน้าสำหรับ id ของแบบฟอร์มที่ใช้ในการสร้างเงื่อนไข Hibernate Query (HQL) |
PROPERTY_DATE_CREATED
public static final java.lang.String PROPERTY_DATE_CREATED = "dateCreated";
Key used to stores created data of a record
| Thai |
|---|
รหัสที่ใช้ในการจัดเก็บข้อมูลที่สร้างขึ้นของบันทึก |
PROPERTY_DATE_MODIFIED
public static final java.lang.String PROPERTY_DATE_MODIFIED = "dateModified";
Key used to stores modified data of a record
| Thai |
|---|
กุญแจที่ใช้ในการจัดเก็บหมายเลขวิ่งที่ไม่ซ้ำกันสำหรับองค์ประกอบในคุณสมบัติ |
PROPERTY_ELEMENT_UNIQUE_KEY
...
Key used to to store a unique running number for element in properties
| Thai |
|---|
กุญแจที่ใช้ในการจัดเก็บหมายเลขวิ่งที่ไม่ซ้ำกันสำหรับองค์ประกอบในคุณสมบัติ |
PROPERTY_ELEMENTS
public static final java.lang.String PROPERTY_ELEMENTS = "elements";
Key used to retrieves child elements for an element in json
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงองค์ประกอบลูกสำหรับองค์ประกอบใน json |
PROPERTY_FORM_DEF_ID
public static final java.lang.String PROPERTY_FORM_DEF_ID = "formdefid";
Key used to retrieves form definition id from properties
PROPERTY_GROUPING
| Thai |
|---|
คีย์ที่ใช้เพื่อดึง id นิยามของฟอร์มจากคุณสมบัติ |
PROPERTY_GROUPING
public static final java.lang.String PROPERTY_GROUPING = "grouping";
Key used to retrieves grouping from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูลการจัดกลุ่มจากคุณสมบัติ |
PROPERTY_ID
public static final java.lang.String PROPERTY_ID = "id";
Key used to retrieves id from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูล id จากคุณสมบัติ |
PROPERTY_LABEL
public static final java.lang.String PROPERTY_LABEL = "label";
Key used to retrieves label from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูลเลเบลจากคุณสมบัติ |
PROPERTY_OPTIONS
public static final java.lang.String PROPERTY_OPTIONS = "options";
Key used to retrieves options from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูลตัวเลือกจากคุณสมบัติ |
PROPERTY_OPTIONS_DELIMITER
...
Delimiter used to separate options
| Thai |
|---|
ตัวคั่นใช้เพื่อแยกตัวเลือก |
PROPERTY_POST_PROCESSOR
public static final java.lang.String PROPERTY_POST_PROCESSOR = "postProcessor";
Key used to retrieves post processor tool from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงเครื่องมือตัวประมวลผลภายหลังจากคุณสมบัติ |
PROPERTY_POST_PROCESSOR_RUN_ON
...
Key used to retrieves running mode of a post processor from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อเรียกใช้โหมดการทำงานของตัวประมวลผลภายหลังจากคุณสมบัติ |
PROPERTY_PROPERTIES
public static final java.lang.String PROPERTY_PROPERTIES = "properties";
Key used to retrieves element properties from json
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงคุณสมบัติขององค์ประกอบจาก json |
PROPERTY_READONLY
public static final java.lang.String PROPERTY_READONLY = "readonly";
Key used to retrieves readonly from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูลแบบอ่านอย่างเดียวจากคุณสมบัติ |
PROPERTY_READONLY_LABEL
public static final java.lang.String PROPERTY_READONLY_LABEL = "readonlyLabel";
Key used to retrieves display readonly as label from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูลการแสดงผลแบบอ่านอย่างเดียวเป็นป้ายกำกับจากคุณสมบัติ |
PROPERTY_SELECTED
public static final java.lang.String PROPERTY_SELECTED = "selected";
Key used to retrieves selected from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงข้อมูลที่เลือกจากคุณสมบัติ |
PROPERTY_TABLE_NAME
public static final java.lang.String PROPERTY_TABLE_NAME = "tableName";
Key used to retrieves table name from json
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงชื่อตารางจาก json |
PROPERTY_TEMP_FILE_PATH
public static final java.lang.String PROPERTY_TEMP_FILE_PATH = "_tempFilePathMap";
Key used to stores the paths of uploaded temporary files
| Thai |
|---|
รหัสที่ใช้ในการจัดเก็บเส้นทางของไฟล์ชั่วคราวที่อัปโหลด |
PROPERTY_VALIDATOR
public static final java.lang.String PROPERTY_VALIDATOR = "validator";
Key used to retrieves validator from json
| Thai |
|---|
รหัสที่ใช้ในการดึง validator จาก json |
PROPERTY_VALUE
public static final java.lang.String PROPERTY_VALUE = "value";
Key used to retrieves value from properties
| Thai |
|---|
คีย์ที่ใช้เพื่อดึงค่าจากคุณสมบัติ |
Methods
| Thai |
|---|
| Methods |
clearProcessedFormJson
public static void clearProcessedFormJson()
Used by system to clears the current processing form json in current thread
| Thai |
|---|
ใช้โดยระบบเพื่อล้างฟอร์มการประมวลผลปัจจุบัน json ในเธรดปัจจุบัน |
executeActions
public static org.joget.apps.form.model.FormData executeActions(org.joget.apps.form.model.Form form, org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Utility method to recursively find and invoke actions starting from an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาและเรียกใช้การกระทำที่เริ่มต้นจากองค์ประกอบแบบซ้ำ ๆ |
executeElementFormatData
public static org.joget.apps.form.model.FormData executeElementFormatData(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
...
Return a java.util.Map mapping a binder to FormRowSets containing formatted values from all elements.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาและเรียกใช้เมธอด formatData ซ้ำโดยเริ่มจากองค์ประกอบ ส่งคืน java.util.Map การแม็พตัวโยงไปยัง FormRowSets ที่มีค่าที่จัดรูปแบบจากองค์ประกอบทั้งหมด |
executeElementFormatDataForValidation
...
Utility method to recursively find and invoke the formatDataForValidation method starting from an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาและเรียกใช้เมธอด formatDataForValidation ซ้ำ ๆ โดยเริ่มจากองค์ประกอบ |
executeLoadBinders
public static org.joget.apps.form.model.FormData executeLoadBinders(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Utility method to recursively traverse and invoke load binders starting from an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อสำรวจซ้ำและเรียกใช้ตัวยึดโหลดที่เริ่มต้นจากองค์ประกอบ |
executeOptionBinders
public static org.joget.apps.form.model.FormData executeOptionBinders(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Utility method to recursively find and invoke option binders starting from an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาและเรียกใช้ตัวยึดประสานแบบเรียกซ้ำโดยเริ่มจากองค์ประกอบ |
executePostFormSubmissionProccessor
...
Utility methods to execute tool after form submission
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อรันเครื่องมือหลังจากการส่งแบบฟอร์ม |
executeValidators
public static boolean executeValidators(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Utility method to recursively find and invoke validators starting from an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาและเรียกใช้เครื่องมือตรวจสอบซ้ำโดยเริ่มจากองค์ประกอบ |
findAndParseElement
public static org.joget.apps.form.model.Element findAndParseElement(java.lang.String json, java.lang.String fieldId)
Finds and parses the form field element from form json by field id
| Thai |
|---|
ค้นหาและแยกวิเคราะห์องค์ประกอบเขตข้อมูลฟอร์มจากแบบฟอร์ม json โดย ID |
findAndParseElementFromJsonObject
...
Finds and parses the form field element from form json object by field id
findElement
| Thai |
|---|
ค้นหาและแยกวิเคราะห์องค์ประกอบเขตข้อมูลฟอร์มจากวัตถุ json ของฟอร์มโดยใช้ ID ฟิลด์ |
findElement
public public static org.joget.apps.form.model.Element findElement(java.lang.String id, org.joget.apps.form.model.Element rootElement, org.joget.apps.form.model.FormData formData)
Utility method to recursively find an element by ID.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาองค์ประกอบด้วย ID ซ้ำ ๆ |
findElement
public static org.joget.apps.form.model.Element findElement(java.lang.String id, org.joget.apps.form.model.Element rootElement, org.joget.apps.form.model.FormData formData, java.lang.Boolean includeSubForm)
Utility method to recursively find an element by ID.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาองค์ประกอบด้วย ID ซ้ำ ๆ |
findLoadBinder
public static org.joget.apps.form.model.FormLoadBinder findLoadBinder(org.joget.apps.form.model.Element element)
Utility method to recursively find the nearest ancestor load binder for an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหา binder ของบรรพบุรุษที่ใกล้เคียงที่สุดแบบเรียกซ้ำสำหรับองค์ประกอบ |
findOptionsBinder
public static org.joget.apps.form.model.FormLoadBinder findOptionsBinder(org.joget.apps.form.model.Element element)
Utility method to recursively find the nearest ancestor options binder for an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาตัวเลือกบรรพบุรุษที่ใกล้เคียงที่สุดแบบเรียกซ้ำสำหรับองค์ประกอบ |
findRootForm
public static org.joget.apps.form.model.Form findRootForm(org.joget.apps.form.model.Element element)
Utility method to recursively find the parent Form for an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหาแบบฟอร์มหลักสำหรับองค์ประกอบแบบเรียกซ้ำ |
findStoreBinder
public static org.joget.apps.form.model.FormStoreBinder findStoreBinder(org.joget.apps.form.model.Element element)
Utility method to recursively find the nearest ancestor store binder for an element.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อค้นหา binder ที่เก็บบรรพบุรุษที่อยู่ใกล้ที่สุดซ้ำ ๆ สำหรับองค์ประกอบ |
generateDefaultForm
public static java.lang.String generateDefaultForm(java.lang.String formId, org.joget.apps.app.model.FormDefinition formDef)
Utility method used to creates a new form definition json
| Thai |
|---|
วิธีการยูทิลิตี้ที่ใช้ในการสร้างรูปแบบคำนิยามใหม่ json |
generateDefaultForm
public static java.lang.String generateDefaultForm(java.lang.String formId, org.joget.apps.app.model.FormDefinition formDef, org.joget.apps.app.model.FormDefinition copyFormDef)
Utility method used to creates a new form definition json based on another form definition
| Thai |
|---|
วิธีการยูทิลิตี้ที่ใช้ในการสร้างรูปแบบคำนิยามใหม่ json ขึ้นอยู่กับการกำหนดรูปแบบอื่น |
generateDefaultTemplateDataModel
...
Generates a standard map of data to be used within an element template.
| Thai |
|---|
สร้างแผนที่ข้อมูลมาตรฐานที่จะใช้ภายในแม่แบบองค์ประกอบ |
generateElementHtml
public static java.lang.String generateElementHtml(final org.joget.apps.form.model.Element element, final org.joget.apps.form.model.FormData formData, final java.lang.String templatePath, java.util.Map dataModel)
Generates HTML output using a FreeMarker template.
| Thai |
|---|
สร้างเอาต์พุต HTML โดยใช้เทมเพลต FreeMarker |
generateElementJson
public static java.lang.String generateElementJson(org.joget.apps.form.model.Element element) throws java.lang.Exception
Generates JSON representing an element.
| Thai |
|---|
สร้าง JSON ที่แสดงถึงองค์ประกอบ |
generateElementJsonObject
...
Generates a JSONObject to represent an element
| Thai |
|---|
สร้าง JSONObject เพื่อเป็นตัวแทนองค์ประกอบ |
generateElementMetaData
public static java.lang.String generateElementMetaData(org.joget.apps.form.model.Element element)
Generates the HTML tag meta data for the element that is used by the form builder.
| Thai |
|---|
สร้างข้อมูลเมตาแท็ก HTML สำหรับองค์ประกอบที่ใช้โดยเครื่องมือสร้างแบบฟอร์ม |
generateElementPropertyJson
...
Generates JSON representing the properties of an element.
| Thai |
|---|
สร้าง JSON ที่แสดงคุณสมบัติขององค์ประกอบ |
generateElementPropertyValues
...
Generates a delimited string from an array of Strings.
| Thai |
|---|
สร้างสตริงที่มีการคั่นจากอาร์เรย์ของสตริง |
generatePropertyJsonObject
...
Generates a org.json.JSONObject to represent the properties of an element
| Thai |
|---|
สร้าง org.json.JSONObject เพื่อแสดงคุณสมบัติขององค์ประกอบ |
getAjaxOptionsBinderData
public static org.joget.apps.form.model.FormRowSet getAjaxOptionsBinderData(java.lang.String dependencyValue, org.joget.apps.app.model.AppDefinition appDef, java.lang.String nonce, java.lang.String binderData)
Gets data from Options Binder for AJAX call
| Thai |
|---|
รับข้อมูลจาก Options Binder สำหรับการโทร AJAX |
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()
Utility method to retrieve the ApplicationContext of the system
| Thai |
|---|
วิธีการ Utility เพื่อดึง ApplicationContext ของระบบ |
getElementError
public static java.lang.String getElementError(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Retrieve the error attached to the element
| Thai |
|---|
ดึงข้อผิดพลาดที่แนบมากับองค์ประกอบ |
getElementParameterName
public static java.lang.String getElementParameterName(org.joget.apps.form.model.Element element)
Returns the parameter name for the element.
| Thai |
|---|
ส่งคืนชื่อพารามิเตอร์สำหรับองค์ประกอบ |
getElementProcessedJson
public static java.lang.String getElementProcessedJson(org.joget.apps.form.model.Element element)
Utility method to convert an element to json
| Thai |
|---|
วิธีการยูทิลิตี้ในการแปลงองค์ประกอบเป็น JSON |
getElementPropertyOptionsMap
...
Retrieves the property options for an element, first from the element's options binder. If no binder is available, the default options are used.
| Thai |
|---|
ดึงตัวเลือกคุณสมบัติสำหรับองค์ประกอบแรกจากตัวเลือกองค์ประกอบของตัวยึด หากไม่มีแฟ้มประสานจะใช้ตัวเลือกเริ่มต้น |
getElementPropertyValue
public static java.lang.String getElementPropertyValue(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Retrieves the property value for an element, first from the element's load binder. If no binder is available, the default value is used.
Overrides the binder/default value when value from request parameter is available.
getElementPropertyValues
| Thai |
|---|
ดึงค่าคุณสมบัติสำหรับองค์ประกอบแรกจากเครื่องผูกขององค์ประกอบ หากไม่มีแฟ้มประสานจะใช้ค่าเริ่มต้น |
getElementPropertyValues
public public static java.lang.String[] getElementPropertyValues(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Retrieves the property value for an element, first from the element's load binder. If no binder is available, the default value is used.
Overrides the binder/default value when value from request parameter is available.
This method supports multiple values for a property.
| Thai |
|---|
ดึงค่าคุณสมบัติสำหรับองค์ประกอบแรกจากเครื่องผูกขององค์ประกอบ หากไม่มีแฟ้มประสานจะใช้ค่าเริ่มต้น |
getElementValidatorDecoration
...
Retrieve a decoration on an element by any attached validator, e.g. marking a required field.
| Thai |
|---|
รับการตกแต่งในองค์ประกอบโดยเครื่องมือตรวจสอบใด ๆ ที่แนบมาเช่น ทำเครื่องหมายฟิลด์ที่ต้องการ |
getFormColumns
public static java.util.Collection<java.util.Map<java.lang.String, java.lang.String>> getFormColumns(org.joget.apps.app.model.AppDefinition appDef, java.lang.String formId)
Retrieve all form fields id & label in form data table
| Thai |
|---|
ดึงข้อมูล ID ฟิลด์และฉลากทั้งหมดในตารางข้อมูลแบบฟอร์ม |
getProcessedFormJson
public static java.lang.String getProcessedFormJson()
Used by system to gets the current processing form json in current thread
| Thai |
|---|
ใช้โดยระบบเพื่อรับรูปแบบการประมวลผลปัจจุบัน json ในเธรดปัจจุบัน |
getRequestParameter
public static java.lang.String getRequestParameter(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Returns the request parameter value for an element
| Thai |
|---|
ส่งคืนค่าพารามิเตอร์คำขอสำหรับองค์ประกอบ |
getRequestParameterValues
...
Returns the request parameter value for an element
| Thai |
|---|
ส่งคืนค่าพารามิเตอร์คำขอสำหรับองค์ประกอบ |
getUniqueKey
public static java.lang.String getUniqueKey()
Gets a running number a unique key
| Thai |
|---|
รับค่าหมายเลขเรียกใช้เป็นรหัสเฉพาะ |
isAjaxOptionsSupported
public static boolean isAjaxOptionsSupported(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Check the element is using Ajax to load options
| Thai |
|---|
ตรวจสอบองค์ประกอบที่ใช้ Ajax เพื่อโหลดตัวเลือก |
isElementPropertyValuesChanges
...
Utility methods to check the value of an element is changed
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อตรวจสอบค่าขององค์ประกอบที่มีการเปลี่ยนแปลง |
isFormBuilderActive
public static boolean isFormBuilderActive()
Check whether request is currently in the form builder.
| Thai |
|---|
ตรวจสอบว่าคำขออยู่ในตัวสร้างฟอร์มหรือไม่ |
isFormSubmitted
public static boolean isFormSubmitted(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Check a form is submitted or not
| Thai |
|---|
ส่งแบบฟอร์มเช็คหรือไม่ |
isReadonly
public static boolean isReadonly(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Check an element is readonly or not
loadFormData
| Thai |
|---|
ตรวจสอบองค์ประกอบเป็นแบบอ่านอย่างเดียวหรือไม่ |
loadFormData
public static java.util.Map<java.lang.String, java.lang.Object> loadFormData(final java.lang.String appId, final java.lang.String appVersion, final java.lang.String formDefId, final java.lang.String primaryKeyValue, final boolean includeSubformData, final boolean includeReferenceElements, final boolean flatten, final org.joget.workflow.model.WorkflowAssignment assignment)
...
Parameters:
includeSubformData - true to recursively include subform data
includeReferenceElements - true to include data from reference elements e.g. selectbox, etc.
flatten - true to flatten data into a one level key-value map
assignment - Optional workflow assignment (for assignment hash variables)
Return a java.util.Map<java.lang.String,Object> representing the form data. The key is the element ID, and the value is either a java.lang.String for an element value, java.util.Map<java.lang.String,Object> representing subform data, or java.util.Collection<java.util.Map<java.lang.String,Object>> for reference fields.fields.
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อดึงค่าข้อมูลแบบฟอร์มที่ส่งรวมถึงข้อมูลจากฟอร์มย่อยและเขตข้อมูลอ้างอิง พารามิเตอร์: |
loadFormDataJson
public static java.lang.String loadFormDataJson(java.lang.String appId, java.lang.String appVersion, java.lang.String formDefId, java.lang.String primaryKeyValue, boolean includeSubformData, boolean includeReferenceElements, boolean flatten, org.joget.workflow.model.WorkflowAssignment assignment) throws org.json.JSONException
Similar to loadFormData, returns results in JSON format.
| Thai |
|---|
คล้ายกับ loadFormData ส่งคืนผลลัพธ์ในรูปแบบ JSON |
parseBinderFromJsonObject
...
Parse binder object from element json object
| Thai |
|---|
แยกวิเคราะห์วัตถุจากองค์ประกอบ json วัตถุ |
parseChildElementsFromJsonObject
...
Parse child elements from element json object
| Thai |
|---|
แยกวิเคราะห์องค์ประกอบลูกจากองค์ประกอบ json วัตถุ |
parseElementFromJson
public static org.joget.apps.form.model.Element parseElementFromJson(java.lang.String json) throws java.lang.Exception
Parses form field element from the element json string
| Thai |
|---|
แยกวิเคราะห์องค์ประกอบเขตข้อมูลฟอร์มจากองค์ประกอบ json สตริง |
parseElementFromJsonObject
...
Parses form field element from the element json object
| Thai |
|---|
แยกวิเคราะห์องค์ประกอบเขตข้อมูลฟอร์มจากองค์ประกอบ json วัตถุ |
parsePropertyFromJsonObject
...
Parses the properties attribute from a JSON object into a Map
| Thai |
|---|
แยกวิเคราะห์คุณสมบัติคุณสมบัติจากวัตถุ JSON ลงในแผนที่ |
parseValidatorFromJsonObject
...
Parse validator object from element json object
| Thai |
|---|
ตรวจสอบแยกวิเคราะห์วัตถุจากองค์ประกอบ json วัตถุ |
setAjaxOptionsElementProperties
...
Sets security data for multi options element which using Ajax call to load options
| Thai |
|---|
ตั้งค่าข้อมูลความปลอดภัยสำหรับองค์ประกอบหลายตัวเลือกที่ใช้ Ajax call เพื่อโหลดตัวเลือก |
setFormBuilderActive
public static void setFormBuilderActive(java.lang.Boolean active)
Sets flag in request to indicate whether is currently in the form builder.
| Thai |
|---|
ตั้งค่าสถานะในคำขอเพื่อระบุว่าขณะนี้อยู่ในตัวสร้างแบบฟอร์ม |
setProcessedFormJson
public static void setProcessedFormJson(java.lang.String json)
Used by system to sets the current processing form json in current thread
| Thai |
|---|
ใช้โดยระบบเพื่อตั้งค่ารูปแบบการประมวลผลปัจจุบัน json ในเธรดปัจจุบัน |
setReadOnlyProperty
public static void setReadOnlyProperty(org.joget.apps.form.model.Element element)
Recursively set the readonly property for all descendent elements.
| Thai |
|---|
ตั้งค่าคุณสมบัติแบบอ่านซ้ำสำหรับองค์ประกอบที่สืบทอดทั้งหมด |
setReadOnlyProperty
public static void setReadOnlyProperty(org.joget.apps.form.model.Element element, java.lang.Boolean readonly, java.lang.Boolean label)
Recursively set the readonly property for all descendent elements.
| Thai |
|---|
ตั้งค่าคุณสมบัติแบบอ่านซ้ำสำหรับองค์ประกอบที่สืบทอดทั้งหมด |