You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom Process to update custom field

Accepted answer
19
Views
15
Comments
edited Jun 8, 2022 12:00PM in General Technical Discussions 15 comments

Content

Hello! I have a Custom Process on UpdateAnswer event. It works fine, but fails to update a custom field ("major_change", a Menu Items field). The test harness shows the field correctly set, without errors, but when the Custom Process runs, the custom field is not saved in answer object, while other fields are correctly set and saved. I am using Connect v1_2 and RN version November 2012.

$md = $answer::getMetadata(); 
$cfType = $md->CustomFields->type_name;
$cfMetadata = $cfType::getMetadata();
//$answer->CustomFields->c = new $cfMetadata->c->type_name;  
//This part is shown in RN guide, but if I uncomment it, 
//the Custom Process doesn't start at all 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!