• Ravindar Admin
  • NEWBIE
  • 110 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 8
    Likes Given
  • 55
    Questions
  • 27
    Replies
When we use Iframe for opening a report in Visualforce page, It is appearing with the "Rectangle line" as below. If we scroll down to bottom, the top data is disappearing. Can we remove the "Rectangle line" to make the data appear? or is there any tag to open the report(URL) through the getter methods in Visualforce page Itself. 

User-added image

Visualforce Code:

<div class="container">
                    <apex:iframe src="{!ReportsTabularUrl}" scrolling="false" id="theIframe" />
                    <script>document.getElementById('theIframe').height = window.innerHeight - 210;</script>
                </div>

Can anyone please help on this?. Thanks.




 
I created a custom button on custom object.
Behavior= "Execute Javascript"
Content Source="Onclick Javascript"
I have written the following code in sandbox. It is working in Sandbox. But, In Production, Formula values are not getting.
if({!productForce__c.Channel_code__c<>'Z0'&&productForce__c.Channel_code__c<>'Z4'}) {
   alert('{!$Label.Alert_for_projected_stock}');
   } else {

   window.open("https://{!productForce__c.SAP_Environment__c}.corp.inpkg.net:{!productForce__c.PORT_for_SAP_URL__c}/sap/bc/webdynpro/sap/zbu_apo_projected_stock?sap-language={!productForce__c.Language_Code__c}&company= 
{!productForce__c.Country_Name__c}&BASEPRODUCT= 
{!productForce__c.PBcode__c}&OK_CODE=EXECUTE#");
   }

sanbox URL when we click on button:
https://scmdev.corp.inpkg.net:8400/sap/bc/webdynpro/sap/zbu_apo_projected_stock?sap-language=FR&company=FRANCE&BASEPRODUCT=8022735&OK_CODE=EXECUTE#

Production URL when we click on button:
https://corp.inpkg.net/sap/bc/webdynpro/sap/zbu_apo_projected_stock?sap-language=&company=&BASEPRODUCT=8006451&OK_CODE=EXECUTE#

Can anyone please guide on this. How to achieve this?
 
Hi, I am looking to display labels based on the condition for that I am trying to use Outputpanel. But, If I use Outputpanel, <li> styles are changing and Underline is coming on labels when we put mouseover on labels.

Here is the code:
<apex:outputPanel rendered="{! IsFrenchClient}">
        <li class="navmenu-item2">
            <apex:outputLink value="/apex/Web_LatestNews_LTG?tags=Glass%20School&thematicPage=1">
                Glass School
                <img class="menu-icon" src="{!URLFOR($Resource.picto_glassschool_white)}"/>
            </apex:outputLink>
        </li>
             </apex:outputPanel>
        
         <apex:outputPanel rendered="{! IsFrenchClient}">
        <li class="navmenu-item2">
            <apex:outputLink value="/apex/Web_LatestNews_LTG?tags=Decor&thematicPage=1">
                Décors
                <img class="menu-icon" src="{!URLFOR($Resource.picto_decors_white)}"/>
            </apex:outputLink>
        </li>
                 </apex:outputPanel>

Is there any other option to display list based on the condition without changing the styles? OR please guide me using with Outputpanel.  Thanks.
Hi,  I am using Output link as below:
<apex:outputLink value="/apex/Web_LatestNews_LTG?tags=Selective%20Line&thematicPage=1">
 </apex:outputLink>
When I click on the link, It should redirect as it is. But, '%20' is changing to '+' as below:
https://test-test.cs86.force.com/Web_LatestNews_LTG?tags=Selective+Line&thematicPage=1

How to prevent changing '%20' to '+' ?

 
I am passing URL from Visualforce page as below:

<div class="buttonbox"> <a href="{!communityPrefixe}/Web_LatestNews_LTG?tags=Glass%20School&thematicPage=1">{!$Label.HomePackagingGlass} </a> </div>

The URL should redirects as below:
https://vaqual1-verallia.cs86.force.com/Web_LatestNews_LTG?tags=Selective%20Line&thematicPage=1
But, In the URl "%20" replaced by "+" as below:
https://vaqual1-verallia.cs86.force.com/Web_LatestNews_LTG?tags=Selective**+**Line&thematicPage=1
Can anyone give suggestions on this, Thanks.
I have 4 fields: 1)Gender__c 2) Date_of_birth__c 3) Age__c 4) Field4__c
My condition is: If (Gender__c='Female' & Age__c>12) Then display the field4__c.

I tried with the following code, It is displaying When I select the gender='female' & if I enter the value manually which meets the condition: age>12 .

I wrote another Javascript with @RemoteAction to update Age__c when I select the Date_of_birth__c.

It is not displaying the field4__c, If the Age__c is updated from date_of_birth__c.

Code is:


<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
 <script type="text/javascript">
var displayField4 = function() {
 var genderVal = $( "[id*='inpFldGender']" ).val();
var ageVal = $( "[id*='inpFldAge']" ).val();
 if( genderVal === 'Female' && ageVal > 12 ) {
$( "[id*='inpFld4']" ).show();
$( "[for*='inpFld4']" ).show();
 }
else {
 $( "[id*='inpFld4']" ).hide();
$( "[for*='inpFld4']" ).hide();
}
};
 displayField4();
 </script>
I have 3 fields on visualforce page of custom object,
1) gender__c:Male/female(picklist field) 2) age__c: (number field) 3) field3__c:(picklist field)
The field3__c only display, If the gender__c=female & age__c>12.
I am Trying to create a report on Object__c. So I am trying to use user custom field(projectName__c) value in custom object field(projectName__c) in filter in Reports.

For that, I got a suggestion to do like below, and filter with Boolean.

Create a formula field in the custom object which is checkbox type and formula will be IF(projectName__c=user.projectName__c,true,false)

And create a report where apply filter forumulaField__c = true.

So, This is working fine. But When I change projectName__c, The all same projectName__c record's will be updated. If I change it to another project again records will be updated. I will have 10 Lakhs records in my application, presently I am using developer account.

Does This updating on 10 lakhs records meets any governor limits?

This help will be very Glad.

Thank you.
In My Visualforce page, I have some picklist fields, Records   only display When i select the picklist fields in page . So, How to save that records as pdf or excel?