Hi, In a CDT, I have another nested CDT. I would like to update the nested CDT. How can I do this with a!writeToDataStoreEntity while using the main CDT's primary ID?
addRowLink: a!dynamicLink( label: "Add question", value: {}, saveInto: { a!writeToDataStoreEntity( dataStoreEntity: cons!CHR_ENTITY_ASSESSMENT_SEGMENT, valueToStore: 'type!{urn:com:appian:types:CHR}CHR_AssessmentSegment'(), onSuccess: a!save( target: ri!segment.questions, value: append(ri!segment.questions, fv!storedValues) ) ) } )
In my database, it is creating a row in the main CDT rather than the nested CDT. I am not sure what the best way to refer to the nested CDT is... Your help is much appreciated.Kind regards,Eric
Discussion posts and replies are publicly visible