You need to sign in to do that
Don't have an account?
james7630
visual force page copy down in data table to populate date input fields in one column.
I have a data table of date fields, I need to be able to have a field at the top not in the table where i can change the date and click copy and it copies to all in that one column. I have tried java script with no luck.. I am just hard coding the date now, i can figure out the input field, I just need to know how to copy it to that first column...
<apex:page Controller="RenewalController" tabStyle="Entities__c" sidebar="false"> <apex:form > <apex:pageBlock title="Entity" mode="edit" id="ent"> <apex:pageMessages /> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> <apex:commandButton action="{!cancel}" value="Cancel"/> <apex:commandLink onclick="return CopyShipInfo()" value="CopyTo Renewal Due Date" reRender="ent"/> </apex:pageBlockButtons> <apex:dataTable value="{!myList}" var="opp" id="ents"> <apex:column headerValue="Entity">{!opp.Name} </apex:column> <apex:column headerValue="Renewal Due Date"> <apex:inputField value="{!opp.State_Renewal__c}"/> </apex:column> <apex:column headerValue="Renewal Received"> <apex:inputField value="{!opp.Renewal_Received_From_State__c}" id="renew"/> </apex:column> <apex:column headerValue="Printed Renewal"> <apex:inputField value="{!opp.Renewal_Printed__c}"/> </apex:column> <apex:column headerValue="Emailed Renewal"> <apex:inputField value="{!opp.Renewal_Emailed__c}"/> </apex:column> <apex:column headerValue="Rec Pay For Renewal"> <apex:inputField value="{!opp.Received_Payment_For_Renewal__c}"/> </apex:column> <apex:column headerValue="List Filed With State"> <apex:inputField value="{!opp.List_Filed_with_State__c}"/> </apex:column> <apex:column headerValue="Stamped List Received"> <apex:inputField value="{!opp.Stamped_List_Received_from_State__c}"/> </apex:column> <apex:column headerValue="Packet Sent"> <apex:inputField value="{!opp.Packet_Sent__c}"/> </apex:column> </apex:dataTable> <script> function CopyShipInfo() { document.getElementById('{!$Component.ents.renew}').value = '01/01/1976'; </script> </apex:pageBlock> </apex:form> </apex:page>
--
Regards
Usman
All Answers
--
Regards
Usman
Hi MoUsman,
I tried copying the Date on multiple Rows in a Column but it doesnt seem to work for me. Could you please check what Im getting wrong?
Thanks