Hello,
Please kindly help me with the following issue.
One application page contains a datatable widget. This table includes the following column:
{id:"edit", header:" ", width:35,
template:"<span style='cursor:pointer;' class='webix_icon fa-pencil'></span>"}
This is the fa-pencil edit capability present in several demo examples.
The event handler then is:
onClick:
{
"fa-pencil":function(e,id,node)
{
var mynewpage = this.$scope.ui(some_nice_page.$ui);
mynewpage.show();
}
}
Here I create a new page called some_nice_page. This some_nice_page contains various widgets including a few “text” fields widgets.
I want to populate these text fields with data from the main page and I want to do this from the main page in the fa-pencil event handler. I have tried many ways including for example this (as seen above too):
mynewpage.setValue({"prod_name_id":"apples"});
to try and set the “text” field named “prod_name_id” to the text value “apples”. This does not work so I am probably not understanding the concepts correctly here. Please kindly provide some guidance on how this should be done. I am learning as I progress with development.
Thanks in advance!
Johan
ps: Not sure my code snipplets above will show up correctly. Doesn’t look right in the preview…