Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to move response documents to refer to a different parent document?

0
Posted

Is it possible to move response documents to refer to a different parent document?

0

You can lookup DocumentIDs and put them into $REF. The trick is not using any intermediaries or holding places (i.e. temporary variables, environmental variables, view columns). You have to set it directly equal to the results of @DbLookup. You are right, $REF is a special data type, called ‘Response Reference List’. Let’s say that you want to reassign the $REF field of a series of response documents, based on some key that the new parents share with the documents that will be their new children (let’s call this field ‘keyValue’ which exists in both potential parent and response). Create a view, call it ‘Parents by keyValue’. The selection formula should select only the potential parents, and the first sorted column should be the keyValue field (you don’t need to add any other columns).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123