This action retrieves the list of child values for a given parent value when two fields are in an allowed value relationship within the database.

Input

Class

Name

Type

Required

Details

GetAllowedFieldsRequest

userId

String

Yes

The callers user name

GetAllowedFieldsRequest

password

String

Yes

The callers password

GetAllowedFieldsRequest

fieldId

String

Yes

 

GetAllowedFieldsRequest

parentFieldId

String

Yes

 

GetAllowedFieldsRequest

parentValue

String

Yes

 

Output

Class

Name

Type

Required

Details

GetAllowedFieldsResponse

success

boolean

Yes

True is succeeded False if failed

GetAllowedFieldsResponse

returnCode

String

No

See Appendix for details

GetAllowedFieldsResponse

returnMessage

String

No

Human readable message

GetAllowedFieldsResponse

fields

Array

No

The list of Field objects

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

 

Example

public static void testGetAllowedFieldValues(EVSystemServiceStub stub) {
    try {
        GetAllowedFieldValuesDocument reqEnvelope = GetAllowedFieldValuesDocument.Factory.newInstance();
        GetAllowedFieldsRequest request =
            reqEnvelope.addNewGetAllowedFieldValues().addNewParam0();
        request.setUserId(ServiceClientHelper.ADMIN_USER_ID);
        request.setPassword(ServiceClientHelper.ADMIN_PASSWORD);
        request.setFieldId("PROJECT");
        request.setParentFieldId("AREA");
        request.setParentValue("1");
        GetAllowedFieldValuesResponseDocument resEnvelope =
            stub.getAllowedFieldValues(reqEnvelope);
        GetAllowedFieldsResponse response =
            resEnvelope.getGetAllowedFieldValuesResponse().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");
    }
}