How to configure custom skuid details page in place of default page

  • 1
  • Question
  • Updated 1 year ago
  • Answered
How to configure custom skuid details page in place of default page
Photo of Maheswar Pradhan

Maheswar Pradhan

  • 110 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Photo of Maheswar Pradhan

Maheswar Pradhan

  • 110 Points 100 badge 2x thumb
When I am override the Standard view with my custom skuid details page its showing this error

Validation Errors While Saving Record(s)There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Large is not a supported form factor.". 

I have checked my custom object and there is no validation written.so how to achieve this job.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Hey Maheswar,

Sorry you're going through this problem. Raymond did direct to our documented guidance for how to configure a custom skuid page in place of a default page. Were there any sections that were unclear? Is this your first time overriding a salesforce detail page or is this validation error occurring only on one page?

Could you elaborate on your set up and what steps your trying to take? I haven't come across that validation error before and am curious to discover what could be causing that.

The more screen shots, the better. Thanks in advance.
Photo of thomas haelsig

thomas haelsig

  • 290 Points 250 badge 2x thumb

Hi,

I'm having the same error "There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Large is not a supported form factor."


I created a very simple Account Details page, created VF page and on overriding in in the Buttons, Links & Actions menu I get this error.

I have no validation rules. I am using Lightning though.


Thanks,

Thomas
Photo of thomas haelsig

thomas haelsig

  • 290 Points 250 badge 2x thumb
I case anyone stumbles on the same issue, I checked with a helpful Skuid employee.

I am using Lightning and there seems to be some issues with overriding Lightning pages of standard objects (custom objects had no error).
The workaround is to add the page as a Skuid Component through the Page Edit function from the Object. That seemed to work.
Photo of Phil Ensminger

Phil Ensminger

  • 174 Points 100 badge 2x thumb
I'm getting the same error.  

Attempting to override basic view action with a simple VF page, then override that VF page with a Skuid page.   

Using Lightning. 

Is there no way to override a detail view with Skuid in Lightning??   I do not want to use the Skuid Component route because there is no way to suppress the Lightning header, and also, when doing so, custom static resources are not pulled into the Lightning page.  
Photo of thomas haelsig

thomas haelsig

  • 290 Points 250 badge 2x thumb
I had a call with Gregg Baxter (Skuid employee) who couldn't give me a solution to override it and for the moment I was satisfied with the component solutions, but I can imagine that this is not ideal for everyone.
Photo of Phil Ensminger

Phil Ensminger

  • 174 Points 100 badge 2x thumb
My application will rely very heavily on custom static resources, custom headers, navigation, etc, defined within Skuid.   I need to fully replace most default Lightning actions and views with Skuid pages.  

The promise of "extend or replace" is pushed pretty heavily by Skuid.  Honestly struggling to understand how they will sustainably interoperate. 
Photo of Phil Ensminger

Phil Ensminger

  • 174 Points 100 badge 2x thumb
Update: The odd validation error mentioned earlier can be attributed to a Lightning Record Page already assigned to that object. 

I had assigned a Lightning Record as the Org Default page elsewhere in the application (Lightning Apps > Record Page > Activate).   I removed this assignment, the validation error went away, and I was able to override the view action with a VisualForce page.   

That VisualForce page uses the `<skuid:page>` component as described here: https://docs.skuid.com/latest/en/skuid/deploy/salesforce/visualforce/skuid-page-visualforce-componen...

My static resources are being pulled in properly (they were not when added as a Lightning component), but the Lightning header is still loudly present. 

Probably not the best way to approach this -- for a number of reasons including favoring anything VF to Lightning components -- but that's all I know for now, in the absence of a clearer path presented by the docs. 
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Phil, thank you for following up on this post. You may already suspect, but Salesforce doesn't provide any way to hide the lightning header. 
Photo of Phil Ensminger

Phil Ensminger

  • 174 Points 100 badge 2x thumb
I'm learning that.  Huge issue.   Load time of a Lightning App page is easily 3x the load time of a Skuid/VF page called directly.  Unacceptably slow.   I would prefer to manage navigation through Skuid master pages / nav components.  

Is it naive of me to think that I could create a VF page for every Skuid page I want to use, render the <skuid:page> component and go from there?  

I'd like to be able to call Skuid pages through the predictable URL architecture that VF provides.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Have you used our best practices to insure your pages are going as fast as they can with Skuid?
https://docs.skuid.com/v10.0.0/en/skuid/best-practices/skuid-page-performance-guide.html
Photo of Phil Ensminger

Phil Ensminger

  • 174 Points 100 badge 2x thumb
I will!   I should clarify (after reading my own comment it seems unclear), the Skuid/VF page is pretty fast.  It's favored to using any Lightning app / page. 

Thanks for the resource.