• rohitr
  • NEWBIE
  • 69 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 4
    Likes Received
  • 0
    Likes Given
  • 41
    Questions
  • 41
    Replies
Can anyone tell me how to show "/home/home.jsp" inside an iframe in visualforce?
I tried
<apex:iframe height="800px" id="theIframe" src="/home/home.jsp" width="100%" frameborder="true"/>
The above iframe gives me a blank iframe.
But if u use
<apex:iframe height="800px" id="theIframe" src="/apex/SomeVisualforcePage" width="100%" frameborder="true"/>
i can see the visualforce paqe inside the current page.

Any browser settings or Salesforce settings need to be changed?

Any help would be appreciated.
Thanks in Advance.
Is there any custom account merge app code avaiable? I can't use any dupe finder apps from appexchange? Did someone already done this with dearch for accounts based on field filters and merge rules?

If then please share..

Thanks in Advance
My Controller Code:
global with sharing class CustomHighlightsPanelController {

    public Account accountInstance;
    global static String accountName {get; set;}
    global static String primeTabValue {get; set;}

    public CustomHighlightsPanelController(ApexPages.StandardController controller) {
        accountInstance = (Account)controller.getRecord();
        accountName = accountInstance.Id;
        System.debug('_______##############______'+accountName);
    }
    public PageReference FetchTabId() {
        return null;
    }
   
    @RemoteAction
    global static Premium_Payment__c[] loadPremiumPaidRecs() {
        List<Premium_Payment__c> premiumPaymentList = new List<Premium_Payment__c>();
        premiumPaymentList = [SELECT Id, Customer_Name__c, Paid_Premium__c, Policy__c, Premium_Paid_Date__c,Premium_Paid_Month_Year__c
                                FROM Premium_Payment__c WHERE Customer_Name__c =: accountName];
        return premiumPaymentList;
       
    }

}


accountName inside the SOQL query is getting null. but the variable accountName in the system.debug line gives a value.
How can i pass the contructor variable to the global static method which is defined as @RemoteAction.
Hi,
I have few custom components at the bottom of the console screen. I've created custom console components from Customize>Console>Custom Console Components. 

What I need is,  on the console screen hovering over the images for the custom console components a tooltip should be displayed. I know we can have a text along the image. But how to show a tooltip. While creating a component there is a field "Button CSS". Do i need to put something here? If then what?

Thanks in advance,
RR
My inline Visualforce page doesn't load.
In page layout the vf page is available in edit and detail layout. But in either case the VF page doesn't appear.
Am using a custom object as a standard controller in the VF page.

Can someone let me know what the issue is?
I Installed the CTI demo adapter version 4.03 from salesforce.com and also setup the callcenter in the org by importing the xml file.
On Clicking the "Connect CTI Adapter" button, nothing happens.


Can someone let me know whats is happening here.

Thanks In Advance

I've a trigger on Event which is fired on insert and update. The trigger updates couple of fields on contact based on event record.

For eg. 

There is a field Number of events, latest event.

 

I was trying to update the historical records too for which i updated a field on event. (this field is just to inititate the update and hence the trigger).

 

But I found that when i update all the event records, it just doesn't update fields on contact, but i see the field is updated on event records.

 

What is happening. Any clues?

Number Event records :1018

Data loader batch size: 200

Bulk API: unchecked.

 

Thanks in Advance

I have the requirement  create a trigger on Attachment object, when i add new attachment ,check the attchment alredy aded or not?

 

i write like this ,please suggest me, is it correct or not?

 

 

trigger dntAddDuplicateAttchmnt on Attachment (before insert) {
if(trigger.isBefore){
for(Attachment atch:Trigger.new){
String parentID=atch.ParentId;
String atchName=atch.Name;
List<Attachment> listatch=[SELECT Name,ParentId FROM Attachment];
if(parentID==trigger.oldmap.get(parentID).ParentId && atchName==trigger.oldmap.get(parentID).Name){
atch.addError(' This file already having with same name in your attachmntes');
}
else if{
for(Attachment at:listatch){
if(at.Name==atchName && at.ParentId==parentID){
atch.addError('This file already having with same name in your attachmntes');
}
}
}

}
}

}

Please help me...

 

I have 20 E-mail fields named Email1__c, Email2__c, Email3__c,.....Email20__c.

What I want to do is loop thorugh these fields and input value.

 

Hereis my code.

Alerts__c alerts =new Alerts__c();
for(integer j=1;j==MailList.size();j++){
  String iStr = String.Valueof(j);
  String fieldname='Email'+iStr+'__c';
  alerts.get(fieldname)='test@test.com';
}

 But the following error occured.

 Expression cannot be assigned 

 

Please tell me how to solve this problem...

 

Thanks in advance for your help.

 

Anna

 

Hi All,

 

 

I want to pre populate values of master record information in to my while clicking new btn in Related list?How to do this explain with one example?pls help me...Urgent

 

 

 

Thanks,

 

 

Vicky

Hi,

 

Are the user id's same in sandbox and prod??

 

Thanks

Hi All,

 

Please let me know how to pass a variable defined in a method inside a controller to the VF page.

 

@RemoteAction
global static AggregateResult[] loadOpportunity() {
	closingToday = 0;
	Date mydate = System.today();
        	Date mydate1 = System.today().addDays(-45);
        	Date mydate2 = System.today().addDays(45);
    	List<AggregateResult> OppList = new List<AggregateResult>();
        	OppList = [SELECT StageName, CloseDate, Sum(Amount) amountSum FROM Opportunity WHERE   OwnerId =: OwnerId AND StageName =: StageList 
                             AND CloseDate >: myDate1 AND CloseDate <: myDate2  GROUP BY StageName, CloseDate];
            for(AggregateResult opp :OppList) {
           		if(opp.get('CloseDate') = myDate) {
                        	closingToday = closingToday +1;
            	}
	}
}

 I want to use this closingToday variable to use on the VF page.

 

<p> Numner of Opportunity Closing Today is: {!ClosingToday}</p>

 

 

 

How can i declare this variable in the controller?

 

I'm using google charting for which @RemoteAction annotation is used.

 

 

Any help would be appreciated.

Thanks in Advance

Hi there,

 

I have added a custom console component to our Service Cloud console but what I'm trying to do is that when I click on the button to launch the component, I want to run a method in my controller that my visualforce page is calling. This component is made up of page that provides a quick view into our support team's cases queue, and a controller with methods that rerun the query to get a realtime view of the cases in the queue.

 

My question is, how do I get at the onclick event for this button? I have searched around for answers but so far I have been unable to find any. My goal is to use this console component as a quick view into our support teams cases queue so that wherever they are in the console (in a case, contact, organisation record, etc..) when they click on this component it will automatically refresh the view of the support cases that I'm displaying in this component.

 

So far I have only been able to get as far as adding some output text to my page and firing this refresh using the onlclick and onmouseover event. This isn't ideal for our team's requirements so ideally when they click on this component I would like to be able to fire the refresh then?

 

Any ideas on this please?

 

All help is greatly appreciated as always!

 

Thanks so much in advance to anyone taking the time to read this and offer assistance.

 

Kindest Regards,

 

Brian.

Hi,

 

I've created a VF page where i'm suing google charts API.

 

Source of my information :http://developer.force.com/cookbook/recipe/easy-visualforce-charts-with-javascript-remoting--google-charts-api

 

Is it possible to have 2 charts on the same page?

 

Thanks in Advance,

Rohit

how can we check the debug logs of guest users