public List<Form> getFormTableForms(
			Long electronicFormIdParam,
			boolean includeFieldDataParam)
	{
		if(electronicFormIdParam == null)
		{
			return null;
		}

		//Query using the descendantId directly...
		StringBuffer primaryQuery = new StringBuffer(
				ABaseFluidJSONObject.JSONMapping.ID);
		primaryQuery.append(":\"");
		primaryQuery.append(electronicFormIdParam);
		primaryQuery.append("\"");

		//Search for the primary...
		List<Form> formsWithId = null;
		if(includeFieldDataParam)
		{
			formsWithId = this.searchAndConvertHitsToFormWithAllFields(
					QueryBuilders.queryStringQuery(primaryQuery.toString()),
					Index.DOCUMENT,
					DEFAULT_OFFSET,
					1,
					new Long[]{});
		}
		else
		{
			formsWithId = this.searchAndConvertHitsToFormWithNoFields(
					QueryBuilders.queryStringQuery(primaryQuery.toString()),
					Index.DOCUMENT,
					DEFAULT_OFFSET,
					1,
					new Long[]{});
		}

		Form returnVal = null;
		if(formsWithId != null && !formsWithId.isEmpty())
		{
			returnVal = formsWithId.get(0);
		}

		//No result...
		if(returnVal == null) {
			return null;
		}

		//Populate the Table Fields...
		return this.populateTableFields(
				true,
				includeFieldDataParam,
				returnVal.getFormFields());
	}
public List < Form > getFormTableForms ( Long electronicFormIdParam , boolean includeFieldDataParam ) { if ( electronicFormIdParam == null ) { return null ; } StringBuffer primaryQuery = new StringBuffer ( ABaseFluidJSONObject . JSONMapping . ID ) ; primaryQuery . append ( ":\"" ) ; primaryQuery . append ( electronicFormIdParam ) ; primaryQuery . append ( "\"" ) ; List < Form > formsWithId = null ; if ( includeFieldDataParam ) { formsWithId = this . searchAndConvertHitsToFormWithAllFields ( QueryBuilders . queryStringQuery ( primaryQuery . toString ( ) ) , Index . DOCUMENT , DEFAULT_OFFSET , 1 , new Long [ ] { } ) ; } else { formsWithId = this . searchAndConvertHitsToFormWithNoFields ( QueryBuilders . queryStringQuery ( primaryQuery . toString ( ) ) , Index . DOCUMENT , DEFAULT_OFFSET , 1 , new Long [ ] { } ) ; } Form returnVal = null ; if ( formsWithId != null && ! formsWithId . isEmpty ( ) ) { returnVal = formsWithId . get ( 0 ) ; } if ( returnVal == null ) { return null ; } return this . populateTableFields ( true , includeFieldDataParam , returnVal . getFormFields ( ) ) ; }
Retrieves the Table field records as {@code List<Form>}.

@param electronicFormIdParam The Form Identifier.
@param includeFieldDataParam Whether to populate the return {@code List<Form>} fields.

@return {@code List<Form>} records.