• sam_mat
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 6
    Replies

Hi,

 

I studied Standard mail merge and Extended mail merge.

 

The mail merge button is on detail page of the record in Activity History related list.

 

Is not there any way to use mail merge button somewhere else?

 

Thanks

 

Hi,

 

I have a custom object on which i am writing "sharing rule based on criteria".

 

My question is,

 

in criteria i can see all fields of my custom object,

 

but i want to create a criteria based on parent object field of this custom object.

 

It is not showing parent object and its field to use in criteria.

 

Can i do that?

or is it a limitation?

 

Thanks,

Sam

Hi,

 

I have custom object CPS.

CPS object has 2 lookups.

One look up to Contact object.

And other to custom object called PS.

 

I have to create merge template for CPS object.

I am able to access CPS fields by specifying merge field as <<CPS_Name>>

 

But now i want to access field of Contact and PS object.

I tried different merge field formats like:

 

«CPS_Contact__r.LastName»

«CPS_Contact_LastName»

«CPS_Contact__r.LastName»

«CPS_Contact__r_LastName»

«CPS_Contact__r_LastName»

«CPS_Contact_LastName»

«CPS_Contact_LastName»

«CPS_Contact.LastName»



but they show blank lines in generated documents.

 

Also i tried Connect to office. But does not support MS office 2010 that i have on my windows 7 machine.

 

How to write merge fileds for parent object fields ?

What is the format?

 

Thanks,

Sam

Hi,

 

public void search(){
        try{

            if(tabName1 =='myTargets'){
                if(searchstr=='All')
                    myString = OnTargetUtil.generateMystring(display('Target','All'), OnTargetUtil.generateFieldList('TargetCentral'));

                else if(searchstr=='0-9')
                    myString = OnTargetUtil.generateMystring(display('Target','Numeric'), OnTargetUtil.generateFieldList('TargetCentral'));
                else
                    myString = OnTargetUtil.generateMystring(display('Target','Alphabetical'), OnTargetUtil.generateFieldList('TargetCentral'));
            }

 

When i run test class for above code,

I am getting wierd output.

Even though it shows code inside elseif and else is getting covered by highlighting it with blue,

but elseif and els are shown in red.

I tried using different indentations.

What could be the reason?

Hi,

 

I have a custom object on which i am writing "sharing rule based on criteria".

 

My question is,

 

in criteria i can see all fields of my custom object,

 

but i want to create a criteria based on parent object field of this custom object.

 

It is not showing parent object and its field to use in criteria.

 

Can i do that?

or is it a limitation?

 

Thanks,

Sam

Hi,

 

I have custom object CPS.

CPS object has 2 lookups.

One look up to Contact object.

And other to custom object called PS.

 

I have to create merge template for CPS object.

I am able to access CPS fields by specifying merge field as <<CPS_Name>>

 

But now i want to access field of Contact and PS object.

I tried different merge field formats like:

 

«CPS_Contact__r.LastName»

«CPS_Contact_LastName»

«CPS_Contact__r.LastName»

«CPS_Contact__r_LastName»

«CPS_Contact__r_LastName»

«CPS_Contact_LastName»

«CPS_Contact_LastName»

«CPS_Contact.LastName»



but they show blank lines in generated documents.

 

Also i tried Connect to office. But does not support MS office 2010 that i have on my windows 7 machine.

 

How to write merge fileds for parent object fields ?

What is the format?

 

Thanks,

Sam

I just updated a class to use the new URL class.  When I ran the test class and deployed it to production, it showed as 100% code coverage for ALL code in the IDE, although it should not have done, since it doesn't actually call all of my code.  However, in the Sandbox itself, the code coverage was way down, because it was counting blank lines and commented out code as not being covered!  So the same code is reported as 100% covered in the IDE and 83% in the sandbox from the Apex Classes link.

 

Has anyone else noticed this?  It appears to have happened today, since the summer 11 roll-out to production.  I did not have this issue when my sandbox was summer 11 and my production was spring 11, although I haven't deployed any code for a couple of weeks.

 

Salesforce, what's happening?

Hi,

Here's my situation. I'm working on an application in a developer organization. I've created an extra user for the end user of the application I've created so I can get feedback from the end user as I'm developing the application. I would like to write test cases with users that are created with DML as was recommend and demoed at dreamforce. The problem is that the developer organization has a limit of 2 user licenses. That's fine, so I thought I'll just delete the users in the test method and create new generic ones and at the end of the tests everything would roll back. Unfortunately I received the error that DML is not allowed on the user object. Is there anyway around this?

Thanks!
Scott