• 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 ?

Hi everyone,

 

I am very confused with all the post on dicussion that we needs to install agent on firewall. Now actually I really did not found the way how to install it. Everyone talk about the same thing but no one is here who can explain step by step solution to install agent on firewall and acheive the same to overcome the limitation of attachment which is 10MB in email on demand.

 

 

Thanks

Vijay

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

 

 

Hi All,

 

I am facing an issue , I have some partner users , I have created a Account Sharing Rule (Criteria Based) And I have given Access to Contact Opportunity And Cases (Read/Write) to all. Acccount and contacts are getting shared but not Opportunities. What is the issue? I have check partner user custom profile permissions are OK.

 

Any help will be appriciated.

 

Thanks

Vijay

Hi All,

 

Salesforce did a very dirty change.

1. Earlier when we click on test method run test it redirect to apex test execution page.

2. Even now if I am clicking on Run All Test button still redirecting Apex Test Execution Technique.

 

The problem is I am making run all test on Production ORG and alwasy coverge is over 83%. Now the problem is when we use apex test execution technique it ask the selected name space class to run which only tell the total coverage of your selected name space classes. Now I want the overall coverage.

How do I get that ? bec when I am cliking on Run All Test still it run the default name space classs.

 

HI All,

 

Why I am getting this error even I am processing all my record in a batch of 200 size. Salesforce didnot documented batch class concept very much clear anywhere.That how batch are runs how batch thread works ? Are all thread of a single batch runs parallely ? Nothing 

 

 

Thanks

Vijay

When clicking on run test on apex test class it redirects to apex test execution page. And not able to see line of code coverage from UI now.?????

Any wayout except eclipse ?

 

 

How can we get Approval Process getWorkitemId if we have the record Id ?

Hi All ,

 

I want to insert user image as attachment . Any Idea ? 

 

Hi ,

I have badly stuck with the problem , I am getting User Image Url "https://c.cs12.content.force.com/profilephoto/005/T" but if image in not added to User Image a blank photo show but if I added photo the User Image and rendering the VF page on force.com site , The Image not showing its showing just like a burst images !

Hi Folks ,

I have badly stuck while deserialize JSON in to Apex Wrapper Class .

I have successfully deserialized lot of JSON string in to apex but now this error raising .

 

Can anyone see this error ever , please help me out , I know this is silly mistake but really I am not able to identify the problem. 
Let me know if you need JSON string and Apex class code ? 

 

 

 

Thanks

Hi All ,

has anyone implemented chatter on force.com site ? I am very eager to know how can we implement this . As we know that we can not use chatter visualforce component on force.com site.

 

 

 

Hi All ,

I am facing a problem with enhancelist .

On page load when all data in enhancelist show properly and a scrollbar comes below the enhancelist .

Once I click on next or previous or changing number of record per page , scroll bar gonna be invisible and it visible for the whole visualforce in below of the browwer it mean it create a unnecessary space in righthand side of visualforce page.

 

 

Can anone help me out ?

 

Hi All ,

I have open a child window with window.open

And I want when I uploaded all attachment on this child window , I have another button to close this window , once I click on this button my parent visualforce page must be rerender not refresh so I Can maintain the values I had selected on visualforce page .

Because when the page is refreshed the all values are lossed .

 

 

Hi All , 

please help me out.

I want to delete the case notes & attachment and I am a user with Read , Create , Edit , Delete  permission.

Once I try to delete attchment raise error Insufficient prevelages.

 

Once I did it Modify All Data Permission then only I am able to delete the case attachment. But I dont want to give Modify All data permission.

 

How can be do that , is there any other way to handle this .

 

 

Hi All ,
I have an issue . Let me explain the problem.
I am sharing A custom object Record through before trigger . And the Object is OWD Private.

I am changing record owner as System Administrator who ever insert the record .
User u = [select Id from User where Profile.Name='System Administrator' Limit 1];
for(Project__c p : trigger.new){
p.ownerId = U.Id;
}
Now let say any of the user insert the Project__c records trigger will change the owner.
Once owner is change as System Admin. This user can not share this recod with other users because OWD is private.

The User who insert this record do not have privelage to share the record.

Now suggest me how to share these records in sigle trigger script.

 

 

Hi Friends ,

 

Can anyone can help me out  I stuck in scenario .

How to add invities while creating an event through apex ??

 

 

 

 

Hi ,

I have badly stuck with the problem , I am getting User Image Url "https://c.cs12.content.force.com/profilephoto/005/T" but if image in not added to User Image a blank photo show but if I added photo the User Image and rendering the VF page on force.com site , The Image not showing its showing just like a burst images !

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!

  • September 09, 2013
  • Like
  • 0

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.

 

 

  • December 07, 2012
  • Like
  • 0

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?