• Sukhdeep Singh 1
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
I need to consume External REST API. but getting below error.

"System.HttpRequest retrying request in response to handshake failure: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"

I have password & certificate (.jks) file provided by external system team. Please let me know If I need to create me own selfsigned certificate. or I am missing something in code. Is it mandatory to set header too ?

Thanks,
Hi,
 
I have a custom link on a standard page to open a popup(VF page).
But Its not working on mobile devices. Please tell me any alternative of iframe that I can use here
My current custom link code is below.
 
{!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')}
{!REQUIRESCRIPT('/js/functions.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/jquery-1.8.2.min.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/ui/jquery-ui-1.9.1.custom.min.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/postmessage/jquery.ba-postmessage.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/bbq/jquery.ba-bbq.min.js')}
{!REQUIRESCRIPT("/support/console/26.0/integration.js")}
{!REQUIRESCRIPT("/soap/ajax/22.0/apex.js")}
requireCssFile('/resource/jQueryForPopup/jQuery/ui/css/ui-lightness/jquery-ui-1.9.1.custom.min.css');
 
function requireCssFile(filename)
{
var fileref = document.createElement('link');
fileref.setAttribute('rel', 'stylesheet');
fileref.setAttribute('type', 'text/css');
fileref.setAttribute('href', filename);
document.getElementsByTagName('head')[0].appendChild(fileref);
}
var j$ = jQuery.noConflict();
var parent_domain = window.location.protocol + '//' + window.location.host;
var iframe_url;
if (sforce.console.isInConsole())
iframe_url = '{!URLFOR("https://cs1.salesforce.com/apex/PAInlineVF")}'+'isdtp=vw&id='+'{!Service_Request__c.Id}'+'&parent_domain='+parent_domain;
else
iframe_url = '{!URLFOR("https://cs1.salesforce.com/apex/PAInlineVF")}'+'?id='+'{!Service_Request__c.Id}'+'&parent_domain='+parent_domain;
var child_domain = iframe_url.substring(0, iframe_url.indexOf('/', 9));
var j$modalDialog = j$('<div id="opppopup"></div>')
.html('<iframe id="iframeContentId" src="' + iframe_url + '" frameborder="0" height="100%" width="100%" marginheight="0" marginwidth="0" scrolling="no" />')
.dialog({
autoOpen: true,
title: 'Address Search Tool',
resizable: true,
width: 600,
height: 250,
autoResize: true,
modal: true,
draggable: true
});
 
j$modalDialog.dialog('open');

Hi,
 
I am have custom link on a standard page to open a popup(VF page).
But my requirement is to open same popup through a formula field showing an image into it.
Can somebody suggest How can I achieve this.
My current custom link code is below.
 
{!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')}
{!REQUIRESCRIPT('/js/functions.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/jquery-1.8.2.min.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/ui/jquery-ui-1.9.1.custom.min.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/postmessage/jquery.ba-postmessage.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/bbq/jquery.ba-bbq.min.js')}
{!REQUIRESCRIPT("/support/console/26.0/integration.js")}
{!REQUIRESCRIPT("/soap/ajax/22.0/apex.js")}
requireCssFile('/resource/jQueryForPopup/jQuery/ui/css/ui-lightness/jquery-ui-1.9.1.custom.min.css');
 
function requireCssFile(filename)
{
var fileref = document.createElement('link');
fileref.setAttribute('rel', 'stylesheet');
fileref.setAttribute('type', 'text/css');
fileref.setAttribute('href', filename);
document.getElementsByTagName('head')[0].appendChild(fileref);
}
var j$ = jQuery.noConflict();
var parent_domain = window.location.protocol + '//' + window.location.host;
var iframe_url;
if (sforce.console.isInConsole())
iframe_url = '{!URLFOR("https://cs1.salesforce.com/apex/PAInlineVF")}'+'isdtp=vw&id='+'{!Service_Request__c.Id}'+'&parent_domain='+parent_domain;
else
iframe_url = '{!URLFOR("https://cs1.salesforce.com/apex/PAInlineVF")}'+'?id='+'{!Service_Request__c.Id}'+'&parent_domain='+parent_domain;
var child_domain = iframe_url.substring(0, iframe_url.indexOf('/', 9));
var j$modalDialog = j$('<div id="opppopup"></div>')
.html('<iframe id="iframeContentId" src="' + iframe_url + '" frameborder="0" height="100%" width="100%" marginheight="0" marginwidth="0" scrolling="no" />')
.dialog({
autoOpen: true,
title: 'Address Search Tool',
resizable: true,
width: 600,
height: 250,
autoResize: true,
modal: true,
draggable: true
});
 
j$modalDialog.dialog('open');

Hi,
 
I am have custom link on a standard page to open a popup(VF page).
But my requirement is to open same popup through a formula field showing an image into it.
Can somebody suggest How can I achieve this.
My current custom link code is below.
 
{!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')}
{!REQUIRESCRIPT('/js/functions.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/jquery-1.8.2.min.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/ui/jquery-ui-1.9.1.custom.min.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/postmessage/jquery.ba-postmessage.js')}
{!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/bbq/jquery.ba-bbq.min.js')}
{!REQUIRESCRIPT("/support/console/26.0/integration.js")}
{!REQUIRESCRIPT("/soap/ajax/22.0/apex.js")}
requireCssFile('/resource/jQueryForPopup/jQuery/ui/css/ui-lightness/jquery-ui-1.9.1.custom.min.css');
 
function requireCssFile(filename)
{
var fileref = document.createElement('link');
fileref.setAttribute('rel', 'stylesheet');
fileref.setAttribute('type', 'text/css');
fileref.setAttribute('href', filename);
document.getElementsByTagName('head')[0].appendChild(fileref);
}
var j$ = jQuery.noConflict();
var parent_domain = window.location.protocol + '//' + window.location.host;
var iframe_url;
if (sforce.console.isInConsole())
iframe_url = '{!URLFOR("https://cs1.salesforce.com/apex/PAInlineVF")}'+'isdtp=vw&id='+'{!Service_Request__c.Id}'+'&parent_domain='+parent_domain;
else
iframe_url = '{!URLFOR("https://cs1.salesforce.com/apex/PAInlineVF")}'+'?id='+'{!Service_Request__c.Id}'+'&parent_domain='+parent_domain;
var child_domain = iframe_url.substring(0, iframe_url.indexOf('/', 9));
var j$modalDialog = j$('<div id="opppopup"></div>')
.html('<iframe id="iframeContentId" src="' + iframe_url + '" frameborder="0" height="100%" width="100%" marginheight="0" marginwidth="0" scrolling="no" />')
.dialog({
autoOpen: true,
title: 'Address Search Tool',
resizable: true,
width: 600,
height: 250,
autoResize: true,
modal: true,
draggable: true
});
 
j$modalDialog.dialog('open');

Hello,

 

I have static resource in ise in my visualforce pages.  These work well.  To include them I do something similar to the following.

 

<apex:includeScript value="{!URLFOR($Resource.Content_TestSite_HtmlAndScripts, '/scripts/bootstrap-datetimepicker.min.js')}"/>  

 

I wish to change this though to dynamically pass in the resource name that I require.

 

E.g. <apex:includeScript value="{!URLFOR($Resource.{resourceParameterName}, '/scripts/bootstrap-datetimepicker.min.js')}"/>

 

Or <apex:includeScript value="{!URLFOR($Resource.Content_{resourceParameterNa}_HtmlAndScripts, '/scripts/bootstrap-datetimepicker.min.js')}"/>

 

When I try to save this in my IDE I get syntaz errors though.

 

Do you know if what I'm trying to do is possible & if so can both ways I'm trying to set the name above work?

 

Thanks in advance.

How can I make a modal dialog page from a custom button. Guys if you have any idea please get back to me

  • March 20, 2012
  • Like
  • 0