Mobile Skuid - Required Field Missing?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
My mobile Skuid page displays a grid of accounts and when you select an account you can select a custom object to view existing records and create a new record.  Existing records are pulling up great but when I click the plus to add a new row, filled out the record and click save I get:



(Regional Office is the field label for the account master-detail relationship).  

Why is this happening?

The underlying model is correctly pulling up existing records which tells me the conditions for the model are correct but when I create a row its not properly setting the master-detail field.  

I was able to work around this issue by adding the Regional Office field to the page, set it to Picklist, set the Option Source to 'Model' and the Option Model to the model that has a filterable condition based on the selected account (See image below).  This will properly set the regional office field and the row is saved successfully.  

Do I have to have the regional office (master-detail field) on the page??  





Photo of Peter Herzog

Peter Herzog

  • 1,664 Points 1k badge 2x thumb
  • love for Skuid mobile

Posted 4 years ago

  • 1
Photo of Emily Davis

Emily Davis, Employee

  • 3,502 Points 3k badge 2x thumb
Hi, Peter,
Are you by chance working on the same issue as Brandon Gage's case? :) It sounds very similar!

What conditions do you have on your custom object model for which you are trying to create new records?
Thanks!
Emily
Photo of Peter Herzog

Peter Herzog

  • 1,664 Points 1k badge 2x thumb
Oh funny... I didn't realize he posted about it too.  Ha!



Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Rather than having your Condition on Regional_Office__r.Id, have it be on Regional_Office__c. Only fields directly on the current record will be populated by Conditions when creating new records. Notice how in Regional_Office__r.Id, you're going into the related record to get the Id, but it's the exact same Id as contained in Regional_Office__c, the foreign key field.
Photo of Peter Herzog

Peter Herzog

  • 1,664 Points 1k badge 2x thumb
It works!  I swear I tried that but I guess not.  Thanks you guys!