public class DWRFormService
extends java.lang.Object
FormService
methods and have been chosen to be exposed via dwr to allow
for access via javascript.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
DWRFormService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteFormField(java.lang.Integer id) |
java.util.List<FieldListItem> |
findFields(java.lang.String txt) |
java.util.List<java.lang.Object> |
findFieldsAndConcepts(java.lang.String txt) |
java.util.List<FormListItem> |
findForms(java.lang.String text,
boolean includeUnpublished)
Finds forms based on search text.
|
Field |
getField(java.lang.Integer fieldId) |
FormFieldListItem |
getFormField(java.lang.Integer formFieldId) |
java.util.List<FormFieldListItem> |
getFormFields(java.lang.Integer formId) |
java.util.List<FormListItem> |
getForms(boolean includeUnpublished)
Gets a list of FormListItems that correspond to forms.
|
java.lang.String |
getJSTree(java.lang.Integer formId) |
java.lang.Integer[] |
saveFormField(java.lang.Integer fieldId,
java.lang.String name,
java.lang.String fieldDesc,
java.lang.Integer fieldTypeId,
java.lang.Integer conceptId,
java.lang.String table,
java.lang.String attr,
java.lang.String defaultValue,
boolean multiple,
java.lang.Integer formFieldId,
java.lang.Integer formId,
java.lang.Integer parent,
java.lang.Integer number,
java.lang.String part,
java.lang.Integer page,
java.lang.Integer min,
java.lang.Integer max,
boolean required,
float sortWeight) |
public java.util.List<FormListItem> findForms(java.lang.String text, boolean includeUnpublished)
text
- the string to search onincludeUnpublished
- true/false whether to include unpublished formsFormListItem
spublic java.util.List<FormListItem> getForms(boolean includeUnpublished)
includeUnpublished
- true/false to include unpublished formsFormListItem
spublic Field getField(java.lang.Integer fieldId)
public FormFieldListItem getFormField(java.lang.Integer formFieldId)
public java.util.List<FormFieldListItem> getFormFields(java.lang.Integer formId)
public java.util.List<FieldListItem> findFields(java.lang.String txt)
public java.util.List<java.lang.Object> findFieldsAndConcepts(java.lang.String txt)
public java.lang.String getJSTree(java.lang.Integer formId)
public java.lang.Integer[] saveFormField(java.lang.Integer fieldId, java.lang.String name, java.lang.String fieldDesc, java.lang.Integer fieldTypeId, java.lang.Integer conceptId, java.lang.String table, java.lang.String attr, java.lang.String defaultValue, boolean multiple, java.lang.Integer formFieldId, java.lang.Integer formId, java.lang.Integer parent, java.lang.Integer number, java.lang.String part, java.lang.Integer page, java.lang.Integer min, java.lang.Integer max, boolean required, float sortWeight)
public void deleteFormField(java.lang.Integer id)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.