• List<FormElement>

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #28930  by matt81
 
Hi Guys,
I am calling the following Web Service call (OKMPropertyGroup.getProperties) through Java, see below:
Code: Select all
List<FormElement> Dates = OKMPropertyGroup.getInstance().getProperties(token, path, "okg:test");
Can you tell me how to get the value out of the result returned. See below result:
Code: Select all
{label=Expiry Date, name=okp:edms.date, value=20150108000000, data=, width=100px, height=25px, readonly=false, type=date, validators=[]}
For example i get the name, label by doing the following:
Code: Select all
for (int j = 0; j < Dates.size(); j++) {
     Dates.get(i).getName().toString();
    Dates.get(i).getLabel().toString();
}
However I cannot retrieve the value field, why isn't there .getValue field.

Thanks
 #28941  by jllort
 
You must do a instance of each formElement
Code: Select all
if (formElement instanceof Input) {
Input input = (Input) formElement
} else {
 etc...
}

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.