Skip to main content

Search

Multi-Level Dossiers - Best Practice - Data Structuring, Cross site lookups, Parent-Child creation & inheritance

Comments

3 comments

  • Kilgore ServiceAccount

    Greetings and happy Monday,

    To start, I wanted to clarify what I posted as an error/issue in my original post. The following can be ignored… Yesterday, I created a Parent Item from the Master Display Form, and the data that was inherited was so inconsistent that… “

    I now realize that in a True Dossier configuration, there are 2 steps to the inheritance… both: setting the Column Inheritance within ‘Things in the Background’ & setting the Initial & Calculated values on the Child’s New Form. (This makes sense.)

     

    === === === === === === === === === === === === === === === === === === === === === === === ===

    ‘Places’ a Child New Form can start (with Parent Context)

    === === === === === === === === === === === === === === === === === === === === === === === ===

    To hopefully add context to my original question(s)…

    Off the top of my head, these are the ‘Places’ where a Child New Form can be started, with the ability to bring in Parent Values.

     

    1. Parent Display Form, with Child ListView embedded
      1. The Child list configured with Lookup Inheritance
      2. The Child list not configured to parent, but use of Window Variables instead
    1. Parent ListView via Command Bar Action Button
      1. Window Variables
      2. Query/CAML Lists
      3. ?
    1. Within an Edit or Display Form
      1. Window Variables
      2. Query/CAML Lists
      3. ?
    1. An Action Button on a Site Page (new Skybow feature)
      1. Not sure how setting the ‘Parent Context’ would work in this situation, but I figure it is possible

     

    === === === === === === === === === === === ===

    'Methods' of setting/passing Parent Values to Child

    === === === === === === === === === === === ===

    Along with the ‘Places’ this can happen, these are ‘methods’ for setting Parent Values within the Child…

    1. True Dossier Lookup configuration (Inheritance + Initial & Calculated values)
    2. Window Variables
    3. Query / CAML Lists
    4. ?Javascript / REST?
    5. ?

     

    I am not sure the different combinations of using the Places & Methods, and in a lot of ways, clarity of options & best practices, is a large part of what I hope to understand here.

     

    === === === === === === === === === === === ===

    Quick Question 1

    === === === === === === === === === === === ===

    Since I have become very comfortable with Window Variables…

    What is the method of setting the Lookup to Parent column, using Window Variables? I haven't been able to figure this one out.

     

    === === === === === === === === === === === ===

    Quick Question 2

    === === === === === === === === === === === ===

    Are Triggered or Scheduled Actions a potential ‘method’ in all of this? If so, which situations would they fit?

     

    As always, I appreciate your time & help!

    -Taylor

     

    0
  • Kilgore ServiceAccount

    Is it possible to set the Lookup Value for a sublist, via an Action Button, in the Parent Display form?

    0
  • Christof

    Hi Taylor
    Yes, you can set lookup to parent item when opening subitem's NewForm via action link/button from main form.
    One way would be to set the main item's ID into a window variable on form load of the main form: Just create a new Execute script action in the Pre-Form Load actions on the main form which contains: window.mainItemID = [[ID]];

    Then on the subitem's NewForm you set an Initial expression where you check if window.mainItemID is set, if Yes -> return this ID; if No -> return 0 (or null)

    0

Please sign in to leave a comment.