+ Start a Discussion
maiyakumaiyaku 

Use Value in Static Resource put in VF Page Google Maps

<table>
                <tr><td>Street:</td><td width="61%" id="AccountStreet"></td></tr>
                                                         ^ Static Resource Value


                <tr><td>City:</td><td width="61%" id="AccountCity"></td></tr>
                <tr><td>State/Province:</td><td width="61%" id="AccountSP"></td></tr>
                <tr><td>Zip/Postal Code:</td><td width="61%" id="AccountZP"></td></tr>
                <tr><td>Country:</td><td width="61%" id="AccountCountry"></td></tr>  
                <tr><br></br></tr>
            </table>
            <table>         
                <tr><td>Phone:</td><td width="47%" id="AccountPhone"></td></tr>
                <tr><td>Website:</td><td width="47%" id="AccountWebsite"></td></tr>
                <tr><br></br></tr>
            </table>
            <table>
                <p></p>
                <c:GoogleMapsInternational iconColour="#236FBD"
                    width="700"
                    height="700"
                    backgroundColour="#FFFFFF"
                    address="{!Acc.Street__c} {!Acc.City__c} {!Acc.State_Province__c} 
                                 ^Put to address value for google map


{!Acc.Zip_Postal_Code__c} {!Acc.Country__c}"
                />
            </table>

I can take the Static Resource Value put in address value ?  Help me about this.

Thank you so much. 

cloudmaniacloudmania

Did you try this > {!URLFOR($Resource."your static resource",'yourfile")} (If  your static resource is .zip file)

  > {!$Resource."your file"} (if your static resource is img css etc.) 

 

maiyakumaiyaku

I have a Static Resource on the page. But my problem is not to be used with the Addressparameter.

 

this full page

 

<apex:page showHeader="false"  standardStylesheets="false" cache="true"  controller="AccountController">
<apex:outputText escape="false" value="{!'<!DOCTYPE html>'}"/>
<html>
<head>
<title>MarketingApp</title>

<link rel="stylesheet" href="{!URLFOR($Resource.cloudtunes_jQuery, 'jquery.mobile-1.0rc2.min.css')}" />
<script type="text/javascript" src="{!URLFOR($Resource.cloudtunes_jQuery, 'jquery.min.js')}"></script>
<script type="text/javascript" src="{!URLFOR($Resource.cloudtunes_jQuery, 'jquery.mobile-1.0rc2.min.js')}"></script>
<script type="text/javascript" src="{!URLFOR($Resource.MarketingApp)}"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
</head>

<body>
    
    
    <div data-role="page" data-theme="b" id="mainpage">
            
        <div data-role="header">
            <a href='#' id="logout" class='ui-btn-left' data-icon='home' >Home</a>
            <h1>Main Menu</h1>        
        </div>
          <div data-role="content">
            <ul data-inset="true" data-role="listview" data-theme="b" data-dividertheme="b" align="center">
            <a href='#detailpage' style="text-decoration:none"><font color="#363636" size="3"><br><dd>Customer Visit</dd></br></font></a>
            </ul>
            <ul  data-inset="true" data-role="listview" data-theme="b" data-dividertheme="b"  align="center">
            <a href='#Opppages' style="text-decoration:none"><font color="#363636" size="3"><br><dd>Order View</dd></br></font></a>
            </ul>
          </div>
    </div>    
    
    
    
    <div data-role="page" data-theme="b" id="detailpage">           
        <div data-role="header">
            <a href='#mainpage' id="backAlbum" class='ui-btn-left' data-icon='arrow-l' data-direction="reverse">Home</a>
            <h1>Customer List</h1>
        </div>
        <div data-role="content">  
           
        <a href='#trackpage' style="text-decoration:none"><font color="#363636" size="3">
            <input type="hidden" id="albumId" />  
            <ul id="albumlist" data-inset="true" data-role="listview" 
                data-theme="b" data-dividertheme="b">
            </ul>
        </font></a>
        </div>
    </div>
    
    <div data-role="page" data-theme="b" id="Opppages">           
        <div data-role="header">
            <a href='#mainpage' id="backAlbum" class='ui-btn-left' data-icon='arrow-l' data-direction="reverse">Home</a>
            <h1>Order List</h1>
        </div>

        <input type="hidden" id="OppId" />                        
            <ul id="Oppslist" data-inset="true" data-role="listview" 
                data-theme="c" data-dividertheme="a">
            </ul>
    </div>
    
    <div data-role="page" data-theme="b" id="trackpage">
        <div data-role="header">
            <a href='#detailpage' id="backAlbums" class='ui-btn-left' data-icon='arrow-l' data-direction="reverse">Customer List</a>
            <h1>Customer Detail</h1>
        </div>
        <div data-role="content">
            <h2 id="AlbumName"></h2>
            <table>
                <tr><td>Customer Number:</td><td width="50%" id="AlbumNumber"></td></tr>
                <tr><td>Business:</td><td width="50%" id="AccountBusiness"></td></tr>
                <tr><td>Pay Type:</td><td width="50%" id="AccountPayType"></td></tr>
                <tr><td>Term:</td><td width="50%" id="AccountTerm"></td></tr>
                <tr><br></br></tr>
            </table>
            <table>
                <tr><td>Street:</td><td width="61%" id="AccountStreet"></td></tr>
                <tr><td>City:</td><td width="61%" id="AccountCity"></td></tr>
                <tr><td>State/Province:</td><td width="61%" id="AccountSP"></td></tr>
                <tr><td>Zip/Postal Code:</td><td width="61%" id="AccountZP"></td></tr>
                <tr><td>Country:</td><td width="61%" id="AccountCountry"></td></tr>  
                <tr><br></br></tr>
            </table>
            <table>         
                <tr><td>Phone:</td><td width="47%" id="AccountPhone"></td></tr>
                <tr><td>Website:</td><td width="47%" id="AccountWebsite"></td></tr>
                <tr><br></br></tr>
            </table>
            <div data-role="content">
            <table>
                <p></p>
                <c:GoogleMapsInternational iconColour="#236FBD"
                    width="700"
                    height="700"
                    backgroundColour="#FFFFFF"
                   address="{AccountStreet} {AccountCity} {AccountSP} {AccountZP} {AccountCountry}"
                />
            </table>
            </div>
       </div>    
    </div>

</body>
</html>
</apex:page>

 Best,Regrads


cloudmaniacloudmania

Do you want a whole string includes address parameters like

 

address={!Account.Street} &{!Account.City}

 

Use " &" to append the address parameters in VF.