Display property value to be different from actual value

Hi, I would like to have a property value displayed differently than the actual value which is on the Item. I could have a field on the form, which can be set on form load, but I want the same behavior on the search grid, relationship grids as well. Thanks.  
Parents
  • Dharma, Then you need to change the event to onBeforeGet to do something like this:
    this.setProperty("keyed_name", {new value} ); return this;
    This code will only change the value of keyed_name that returned and not actual value in DB But keep in mind that if you will always need to show the same value, so there is no reason not to save it to the keyed_name property once instead running your logic every time that object is returned from the DB.
Reply
  • Dharma, Then you need to change the event to onBeforeGet to do something like this:
    this.setProperty("keyed_name", {new value} ); return this;
    This code will only change the value of keyed_name that returned and not actual value in DB But keep in mind that if you will always need to show the same value, so there is no reason not to save it to the keyed_name property once instead running your logic every time that object is returned from the DB.
Children
No Data