I have a requirement where a datatable of clients must be hidden by default (i.e. on page load). The table appears and populates only when a certain command link is clicked. How do I go about achieving this?

I'm trying to update fields of a custom object along with fields of a related object. The fields of the primary object are updated without a problem, but none of the related object fields are updated. Notice that the saveRecord() method calls update on both objects. How can I accomplish this?

Have a process that requires creating both a Contact and a Lead, once the Contact page is saved the Lead page opens and don't want the user to have to type in the same info again. Below is what I have and I'm passing the entered values in the URL '...?FirstName={!Contact.FirstName}... etc'.

When this page renders is shows the values but outside the fields that I need them saved to. Suggestions?

I'm trying to access a contact object field through a related object's lookup field. Billing_contact__c below (2nd <td>) is an entity object lookup field that has a related contact record. When I reference the Address__c field in the contact object, I get the following error:

Error: Unknown property 'String.Address__c'

Any idea why? And how can I accomplish my goal of displaying this contact object field?

I'm designing a sign-in page for events. When attendees sign in, I'd like the page to acknowledge them with "Bob, thanks for attending." And then after 2 seconds, I'd like the page to return to the blank signin form for the next attendee.

I haven't been able to find anything that allows me to delay execution like this in the documentation so far. Any ideas?

i have a custom field in account object called count.it should display the number contacts related to that account....like if we added one contact to the account count should be increased or if contact is deleted contact should be decreased..how to write a trigger to this...

I'm using a custom controller on a visualforce page to access a list of records which are unrelated. I get the de-reference null error on the visualforce page when I land on it. I am comparing a multiselect picklist field called protocols__c on the account object with a string field on an object called AlertManagement__c. If they equal each other then i want to populate them to the listGrab which my visualforce getter should show on the page. This is being accessed through the customer portal.

I realise that the null error is being thrown because of the listGrab.add(al); If I take it out the error isn't thrown.

However i know that the listFlux I am iterating over is not empty. Is there something I am not declaring or am I going about this in the wrong way? Can someone help or give me some direction?

I've done quite a bit of research on the forums on how to include a "simple" Google Map example, and have tried many of them. With all , I seem to end up in the same place as a lot of others end up based on the forum comments - the map never actually comes up. I have a valid API key that I substitute, and still nothing comes up - just a blank VF page. Does anyone have a real working example that I could review and modify?

I just want to display a set of locations on the map. In my case, location is a custom object with country, state,city and zip (not a standard account record). If I can just get something basic working (i.e. actually see a map), I can then modify it to also set the marker colors based on some properties of the location - it's for a dashboard.

Any help would be greatly appreciated (something in API V3 would be best, but at least an example that works). I thought this was going to be simple...

VF Page: PDF that should have Opportunity Name, Opportunity.Account Billing Address in the header, Body should have Table with Opportunity Products, Footer should have Organization details.

Button in the Opportunity view page that will open the above pdf (pdf will have the values of the above fields of each record).

I'm able to acheieve this, but still has a problem.

My Problem is few records are not displaying the details of opportunity name, account billing address (these records still has the opportunity name, Account billing address etc). Can anyone about this..like account has the content, opportunity has the content too, but not displaying the content.

Insufficient PrivilegesYou do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.

But in controller if change the first line (public SObject act{get;set;}) to like this way :public Account act{get;set;} , i don't get any error.In my requirement i don't know which object fields need to be display on VF Page. So i want to use sObject. but it's not working the way i want. please help it's urgent. Thanks

Insufficient PrivilegesYou do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.

But in controller if change the first line (public SObject act{get;set;}) to like this way :public Account act{get;set;} , i don't get any error.In my requirement i don't know which object fields need to be display on VF Page. So i want to use sObject. but it's not working the way i want. please help it's urgent. Thanks

I have multiple currency activate in one organisation. A user fills an amount in different currency. i am using this field, in some calculation in controller. My requirement is that before using this amount field in calculation, it should be converted in to default organisation currecy value. How can i achieve this ?

When data is not validate controller returns null PageReference and my errorMsg outputPanel reRenders and i gets the error. But when data is validate and function returns PageReference for next page than i am not rendering to Next Page.

I thinks:

Since i have reRender attribute with command button than if function returns next page reference but page stays on same page to rerender the outputPanel. I do not what can be the solution and where exactly i am wrong. Immediate help required.

Today one more confusion arraises to me when i saw a code and it's saving also - i used to think in getter setter method get will be followed by varaibale name , But in follwing code get is followed by object name --- please see code below

public class MyCustomController {
public Account acc;
public MyCustomController(){
acc=[select name,id,phone,industry,website,rating,BillingCity,BillingCountry,
ShippingCity,ShippingCountry,AnnualRevenue from Account where id=:Apexpages.currentPage().getParameters().get('id')];
}
public Account getAccount() { // just see get is followed by Object Name i used to think it must be variable name i was accepting it must be only getacc()------- ?????
return acc;
}
public PageReference saveMethod()
{
update acc;
PageReference pf=new apexPages.StandardController(acc).view();
return pf;
}
}

I have multiple currency activate in one organisation. A user fills an amount in different currency. i am using this field, in some calculation in controller. My requirement is that before using this amount field in calculation, it should be converted in to default organisation currecy value. How can i achieve this ?

I have recently been doing a requirement with google visualizations. I was successfully get the charts to work for me by plotting the values, but need some help with how the conversion rates would be visible.

The Scenario is as below:

We have a Corporate Currency - or organization default currency.

We have a user default currency on the user Record

We have a default currency for every record when Currency feature is enabled in our organization, which is the corporate currency. You may change this value while loading data in bulk or creating via UI.

Having said that when a user has data in the USD currency for instance and his personal currency is CHF (swiss franks), when veviews the records we would be able to see USD value as well as in brackets the converted CHF.

ex: 1234.45 USD (3673.CHF) ----> This is just an example to show how data is viewed on the detailed page.

But in my graph i am able to see it as 1234.45 and no converted values.