• Open parent document with mView Component ?

    By Harald Osmann 1 decade ago

    Hello,

     

    is there a simpe way to open the parent document of the documents in mView instead of the response document itself? So perhaps it could be possible to pass the parentdocumentUNID with the parameters ( param.get(“unid”) ), but I got no idea how to do it.

    My actual solution is to grab the fields of parents directly inside of the myDocuments control... but there must be an easier way?

    Here my working, but very ugly approach: myDoc.getDocument().getParentDatabase().

    getDocumentByUNID(myDoc.getDocument().getParentDocumentUNID()).

    getItemValueString("foo")

     

    Thanks, Harald