• anitha12
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 10
    Replies
Hi All.

When I am including a reeport in  Iframe I am getting this error:

Refused to display 'https://ap1.salesforce.com/00O90000007bVAv?isdtp=mn' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

can wny one pls help me very urgent.

Thanks in Advance.
Anitha
Hi I have created a standard report and created a vf page filter. when I am combining both, with pagerefrence it is redirecting to the stanrd report.But it should get filtered with in the Vf page. can any one pls help me urgent.

MY Controller:
public class Newfcntrl{
    public string locid{get;set;}
    public map<Id,String> locmap= new map<Id,String>();
   
    public List<SelectOption> getAvailableLocations() {
        List<SelectOption> Opts = new List<SelectOption>();
        for (Location__c  l : [Select Id, Name From Location__c limit 1000]){
            Opts.add(new SelectOption(l.Id, l.Name));
            locmap.put(l.Id, l.Name);
        }
        return Opts;
    }

    public pagereference showrep(){
        pagereference p = new pagereference('/00O90000007mGeE?pv0='+ locmap.get(locid));
        system.debug('p-----'+p);
        p.setRedirect(true);
        return p;
    }

}


My page:

<apex:page controller="Newfcntrl" sidebar="false" showHeader="false">
<apex:form id="theForm">
<apex:actionFunction name="testAF" action="{!showrep}" rerender="panid"/>
Location :<apex:selectList value="{!locid}" multiselect="false" size="1" onChange="testAF();">
            <apex:selectOptions value="{!AvailableLocations}" />
            </apex:selectList>
            <apex:outputPanel id="panid">
           <analytics:reportChart reportId="00O90000007mGeE"></analytics:reportChart>
           </apex:outputPanel>
</apex:form>
</apex:page>

Hi All,

In VF page I have created a picklist(filter). with the selection of picklist value I need to display particular report with that filtering.

Can any one pls help me.Its very urgent.


Thanks.
Hi All,

In VF page I have created a picklist(filter). with the selection of picklist value I need to display particular report with that filtering.

Can any one pls help me.Its very urgent.


Thanks.
Hi All,

Actually I have 10 reports. need to put it in a picklist. When I select a report for picklist it must be go to partcular reprtpage. can any one pls help me.



Thanks,
anitha.
Hi,

How can I write wrapper class for Commynity and SFDC.


Thanks,
Anitha.
Hi,

I am new to Jquery. Can any one pls help me how to write code for getting popup window and for closing popup.



Thanks,
Anitha
Hi,

I am using Acttion attribute in a page tag. How can I refresh My page with action attribute.Anyone pls help me.
this is my code:

public class RF_Request_DependentPicklistcontroller {

   public Id cobj {get;set;}
   public boolean popup {get;set;}
   public Id ruleId;
   public string ruleName{get;set;}
   public Cerner_Application_Change_Request__c request{get;set;}
   
//Constructor
public RF_Request_DependentPicklistcontroller(ApexPages.StandardController controller) {
    cobj = controller.getRecord().id;
    if(cobj  != null){
        request= [Select ACI_Staff_Assignee__c,Status__c,name,id,FKLOOKUP_Cerner_App_Rules__c from Cerner_Application_Change_Request__c where id =:cobj];
        ruleId = request.FKLOOKUP_Cerner_App_Rules__c ;
        if(ruleId  != null){
            ruleName = [select id,name from Cerner_Application_Change_Request_Rules__c where id=:ruleId limit 1].name;
            system.debug('ruleName ----'+ruleName );
        }
    }
}  
      
// for updating status based on Staff   
public void statusCheck(){
    Id loggeduserId = UserInfo.getUserid();
    system.debug('loggeduserId '+loggeduserId +'--request.Status__c--'+request.Status__c+'--request.ACI_Staff_Assignee__c--'+request.ACI_Staff_Assignee__c);
    system.debug('Request before update:'+request);
    if(request.Status__c == 'Pending ACI Review'){
        if(request.ACI_Staff_Assignee__c != null){
          if(loggeduserId == request.ACI_Staff_Assignee__c )
             request.status__c = 'ACI Review In Progress';  
        
    try{
         system.debug('Request after update:'+request);
         update request;
    }
   catch(DMLException e){
       system.debug('Exception while Updating Request with new rule'+e);
   }  
   
    }
    }   

}
 
}

Page:
<apex:page action="{!statusCheck}" standardController="Cerner_Application_Change_Request__c" extensions="RF_Request_DependentPicklistcontroller" sidebar="false" id="pageid" showHeader="false" rendered="true">
<script>
var newWin = null ;
function PopUpWin(url, width, height) {
    var leftPosition, topPosition;
    //Allow for borders.
    leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
    //Allow for title and status bars.
    topPosition = (window.screen.height / 2) - ((height / 2) + 50);
    //Open the window.
    newWin = window.open(url, "Window2",
    "status=no,height=" + height + ",width=" + width + ",resizable=yes,left="
    + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY="
    + topPosition + ",toolbar=no,menubar=no,scrollbars=yes,location=no,directories=no");
    newWin.focus();
}
function openUserPopup(objid){
    var url="/apex/RF_Request_Dependentpopuppage?&objectId="+objid;
    PopUpWin(url, 420, 230);
}


function refresh(objid){
    alert('TEST Parent:'+objid);
    window.top.location ='/'+objid;
   
}


</script>
<apex:form id="formid">
    <apex:panelGrid columns="2">
        <apex:outputPanel >
            <span><font color="#4A4A56"><b>Cerner Application Change Request</b></font></span><br/>
            <span style="float:right"><font color="#4A4A56"><b>Rule</b></font></span>
        </apex:outputPanel>
        <apex:outputPanel style="padding-left:25%">
        <apex:commandlink onclick="openUserPopup('{!cobj }');">
            <apex:outputText value="{!ruleName}"/>
        </apex:commandlink>
        </apex:outputPanel>
    </apex:panelGrid>         
</apex:form>
</apex:page>
Hi I need to import data from server log files to salesforce. Plaes help me/




Thanks,
Anitha.

Hi All

 

How to display users, under perticular user I want to display related accounts & contacts (without commandlinks)

 

Example:

 

UserName:YYYYYYYY

 

Accountname   accountnumber  phone   etc(i.e account details)

 

Contact:  xxxxxxxx

 

 

Thanks &Regards

Anitha

Hi All

 

     how to display the Standard and Custom Reports in VF Page 

 

 

 

 

 

 

 

Thanks & Regards 

Anitha

Hi,

 

Actually I am displaying some records in visual force page and i am taken command link for name field. If we click on any one of name that would be displyed with the records in editable mode in popup window. After displaying the popup window previous records table should become blur. if we edit that records in popup window after click on saved, popup window would be closed and previous table should be in active mode.. please any one help me how to display the records in popup window with editable mode and how make the previous table blur.   

 

 

thank you,

Anitha

Hi All.

When I am including a reeport in  Iframe I am getting this error:

Refused to display 'https://ap1.salesforce.com/00O90000007bVAv?isdtp=mn' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

can wny one pls help me very urgent.

Thanks in Advance.
Anitha
Hi,

I am new to Jquery. Can any one pls help me how to write code for getting popup window and for closing popup.



Thanks,
Anitha
Hi,

I am using Acttion attribute in a page tag. How can I refresh My page with action attribute.Anyone pls help me.
this is my code:

public class RF_Request_DependentPicklistcontroller {

   public Id cobj {get;set;}
   public boolean popup {get;set;}
   public Id ruleId;
   public string ruleName{get;set;}
   public Cerner_Application_Change_Request__c request{get;set;}
   
//Constructor
public RF_Request_DependentPicklistcontroller(ApexPages.StandardController controller) {
    cobj = controller.getRecord().id;
    if(cobj  != null){
        request= [Select ACI_Staff_Assignee__c,Status__c,name,id,FKLOOKUP_Cerner_App_Rules__c from Cerner_Application_Change_Request__c where id =:cobj];
        ruleId = request.FKLOOKUP_Cerner_App_Rules__c ;
        if(ruleId  != null){
            ruleName = [select id,name from Cerner_Application_Change_Request_Rules__c where id=:ruleId limit 1].name;
            system.debug('ruleName ----'+ruleName );
        }
    }
}  
      
// for updating status based on Staff   
public void statusCheck(){
    Id loggeduserId = UserInfo.getUserid();
    system.debug('loggeduserId '+loggeduserId +'--request.Status__c--'+request.Status__c+'--request.ACI_Staff_Assignee__c--'+request.ACI_Staff_Assignee__c);
    system.debug('Request before update:'+request);
    if(request.Status__c == 'Pending ACI Review'){
        if(request.ACI_Staff_Assignee__c != null){
          if(loggeduserId == request.ACI_Staff_Assignee__c )
             request.status__c = 'ACI Review In Progress';  
        
    try{
         system.debug('Request after update:'+request);
         update request;
    }
   catch(DMLException e){
       system.debug('Exception while Updating Request with new rule'+e);
   }  
   
    }
    }   

}
 
}

Page:
<apex:page action="{!statusCheck}" standardController="Cerner_Application_Change_Request__c" extensions="RF_Request_DependentPicklistcontroller" sidebar="false" id="pageid" showHeader="false" rendered="true">
<script>
var newWin = null ;
function PopUpWin(url, width, height) {
    var leftPosition, topPosition;
    //Allow for borders.
    leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
    //Allow for title and status bars.
    topPosition = (window.screen.height / 2) - ((height / 2) + 50);
    //Open the window.
    newWin = window.open(url, "Window2",
    "status=no,height=" + height + ",width=" + width + ",resizable=yes,left="
    + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY="
    + topPosition + ",toolbar=no,menubar=no,scrollbars=yes,location=no,directories=no");
    newWin.focus();
}
function openUserPopup(objid){
    var url="/apex/RF_Request_Dependentpopuppage?&objectId="+objid;
    PopUpWin(url, 420, 230);
}


function refresh(objid){
    alert('TEST Parent:'+objid);
    window.top.location ='/'+objid;
   
}


</script>
<apex:form id="formid">
    <apex:panelGrid columns="2">
        <apex:outputPanel >
            <span><font color="#4A4A56"><b>Cerner Application Change Request</b></font></span><br/>
            <span style="float:right"><font color="#4A4A56"><b>Rule</b></font></span>
        </apex:outputPanel>
        <apex:outputPanel style="padding-left:25%">
        <apex:commandlink onclick="openUserPopup('{!cobj }');">
            <apex:outputText value="{!ruleName}"/>
        </apex:commandlink>
        </apex:outputPanel>
    </apex:panelGrid>         
</apex:form>
</apex:page>
Hi I need to import data from server log files to salesforce. Plaes help me/




Thanks,
Anitha.

Its painful trying to use the standard reporting.  Something as easy as sorting a summary report by the totals metric is just not possible.

 

I have heard some people say you can use Apex/VF to create more flexible reporting but I have never seen an example and I'm not even sure if that is accurate.

 

Does anyone have any sample reporting that was builty using apex/vf ? 

 

Thanks!!

 

Fred

Hi All

 

How to display users, under perticular user I want to display related accounts & contacts (without commandlinks)

 

Example:

 

UserName:YYYYYYYY

 

Accountname   accountnumber  phone   etc(i.e account details)

 

Contact:  xxxxxxxx

 

 

Thanks &Regards

Anitha

Hi All

 

     how to display the Standard and Custom Reports in VF Page 

 

 

 

 

 

 

 

Thanks & Regards 

Anitha

Hi,

 

Actually I am displaying some records in visual force page and i am taken command link for name field. If we click on any one of name that would be displyed with the records in editable mode in popup window. After displaying the popup window previous records table should become blur. if we edit that records in popup window after click on saved, popup window would be closed and previous table should be in active mode.. please any one help me how to display the records in popup window with editable mode and how make the previous table blur.   

 

 

thank you,

Anitha