Skip to main content
Question

Override defaultValue, nullable fields for a property from CDM concept

  • February 27, 2025
  • 3 replies
  • 20 views

Ayush Daruka
Seasoned

Lets say I have a view called ViewA, which implements CogniteSchedulable.

As we know, CogniteSchedulable has the following properties:
 

 

Now, according to my requirement, I need to put a default value to the startTime and I also want to make endTime non-nullable. How do I override these settings? Since I am not managing the container definition for these containers, where do I make the changes?
Any examples would be appreciated.

 

Ayush Daruka
Seasoned

Arild  Eide
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • February 27, 2025

Hi ​@Ayush Daruka 

 

As you have already pointed out, applying a default value to a property is done at the container level. Since you cannot make changes to the CogniteSchedulable container, you would need to create your own container and map properties from this container instead.

 

Regards,

 

Arild Eide


Ayush Daruka
Seasoned

 

Arild Eide wrote:

Hi ​@Ayush Daruka 

 

As you have already pointed out, applying a default value to a property is done at the container level. Since you cannot make changes to the CogniteSchedulable container, you would need to create your own container and map properties from this container instead.

 

Regards,

 

Arild Eide

 

@Arild Eide Is this true for all the fields(nullable,etc) of a property from a CDM Concept? 


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings