This commit is contained in:
2020-12-24 20:40:02 +00:00
parent 4e2840ad1c
commit 93db49c5d3
2 changed files with 4 additions and 4 deletions

View File

@@ -95,6 +95,7 @@ namespace AyaNova.Api.Controllers
[HttpGet("listkeys")]
public ActionResult GetDataListKeys()
{
//NOTE: not used by AyaNova Client, convenience method for developers api usage
if (!serverState.IsOpen)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));

View File

@@ -16,7 +16,7 @@ namespace AyaNova.Biz
public static List<string> AyaFormFieldDefinitionKeys
{
get
{
{
if (_ayaFormFieldDefinitionKeys == null)
{
_ayaFormFieldDefinitionKeys = new List<string>();
@@ -38,15 +38,14 @@ namespace AyaNova.Biz
public static bool IsValidFormFieldDefinitionKey(string key)
{
System.Diagnostics.Debugger.Log(1, "DEV_TEST", $"AyaFormFieldDefinitions::IsValidFormFieldDefinitionKey {key}\n");
return AyaFormFieldDefinitionKeys.Contains(key);
}
public static List<AyaFormFieldDefinition> AyaFormFields(string key)
{
{
//Initialize the static list here on first retrieval
if (_ayaFormFields == null)
{
{
_ayaFormFields = new Dictionary<string, List<AyaFormFieldDefinition>>();
/* ***************************** WARNING: Be careful here, if a standard field is hideable and also it's DB SCHEMA is set to NON NULLABLE then the CLIENT end needs to set a default
***************************** Otherwise the hidden field can't be set and the object can't be saved EVER