• Greenhorn
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 5
    Replies

 

Hi,

I am trying to create my own filters on objects like opportunity, account, etc. to show records as a filtered list by the criteria selected by the user.

 

                                                            1.Fields    -     2.Operator    -     3.Value

 

Purpose is to show all fields of an object in a first drop down. Middle drop down shows the operators. And third drop down shows the value (as shown above).

This is exactly same as the filter conditions in reports.

  • If the value in first drop down is of type pick list, all corresponding values in pick list are displayed in third drop down i.e. Value
  • If the value in first drop down is of type Boolean, true and false should be displayed.

How to dynamically bind these values to third input field (Value) so that appropriate popup/suggestion is available for the user(e.g. datepicker if the selected field is of type date )?

 

Thanks.

 

Hi,

We have following scenario for the chained batch jobs in our app.
In the finish of first batch job, next job is scheduled with the help of cron expression. we are adding 2 seconds to current time as
buffer as the SF may take time to schedule the job.

job1.finish(){

     job2.schedule(current time + 2 seconds);

}

Actual execution may be delayed based on service availability.

sometimes we are gtting error  : Failed to process batch for class 'analysis2_TEST' for job id '707E0000003JRVw'
caused by: System.AsyncException?: Based on configured schedule, the given trigger will never fire.

What should the ideal time dealy we need to add so that we are sure that the job will be alwayed fired.


Thanks

Hi All,

 

I am trying to create a report  on opportunity object & one custom object

 

Custom objects 'custom_object' contains few stage names out of all opportunity stages.

 

To explain in SQL form, the query would be

 

Select * from opportunity where stageName in [select * from custom_object]

 

Opportunity & custom_object are not related.

 

Is it possible to have such report in salesforce reporting capability ?

 

Thanks in advance!

 

 

 

We want to list the package to app exchange for dreamforce but dont want to make it public yet.

We would like to keep it private.

 

Is this possible to do? if yes then what are the steps?

 

Thank you in advance!

 

 

 

Would anybody shed some light on the pros and cons of using Force.com licenses vs. Authenticated Sites licenses?

 

We need to decide the option for a site which has following major objectives

 

1. Custom UI

 

2. Collaboration (chatter)

 

2. Data Entry into custom objects

 

3. Standard SF reports

 

5. Business logic & rules implementation

 

Three different parties will have access to the site with their own internal  users.

 

What would be the best licence to use (or combination)?

 

Thanks,

Sourabh

We have a custom page that allows to associate a product to an opportunity.

Is it possible to restrict user to edit product using standard pages?

 

Thanks in advace!

How can the code in catch block be covered under test ?

 

public void someMethod()  

{

    try
    {
         some code...
    }
    catch(Exception e)
    {
        some code - how to get test coverage for this code ?

        throw e;
    }

}

 

Thanks in advance!

To populate test data in OpportunityHistory Object I tried following code

 

        date myDate = date.newInstance(1960, 2, 17);

        Opportunity oppInst = new Opportunity(Name = 'test opp',StageName = 'Prospecting',CloseDate = myDate);

        insert oppInst;

        

        oppInst.StageName = 'Qualification';

        update oppInst;

       

        List<OpportunityHistory> oppHist = [SELECT id from OpportunityHistory];

        System.debug(' test oppHist size : ' + oppHist );

 

This works when run as anonymous code , it works.

 

When I run it from within a test class it does not work...

 

Is there any way we can populate OpportunityHistory with test data ?

 

Thanks in advance!

 


We have a custom page that allows to associate a product to an opportunity.

Is it possible to restrict user to edit product using standard pages?

 

Thanks in advace!

To populate test data in OpportunityHistory Object I tried following code

 

        date myDate = date.newInstance(1960, 2, 17);

        Opportunity oppInst = new Opportunity(Name = 'test opp',StageName = 'Prospecting',CloseDate = myDate);

        insert oppInst;

        

        oppInst.StageName = 'Qualification';

        update oppInst;

       

        List<OpportunityHistory> oppHist = [SELECT id from OpportunityHistory];

        System.debug(' test oppHist size : ' + oppHist );

 

This works when run as anonymous code , it works.

 

When I run it from within a test class it does not work...

 

Is there any way we can populate OpportunityHistory with test data ?

 

Thanks in advance!

 


Hi All,

 

Has anyone been able to create a Visualforce Page that shows a table which has pagination (next and previous) and the ability to click a column name to sort? There seems to be lots of one or the other but not both at the same time.

 

I have created a table using the ApexPages.StandardSetController which has allowed me to do pagnination on the table but I can't seem to find a solution to sort by clicking the column name which works with the standardsetcontroller.

 

Any code examples or links to blogs that may help would be really appreciated.

Hi All,

 

I would like to be able to call the SF Metadata API from Apex code in my custom app.

 

I went to Setup/App Setup/Develop/API and clicked on 'Download Metadata WSDL' and saved it to my hard drive.

 

Then I went to Setup/App Setup/Develop/ApexClasses and clicked on the 'Generate from WSDL' button. For Step 1, I navigate to the Metadata WSDL that I just saved and click 'Parse WSDL.' This takes me to the Step 2 screen where I then click on the 'Generate Apex code' button.

 

This takes me to the Step 3 screen which shows this error:

 

<error>

Apex generation failed.

Error message:
Error: Class name 'Metadata' already in use. Please edit WSDL to remove repeated names

 

</error>

 

Does this error mean that what I am attempting to do is not allowed? If it is allowed, how do I get around this error.

 

Any help would be appreciated.

 

Thanks,

Andrew