• veeru417
  • NEWBIE
  • 30 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 21
    Replies

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........

 

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