AppService appService = (AppService) ac.getBean("appService");
FormService formService = (FormService) ac.getBean("formService");
AppDefinition appDef = AppUtil.getCurrentAppDefinition();
String formId = getPropertyString("formId");
formData = formService.retrieveFormDataFromRequestMap(formData, getRequestParameters());
//if primary key is null, look up for primary key using userview key
if (primaryKeyValue == null && getPropertyString("keyName") != null && (getPropertyString("loadDataWithKey") != null && "Yes".equalsIgnoreCase(getPropertyString("loadDataWithKey"))) && getPropertyString("keyName").trim().length() > 0 && getKey() != null) {
if (FormUtil.PROPERTY_ID.equals(getPropertyString("keyName"))) {
primaryKeyValue = getKey();