I have a Visualforce page PDF_Generate which generates a PDF.
I created a custom link in Account object with URL
{!URLFOR('/apex/PDF_Generate')}?source=HC_DOC_Acc&id={!Account.Id}
The URL generated from visualforce page is
https://mycompany--cch.visualforce.com/apex/PDF_Generate?source=HC_DOC_Acc&id=0014m000003P6HY
But what the custom link generates URL
https://mycompany--d.visualforce.com/apex/PDF_Generate?source=HC_DOC_Acc&id=0014m000003P6HY
How to change the --d.visualforce.com in the URL to --cch.visualforce.com.
Related
How to change home page content in DNN while creating a site itself.
I need to change different page. I created a new page and created Template. And I replaced inside Templates folder named (Default. page. template). But it is not working out. Provide me a better solution.
Probably the easiest way to do this is to create a site using the default template, edit that site to create your own site, and then save that as a site template (suitable named). You can then use that site template to create sites with the page structure that you want.
The default page template (I believe) is used when you create new pages using the the Pages UI. I don't believe that the default page template is used by the default site template.
If you have created a page and would like to apply a specific page template to the new page retroactively. To do this, go to the page that you want to change and append ?ctl=ImportTab to the url. That will bring up a dialog that allows you to change the emplate for a page with lots of options. It
Do you know if it is possible to deep link a custom tab on the left hand navigation?
In my web app I allow the user to login through SSO from Salesforce ( so I use salesforce as authentication provider ), than when the user credentials are ensured i redirect the user to the tab using an aspex url like the following:
https://{domain}/apex/{VisualforceTabsName}?sfdc.tabName={VisualforceTabsRef}
or a servlet integration link like the following:
https://na15.salesforce.com/servlet/servlet.Integration?lid={lid}&ic=1&linkToken={linkToken}
I got those links simply right clicking the tabs and copy the link, now this is not going to work on the new ligthening experience where the link is something like the following;
https://gs0.lightning.force.com/one/one.app?source=aloha#{token}
Now it seems to me that the token in this case is user specific, so it can't be used as high level reference to the Visualforce tab.
Do you know if there is a way to do the same in the Lightening Experience (Spring 16' release)? Or if there is a different way to achieve the same result?
Thanks
In Lightning Experience, you can reference custom tabs using the developer name of the tab (note that this is the API name of the tab containing the Visualforce page, not of the page itself). This URL should work:
{domain}/lightning/n/{tabName}
This assumes that you have already created a tab for your Visualforce page.
I have a custom Visualforce page that I'm using to replace the standard account page. Works great on SF1 via a custom list view page that links to the custom account page.
However, when users use the SF1 global search and they navigate through to the account page from the results they arrive at the standard out of the box page.
Is there a way to override the global search to ensure users always arrive at my custom VF page?
On an custom object I have attachment files associated with it. The files are pdf. I would like to generate visualforce page where the first page is the mailing address associated with the custom object, and the page 2 is the attachment file (which is a pdf). The visualforce page has the RenderAs='pdf' attribute. How can I do this? I am familiar with extensions and how to query the body of an attachment.
I would just move all attachment to other server (like amazon) and provide link of it in page 1
I am implementing PDF file generation and I have completed it using this link:
http://bakery.cakephp.org/articles/kalileo/2010/06/08/creating-pdf-files-with-cakephp-and-tcpdf
After generating PDF, it calls another function that performs update of my database. And should redirect to index page. I have done my database update. Only problem in redirecting to index page. When I am redirecting to index page PDF logic is not implementing.
I think it is because of i have set layout for pdf so both index page and pdf creation not works one after another.
If you have set the PDF layout as stated on the Bakery, you can not redirect the user.
The PDF layout sent a header to your browser that states PDF content is coming it's way. A HTTP redirect is not PDF content, so this will not work.
If you want the PDF generation to be done on the background and not "on-the-fly" in the user's browser window, just drop the PDF layout and use your 'default' layout instead. You can then just call $this->redirect from your controller.