azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Need ability to add dynamically callable script hooks for Data Documents e.g. to show/hide field conditionally #904

Closed itadapter closed 6 months ago

itadapter commented 8 months ago

We will base this on metadata and scripting expressions

Draft:

Appointenmt_2025

[Field]
public bool Good{ get;set;}

[Field(metadatacontent: "./")]
public string ReadNewspapers{ get; set; }

========================

Appointment_2025.laconf

meta
{
  ReadNewspapers
  {
    description="''''''''''''''''''''''''''''''''''";
    metadatacontent
    {
      scripting
      {
        isVisible{ this.jjjjj=="SpecialValue" }
        isRequired{  ..... }
      }
    }
  }

}
itadapter commented 7 months ago

BUG: When we marshal schema the top level "meta{type-path...{" is lost at transmission, therefore Tristan does not get it and Unity code can not load expression tree properly because type-path is excised

itadapter commented 7 months ago

This is NOT a bug, but caching issues- we were looking at an older cached schema cached on disk

itadapter commented 6 months ago

DONE