Dynamic Creation of Model issue in Brooklyn release

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
The following 'Dynamic Creation of Model and Component' is not working due to some error related to 'datasource' name..  Not sure, if this is broken in brooklyn release.



Page XML
  https://gist.github.com/zachelrath/4eef2eceaa2d56be9cf2
Photo of Nepz Solutions

Nepz Solutions

  • 442 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Thank you for bringing this to our attention. We've notified our documentation team.
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
I have revised the page XML for the Gist so that it will work with the Brooklyn release. As of the Banzai release, we stopped automatically loading in the "salesforce" Data Source on every page, choosing instead to only load Data Sources referenced by a Model requested in the page. However, we do not currently fetch Data Source dependencies for dynamically-created Models --- this is a known bug that we are working to address. So the workaround is to add a dummy "static" Model to your page, which doesn't have to be queried at all, just to force Skuid to load the "salesforce" Data Source. For more information, see the comments in the Gist.

 https://gist.github.com/zachelrath/4eef2eceaa2d56be9cf2