User bio
404 bio not found
Rome, Italy
Member since Jul 24, 2023
Pinned posts:
Replies:

Hi Jolyon, thanks for replying me. The questionnaire is added by API call but the problem is that this call happens in a lot of different integrations and classes and in many different ways (due to a previously bad code management there is not a single primitive class being invoked but several), so they basically asked me to somehow resolve the problem at its root and set the default value through an UDF. I don't know why the OnBeforeSave isn't triggered by the API call and this surprised me honestly, maybe is an issue related to the particular TrakCare version or to the Region/Edition code but I'm not allowed to fix/modify it unfortunately.

However, so you're saying that with an OnBeforeSave is possible to set/modify the %request value? Doing for example something like: 

set Q31 = %request.Get("Q31")
If ((Q31 = "") || (Q31 = 0)) {
    Set %request("Q31",1)=1
}

and the object will be saved with the overwritten value?

Open Exchange applications:
Certifications & Credly badges:
Global Masters badges:
Followers:
Following: