This content has been marked as final. Show 4 replies
But, you already know binding name. :)
You can use something like this:
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); DCControlBinding nameBinding = bindings.findCtrlBinding("Name"); String name = nameBinding.getName(); DCIteratorBinding iterator = nameBinding.getDCIteratorBinding();
I am trying to reuse the same valuechangevent method for all the fields on my UI.If i hard code the binding name then i have to write valuechaneevent method for each of the field which will be huge duplication of code.
Is there not a way to retrieve the binding anme.
I went cheeky and set the id of the field same as that of the binding name and retrieved the id for the component and then invoking EL expression on the same. But there's got be a better way.
Edited by: bpm11gnewbie on Nov 21, 2012 1:29 PM