This action retrieves the title of a field in the ExtraView data dictionary, by providing its fixed name. Other details about the field are also returned, as shown below in the output of the call.
Class |
Name |
Type |
Required |
Details |
GetFieldTitleRequest |
userId |
String |
Yes |
The callers user name |
GetFieldTitleRequest |
password |
String |
Yes |
The callers password |
GetFieldTitleRequest |
fieldId |
String |
Yes |
The field id you want to get the title of |
Class |
Name |
Type |
Required |
Details |
GetFieldTitleResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
GetFieldTitleResponse |
returnCode |
String |
No |
See Appendix for details |
GetFieldTitleResponse |
returnMessage |
String |
No |
Human readable message |
GetFieldTitleResponse |
field |
Object |
No |
A single Field object |
Field |
id |
String |
Yes |
|
Field |
name |
String |
Yes |
|
Field |
value |
String |
No |
|
Field |
childOfFieldId |
String |
No |
|
Field |
repeatingRowField |
boolean |
No |
|
Field |
textAreaField |
boolean |
No |
|
Field |
typeOfUserField |
boolean |
No |
|
public static void testGeFieldTitle(EVSystemServiceStub stub) {
try {
GetFieldTitleDocument reqEnvelope = GetFieldTitleDocument.Factory.newInstance();
GetFieldTitleRequest request = reqEnvelope.addNewGetFieldTitle().addNewParam0();
request.setUserId(ServiceClientHelper.ADMIN_USER_ID);
request.setPassword(ServiceClientHelper.ADMIN_PASSWORD);
request.setFieldId("STATUS");
GetFieldTitleResponseDocument resEnvelope = stub.getFieldTitle(reqEnvelope);
GetFieldTitleResponse response = resEnvelope.getGetFieldTitleResponse().getReturn();
if (response.getSuccess()) {
System.out.println("success: [" + response.getReturnCode() + "] : " +
response.getReturnMessage());
} else {
System.out.println("failure: [" + response.getReturnCode() + "] : " +
response.getReturnMessage());
}
} catch (Exception e) {
e.printStackTrace();
System.err.println("nnn");
}
}