This commit is contained in:
@@ -95,6 +95,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
[HttpGet("listkeys")]
|
[HttpGet("listkeys")]
|
||||||
public ActionResult GetDataListKeys()
|
public ActionResult GetDataListKeys()
|
||||||
{
|
{
|
||||||
|
//NOTE: not used by AyaNova Client, convenience method for developers api usage
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace AyaNova.Biz
|
|||||||
public static List<string> AyaFormFieldDefinitionKeys
|
public static List<string> AyaFormFieldDefinitionKeys
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (_ayaFormFieldDefinitionKeys == null)
|
if (_ayaFormFieldDefinitionKeys == null)
|
||||||
{
|
{
|
||||||
_ayaFormFieldDefinitionKeys = new List<string>();
|
_ayaFormFieldDefinitionKeys = new List<string>();
|
||||||
@@ -38,15 +38,14 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
public static bool IsValidFormFieldDefinitionKey(string key)
|
public static bool IsValidFormFieldDefinitionKey(string key)
|
||||||
{
|
{
|
||||||
System.Diagnostics.Debugger.Log(1, "DEV_TEST", $"AyaFormFieldDefinitions::IsValidFormFieldDefinitionKey {key}\n");
|
|
||||||
return AyaFormFieldDefinitionKeys.Contains(key);
|
return AyaFormFieldDefinitionKeys.Contains(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<AyaFormFieldDefinition> AyaFormFields(string key)
|
public static List<AyaFormFieldDefinition> AyaFormFields(string key)
|
||||||
{
|
{
|
||||||
//Initialize the static list here on first retrieval
|
//Initialize the static list here on first retrieval
|
||||||
if (_ayaFormFields == null)
|
if (_ayaFormFields == null)
|
||||||
{
|
{
|
||||||
_ayaFormFields = new Dictionary<string, List<AyaFormFieldDefinition>>();
|
_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
|
/* ***************************** 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
|
***************************** Otherwise the hidden field can't be set and the object can't be saved EVER
|
||||||
|
|||||||
Reference in New Issue
Block a user