You need to sign in to do that
Don't have an account?

How to use hyperlink onclick counter in reporting of Lightening version
I have requirement to show the counter variable in Salesforce reporting.
This counter variable is nothing but no. of times the user clicks on the hyperlink. So for these i have already created the counter with below logic and i just want to know how can i used this variable in my reporting for Lightning version.
<aura:attribute name="counter1" default="0" type="integer"/> <lightning:button variant="Test1" label="Click" onclick="{!c.handleClick }" /> Counter value is : {!v.counter1}
({ handleClick : function(component, event, helper) { component.set('v.counter1',component.get('v.counter1')+1); } })
Please let me know how i can used this variable for reporting in Lightning.
This counter variable is nothing but no. of times the user clicks on the hyperlink. So for these i have already created the counter with below logic and i just want to know how can i used this variable in my reporting for Lightning version.
<aura:attribute name="counter1" default="0" type="integer"/> <lightning:button variant="Test1" label="Click" onclick="{!c.handleClick }" /> Counter value is : {!v.counter1}
({ handleClick : function(component, event, helper) { component.set('v.counter1',component.get('v.counter1')+1); } })
Please let me know how i can used this variable for reporting in Lightning.
Although there could be multiple ways one way I could think of is to have a field as such to show the count value.
In case if this helps can you please choose as the best answer so that it can be used by others in the future.
Regards,
Anutej
Thanks for the reply . I am new to the lighetning version so could you please elaborate in more details.If possible can you please add some sample code.
Thanks,
Anish
>> https://developer.salesforce.com/forums/?id=906F00000008yYqIAI