Shailesh Deshpande
  • Member for 9 years
  • Last seen more than a month ago
  • London, UK
Get Site URL from apex
0 votes

Please refer the below link: http://boards.developerforce.com/t5/Apex-Code-Development/Get-Current-Page-URL-in-Apex-Class-Full-amp-Exact-URL/td-p/134623 seems you might need to make use of ...

View answer
how to cover Id!=null part in test Class
2 votes

Add the below code before calling initializing the demoClass. Apexpages.standardcontroller controller = new Apexpages.standardcontroller(newinvoice); democlass policy = new democlass(controller); ...

View answer
Problem with date calendar
0 votes

It looks like you are using field sets to render the page. Please check if you have added your date field in the field sets.

View answer
Disable custom button on detail page on some condition..?
0 votes

I dont think it is possible to do so. However, what you could possibly do is that, if you are using record types, add one more record type as "Approved". As the o.Sub_Stage__c field changes to ...

View answer
Email validation in visualforce pages
1 votes

If you are using apex:inputText component, you can use the "required" attribute to make it mandatory to a user to enter a value.

View answer
Prepopulate fields on standard layout but before that allow selection of record type
Accepted answer
3 votes

Assuming that you are using a custom button to navigate to the page, all you need to do is to copy the link that you get when you click the "New" button for that object. And use it in your custom ...

View answer
How far in the future are @future annotated methods executed?
4 votes

The time is not gauranteed. It usually executes immediately in few seconds, however, as they are executed asynchronously, the time is not gauranteed. Also, remember that any method using the future ...

View answer
Number field without comma (thousands separator)
2 votes

You can use apex:outputText tag to format the output. Try this out: <apex:outputText value="{0, number, 000000.00}"> <apex:param value="{!numberfield}" />

View answer
Attempt to de-reference a null object in fieldset
0 votes

If you put a System.debug on the fieldsetName and verify if the field set Name is correct, you may be able to find out the problem.

View answer
1 2
3