Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
HiI have a document that has for example an element which is itself a doc in the tamino database. Now I want to replace the element with the name doc in tamino.I thought of having a nested query.eg.“update replace input()/Doc/namewith for $q in input()/Name return $q” but then I get an error.Please adviceRegards
I’m not sure I understand your description. Let’s say the database has documents “a” and “b”, where “a” has a pointer to the “b” document: this is the replacement dataYou want to modify by replacing with , right? You need to use the FLWU syntax:update for $bref in input()/a/bRef do replace $bref with input()/b[@id=$bref/@id]Bill