Not sure what I’m missing TBH.
I have 2 models based on the same object with the same fields. The first model loads on page load. The second model loads on tab loading for first time in tab set.
The second model does get rows but the adoptRows() function isn’t doing anything. Tried in snippet and in console.
Tried in console:
skuid.$M(‘FirstModel’).adoptRows(skuid.$M(‘SecondModel’).data)
skuid.$M(‘FirstModel’).adoptRows(skuid.$M(‘SecondModel’).getRows())
According to the documentation, you must provide an array of objects (rows) as the first parameter. Both .data and .getRows() do provide this when I enter them in the console.
It’s my understanding that adopting rows from the second model to the first model ignores conditions used to initially query for rows in the first model. I can’t imagine that they would be used to “filter” incoming adopted rows. Other than this, I can’t make sense of what’s going on.
Question
adoptRows function not working?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
