• Mj12
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 9
    Replies

hi,

 

just like to ask if am i missing some items when doing the changeset deployment?

im having an error in deploying a report having a bucketfield

 

thanks in advance,

mark

  • May 02, 2012
  • Like
  • 0

hi,

 

im overriding the view button of a standard campaign page.

vf page has no problems with accessing the records. but when a user having insufficient privileges on that record,

the message displays  "Data not available" instead of "insufficient privileges".

 

i really need your help with these..

 

thanks,

mj

  • February 27, 2012
  • Like
  • 0

hi

 

here's blocktable in my page:

----------------------------------------------------------------------------------------------------------------------------------------------------

      <apex:pageBlockTable id="CampaignHierarchyList" value="{!campaign}" var="ch" rendered="{!NOT(ISNULL(campaign))}" >
            <apex:column HeaderValue="Campaign Name" style="width:40%">
                <apex:outputLink title="" value="/{!ch.Camp.Id}">
                <apex:outputText value="{!ch.Camp.name}"/>
                </apex:outputLink>
            </apex:column>

            <apex:column HeaderValue="Federal Contacts" style="width:15%">
                <apex:outputField value="{!ch.fedCount}" />
            </apex:column>

            <apex:column HeaderValue="Federal Responses" style="width:15%">
                <apex:outputField value="{!ch.fedResponse}"/>
            </apex:column>
            
            <apex:column HeaderValue="Non-Federal Contacts" style="width:15%">
                <apex:outputField value="{!ch.NonfedCount}"/>
            </apex:column>

            <apex:column HeaderValue="Non-Federal Responses" style="width:15%">
                <apex:outputField value="{!ch.NonfedResponse}"/>
            </apex:column>
        </apex:pageBlockTable>

 

 

and my class for my pageblock:

-------------------------------------------------------------------------------------------------------------------------------------------------

public list<cCampaign> lCampaign;

 

public List<cCampaign> getcampaign(){        
    Campaign[] campParent = [Select Id, Name, NumberOfContacts, HierarchyNumberOfContacts, NumberOfResponses, HierarchyNumberOfResponses
                             from Campaign where id = :c.Id];        

        ChCmembers =  [Select Contact.Id from CampaignMember where Campaignid = :campParent[0].id];               
        for (CampaignMember cm : ChCmembers){
            ConHIds.add(cm.Contact.Id);
        }
        
        //get federal contacts ids
        for (Contact Con : [Select ID From Contact where Id in: ConHIds and Account.Federal_Account__c  = true]){
            FederalConIds.add(Con.Id);
        }
        
        //get non federal contacts ids
        for (Contact Con : [Select ID From Contact where Id in: ConHIds and Account.Federal_Account__c  = false]){
            NonFederalConIds.add(Con.Id);
        }


        Campaign[] campChild = [Select Id,Owner.UserRoleId from Campaign where Parent_Campaign_Name__c like: campParent[0].name];
        for (integer i = 0; i < campChild.size();i++){
            setUserRoleId.add(campChild[i].Owner.UserRoleId);                       
        }
        
        cCampaign x = new cCampaign(campParent[0]);
        x.sFederalConIds=FederalConIds;
        x.sNonFederalConIds=NonFederalConIds;
        lCampaign.add(x);                     
        
        CmParent.add(campParent[0].Id);
        CmParentName.add(campParent[0].Name);
       
        return lCampaign;    
}

    

public class cCampaign{
        public Campaign Camp{get;set;}
        public set<Id> sFederalConIds {get;set;}
        public set<Id> sNonFederalConIds {get;set;}
        public integer fedCount {get;set;}        
        public integer fedResponse {get;set;}        
        public integer NonfedCount {get;set;}        
        public integer NonfedResponse {get;set;}        

        public cCampaign(Campaign c){
            Camp = c;
            fedCount = [Select count() From Contact where Id in: sFederalConIds and Account.Federal_Account__c  = true];
            fedResponse = [Select count() from CampaignMember where Contact.Id in: sFederalConIds  and HasResponded = true and Campaignid=:c.id];
            NonfedCount = [Select count() From Contact where Id in: sNonFederalConIds and Account.Federal_Account__c  = false];
            NonfedResponse = [Select count() from CampaignMember where Contact.Id in: sNonFederalConIds  and HasResponded = true and Campaignid=:c.id];
        }
    
}

  • February 17, 2012
  • Like
  • 0

hi ,

 

is it possible to replace the existing campaign members listing below the tab?

my requirement is for a role to see the campaign members record which he/she is only allowed to view.

 

i already did it with the campaign members related list withing the campaign page by creating a custom related list using vsforce page.

 

im planning to do the same when going to the list of existing campaign members (whether i click the "Go to list(x)" or by clicking manage member's "Edit members-search").but i cant seem to find the page for that. and i dont know how complex  i would be. i only have 3 days left to finish this

 

thanks in advance!

 

mj12

 

  • February 13, 2012
  • Like
  • 0

hi

 

is it possible to add a visualforce page in CampaignManageMembersExistingTab?

i wanted to replace and mimic the listings of the campaign member based on my requirement .

 

thanks,

 

mj

 

 

  • February 10, 2012
  • Like
  • 0
hi,

 

 

im trying to create my own custom campaign member related fields having the same exact output the campaign members related lists have.

 

here's my vs code:

--------------------------------------------------​--------------------------------------------------​----------------------------------------

<apex:page standardController="Campaign" extensions="CustomCampaignMemberCon">
<style>
    .fewerMore { display: none;}
</style>

 

<apex:form Id="frmCampaignmember" rendered="True">
    <apex:pageMessages />
    <apex:detail relatedList="true"></apex:detail>

    <apex:pageblock id="CustomList" title="Campaign Members">
        <apex:pageBlockTable Id="CampaignMemberList" value="{!Cmember}" var="cm" rendered="{!NOT(ISNULL(Cmember))}"  >       
 
            <apex:column HeaderValue="Action">      
                <apex:outputLink title=""
                    value="/{!cm.id}/e?retURL=/apex/{!$CurrentPage.Name}?id={!$CurrentPage.parameters.Id}"
                    style="color:#2E64FE">Edit
                </apex:outputLink>&nbsp;|&nbsp;
                <a href= "javascript&colon;if (window.confirm('Are you sure {!$CurrentPage.parameters.Id}?')) DeleteCampaignMember('{!cm.Id}');"
                 style="color:#2E64FE">Remove</a>    
            </apex:column>
 
            <apex:column value="{!cm.Status}"/>      
 
            <apex:column HeaderValue="First Name: User-{!$User.Id}">
                <apex:outputLink title="" value="/{!cm.Id}">
                <apex:outputText value="{!cm.Contact.FirstName}"/>
                </apex:outputLink>
            </apex:column>
           
            <apex:column HeaderValue="Last Name">
                <apex:outputLink title="" value="/{!cm.Id}">
                <apex:outputText value="{!cm.Contact.LastName}"/>
                </apex:outputLink>
             </apex:column>
            
            <apex:column value="{!cm.Contact.Title}"/>                  
            <apex:column value="{!cm.CreatedDate}"/>                              

        </apex:pageBlockTable>  

 

        <apex:outputLabel value="No records to display testing" rendered="{!(ISNULL(Cmember))}" styleClass="noRowsHeader"></apex:outputLabel>
   
    </apex:pageblock>

    <apex:actionFunction action="{!DeleteCampaignMember}" name="DeleteCampaignMember" reRender="frmCampaignmember" >  
        <apex:param name="campaignmemberid" value="" assignTo="{!SelectedCMId}"/>
    </apex:actionFunction>

</apex:form>

</apex:page>

 

 

 

here's my class:

--------------------------------------------------​--------------------------------------------------​----------------------------------------

public class CustomCampaignMemberCon {
    private List<CampaignMember> Cmember;
    private Campaign C;    

    public string SelectedCMId  {get;set;}

    public CustomCampaignMemberCon(ApexPages.StandardController controller)
    {this.C = (Campaign)controller.getRecord();}   

    //Listing of members   
    public List<CampaignMember> getCmember()   
    {       
        Campaign[] camp = [Select Id FROM Campaign where id = :C.id];       
        if (Camp.size() > 0)        
        {
            //return null;       
            Cmember= [Select Id,Status
                            ,Contact.FirstName
                            ,Contact.LastName
                            ,Contact.Title
                            ,CreatedDate
                      from CampaignMember where Campaignid = :Camp[0].id];       

            return Cmember;   
        }
        else
        {return null;}
           
    }

    //Deletion of members
    public void DeleteCampaignMember()  
    {     
        // if for any reason we are missing the reference      
        if (SelectedCMId == null)
        {return;}          
       
        // find the account record within the collection     
        CampaignMember tobeDeleted = null;     
        for(CampaignMember cm : Cmember)      

            if (cm.Id == SelectedCMId  )
            {         
                tobeDeleted = cm;         
                break;      
            }           
            if (tobeDeleted != null)
            {Delete tobeDeleted;}          
     }

       
}

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------

im having a hard time recreating this functionality Show 5 more » | Go to list (14) »

 

 

thanks in advance,

mj12

  • February 03, 2012
  • Like
  • 0

hi,

 

i have two different profiles with the same field level security setting.

CreatedDate,CreatedbyID,LastModifiedDate and LastmodifiedbyID are both checked as visible and read only.

but when each doing the data loader, one profile unable to see these four fields when mapping.

 

  • January 20, 2012
  • Like
  • 0

I wan't to deploy my app to the production but the deployment connection link under APP SET UP / Deploy  is missing

 

 

APP Setup

> Create

> Develop

> Deploy

      - Monitor Deployments

      - (Development Connection) - missing

      - (Outbound Change Sets)  - missing

      - (Inbound Change Sets) - missing

 

Is it because im using trial version?

Is it posible to deploy my apps in a sandbox to the production?

 

Any help be will greatly appreciated.

 

Thanks in advance.

 

  • January 19, 2012
  • Like
  • 0

Hi,

 

Is it possible to follow people not just their profile, but also what changes they made to the campaign record(same thing when you follow a specific record)?

 

thanks,

markpogi

  • January 13, 2012
  • Like
  • 0

hi,

 

is there a workaround on a chatter to follow the object where i can track what record is being updated?

 

from what i read, you can only follow a profile, records and a chatter group.  i appreciate if you can share a way to track the object.

 

 

thanks in advance!

 

markpogi

 

  • January 11, 2012
  • Like
  • 0

hi,

 

my client wants to have a weekly email that displays the list of records being updated(only) to keep track of what record is being updated.

 

my initial plan is to do it in workflow rule but i learned that there are some limitations(time-dependent functionality is only used when record is created only ONCE)

 

im thinking of using a chatter. is it possible?

 

 

thanks in advance,

 

markpogi

  • January 10, 2012
  • Like
  • 0

Hi ,

 

Is there a way to generate a report while having a blank field reference value?

 

i really need to display the report regardless if some of the referrence field has value or not.

the problem is that, records that has a blank reference value will not be displayed in report.

 

 

 

Thanks in advance,

 

markpogi

  • January 09, 2012
  • Like
  • 0

Good day,

 

Is there a way to handle a text area field having a new line when using a data loader?

 

i did try other alternatives such as replacing the new line using the tab. but when loaded into the salesforce,

the value displayed in one line (which is not good to looked at)  instead of having a new line.

 

Any idea is appreciated.

 

Thanks in advance,

 

markpogiako

  • December 19, 2011
  • Like
  • 0

hi,

 

are there any chances that we must use the sObject syntax instead of just instantiating an object?

(ex. Account a;)

 

it would be a great help if you can provide a scenario. i had just read the use of sObject recently and i still cant

get it. im just sure that using this will provide a better code in apex.

 

 

Thanks in advance,

 

mjpogiako

  • December 14, 2011
  • Like
  • 0

need help guys. when i go to setup and page layout i wanted to make the contact firstname required but what i only see the name.

and when im displaying the contact, it displays salutation,first name and last name(which has a red bar by default).

 

i cant provide a red bar to the firstname.

 

 

  • December 05, 2011
  • Like
  • 0

Hi,

 

Is it possible to follow people not just their profile, but also what changes they made to the campaign record(same thing when you follow a specific record)?

 

thanks,

markpogi

  • January 13, 2012
  • Like
  • 0

hi,

 

my client wants to have a weekly email that displays the list of records being updated(only) to keep track of what record is being updated.

 

my initial plan is to do it in workflow rule but i learned that there are some limitations(time-dependent functionality is only used when record is created only ONCE)

 

im thinking of using a chatter. is it possible?

 

 

thanks in advance,

 

markpogi

  • January 10, 2012
  • Like
  • 0

Hi ,

 

Is there a way to generate a report while having a blank field reference value?

 

i really need to display the report regardless if some of the referrence field has value or not.

the problem is that, records that has a blank reference value will not be displayed in report.

 

 

 

Thanks in advance,

 

markpogi

  • January 09, 2012
  • Like
  • 0

Good day,

 

Is there a way to handle a text area field having a new line when using a data loader?

 

i did try other alternatives such as replacing the new line using the tab. but when loaded into the salesforce,

the value displayed in one line (which is not good to looked at)  instead of having a new line.

 

Any idea is appreciated.

 

Thanks in advance,

 

markpogiako

  • December 19, 2011
  • Like
  • 0

need help guys. when i go to setup and page layout i wanted to make the contact firstname required but what i only see the name.

and when im displaying the contact, it displays salutation,first name and last name(which has a red bar by default).

 

i cant provide a red bar to the firstname.

 

 

  • December 05, 2011
  • Like
  • 0