• veeru417
  • NEWBIE
  • 30 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 21
    Replies
We have created a page which we used to display a dashboard on home page component.Whenever we click on that dashboard it will open related report.Earlier it used to work now it's not working.Below is the VF code.Attached a screenshot for the error which I see when I do inspect element.Can some one help me what's the issue.
User-added image
 
<apex:page showHeader="false" sidebar="false">
    <apex:outputPanel >
         <script>
              location.href="/01Zd0000000m6TR?isdtp=vw";
         </script>
     </apex:outputPanel>
</apex:page>


 

Hello All,

 

Can any one help me how to do this?

 

Need to capture the time at which the NEW button was clicked. 
Need to capture the time at which SAVE button was clicked. Write a custom script for the SAVE button to calculate the difference between time taken to click NEW and SAVE.

 

Thanks in advance.

 

 

Hello all,

 

I have an object,  on that there is a button called new when we click on the button it will open create page and when we save the record it will save the new button clicked time in the field available on the object.

How to achieve this can any one help me with this.

 

Thanks in Advance.

 

 

Hello all,

 

I want to migrate account records alongwith its chatter feed from one org to another org .how can i achive this.

The main problem in this is when a chatter feed is related to any account it is refered by its chhater id in the  account,but when we move data from one org to another org this chatter feed is saved with new ID .So in new org the account cannot find its feeds because the reference id is changed.How to overcome this problem can any one suggest me some solution .

 

 

THanks in advance.

 

Regards,

Veer

Hi every one ,

 

I have started working my first testclass,This class containing wrapper class (innerclass).I tried to write the test class but some part of code is not covered.I am posting my class n testclass can any one help me pls

 

Below is my Original Class

 

In the below class the parts of code not covered are

//Parts of code not covered in Testcoverage 
 public List<TestCaseLogsClass> gettestlog12(){
      return TestCaseLogsClassList;
  }

//this part of code is for rendering table in VF page
public boolean getIsRender(){
                if(TestCaseLogsClassList.size()>0){
                isRender = true;
        }
        else{
                isRender = false;
        }
//This is in wrapper class deleteTestCaseLog()
for(Integer deleteSpecifier=0;deleteSpecifier<TestCaseLogsClassList.size();deleteSpecifier++){
            	if(delcsDetId == TestCaseLogsClassList[deleteSpecifier].deleteID){
                	TestCaseLogsClassList.remove(deleteSpecifier);
                     break;
                }

 

 

//Class
public with sharing class TestClass { public boolean isRender = false; public integer deleteSpecifier=0; public Test_Case_Log__c testLog{get;set;} public List<TestCaseLogsClass> gettestlog12(){ return TestCaseLogsClassList; } public List<Test_Case_Log__c> testCaseLogList = new List<Test_Case_Log__c>(); public TestClass(ApexPages.StandardController controller) { testLog = (Test_Case_Log__c)Controller.getRecord(); } public boolean getIsRender(){ if(TestCaseLogsClassList.size()>0){ isRender = true; } else{ isRender = false; } return isRender; } public void add(){ deleteSpecifier = deleteSpecifier+1; TestCaseLogsClassList.add(new TestCaseLogsClass(testLog,deleteSpecifier)); testLog = new Test_Case_Log__c(); } public pagereference save1(){ for(Integer i=0;i<TestCaseLogsClassList.size();i++){ testCaseLogList.add(TestCaseLogsClassList[i].objTestCaseLog); } if(testCaseLogList.size()>0){ insert testCaseLogList; PageReference pageRef = new PageReference('/a02/o'); return pageRef; } return null; } public void deleteTestCaseLog(){ Integer delcsDetId = Integer.valueOf(System.currentPageReference().getParameters().get('delcsDetId')); for(Integer deleteSpecifier=0;deleteSpecifier<TestCaseLogsClassList.size();deleteSpecifier++){ if(delcsDetId == TestCaseLogsClassList[deleteSpecifier].deleteID){ TestCaseLogsClassList.remove(deleteSpecifier); break; } } } public List<TestCaseLogsClass> TestCaseLogsClassList = new List<TestCaseLogsClass>(); public class TestCaseLogsClass { public Test_Case_Log__c objTestCaseLog{get;set;} public Integer deleteID{get;set;} public TestCaseLogsClass(Test_Case_Log__c objTestCaseLog1,Integer deleteID1){ deleteID = deleteID1; objTestCaseLog = objTestCaseLog1; } } }

 

This is my TestClass for above class

@isTest
private class TestClassTest {

    static testMethod void myUnitTest() {
    	
    	Test_Cases__c testTestcases=new Test_Cases__c(name='testcase1');
    	insert testTestcases;
    	ApexPages.StandardController sc1 = new ApexPages.StandardController(new Test_Case_Log__c());
    	TestClass test1=new Testclass(sc1);
    	test1.save1();
    	ApexPages.StandardController sc = new ApexPages.StandardController(new Test_Case_Log__c(Test_Cases__c=testTestcases.ID));
    	TestClass test=new Testclass(sc);
    	
    	test.add();
    	test.save1();
    	test.deleteTestCaseLog();
    	test.gettestlog12();
    	test.isRender=true;
    	test.getIsRender();
    	test.isRender=false;
    	test.getIsRender();
    	
    	
    	
    	
        
    }
}

 Thanks in advance

 

 

Regards,

Veeru

 

hi everyone,

 

can any one help me sending an email using trigger when a new record is inserted.

 

 

Thanks in advance.
 
 
 
Regards,
Veeru

Hello every one i want to implement a fucntionality like shoping cart.In this there is a form to fill details,after filling we need to press add ,when we press add the details in form should added to  pageblock table one by one but the records are not commited until we press save button.

In this i have completed adding to pageblock table but facing the problem when saving records can any one help me pls

i am attching my code too

visual force code :

<apex:page standardController="Test_Case_Log__c" extensions="TestClass"  >
    <apex:form id="form">
        <apex:pageMessages />
        <apex:pageBlock >
           <apex:pageBlockButtons >   
                <apex:commandButton value="save" action="{!save1}"  rerender="pbtable"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="Information" id="psi" >
                <apex:inputField value="{!testlog.Developer__c}" />
                <apex:inputfield value="{!testlog.name}"  />
                <apex:inputField value="{!testlog.Priority__c}" />
                <apex:inputField value="{!testlog.Test_Cases__c}" />
                <apex:inputField value="{!testlog.Tester__c}" />
                <apex:inputField value="{!testlog.Test_Scenario__c}"  />
            </apex:pageBlockSection>   
            <apex:pageBlockSection title="Description" id="psd">
                <apex:inputField value="{!testlog.Expected_Result__c}" />
                <apex:inputField value="{!testlog.Test_Case_Notes__c}" />
            </apex:pageBlockSection>        
            <apex:pageBlockTable value="{!testlog1}" var="a" id="pbtable"  >
                <apex:column value="{!a.Priority__c}" headerValue="Priority"/>
                <apex:column value="{!a.Developer__c}" headerValue="Developer"/>
                <apex:column value="{!a.Test_Cases__c}" headerValue="Expected_Result"/>
                <apex:column value="{!a.Test_Scenario__c}" headerValue="testscenario"/>
            </apex:pageBlockTable>
            <apex:commandButton action="{!add}" value="add" rerender="form"/>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

public with sharing class TestClass {
    public TestClass(ApexPages.StandardController controller) {
    testlog = (Test_Case_Log__c)Controller.getRecord();
        }
   
   public list<Test_Case_Log__c> tdt = new list<Test_Case_Log__c>();
   public  list<Test_Case_Log__c> gettestlog1(){
        return tdt;
   }  
   public Test_Case_Log__c testlog{set;get;}
    
    
    public void add(){
        tdt.add(testlog);
        testlog =new Test_Case_Log__c();
       
        
    }
    public pagereference save1(){
        
       
        insert tdt;
      
       PageReference pageRef = new PageReference('/apex/testpage');
        return pageRef;
    }
}

 Thank you

 


Hi,

  i am getting the following error while generating a class from wsdl,

 

Apex Generation Failed

Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType  .

 

 

Can any one please suggest what is the problem and how to correct it.

 

Regards,

veer

 

Hi,

i have created a Vf page on account using standard controller,in that command button i have used save but the save(stndrd cntrlr action )is not working .i tried for custom objects also but it is not working.

  i have tried the same code in some other dev edition it is working on that what is the problem.

 

Can any one tell me what is the problem...?

 

 

thanks 

veer

Hi,

Is it possible to creat e a new record for an object through visualforce page using standard contoller.

 

 

Hi i want to develop a page block table with all the account records ,each record contains a checkbox in the pageblocktable ,when a user check/select some records on the table and press show selected button it need to display selected records in another pageblocktable. i am new to this and i am in learning stage.i have referred http://wiki.developerforce.com/page/Wrapper_Class but the example wont work . I have developed visualforce code but confused with the adding controller and wrapperclass.can any one help me plsss.. Thanks&Regards Veer

Hi

i want to develop a page block table with all the account records ,each record contains a checkbox in the pageblocktable ,when a user check/select some records on the table and press show selected button it need to display selected records in another pageblocktable. i am new to this and i am in learning stage.i have referred http://wiki.developerforce.com/page/Wrapper_Class but the example wont work . I have developed visualforce code but confused with the adding controller and wrapperclass.can any one help me plsss..

<apex:page standardController="Account" recordSetVar="Account" extensions="MyAccountListCntrlr" >
<apex:form >
<apex:pageBlock title="MyPageBlock1" >
 <apex:pageBlockButtons >
            <apex:commandButton value="Show Selected Accounts" 
               action="{!displaySelectedAccountNumbers}"/>
         </apex:pageBlockButtons>
<apex:pageBlockSection columns="2"> 

<apex:pageBlockTable value="{!account}" var="s" title="All Accounts"  >
<apex:column headerValue="active" >
            <apex:inputCheckbox />
        </apex:column>
<apex:column value="{!s.Name}"  />
<apex:column value="{!s.Phone}" />
</apex:pageBlockTable>

<!--<apex:pageBlockTable value="{!account}" var="s" title="Selected Accounts" align="right">


</apex:pageBlockTable>-->
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 i did'nt understand how to select selected accounts and pass them to next table when show selected button clicked. 

 

Thanks&Regards

Veer

Hi,

I have created one pageblock table with  account name some other components and ihave added a commandlink to account name .I want to display the the selected account name as pagemessage on the top of the page.

can any one help me how to do this.

 

 

 

<apex:page standardController="Account" recordSetVar="accounts" sidebar="false">
<apex:form >
<apex:pageBlock title="MyPageBlock1" >
<apex:pageBlockTable value="{!accounts}" var="s" >
<apex:column headerValue="Account Name" >
<apex:commandLink rerender="output">
{!s.Name}
</apex:commandLink>
</apex:column>
<apex:column value="{!s.billingstate}" />
<apex:column value="{!s.Phone}" />
<apex:column value="{!s.website}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

 Thanks&Regards

Veer

Hi,

i am new to this .Can anyone convert this query to Starts with  the given search text value plsss 

 

'select id, name  from Account ' +
'where name LIKE \'%'+searchText+'%\' order by name';

grouping contacts by their appropriate account and the output should be in pageblocktable.I have seen one code which will display in datatable but i want the code for pageblocktable.

Can anyone help me 

 

Regards,

veer


Hi,

can any one help what is the attribute that i need to set for  displaying   two Pageblocktables in same pageblocksection side by side.

 

 

Thanks&Regards,

Veerendra

Is it possible to implement  a functionality like Copy Billing Address to Shipping Address link (which is avilable in account object Address Information pageblock )  in my custom object

Is it possible to implement  a functionality like Copy Billing Address to Shipping Address link (which is avilable in account object Address Information pageblock )  in my custom object

 

Is it possible to implement  a functionality like Copy Billing Address to Shipping Address link (which is avilable in account object Address Information pageblock )  in my custom object.

Hello All,

 

Can any one help me how to do this?

 

Need to capture the time at which the NEW button was clicked. 
Need to capture the time at which SAVE button was clicked. Write a custom script for the SAVE button to calculate the difference between time taken to click NEW and SAVE.

 

Thanks in advance.

 

 

Hello all,

 

I have an object,  on that there is a button called new when we click on the button it will open create page and when we save the record it will save the new button clicked time in the field available on the object.

How to achieve this can any one help me with this.

 

Thanks in Advance.

 

 

Hello every one i want to implement a fucntionality like shoping cart.In this there is a form to fill details,after filling we need to press add ,when we press add the details in form should added to  pageblock table one by one but the records are not commited until we press save button.

In this i have completed adding to pageblock table but facing the problem when saving records can any one help me pls

i am attching my code too

visual force code :

<apex:page standardController="Test_Case_Log__c" extensions="TestClass"  >
    <apex:form id="form">
        <apex:pageMessages />
        <apex:pageBlock >
           <apex:pageBlockButtons >   
                <apex:commandButton value="save" action="{!save1}"  rerender="pbtable"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="Information" id="psi" >
                <apex:inputField value="{!testlog.Developer__c}" />
                <apex:inputfield value="{!testlog.name}"  />
                <apex:inputField value="{!testlog.Priority__c}" />
                <apex:inputField value="{!testlog.Test_Cases__c}" />
                <apex:inputField value="{!testlog.Tester__c}" />
                <apex:inputField value="{!testlog.Test_Scenario__c}"  />
            </apex:pageBlockSection>   
            <apex:pageBlockSection title="Description" id="psd">
                <apex:inputField value="{!testlog.Expected_Result__c}" />
                <apex:inputField value="{!testlog.Test_Case_Notes__c}" />
            </apex:pageBlockSection>        
            <apex:pageBlockTable value="{!testlog1}" var="a" id="pbtable"  >
                <apex:column value="{!a.Priority__c}" headerValue="Priority"/>
                <apex:column value="{!a.Developer__c}" headerValue="Developer"/>
                <apex:column value="{!a.Test_Cases__c}" headerValue="Expected_Result"/>
                <apex:column value="{!a.Test_Scenario__c}" headerValue="testscenario"/>
            </apex:pageBlockTable>
            <apex:commandButton action="{!add}" value="add" rerender="form"/>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

public with sharing class TestClass {
    public TestClass(ApexPages.StandardController controller) {
    testlog = (Test_Case_Log__c)Controller.getRecord();
        }
   
   public list<Test_Case_Log__c> tdt = new list<Test_Case_Log__c>();
   public  list<Test_Case_Log__c> gettestlog1(){
        return tdt;
   }  
   public Test_Case_Log__c testlog{set;get;}
    
    
    public void add(){
        tdt.add(testlog);
        testlog =new Test_Case_Log__c();
       
        
    }
    public pagereference save1(){
        
       
        insert tdt;
      
       PageReference pageRef = new PageReference('/apex/testpage');
        return pageRef;
    }
}

 Thank you

Hi,

i have created a Vf page on account using standard controller,in that command button i have used save but the save(stndrd cntrlr action )is not working .i tried for custom objects also but it is not working.

  i have tried the same code in some other dev edition it is working on that what is the problem.

 

Can any one tell me what is the problem...?

 

 

thanks 

veer

Hi,

Is it possible to creat e a new record for an object through visualforce page using standard contoller.

 

 

Hi

i want to develop a page block table with all the account records ,each record contains a checkbox in the pageblocktable ,when a user check/select some records on the table and press show selected button it need to display selected records in another pageblocktable. i am new to this and i am in learning stage.i have referred http://wiki.developerforce.com/page/Wrapper_Class but the example wont work . I have developed visualforce code but confused with the adding controller and wrapperclass.can any one help me plsss..

<apex:page standardController="Account" recordSetVar="Account" extensions="MyAccountListCntrlr" >
<apex:form >
<apex:pageBlock title="MyPageBlock1" >
 <apex:pageBlockButtons >
            <apex:commandButton value="Show Selected Accounts" 
               action="{!displaySelectedAccountNumbers}"/>
         </apex:pageBlockButtons>
<apex:pageBlockSection columns="2"> 

<apex:pageBlockTable value="{!account}" var="s" title="All Accounts"  >
<apex:column headerValue="active" >
            <apex:inputCheckbox />
        </apex:column>
<apex:column value="{!s.Name}"  />
<apex:column value="{!s.Phone}" />
</apex:pageBlockTable>

<!--<apex:pageBlockTable value="{!account}" var="s" title="Selected Accounts" align="right">


</apex:pageBlockTable>-->
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 i did'nt understand how to select selected accounts and pass them to next table when show selected button clicked. 

 

Thanks&Regards

Veer

Hi,

I have created one pageblock table with  account name some other components and ihave added a commandlink to account name .I want to display the the selected account name as pagemessage on the top of the page.

can any one help me how to do this.

 

 

 

<apex:page standardController="Account" recordSetVar="accounts" sidebar="false">
<apex:form >
<apex:pageBlock title="MyPageBlock1" >
<apex:pageBlockTable value="{!accounts}" var="s" >
<apex:column headerValue="Account Name" >
<apex:commandLink rerender="output">
{!s.Name}
</apex:commandLink>
</apex:column>
<apex:column value="{!s.billingstate}" />
<apex:column value="{!s.Phone}" />
<apex:column value="{!s.website}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

 Thanks&Regards

Veer

Hi,

i am new to this .Can anyone convert this query to Starts with  the given search text value plsss 

 

'select id, name  from Account ' +
'where name LIKE \'%'+searchText+'%\' order by name';

grouping contacts by their appropriate account and the output should be in pageblocktable.I have seen one code which will display in datatable but i want the code for pageblocktable.

Can anyone help me 

 

Regards,

veer


Hi,

can any one help what is the attribute that i need to set for  displaying   two Pageblocktables in same pageblocksection side by side.

 

 

Thanks&Regards,

Veerendra

Is it possible to implement  a functionality like Copy Billing Address to Shipping Address link (which is avilable in account object Address Information pageblock )  in my custom object

Hi Every one,

 

I have one requirment, I have to create one custom formula filed  in account object ie. "Photo__c" (i dont know how to create it ) and I have to upload an image using visualforce page and save this image to "Photo__c" field. while i have to show this image in visualforce page again.

 

How to achieve this functionality, Please help me out of this...

 

Thanks in adv........

 

  • September 15, 2011
  • Like
  • 1

Hi,

 

  I want to display the account and related contacts in the same visual force page. Actually i am achieved this like,

i am displayed the account names in first page block and am kept the command link for that account names if we click on that command link that will displayed the contacts related to that particular account in another pageblock. But, Now i want to display the account name first and all related contacts line by line. like that  i want to displat the contacts for all accounts. please any one help me how to solve this...

 

 

example

Maple Lawn Office III
8161 Maple Lawn Blvd
Fulton, MD 20759

Contact: Lydia Chandlee
G & R Management
840 First Street, NE
Washington, DC 20002

Phone: 301-807-0271
Fax: 202-898-0053
Email: 

Contract: No
Inspection Date: 4/6/2010
Inspection Type: Annual
5 Year Test: 2012
Reg/Serial #: HO1863
Service Company: Kone
Equipment Type: Passenger Hydraulic
Annual Price (per unit): $180
Semi-Annual Prince (per unit): $80

Maple Lawn Office III
8161 Maple Lawn Blvd
Fulton, MD 20759

Contact: Lydia Chandlee
G & R Management
840 First Street, NE
Washington, DC 20002

Phone: 301-807-0271
Fax: 202-898-0053
Email: 

Contract: Yes
Inspection Date: 4/6/2010
Inspection Type: Annual
5 Year Test: 2012
Reg/Serial #: HO1863
Service Company: Kone
Equipment Type: Passenger Hydraulic
Annual Price (per unit): $180
Semi-Annual Prince (per unit): $80

 

 

 

thanks,

yamini

  • March 29, 2011
  • Like
  • 0