Thanks Jamie,
It seems that I got it working from just making the whole area a string:
var setTarget =
'{$set:{"chapters.#dbVars.targetArrayChapterPos-1#.sections.$.chSort" :
#newSortNum#}}';
var objUpdateSectionSortNum = MongoCollectionUpdate( db, "book",
{ "_id" : MongoObjectid( arguments.bookId ), "chapters.sections.chapterId":
arguments.chapterId }, setTarget);
Still doing more testing. I will try your method as well.
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.