Not able to redirect to skuid page : Hello World app

  • 1
  • Question
  • Updated 2 years ago
  • (Edited)
The home page for the force.com site is a visual force page that has this code:

<apex:page standardController="Contact" extensions="skuid.Redirects"
       showHeader="true" sidebar="false" readonly="true" docType="html-5.0"
        action="{!IF(canUseSkuid,'',redirect)}" title="Edit">
    <skuid:page page="HelloWorld" />
 </apex:page>

The HelloWorld page shows a button 'Say Hello'. The action associated with the button is in a java snippet as follows:

acctRow = acctModel.getFirstRow();
alert("Hello " + acctRow.gandikotam__UserName__c);
window.location.href = "/customers/apex/skuid__ui?page=SayHello&username=" + acctRow.gandikotam__UserName__c

I can see the alert but the page is not redirecting.

The URL I see in the browser is:

http://gandikotam-developer-edition.na35.force.com/customers/apex/skuid__ui?page=SayHello&userna...

BTW, using a trail Skuid with a trial SF account, if it makes any difference.

Any suggestions on how to fix this?

Thanks
Photo of Murthy Gandikota

Murthy Gandikota

  • 200 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Murthy Gandikota

Murthy Gandikota

  • 200 Points 100 badge 2x thumb
This could be useful to someone. I followed the instructions in this url to enable skuid to users and set up the license info:

http://help.skuid.com/m/11720/l/114236-build-force-com-sites-with-skuid
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Murthy, thank you for sharing that link for everyone. Did that documentation help you resolve your issue?