You need to sign in to do that
Don't have an account?
sfdc@isha.ax1814
Urgent help-Lightning component Please help
Helo Everyone,
I have to convert below vf page to Lightning component.
SMX_URL__c and SFDC_URL__c is custom settings. Can you please help me on creating the Lightning component.
Iam new to Lightning component. Please help me on this.
<apex:page sidebar="false">
<apex:iframe id="NPXDashboardFrame" height="600px" scrolling="true"/>
<!-- <iframe id="NPXDashboardFrame" style="overflow: auto!important; -webkit-overflow-scrolling: touch!important;position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;"/>-->
<script type="text/javascript">
var enterpriseIdfier = 'TEST';//this need to change as per enterprise
var smxServer = '{!$Setup.SMX_URL__c.SMX_URL__c}';
var varSessionID = '{!$Api.Session_ID}';
alert(varSessionID);
var Server ='{!$Setup.SFDC_URL__c.SFDC_URL__c}';
//var Server ='{!$Api.Partner_Server_URL_330}';
var varOwner = '{!$User.Id}';
var varUsername = '{!$User.Username}';
var embedChartUrl='/main/WebUI.html';
var url = smxServer + '/app/core/j_satmetrix_security_check?session='+ varSessionID + '&server="'+Server+'"&owner='+varOwner+'&username='+varUsername+'&version=3&enterpriseIdfier='+enterpriseIdfier+'&requestTokenType=SALES_FORCE&requestToken=NONE&targetUrl='+embedChartUrl;
alert(url);
document.getElementById('NPXDashboardFrame').src = url;
</script>
</apex:page>
Regards,
Isha
I have to convert below vf page to Lightning component.
SMX_URL__c and SFDC_URL__c is custom settings. Can you please help me on creating the Lightning component.
Iam new to Lightning component. Please help me on this.
<apex:page sidebar="false">
<apex:iframe id="NPXDashboardFrame" height="600px" scrolling="true"/>
<!-- <iframe id="NPXDashboardFrame" style="overflow: auto!important; -webkit-overflow-scrolling: touch!important;position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;"/>-->
<script type="text/javascript">
var enterpriseIdfier = 'TEST';//this need to change as per enterprise
var smxServer = '{!$Setup.SMX_URL__c.SMX_URL__c}';
var varSessionID = '{!$Api.Session_ID}';
alert(varSessionID);
var Server ='{!$Setup.SFDC_URL__c.SFDC_URL__c}';
//var Server ='{!$Api.Partner_Server_URL_330}';
var varOwner = '{!$User.Id}';
var varUsername = '{!$User.Username}';
var embedChartUrl='/main/WebUI.html';
var url = smxServer + '/app/core/j_satmetrix_security_check?session='+ varSessionID + '&server="'+Server+'"&owner='+varOwner+'&username='+varUsername+'&version=3&enterpriseIdfier='+enterpriseIdfier+'&requestTokenType=SALES_FORCE&requestToken=NONE&targetUrl='+embedChartUrl;
alert(url);
document.getElementById('NPXDashboardFrame').src = url;
</script>
</apex:page>
Regards,
Isha