You need to sign in to do that
Don't have an account?
Shwetal Desai
Edit , Delete Button visibility problem in VF page with StandardController
Hi all,
In Visualforce page with StandardController if we use with standard action methods like:
{!edit}
{!delete}
and Value attribute : "Edit" & "Delete"
not being visible.
What could be the problem???
and
Does Clone facility available in such visualforce page??
In Visualforce page with StandardController if we use with standard action methods like:
{!edit}
{!delete}
and Value attribute : "Edit" & "Delete"
not being visible.
What could be the problem???
and
Does Clone facility available in such visualforce page??
Informa Plc
blog.jeffdouglas.com
Not working ...... :smileysad:
For Edit and Delete buttons i tried these lines:
<apex:commandButton value="Delete" action="{!delete}" />
but still these buttons are still not visible on visualforce page
and for clone button
here, my custom object name is Employee__c..
this line gives me visualforce error:
Invalid parameter for function URLFOR
pls help to solve this
Something is strange because that code should work. Can you post your entire Visualforce page and controller??
Jeff Douglas
Informa Plc
blog.jeffdouglas.com
i found something...
When i was creating VF page i have wrote these lines:
<apex:form id="frmclt">
<apex:pageBlock id="pbclt">
<apex:pageBlockButtons id="btns">
<apex:commandButton value="Edit" action="{!edit}" id="btnEdit" />
<apex:commandButton id="btnCancel" value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
at these time only "Cancel" button was visible on the page...
but after that when i did override my VF page to the View button of the custom object then both "Edit" & "Cancel" buttons are visible on the page. I dont know why this is happen with Edit / Delete buttons only... coz for Save button and Cancel button its working perfectly..
For "Sharing" & "Clone" :
<apex:form id="frmclt">
<apex:pageBlock id="pbclt">
<apex:pageBlockButtons id="btns">
<apex:commandButton value="Edit" action="{!edit}" id="btnEdit" />
<apex:commandButton id="btnCancel" value="Cancel" action="{!cancel}"/>
<input type="button" class="btn" value="Clone" onclick="location.href='{!URLFOR($Action.Employee__c.Clone,Employee__c.Id)}'"/>
<input type="button" class="btn" value="Sharing" onclick="location.href='{!URLFOR($Action.Employee__c.Share,Employee__c.Id)}'"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
I m not using any controller as i m using StandardController
Message Edited by Shwetal Desai on 11-22-2008 03:11 AM
Thanks for the valuable information.........
Can anyone help me with updating the custom settings values? As the below code works fine just the first time and does not save if I require a new value.
I tried to add the edit and delete button. However, those buttons don't display. I think I may need to pass the I'd to the standard controller. Though I'm not sure if we could do it to a protected custom setting.