You need to sign in to do that
Don't have an account?
KellyKanches
call task object in visual force page
I have this code
<apex:pageBlock title="Contacts"> <apex:form > <apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/> <apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item"> <apex:column > <apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink> </apex:column> <apex:column value="{!item.Title}"/> <apex:column value="{!item.Email}"/> <apex:column value="{!item.Primary_Contact__c}"/> <apex:column value="{!item.Authorized_User__c}"/> <apex:column value="{!item.Inactive__c}"/> </apex:pageBlockTable>
which allows the user to add a new Contact from VF page.
I would like to be able to add the ability for the user to create a new Task
I am VERY new to Apex and VF - so I am wondering , can I modify the above code to allow me to do that?
Thanks!!
<apex:pageBlock title="Contacts"> <apex:form > <apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/> <apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item"> <apex:column > <apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink> </apex:column> <apex:column value="{!item.Title}"/> <apex:column value="{!item.Email}"/> <apex:column value="{!item.Primary_Contact__c}"/> <apex:column value="{!item.Authorized_User__c}"/> <apex:column value="{!item.Inactive__c}"/> </apex:pageBlockTable>
which allows the user to add a new Contact from VF page.
I would like to be able to add the ability for the user to create a new Task
I am VERY new to Apex and VF - so I am wondering , can I modify the above code to allow me to do that?
Thanks!!