• Dimitar Dimitrov 34
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi all,
I hope you are well.

I have a Custom Controller and Visualforce Page.
The Controller is retrieving all data from Object "Call Sample" and is displaying it on the VF page. However the users want to see data from Object "Sample Transaction", but it is not related by Lookup or Master-Detail Relationship. The only connection is 2 text fields on "Sample Transaction", that are available on "Call Sample".

Is it possible for each line of the object "Call sample" to display data from "Sample Transaction" without hitting some SOQL Limits?

Please find attached a screenshot of the VF page, if needed I can add some code from the Controller and the page, but it is a lot.

Call Sample VF Page

Kind regards,

Dimitar 

Hi all and Happy new year.

I had this task to create a custom Related list on the Account Page Layout with Visualforce and it all works fine. I've got all the records that i need and all the required fields and of course "New Project" button.

New Project button

However the only issue is that when i added the "New BD Project" button, when the new page is opened and the user change his mind and press "Cancel" it returns to the Visualforce page only, not to the Account Page Layout.

Cancel

I tried different solution, but i could not make it work.
Here is the commandlink button
<div style="margin-left: 30%;">
<apex:commandLink value="New BD Project" action="       {!URLFOR($Action.BD_Project__c.New)}" target="_parent"     styleClass="btn" style="text-      decoration:none;padding:4px;"/>
</div>

I found the whole Visualforce page and Controller in another solution which was for Contact Related list and i modified it to fit my requirements. The only change is that in the working Contact solution(where when you press cancel it returns you to the previous page) is that the code for the New Object is in the Controler:
 
public pageReference newContact()
{
pageReference pageRef = new pageReference(URL.getSalesforceBaseUrl().toExternalForm() + '/003/e?&retURL=' + accounts.id);
return pageRef;
}

Did any of you guys had a similar issue and found a solution.

Kind regards,
Dimitar
 

Here is the controller and the Visualforce that i'm using.:


 

Hi all,
I hope you are well.

I have a Custom Controller and Visualforce Page.
The Controller is retrieving all data from Object "Call Sample" and is displaying it on the VF page. However the users want to see data from Object "Sample Transaction", but it is not related by Lookup or Master-Detail Relationship. The only connection is 2 text fields on "Sample Transaction", that are available on "Call Sample".

Is it possible for each line of the object "Call sample" to display data from "Sample Transaction" without hitting some SOQL Limits?

Please find attached a screenshot of the VF page, if needed I can add some code from the Controller and the page, but it is a lot.

Call Sample VF Page

Kind regards,

Dimitar 

Hi all and Happy new year.

I had this task to create a custom Related list on the Account Page Layout with Visualforce and it all works fine. I've got all the records that i need and all the required fields and of course "New Project" button.

New Project button

However the only issue is that when i added the "New BD Project" button, when the new page is opened and the user change his mind and press "Cancel" it returns to the Visualforce page only, not to the Account Page Layout.

Cancel

I tried different solution, but i could not make it work.
Here is the commandlink button
<div style="margin-left: 30%;">
<apex:commandLink value="New BD Project" action="       {!URLFOR($Action.BD_Project__c.New)}" target="_parent"     styleClass="btn" style="text-      decoration:none;padding:4px;"/>
</div>

I found the whole Visualforce page and Controller in another solution which was for Contact Related list and i modified it to fit my requirements. The only change is that in the working Contact solution(where when you press cancel it returns you to the previous page) is that the code for the New Object is in the Controler:
 
public pageReference newContact()
{
pageReference pageRef = new pageReference(URL.getSalesforceBaseUrl().toExternalForm() + '/003/e?&retURL=' + accounts.id);
return pageRef;
}

Did any of you guys had a similar issue and found a solution.

Kind regards,
Dimitar
 

Here is the controller and the Visualforce that i'm using.: