akash
  • Member for 7 years, 3 months
  • Last seen more than 5 years ago
How to get a value from an Apex class into JavaScript in a Visualforce page
6 votes

You can use the merge field directly in javascript. like , <script> function test(){ alert('{!mergeFieldName}'); } you can also use tag to pass values across page and class. If you ...

View answer
System.QueryException: List has no rows for assignment to SObject
5 votes

This basically means your query doesn't return any results. It may be because there are not records for that ID or that ID is not passed in the URL. Initialize the account before you hit the query.

View answer
Is it possible to get the Id of a record in an component without using extension for the parent VF page?
Accepted answer
5 votes

Use this. ApexPages.currentPage().getParameters().get('Id'); This works, just checked. -Akash

View answer
Heap Size Limit in Salesforce
Accepted answer
5 votes

If you are trying to load the data synchronously, then it will hit this limit of 6MB. I'd recommend you call asynchronously, which is nothing but using VisualForce Remoting functions. Can you paste ...

View answer
Sites Vf page field value not visible
1 votes

It had something that got to do with field level security. I was trying to access two levels up, and I had checked the FLS for the second level field, but I had forgotten about the first level itself. ...

View answer
Writing workflows in Apex
1 votes

You can crate workflows and approval processes via apex triggers. But for approval processes I'd recommend you to go through the configuration out of the box feature for it as it is pretty extensive ...

View answer
How to make Lookup Field and Date field work on Visualforce page in Salesforce1?
1 votes

Its always a pain to develop for android!! I'd suggest using jqueryUI for date picker. For salesforce1, never use apex tags as it does not support all devices and it will not be rendered as expected. ...

View answer
Why can I not deploy to a sandbox without test coverage?
1 votes

Usually for sandbox deployment, salesforce doesn't run all tests. It may be because the deployment tool, is trying to run all tests. But I'm sure salesfore doesn't run all tests in sandboxes :)

View answer
How to remove the row from a Visual force page using Apex Scheduler class?
0 votes

If you are storing the date values at the back end and displaying it on your VF page, you can run a schedule batch and update the object records. If you can explain this a little more, I can help you ...

View answer