• vijaymind
  • NEWBIE
  • 110 Points
  • Member since 2010

  • Chatter
    Feed
  • 4
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 25
    Questions
  • 81
    Replies
Hi All,
I am having an issue with apex:chart reRendering, it does not work, each and every varible value getting set as expected but data does not display inside chart even data is there in controller.

Please help me out, development has been stuck. I have read many blogs but solution.
I am confused, I have seen somewhere we are accessessing fromAddress from inboundEmail class and somewhere inboundEnvelop. Salesforce standard page with these disctingutions.

http://wiki.developerforce.com/page/An_Introduction_To_Email_Services_on_Force.com
email.fromAddress ='test@test.com'; 
                                         
http://wiki.developerforce.com/page/Code_Sample_-_Testing_Email_Services_with_Inbound_Attachments
env.fromAddress = 'user@acme.com';


Which one is true ?

System.DmlException: Update failed. First exception on row 0 with id 006e00000049qyNAAQ; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, GlobalOpportunitySoldOrMissed: execution of AfterUpdate

caused by: System.LimitException: Apex CPU time limit exceeded

 

What does this error message mean?  

 

Thank you!

Hi All,

 

I have a outputLink or href  and onclick calling window.open('{!anyotherwebsite}');

its opening https://c.cs12.visual.force.com/apex/anyotherwebsite.......

but I only want to open a site like 

http://www.google.co.in/

 

 

so when I am passing anyotherwebsite varible from controller and binding in window.open its not working and if I pass it directly like

window.open('http://www.google.co.in/'); it works perfectly ?

 

Any solution so that we can pass url from controller varibale and it open just web site name rather than including https://c.cs12.visual.force.com/apex/....

 

 

Thanks

Vijay

 

Hi All,

 

I am querying on some standard object like Document contracts etc. I have with sharing controller and Data returning the list but not displaying on VF page. I know why is it happening because user doesnot have Read access to Those standard object.

My question is why query is returinig records to the running user which doent have CRUD permissions ob that object ?

 

 

Thanks

Vijay

Hi All,

 

I have a simple JS function.

function openNewVfpage(){
window.open('/apex/GRID_portalSearch?searchText='+document.getElementById('{!$Component.formId.SearchKeyWord}').value,'_parent');

return true;
}

 

it working in salesforce when I am clicking on button. but in portal I am using the same VF page and clicking on button and it opens only

https://c.cs12.visual.force.com/apex/GRID_portalSearch

but I need this URL with the parameter  ?searchText=value

it should be  

https://c.cs12.visual.force.com/apex/GRID_portalSearch?searchText=value

 

can anyone please help me out ?

 

Thanks

Vijay

 

 

Can i use action and onclick attribute on command line apex component together?

Can anyone give me some examples?

 

 

I've noticed that in some of my Visualforce pages the buttons in a pageBlockButtons only work at the bottom, and not the top.   The page goes away but returns unchanged and with the action not taken.   At the bottom the actions work perfectly, those at the top do nothing.

 

I have no Javascript in the page, and no errors appear from either the developer log or the code console.

 

Anyone else have this?   I'd put up the code, but it happens in about 10% of my pages, and I cannot see any common link.

 

 

I've inherited an application that uses custom Visualforce pages to perform actions when a user presses a custom button.

 

E.g. There is a custom button on Opportunity that links to the Visualforce page and passes a query string parameter. When the users GET request arrives at the visual force page an action is fired in the custom controller to a method. The method calls out to some web services and ultimately updates the database.

 

This opens the user up to CSRF issues with the GET request ultimately updating the database.

 

CSRF and apex:page and Apex and Visualforce Applications suggest changing the visualforce page and custom controller to using a apex:form and button to trigger the database updating action though a POST. This allows the inbuilt com.salesforce.visualforce.ViewStateCSRF to ensure the user triggered the action and help avoid CSRF issues.

 

However, this requires the user to perform an extra button press.

 

Is there an alternative approach I can use to safely perform the action from the button on Opportunity without opening up CSRF issues?

 

The same question has been posted on StackOverflow: CSRF safe Custom button linked to Apex method

I am perplexed. I have a VisualForce page that has several input fields and for some reason this one is not showing up:

 

 

<apex:inputField value="{!Contact_Update__c.Home_State__c}" styleclass="apexInputField"/> 

 

 

The other fields around it appear fine. Looking in the controller the value seems to be assigned, and if I change the word Home to Work (I have another field called Work_State__c) then the input field appears.

 

What places should I look to try and track down why this may not be showing. It seems like the code in the VisualForce page is correct.

 

UPDATE: When comparing the VisualForce page, to the Sites Page I note that its on the Site page only where the field is missing. The site uses the same VisualForce page, but I wonder if its some sort of a permission issue? Where should I be checking?