Need help on how to page include in popup

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
I've got a page that requires an Id for several models. How do I pass these values into the page include? I thought I was to use the Query String in the Page include in order to retrieve it as Param.
Query String: TPPId={{$Model.CurrentTask.data.0.Id}}
Popup Model Page/Url Parameter Value={{$Param.TPPId}}

Did I miss something?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
These look good on the surface.  Some further questions: 
 
- What are you doing with the Url param in the included page?   If you use it for model conditions you don't need the full $Param syntax.  You can just use the name "TPPId"

- Is there really data in the CurrentTask model in the parent page? 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Like this?

{{TPUId}}
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
I do have date in the CurrentTask  model.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
I'm using the URL param in the model condition of TPUCurrentTask.

Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
No braces needed.  But this is case sensitive, so make sure the ID's in the query string on the Page include component and the ID in the condition of the included page are exactly the same. 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
er .... uh .... I can't preview the page I'm trying to do the page include on. I should mention that I made this page by cloning another and cutting down the XML down to the components I wanted from the popup on the original page. I thought I had cut it down proper, but maybe not ....  :P. It does open in the editor without issues, but won't preview.

Oddly enough, it does open in the popup page include, but without any data as the model condition isn't being met when there is a condition on the model. I removed the condition, and still nothing.

I think it's time to build a test page for the page include to make I have the methodology right.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Ok. That was it for sure. Something with the page I wanted to include had something screwed up in the XML.

I have created a simple popup with a page title in the popup and then a similarly configured page title within the page of the page include.

Success! See pic.



All I have to do now is learn HTML, CSS, Javascript ... what else would be good to add to the list. Seriously.

I am progressing through the tutorials but I will need the above to proceed through all of them.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Glad you had success.  Don't worry too much about learning all those things in depth.  But you should add some Saleforce data modeling expertize.  That will go a long way...
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Any particular links you can point me to?

The data model I'm using is somewhat rigid due to the fact that I'm using a Gantt Chart tool whose package is unmanaged but easily broken.

Since I don't have enough skills in place I've little choice right now. That is until I'm building by own Gantt Chart tool with something like http://www.bryntum.com/products/gantt/. This will be ultimate goal in the 6-12 months down the road. Having this tool as a custom component in Skuid. That would be AWESOME!!!