Question

Method to retrieve a custom field


Userlevel 6
Badge +18

I’m trying to access a field from the scheduling resource. This works for a standard field like this:

 

Resource_API.Get_Description(#RESOURCE_SEQ#)

 

However, I want to retrieve a custom field and cannot figure out the correct syntax.

Any pointer appreciated.


2 replies

Userlevel 7

I’m trying to access a field from the scheduling resource. This works for a standard field like this:

 

Resource_API.Get_Description(#RESOURCE_SEQ#)

 

However, I want to retrieve a custom field and cannot figure out the correct syntax.

Any pointer appreciated.

Where does the custom field sit? It’ll be something like below, depending on if it’s persistent or reference.

Resource_Cfp.Get_Cf$_your_field(#RESOURCE_SEQ) 
Resource_Cfp.Get_Cf$_your_field.Get_your_field(Resource_API.get_objkey(#RESOURCE_SEQ))

 

Userlevel 6
Badge +18

Thanks André! Based on this custom attribute...

...this statement worked:

resource_cfp.get_cf$_customattribute(resource_api.get_objkey(#RESOURCE_SEQ#))

 

Reply