Below code how can implement in perspective ?Can you please give any example for implementation ?
You would most likely want to add a custom method onto your button or a custom function into a script library, then you’ll be able to call that method/function from your other component using something like:
self.parent.parent.getChild("Button").your_method_name(arg1, arg2)
Thanks
Can we use this method in ignition perspective for file upload component to reset using script?
Are you talking about clearing the uploads? You can just call the component’s clearUploads()
method
https://docs.inductiveautomation.com/display/DOC81/Perspective+-+File+Upload
self.getSibling(“FileUpload”).clearUploads()
showing below error :AttributeError: ‘com.inductiveautomation.perspective.gateway.script’ object has no attribute ‘clearUploads’
Looks like that method was only added in v8.1.18
Can you please share that function implementation any ref code ?
Unfortunately you’re going to have to upgrade to get that method available to you
Thank you for giving me this information.