public class DWRFormService extends 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(Integer id) |
List<FieldListItem> |
findFields(String txt) |
List<Object> |
findFieldsAndConcepts(String txt) |
List<FormListItem> |
findForms(String text,
boolean includeUnpublished)
Finds forms based on search text.
|
Field |
getField(Integer fieldId) |
FormFieldListItem |
getFormField(Integer formFieldId) |
List<FormFieldListItem> |
getFormFields(Integer formId) |
List<FormListItem> |
getForms(boolean includeUnpublished)
Gets a list of FormListItems that correspond to forms.
|
String |
getJSTree(Integer formId) |
Integer[] |
saveFormField(Integer fieldId,
String name,
String fieldDesc,
Integer fieldTypeId,
Integer conceptId,
String table,
String attr,
String defaultValue,
boolean multiple,
Integer formFieldId,
Integer formId,
Integer parent,
Integer number,
String part,
Integer page,
Integer min,
Integer max,
boolean required,
float sortWeight) |
public List<FormListItem> findForms(String text, boolean includeUnpublished)
text
- the string to search onincludeUnpublished
- true/false whether to include unpublished formsFormListItem
spublic List<FormListItem> getForms(boolean includeUnpublished)
includeUnpublished
- true/false to include unpublished formsFormListItem
spublic FormFieldListItem getFormField(Integer formFieldId)
public List<FormFieldListItem> getFormFields(Integer formId)
public List<FieldListItem> findFields(String txt)
public Integer[] saveFormField(Integer fieldId, String name, String fieldDesc, Integer fieldTypeId, Integer conceptId, String table, String attr, String defaultValue, boolean multiple, Integer formFieldId, Integer formId, Integer parent, Integer number, String part, Integer page, Integer min, Integer max, boolean required, float sortWeight)
public void deleteFormField(Integer id)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.