• Priyanka Chandrakanth
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
Opportunity opp1 = [select field1__c,(Select field2__c,id From Leads__r) from Opportunity where id='006q0000xxxxxx'];
opp1.Leads__r.field2__c = 'text';
update opp1;

Above logic throws the following error. Can anyone help me in achieving the above logic?

Error:
Line: 2, Column: 1
Invalid foreign key relationship: Opportunity.Leads__r


Thanks in advance!
<apex:outputLink value="IF($CurrentPage==$Page.A,{!LOWER($Page.A)},{!LOWER($Page.B)})">Home</apex:outputLink>

Can anyone please tell me if this is valid? I am trying to control the navigtion of Home hyperlink on page. When I am trying to use the above code, it throws an error, URL No Longer Exists.
Thanks in advance.
Hello I am trying refer another VF page B when a command button is clicked on VF page A. I have notices that, in url it doesn't update the page name from PageA to PageB. How can I overcome this problem? I know that we can use setRedirect(true) when I am creating a pagereference, but I would like to know how can I achieve the same functionality with 
Page.existingPageName. Thank you very much in advance
Hello,

I have uploaded a jpeg image as static resource to refer in my visualforce page. However, it doesn't display the images, instead it shows as given below. Any help is appreciated! Thanks in advance.

User-added image
How can I login to internal application in our Org after logging in force.com site login page which uses salesforce credentials? I have read about SSO, but I need some more insights. Any suggestions are appreciated. Thanks in advance.
Can anyone please tell me how can I determine the API name of custom object from its ID?
Opportunity opp1 = [select field1__c,(Select field2__c,id From Leads__r) from Opportunity where id='006q0000xxxxxx'];
opp1.Leads__r.field2__c = 'text';
update opp1;

Above logic throws the following error. Can anyone help me in achieving the above logic?

Error:
Line: 2, Column: 1
Invalid foreign key relationship: Opportunity.Leads__r


Thanks in advance!
Hi - I have a visualforce page.. within the page, I have a pageblock, pageblocksection, dataTable and then I have 10 columns (I know that is a lot)  The problem is the data is all crowded together.

It there any way to wrap the data so that perhaps it takes up two rows for each record? 

Any suggestions would be greatly appreciated!!

thanks!!
Fred
  • December 10, 2014
  • Like
  • 0
Hello,

I have uploaded a jpeg image as static resource to refer in my visualforce page. However, it doesn't display the images, instead it shows as given below. Any help is appreciated! Thanks in advance.

User-added image
Can anyone please tell me how can I determine the API name of custom object from its ID?