Conditional rendering for Model Field value not working

  • 1
  • Problem
  • Updated 3 years ago
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,704 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
Sorry Pat.  We were laughing so hard at your Skuid hat that we didn't pay attention to the issue you reported.  Thanks for making our day! 

But we promise - we will look at what you are reporting... 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Agreed. Love the hat!
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
I'm not sure why YouTube did this, but I got a kick out of this. Here's what YouTube decided would be the next logical thing to play after your video, Pat:



Anyway, Rob's right. It looks like this is a Skuid bug. The updateRow call isn't triggering conditional rendering to reevaluate. We'll work on getting it patched up, but in the meantime, here's a potential workaround. Use a Model Action to run a snippet which rerenders the component containing your button if the AccountId has changed:
var myComponent = skuid.component.getById('ComponentContatiningTheButton');
myComponent.render();
You're hard coding the components to reevaluate, so it's not really scalable, but it should get the result in the mean time.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,704 Points 20k badge 2x thumb
This has come up once again. What's the status on this bug? Client needs to know.

Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
We'd still reccomend using the workaround J published above.  We don't yet have an ETA for fixing the bug more comprehensively. 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,704 Points 20k badge 2x thumb
Hi Rob,

Do you have an update on this?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,704 Points 20k badge 2x thumb
Any update on this?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,704 Points 20k badge 2x thumb
bump