-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
20Questions
-
21Replies
Java script is not working in Visualforce page?
<apex:page showHeader="false" sidebar="false"> <apex:outputPanel > <script> location.href="/01Zd0000000m6TR?isdtp=vw"; </script> </apex:outputPanel> </apex:page>
- veeru417
- January 06, 2016
- Like
- 0
- Continue reading or reply
Need to capture the time at which the NEW button was clicked.Can any one help me how to do this?
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.
- veeru417
- January 19, 2013
- Like
- 0
- Continue reading or reply
How to save the custom button clicked time in the field on the object????
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.
- veeru417
- January 17, 2013
- Like
- 0
- Continue reading or reply
MIgrating account data along with its chatter feeds
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
- veeru417
- December 07, 2012
- Like
- 0
- Continue reading or reply
Need Help in writing Testclass for Wrapperclass Code coverage is 70% help me to pass testcoverage..
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
- veeru417
- November 18, 2012
- Like
- 0
- Continue reading or reply
need help in sending an email using apex trigger?
hi everyone,
can any one help me sending an email using trigger when a new record is inserted.
- veeru417
- November 16, 2012
- Like
- 0
- Continue reading or reply
Problem with saving pagereference method pls can any one help me pls
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
- veeru417
- November 15, 2012
- Like
- 0
- Continue reading or reply
Defining a Class from a WSDL Document
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
- veeru417
- August 10, 2012
- Like
- 0
- Continue reading or reply
standard controller actions are not working? what is the problm?
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
- veeru417
- June 20, 2012
- Like
- 0
- Continue reading or reply
Is it possible to creat e a new record for an object through VF page using std contrlr
Hi,
Is it possible to creat e a new record for an object through visualforce page using standard contoller.
- veeru417
- June 19, 2012
- Like
- 0
- Continue reading or reply
How to display selected records(check box) of one page block table in another pageblocktable?
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
- veeru417
- June 16, 2012
- Like
- 0
- Continue reading or reply
How to show selected accounts in another pageblock table??
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
- veeru417
- June 15, 2012
- Like
- 0
- Continue reading or reply
How to display the selected Account name as page message .?
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
- veeru417
- June 11, 2012
- Like
- 0
- Continue reading or reply
Can anyone convert this query to Starts with the given search text.
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';
- veeru417
- June 11, 2012
- Like
- 0
- Continue reading or reply
How to group contacts by their appropriate account ?Output Should be in pageblocktables?
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
- veeru417
- June 06, 2012
- Like
- 0
- Continue reading or reply
How to display two Pageblocktables in same pageblocksection side by side ????
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
- veeru417
- June 06, 2012
- Like
- 0
- Continue reading or reply
need help:implementing functionality like Copy Billing Address to Shipping Address in accounts
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
- veeru417
- April 03, 2012
- Like
- 0
- Continue reading or reply
need help:implementing functionality like Copy Billing Address to Shipping Address in accounts
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
- veeru417
- April 03, 2012
- Like
- 0
- Continue reading or reply
implementing functionality like Copy Billing Address to Shipping Address in accounts
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.
- veeru417
- April 03, 2012
- Like
- 0
- Continue reading or reply
Need to capture the time at which the NEW button was clicked.Can any one help me how to do this?
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.
- veeru417
- January 19, 2013
- Like
- 0
- Continue reading or reply
How to save the custom button clicked time in the field on the object????
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.
- veeru417
- January 17, 2013
- Like
- 0
- Continue reading or reply
Problem with saving pagereference method pls can any one help me pls
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
- veeru417
- November 15, 2012
- Like
- 0
- Continue reading or reply
standard controller actions are not working? what is the problm?
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
- veeru417
- June 20, 2012
- Like
- 0
- Continue reading or reply
Is it possible to creat e a new record for an object through VF page using std contrlr
Hi,
Is it possible to creat e a new record for an object through visualforce page using standard contoller.
- veeru417
- June 19, 2012
- Like
- 0
- Continue reading or reply
How to show selected accounts in another pageblock table??
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
- veeru417
- June 15, 2012
- Like
- 0
- Continue reading or reply
How to display the selected Account name as page message .?
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
- veeru417
- June 11, 2012
- Like
- 0
- Continue reading or reply
Can anyone convert this query to Starts with the given search text.
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';
- veeru417
- June 11, 2012
- Like
- 0
- Continue reading or reply
How to group contacts by their appropriate account ?Output Should be in pageblocktables?
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
- veeru417
- June 06, 2012
- Like
- 0
- Continue reading or reply
How to display two Pageblocktables in same pageblocksection side by side ????
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
- veeru417
- June 06, 2012
- Like
- 0
- Continue reading or reply
need help:implementing functionality like Copy Billing Address to Shipping Address in accounts
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
- veeru417
- April 03, 2012
- Like
- 0
- Continue reading or reply
Image Upload using visualforce and saving in custom formula field how? Please help me
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........
- singara
- September 15, 2011
- Like
- 1
- Continue reading or reply
How to display the related contacts of account in the same visual force page
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
- yamini
- March 29, 2011
- Like
- 0
- Continue reading or reply