function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Can i use action and onclick attribute on command line apex component together?
Can anyone give me some examples?
In a case like this I use the oncomplete event and not the onclick event. Many times if I use the onclick event the action won't execute.
Ex.
<apex:commandLink action="{!someAction}" value="myLink" oncomplete="javascript:jsFunction();"/>
Of Course you can,
and you can return value from JS Function, if that value is true then system will call action of that Command Link,
<apex:commandLink value="Click" onClick="return JSFunction();" action="{!controllerAction}"/>
In a case like this I use the oncomplete event and not the onclick event. Many times if I use the onclick event the action won't execute.
Ex.
<apex:commandLink action="{!someAction}" value="myLink" oncomplete="javascript:jsFunction();"/>
onClick is javascript funcion and will be called before action method.
example
<apex:commandLink value="Click Me" onClick="onClickJSMethod();" action="{!controllerAction}"/>
Of Course you can,
and you can return value from JS Function, if that value is true then system will call action of that Command Link,
<apex:commandLink value="Click" onClick="return JSFunction();" action="{!controllerAction}"/>
Here is the code.
<apex:commandButton value="Send" action="{!sendEmail}" onclick="return checkValidation();"/>
checkValidation returning true values still action doesnot working,.