• Rams
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 18
    Replies

Hi,

 

Anyone Please provide developer 401 certification latest dumps. Please help me.

 

Thanks,

Rams

  • May 17, 2013
  • Like
  • 0

Hi,

 

I have a visualforce page, I have displayed pdf through visualforce page. If i have 4 pages in in my vf page pdf,

 

I need to set the one header and footer  for first page. And I need to set the header and footer for middle two pages as same. And for last page i need to set different header and footter. Please help me.

 

I have achieved for first and remaining 2 pages. But for last page its displaying same header and footer which is in 2nd and 3rd page. Please help me how to set different header and footer for last page. I have used the following code.

<sytle>

@page:first{
           margin : 70pt .0in .9in .0in;
         @top-left {
             content : element(header);
              }
         @bottom-left{
             content : element(footer);
              }
        }
       div.header {
           position : running(header) ;}
       div.footer {
            position : running(footer) ;}

       @page {
           margin : 110pt .0in .9in .0in;
         @top-left {
             content : element(header_remainpages);
             }

         @bottom-left{
             content : element(footer_remainpages); }
         }

       div.header_remainpages{
             position : running(header_remainpages) ;
             }
       div.footer_remainpages {
             position : running(footer_remainpages) ; }

 

</style>

 

<div class="header">
     <apex:image value="{!$Resource.otter_image_total}" width="300%" height="200%"/>
</div>

<div class="footer">
   <apex:image value="{!$Resource.Footer}" width="300%" height="100%"/>
</div>


<div class="header_remainpages">
     <apex:image value="{!$Resource.Header1}" width="300%" height="200%"/>
</div>

<div class="footer_remainpages">
    <apex:image value="{!$Resource.Footer1}" width="300%" height="100%"/>
</div>

 

Please help me out. Its very urgent for me. Thanks in advance.

 

Thanks,

Rams

 

  • May 14, 2013
  • Like
  • 0

Hi,

 

If i include apex:form tag. This is not working.. Actually i am displaying the markers in map which are having 500 miles distance with current location address. This is working fine when i use the code with out using apex:form tag. If i use <apex:form> tag when i click on the button it will automatically refreshing the page. I dont want to refresh the page. Please let me know, how can i do this. Thanks in advance.

 

My code is:

<apex:page >
<!--  <apex:form >-->
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Google Maps JavaScript API v3 Example: Place Search</title>
     <div id="MyEdit">
    This text will change
</div>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&libraries=places"></script>

    <style>
      #map {
        height: 400px;
        width: 600px;
        border: 1px solid #333;
        margin-top: 0.6em;
      }
    </style>

    <script>
      var map;
      var infowindow;
       var geocoder;
       if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(successFunction, errorFunction);
}
var lat1;
var lng1;
function successFunction(position) {
    var lat = position.coords.latitude;
    var lng = position.coords.longitude;
    lat1=lat;
    lng1=lng;
    //alert('I AM HERE');
    codeLatLng(lat, lng)
    
}
 function places()
 {
   
   initialize1(lat1,lng1);
    }
function errorFunction(){
    alert("Geocoder failed");
}
 
  function initialize() {
    geocoder = new google.maps.Geocoder();
  }
 
  function codeLatLng(lat, lng) {
    
    var latlng = new google.maps.LatLng(lat, lng);
    geocoder.geocode({'latLng': latlng}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
      console.log(results)
        if (results[1]) {
         alert(results[0].formatted_address)
         document.getElementById("MyEdit").innerHTML = results[0].formatted_address;
             for (var i=0; i<results[0].address_components.length; i++) {
            for (var b=0;b<results[0].address_components[i].types.length;b++) {
                if (results[0].address_components[i].types[b] == "administrative_area_level_1") {
                    city= results[0].address_components[i];
                    break;
                }
            }
        }
        } else {
          alert("No results found");
        }
      } else {
        alert("Geocoder failed due to: " + status);
      }
    });
    
    
  }
      function initialize1() {
        var pyrmont = new google.maps.LatLng(lat1, lng1);

        map = new google.maps.Map(document.getElementById('map'), {
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          center: pyrmont,
          zoom: 15
        });

        var request = {
          location: pyrmont,
          radius: 500,
          types: ['store']
        };
        infowindow = new google.maps.InfoWindow();
        var service = new google.maps.places.PlacesService(map);
        service.nearbySearch(request, callback);
      }

      function callback(results, status) {
        if (status == google.maps.places.PlacesServiceStatus.OK) {
          for (var i = 0; i < results.length; i++) {
            createMarker(results[i]);
          }
        }
      }

      function createMarker(place) {
        var placeLoc = place.geometry.location;
        var marker = new google.maps.Marker({
          map: map,
          position: place.geometry.location
        });

        google.maps.event.addListener(marker, 'click', function() {
          infowindow.setContent(place.name);
          infowindow.open(map, this);
        });
      }

      google.maps.event.addDomListener(window, 'load', initialize);
    </script>
  </head>
  <body>
    <div id="map"></div>
   <button onclick="places()"> Places</button>
     
  </body>
</html>

<!--  </apex:form>-->
</apex:page>

 

Thanks,

Lakshmi

  • April 25, 2013
  • Like
  • 0

Hi,

 

Is there any possibility to get the navigator current location using web services or apex class... Please help me if any way.. Thanks in advance.

 

Thanks.

Rams

  • April 17, 2013
  • Like
  • 0

Hi,

 


I need to update some information automatically through java script after a record is created. Please help me..

 

 

I have created vf page and if i run that vf page value will come in to vf page. I need to update that value after a record is created. Please help me how to solve this..

 

Thanks,

Rams

  • April 10, 2013
  • Like
  • 0

Hi,

 


I have used one image in to visualforce page. It working fine in both google chrome and mozilla firefox. But in internet explorer it showing as a big image. If i set the height and width, still it is not working. Please help me how to fix this issue.

 

I have used the code like as

 

<apex:image STYLE="PADDING: 2px; BORDER:2px solid #000000" value="{!image}" height="70" width="70"/>

 

This {!image} having image url like,

https://cs7.salesforce.com/resource/1364454208000/emptyimage

 

Please help me how to solve this issue..

 

Thanks,

Rams

  • April 03, 2013
  • Like
  • 0

Hi,

 

How to set the session setting for visualforce login page. My requirement is, i have created one visualforce page as login page. If the user is login with username and password it will be redirect to some other page. user name and password i have stored in some other object. I have checked with that details.

 

Now my requirement is, if user is in login, after 1 hour i need to display  pop up with message as 'your session is expired. Please login again'. How can i solve this. Please help me out.

 

Thanks,

Rams

  • March 19, 2013
  • Like
  • 0

Hi,

 

For integrating the facebook with salesforce i have used the force.com toolkit  app V3(http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook). I have configured every thing. And when i open the site link i will get the below error. Please any one help me.....

 

{
   "error": {
      "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
      "type": "OAuthException",
      "code": 191
   }
}
  • October 19, 2012
  • Like
  • 0

Hi,
I am trying to integrate the salesforce with facebook. I have tried with Force.com Toolkit for Facebook, Version 3.0(http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook). When i trying to verify the facebook account through mobile i did not receive any verification code. with out verification it is not possible. Is there any another way to integrate facebook with salesforce. Please any one help me......

 

 

Thanks,

Rams

  • October 19, 2012
  • Like
  • 0

Hi,

 

If i include apex:form tag. This is not working.. Actually i am displaying the markers in map which are having 500 miles distance with current location address. This is working fine when i use the code with out using apex:form tag. If i use <apex:form> tag when i click on the button it will automatically refreshing the page. I dont want to refresh the page. Please let me know, how can i do this. Thanks in advance.

 

My code is:

<apex:page >
<!--  <apex:form >-->
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Google Maps JavaScript API v3 Example: Place Search</title>
     <div id="MyEdit">
    This text will change
</div>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&libraries=places"></script>

    <style>
      #map {
        height: 400px;
        width: 600px;
        border: 1px solid #333;
        margin-top: 0.6em;
      }
    </style>

    <script>
      var map;
      var infowindow;
       var geocoder;
       if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(successFunction, errorFunction);
}
var lat1;
var lng1;
function successFunction(position) {
    var lat = position.coords.latitude;
    var lng = position.coords.longitude;
    lat1=lat;
    lng1=lng;
    //alert('I AM HERE');
    codeLatLng(lat, lng)
    
}
 function places()
 {
   
   initialize1(lat1,lng1);
    }
function errorFunction(){
    alert("Geocoder failed");
}
 
  function initialize() {
    geocoder = new google.maps.Geocoder();
  }
 
  function codeLatLng(lat, lng) {
    
    var latlng = new google.maps.LatLng(lat, lng);
    geocoder.geocode({'latLng': latlng}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
      console.log(results)
        if (results[1]) {
         alert(results[0].formatted_address)
         document.getElementById("MyEdit").innerHTML = results[0].formatted_address;
             for (var i=0; i<results[0].address_components.length; i++) {
            for (var b=0;b<results[0].address_components[i].types.length;b++) {
                if (results[0].address_components[i].types[b] == "administrative_area_level_1") {
                    city= results[0].address_components[i];
                    break;
                }
            }
        }
        } else {
          alert("No results found");
        }
      } else {
        alert("Geocoder failed due to: " + status);
      }
    });
    
    
  }
      function initialize1() {
        var pyrmont = new google.maps.LatLng(lat1, lng1);

        map = new google.maps.Map(document.getElementById('map'), {
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          center: pyrmont,
          zoom: 15
        });

        var request = {
          location: pyrmont,
          radius: 500,
          types: ['store']
        };
        infowindow = new google.maps.InfoWindow();
        var service = new google.maps.places.PlacesService(map);
        service.nearbySearch(request, callback);
      }

      function callback(results, status) {
        if (status == google.maps.places.PlacesServiceStatus.OK) {
          for (var i = 0; i < results.length; i++) {
            createMarker(results[i]);
          }
        }
      }

      function createMarker(place) {
        var placeLoc = place.geometry.location;
        var marker = new google.maps.Marker({
          map: map,
          position: place.geometry.location
        });

        google.maps.event.addListener(marker, 'click', function() {
          infowindow.setContent(place.name);
          infowindow.open(map, this);
        });
      }

      google.maps.event.addDomListener(window, 'load', initialize);
    </script>
  </head>
  <body>
    <div id="map"></div>
   <button onclick="places()"> Places</button>
     
  </body>
</html>

<!--  </apex:form>-->
</apex:page>

 

Thanks,

Lakshmi

  • April 25, 2013
  • Like
  • 0

Hi,

 

Is there any possibility to get the navigator current location using web services or apex class... Please help me if any way.. Thanks in advance.

 

Thanks.

Rams

  • April 17, 2013
  • Like
  • 0

Hi,

 


I need to update some information automatically through java script after a record is created. Please help me..

 

 

I have created vf page and if i run that vf page value will come in to vf page. I need to update that value after a record is created. Please help me how to solve this..

 

Thanks,

Rams

  • April 10, 2013
  • Like
  • 0

Hi,

 

How to set the session setting for visualforce login page. My requirement is, i have created one visualforce page as login page. If the user is login with username and password it will be redirect to some other page. user name and password i have stored in some other object. I have checked with that details.

 

Now my requirement is, if user is in login, after 1 hour i need to display  pop up with message as 'your session is expired. Please login again'. How can i solve this. Please help me out.

 

Thanks,

Rams

  • March 19, 2013
  • Like
  • 0

In my visualforce page, I have an array:

var availableTags = [
			"ActionScript",
			"AppleScript",
			"Asp",
			"BASIC",
			"C",
			"C++",
			"Clojure",
			"COBOL",
			"ColdFusion",
			"Erlang",
			"Fortran",
			"Groovy",
			"Haskell",
			"Java",
			"JavaScript",
			"Lisp",
			"Perl",
			"PHP",
			"Python",
			"Ruby",
			"Scala",
			"Scheme"
		];
		

 How can I populate this array with data from salesforce?

 

 

I read on the boards that this would work:

availableTags = "{!designations}";

 But it doesnt work. My data is not getting into the javascript array.

I tried this with the repeat tag as mentioned Here

but still no good.

 

Shouldn't this be simple?

 

 

Hello All,

 

I attempted to follow all of the directions outlined in Getting Started with the Force.com Toolkit for Facebook, Version 3.0 (Installed from GitHub). 

 

I receive an "Invalid redirect_uri: Given URL is not allowed by the Application configuration." error when I attempt to navigate directly to the FacebookSamplePage.  Type of error is an OAuthException.  The error code is 191.

 

However, I receive an is "under construction" page when I navigate directly to the site.

 

Has anyone seen this error and been able to resolve it successfully?

 

I've confirmed my site settings, remote site settings, Facebook Apps record, Facebook App configuration, and system admin profile. 

 

I did notice some of the setup screen captures in the instructions were slightly different than the current Facebook App Setup and Facebook App Salesforce record.

 

Thank you in advance for your assistance.

  • August 24, 2012
  • Like
  • 0

Hi,

 

Requirement is to get Tweets of my contact/Person account and store it in to salesforce.

Can this be achieved by authentication Twitter API using oauth 1.0
 and How.

 

It's Urgent and i would like the input from you people.Step to step guide if possible

 

Thanks,
Subham

 

 

  • August 05, 2012
  • Like
  • 0

I want to a facebook app where from I need to login and do DQL & DML operation for Force.com. i want to use facebook to salesforce integration using rest api.

Sorry, I a new people on Visualforce page development.

 

when I develop visualforce page, I am confusing by the session binding syntax.

 

in the "AJAX Tookit Developer's Guide" book, I find an example on page 6, it puts the following code on the VF page:

<script type="text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
</script>

 

I believe, the above code is used to do the session binding.

 

But on the other hand, I find some VF page are use the following code to do the session binding:

sforce.connection.sessionId = "{!$Api.Session_ID}";

 

what is the different between the first approach and the second one?  could someone help on this?  many thanks!

Hi,

 

I need to call a javascript method, which in turn is using a web-services call from Apex Trigger.

Please advise the best way to do that.

 

 

 

Thanks,

CA Technologies Developer

 

Hi all

  I have created Visualforce page for PDF usage. I have listed some Rich text values from controller class like given below

<page  standardController="Shipment_Header__c">

<apex:outputText value="{!PackingSlipSignature}"/>

</page>

 

The 'packingSlipSignature'  Return some company address from controller class. This i want dispaly one by one but this  display as given below

CompanyName<br> RK Salai<br> chennai<br> <br>

 

What can i do for this.