Posted in: SPARK UI Toolkit Controls
Jeremy KongMay 24, 2016 at 8:53 am #1885
Within a coach view, I’m trying to do this in the Event section for when a user selects a record for a service data table:
var thisview = this;
var selectedRecord = thisview.ui.get(“Service_Data_Table1”).getSelectedRecord();
Is there some notation that works? Is there way to address the context.binding in an Event for a control?SPARK SupportMay 24, 2016 at 10:48 am #1886
The issue is when trying to set something in the “Events” section of the control, the syntax would be (me.context.binding…..etc). If you wanted to use “this” you would have to define what “this” is (ie.. var this = page.ui.get(“controlId”).
I hope this helps if you have any more questions feel free to reach out.Jeremy KongMay 24, 2016 at 11:10 am #1887
What if this is the Coach View itself. There isn’t a controlId for coachview, or is there? Any way to navigate up the tree? like me.parent()…SPARK SupportMay 24, 2016 at 12:28 pm #1888
For the second question it would be (me.ui.getParent(“controlId”);).Jeremy KongMay 24, 2016 at 1:47 pm #1890
If this isn’t the end result your looking for can you please attach some screenshots so we can better understand your problem. Also you can find the article on all the methods that SPARK uses to call functions in the event section here.
You must be logged in to reply to this topic.