Questions tagged [method-invocation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

Getting random contacts from org

I'm trying to get a 'n' number of random contacts from my org. When I try executing the below mentioned code, i couldn't see anything in the debug section of the output screen Can you guys please ...
-1
votes
1answer
243 views

How to pass a String from Visualforce to Apex, then re-rendering the page

I have a VF page that displays a table of records. I'd like the table to be filtered by one of it's String fields, "currency", so if I chose 'USD', it will only show records with 'USD', same for 'CAD',...
0
votes
2answers
36 views

Sending lists to other methods

I'm trying to emphasis separation of concerns with new code that I am writing. For an example that I am working on I want to create a custom object record when a different object record is edited to ...
8
votes
2answers
763 views

Ambiguous method signature on NULL value

I know that all primitive types are objects and can be null in Apex But is there a way to handle the null value when doing polymorphism ? public class myClass{ public myClass(String name){ ...
2
votes
1answer
139 views

Communication between two Managed Packages

We have two managed packages. Is there a possibility to let the two packages communicate within one org? I've seen for example this article, but I was curious if there is any other possibility and a ...
0
votes
1answer
2k views

Non static method invocation in static test method

I have a controller class where I have a non static field leadObj which is initialized in constructor with parameter: // Constructor public LeadToMerchantController(ApexPages.StandardController ...
-1
votes
1answer
542 views

show or hide table using javascript(not with salesforce rerender attribute)

To save processing time I want to call method from javascript instead of controller. This is my method in controller public void showSupplier() { showSup = true; } public void ...