|
More site info...
Apex Code Development | Forum profile
|
|
Forum profile page for Apex Code Development on http://www.salesforce.com.
This report page is the aggregated overview from a single forum: Apex Code Development, located on the Message Board at http://www.salesforce.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Apex Code Development" on the Message Board at http://www.salesforce.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Apex Code Development:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
151
|
591
|
1,561
|
|
Post:
|
296
|
1,109
|
2,930
|
|
|
Apex Code Development Posting activity graph:
|
Top authors during last week:
user's latest post:
Community - javascript eval in...
Published (2009-11-26 22:32:00)
No tools as such, but you have to write the equivalent logic using Apex. I am afraid, there is no direct function similar to EVAL Experts, correct me if I am wrong. Cool_D
user's latest post:
Community - Accessing SQL - Apex...
Published (2009-11-27 09:51:00)
It's not possible to directly connect to external data sources from Apex or Visualforce. However, you can make SOAP-based web service callouts or plain HTTP callouts from Apex. If you can create an external application to deal with the data source and have it publish a SOAP-based or plain HTTP service, you can access the service from Apex to achieve what you are looking for.
user's latest post:
Community - SOQL Query Help -...
Published (2009-11-25 09:49:00)
With VF, I really do learn something new everyday. I appreciate your help, btw. By Question field...did you mean Answer field...the 2nd column in my table? So I would use this new wrapper class to feed my table: <table border="1" columns="1" > <tr >...
user's latest post:
Community - attach pdf to notes...
Published (2009-11-26 20:07:00)
Hello sonaperth ; Try this; public void attach() { Attachment myAttach = new Attachment(); myAttach.ParentId = 'xxxxxxxxxx'; //Id of the object to which the page is attached myAttach.name = 'DisplayName.pdf'; PageReference myPdf = Page.myPdfPage; //myPdfPage is the name of your pdf page myAttach.body = myPdf.getContentAsPdf(); insert myAttach; } Message...
user's latest post:
Community - sObject type...
Published (2009-11-25 08:10:00)
Not sure about this one. I'd definitely log a case for it. If you are a partner, log it in the partner portal as that should speed up the time to resolution.
user's latest post:
Community - Apex Trigger to...
Published (2009-11-22 23:36:00)
Roll-up applies only for master-detial relationship. Use following query in your trigger Select a.Id, (Select Id From Contacts) From Account a
user's latest post:
Community - Need help with...
Published (2009-11-24 10:22:00)
Man, Thank you soooooooo much. I was wondering with the repeat can you still do outputfield? Thank you again for all the help.
user's latest post:
Community - Save() - Apex Code...
Published (2009-11-25 01:23:00)
Hi I have to override the standard save() functionality.since i defined another function named run()...I created a button saqve in my visual force page in such a way that when i click savebutton it should invoke both standard save() and also run() which i defined how can i do that ............plz help me with code...... ...
user's latest post:
Community - help me the code to...
Published (2009-11-27 01:43:00)
Hey It would work for both. The data field type doesn't matter at all.. all your validation would be done via apex within your controller. If you post some code I can help you out a bit more. As a starting point: Page: <apex:form> <apex:inputField ... /> <apex:commandButton value="Send" action="{!saveContact}"...
|
|
|
|
Latest active threads on Apex Code Development::
Started 3 days, 1 hour ago (2009-11-27 12:39:00)
by Shikibu
This thread might be helpful. Use your browser to examine the generated URL, and to discover whether the script is indeed loaded. If you get the URL wrong, the compiler doesn't tell you. Also, Firefox and Firebug should be your friend. You can inspect the DOM and js variables, trace and execute arbitrary js, and more.
Started 6 days, 2 hours ago (2009-11-24 11:15:00)
by ccMark
Have you tried creating a test class with something like the following? @isTest private class parseStudentApplicationTest { static testMethod void myUnitTest() {Student_Application__c sa = new Student_Application__c(); sa.Student_First_Name__c = 'testFirstName' ;sa.Student_Last_Name__c = 'testLastName' ; sa....
Started 3 days, 15 hours ago (2009-11-26 22:15:00)
by gm_sfdc_powerde
Apex is a strongly typed language and does not support evaluating dynamic content. Having said that, it is possible to dynamically construct and execute Apex code from outside the platform using web service API. Not sure if this is possible in your case, can you elaborate more on your use case?
Started 3 days, 11 hours ago (2009-11-27 02:23:00)
by sfdcfox
Use "Document" if you want to store files in the document tab, and use "Attachment" if you want to store files attached to a record; use ParentId to specify which record the attachment is stored against. Please note that it is important to capture the Name, Body and ContentType values or your document may not store correctly or be rendered correctly by a browser when re-downloaded....
Started 3 days, 4 hours ago (2009-11-27 09:51:00)
by gm_sfdc_powerde
It's not possible to directly connect to external data sources from Apex or Visualforce. However, you can make SOAP-based web service callouts or plain HTTP callouts from Apex. If you can create an external application to deal with the data source and have it publish a SOAP-based or plain HTTP service, you can access the service from Apex to achieve what you are looking for.
Started 4 days, 11 hours ago (2009-11-26 02:46:00)
by SteveBower
Hi, just looking at it visually, I'm wondering if, due to the bad query, this line: con = new ApexPages.StandardSetController(Database.getQueryL ocator(this.getQuery() ) ); threw an exception because there is no StandardSetController constructor for a malformed query error. (no Scientific notation supported) However perhaps it caught it and returned con as null and when you try to ...
Started 3 days, 10 hours ago (2009-11-27 03:29:00)
by sorna
Dont use standard save here. Instead, for the command button save, have an action function in your controller where you manually save the record and include the logic of the run() function.
Started 3 days, 12 hours ago (2009-11-27 01:28:00)
by nelloC
I guess that's a no then.
|
|
Hot threads for last week on Apex Code Development::
Started 1 week, 2 days ago (2009-11-20 17:52:00)
by gm_sfdc_powerde
What are you trying to update here? ID is the system identifier and cannot be updated.
Started 6 days, 10 hours ago (2009-11-24 03:24:00)
by Cool_Devloper
Already answered on VF discussion board! Cool_D
Started 6 days, 15 hours ago (2009-11-23 22:17:00)
by Cool_Devloper
For the 1st problem, it seems the variable is not getting set with the param value. Did you try giving a debug message, what value is "currentQuestion" having? Also, can you check if "assignTo" works in the param tag? Can you please elaborate on the 2nd problem? Cool_D Message Edited by Cool_Devloper on 11-23-2009 10:18 PM
Started 6 days, 4 hours ago (2009-11-24 09:34:00)
by A_Smith
Is this in apex code? are you trying to reference an object installed by the package or is this code within the package itself?
Started 6 days, 22 hours ago (2009-11-23 15:43:00)
by A_Smith
Can you provide some more details around what you are trying to accomplish?
Started 6 days, 13 hours ago (2009-11-24 00:00:00)
by gm_sfdc_powerde
What exactly is your problem that's preventing you from achieving 75% code coverage? If you run your tests from IDE, you can clearly see from output log the lines that are not covered. Ditto with running tests from the app.
Started 6 days, 15 hours ago (2009-11-23 22:15:00)
by Cool_Devloper
Is there any other trigger like on "QuoteLine" object? Or is there any workflow which might be getting executed in the whole flow somewhere? The exception means that the same record is getting updated again within the same conetxt! Cool_D
Started 1 week ago (2009-11-22 22:47:00)
by Naishadh
DML statements can only process up to 200 records at a time, and sObject list for loops process records in batches of 200. Ref : http://www. salesforce.com/us/developer/docs/apexco de/Content/langCon_apex_loops_for_SOQL.htm#kanchor 133
Started 1 week, 2 days ago (2009-11-20 22:19:00)
by Cool_Devloper
Hi Sean, I suggest instead of re-directing through the controller, you can do the same through JS! If you have the ID of the contact on your Detail page, then you can build a URL and call a JS function onclick of a button/link from ur VF section. Cool_D
Started 6 days, 2 hours ago (2009-11-24 11:15:00)
by ccMark
Have you tried creating a test class with something like the following? @isTest private class parseStudentApplicationTest { static testMethod void myUnitTest() {Student_Application__c sa = new Student_Application__c(); sa.Student_First_Name__c = 'testFirstName' ;sa.Student_Last_Name__c = 'testLastName' ; sa....
|
|