• sandy_salesfdc1
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 10
    Replies
The bellow component is giving returning blank(but its printing the value "Hellow all") when used in a visualforce page ..
but when used in a plain html in my local machine is returning the map.
Please advice

<apex:component > Hello all <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map-canvas { height: 100% } </style> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map-canvas { height: 100% } </style> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=KeyXXXX&sensor=false"> </script> <script type="text/javascript"> function initialize() { var mapOptions = { center: new google.maps.LatLng(-34.397, 150.644), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id="map-canvas"/> </body> </apex:component>


In an inbound webservice if want to provide a structure like
<foo bar="baz">bar</foo>
----------------

webservice string foo;

will create a tag like <foo></foo>
how will i introduce an attribute for this tag -bar = "baz"

Is this capability available in sfdc.
please advice

 

Hi,

 

I am writing a trigger where if Case is Closed then the account related to that case will get deleted.

 

trigger Case2Account on Case (after update)
{
list<account> acclist = new list<account>();

for(case ca:trigger.old)
{

if (ca.status='Closed')
{
Account acc = new Account();
acc.Id = ca.AccountId;
delete acc;
}
}
}

 

Please help

Hello,

 

I have a scenario where I am stucked.

 

I have an org which support two languages (English and Japanese). I have used translation workbench and uploaded translation.

 

There is a requirement to create a search page for opportunity. A picklist field in opportunity is search parameter to be displayed as multi-select picklist. Using below function I created multi-select picklist from pick list.

 

//controller code

private static List<SelectOption> getPicklistValue(sObject obj, String fld)
    {
        List<SelectOption> options = new List<SelectOption>();
        Schema.sObjectType objType = obj.getSObjectType();
        Schema.DescribeSObjectResult objDescribe = objType.getDescribe();       
        Map<String, Schema.SObjectField> fieldMap = objDescribe.fields.getMap();
        List<Schema.PicklistEntry> values = fieldMap.get(fld).getDescribe().getPickListValues();
        for (Schema.PicklistEntry a : values)
            options.add(new SelectOption(a.getLabel(), a.getValue()));
        return options;       
    }//End Func getPicklistValue

 

Challenge that I am facing is: this picklist is always showing English values in multi-select picklist and this is obvious because I am fetching Label from picklist and displaying.


I want for Japanese users it must show Japanese translation of this picklist (already uploaded in Translation workbench). I am in search of some straight forward solution to this one.

 

Thanks,

Rehan

i am trying to create a visual force page with standard controller

but at starting only it is displaying error called  "Registration_c does not exist" with this code

 

 

<apex:page standardController="Registration_c" >

 

</apex:page>

 

 

Hi there,

 

Is it possible to create record through inline VF page?

 

thanks

Manohar

I'm new to VF.

 

This page will display information for a student in case of emergency.  They may or may not have two parents and 3 other emergency contacts.

How can I change this page to remove sections where the person is null?  Thank you.

 

<apex:page renderAs="pdf" standardController="Contact" sidebar="false" showheader="false">
  <div align="center"><h1><p style="font-family: times, serif; font-size:16pt">
  {!Contact.FirstName} {!Contact.Middle_Name__c} {!Contact.LastName}<br></br>
  <apex:outputText value="{0, number, 00}"><apex:param value="{!Contact.Age__c}" /></apex:outputText>-year old {!Contact.QSAC_Race__c} {!Contact.QSAC_Gender__c}
  <br></br>{!Contact.Alerts__c}</p></h1>
  <img src="{!Contact.Image_URL__c}" alt="{!Contact.FirstName}\'s picture"/>
  <table border="1" align="center">
  <tr><td align="left"><b>{!Contact.Primary_Parent_Guardian_Type__c}:</b> {!Contact.Primary_Parent_Guardian__r.FirstName} {!Contact.Primary_Parent_Guardian__r.LastName}</td>
  <td align="left"><b>{!Contact.Secondary_Parent_Guardian_Type__c}:</b> {!Contact.Secondary_Parent_Guardian__r.FirstName} {!Contact.Secondary_Parent_Guardian__r.LastName}</td></tr>
  <tr><td align="left">{!Contact.Primary_Parent_Guardian__r.MailingStreet}</td>
  <td align="left">{!Contact.Secondary_Parent_Guardian__r.MailingStreet}</td></tr>
  <tr><td align="left">{!Contact.Primary_Parent_Guardian__r.MailingCity} {!Contact.Primary_Parent_Guardian__r.MailingState} {!Contact.Primary_Parent_Guardian__r.MailingPostalCode}</td>
  <td align="left">{!Contact.Secondary_Parent_Guardian__r.MailingCity} {!Contact.Secondary_Parent_Guardian__r.MailingState} {!Contact.Secondary_Parent_Guardian__r.MailingPostalCode}</td></tr>
  <tr><td align="left"><b>Home:</b> {!Contact.Primary_Parent_Guardian__r.HomePhone}</td><td align="left"><b>Home:</b> {!Contact.Secondary_Parent_Guardian__r.HomePhone}</td></tr>
  <tr><td align="left"><b>Mobile:</b> {!Contact.Primary_Parent_Guardian__r.MobilePhone}</td><td align="left"><b>Mobile:</b> {!Contact.Secondary_Parent_Guardian__r.MobilePhone}</td></tr>
  <tr><td align="left"><b>Work:</b> {!Contact.Primary_Parent_Guardian__r.npe01__WorkPhone__c}</td><td align="left"><b>Work:</b> {!Contact.Secondary_Parent_Guardian__r.npe01__WorkPhone__c}</td></tr>
  </table>
  <table border="1" align="center">
  <caption>Other Emergency Contacts</caption>
  <thead>
  <tr>
  <th>Name</th>
  <th>Phone</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>{!Contact.Emergency_Contact_1__r.FirstName} {!Contact.Emergency_Contact_1__r.LastName}</td>
  <td>{!Contact.Emergency_Contact_1_Phone__c}</td>
  </tr>
  <tr>
  <td>{!Contact.Emergency_Contact_2__r.FirstName} {!Contact.Emergency_Contact_2__r.LastName}</td>
  <td>{!Contact.Emergency_Contact_2_Phone__c}</td>
  </tr>
  <tr>
  <td>{!Contact.Emergency_Contact_3__r.FirstName} {!Contact.Emergency_Contact_3__r.LastName}</td>
  <td>{!Contact.Emergency_Contact_3_Phone__c}</td>
  </tr>
  </tbody>
  </table>
  </div>
</apex:page>

 

  • August 23, 2013
  • Like
  • 0

Two of my sandboxes upgraded today to Spring 13, and I can't Deploy metadata to them using the Force.com IDE. I'm seeing the errors:

 

   Problem: Unknown type name 'MobileSettings' specified in package.xml
   Problem: Unknown type name 'SecuritySettings' specified in package.xml

Has anyone seen this or know of a workaround?

 

Dan

 

In an inbound webservice if want to provide a structure like
<foo bar="baz">bar</foo>
----------------

webservice string foo;

will create a tag like <foo></foo>
how will i introduce an attribute for this tag -bar = "baz"

Is this capability available in sfdc.
please advice

 

when we use

 

webservice <datatype> <variablename>

 

it gets exposed as a element in the WSDL. However I need to expose it as a attribute.

 

Any idea how can I do that?

 

 

 

Thanks,

Pooja