How can I change the default value of a field in BC?

isabtogumon
isabtogumon Member Posts: 50
Hi,

How can I change the value of a boolean field in a table or page?
For example, when adding a new item, by default the value of the Blocked field is false, but how can I change it to true in code since the Item Card is opened?

Answers

  • DenSter
    DenSter Member Posts: 8,307
    You can set the InitValue property in a table extension
  • isabtogumon
    isabtogumon Member Posts: 50
    Thanks @DenSter

    I tried to take your advice, but apparently the InitialValue property is not customizable in BC Cloud.

    I created a subscription to an event in the Items table where every time a new item is created the value of the field changes it to true.