I have an elementid from another piece of javascript, and I'd like to get the relevant field object (technically I'd like to get the relevant occurrence in order to get another field in the same occurrence but never mind that).
So I can get passed in a string with "ufld:FIELD.ENT.MODEL:INST.3".
So far (since it's one field I'm doing this for), the best bet I have got is looping through
uniface.getInstance("INST").getEntity("ENT.MODEL").getOccurrence(loopcnt).getField("FIELD").getBoundElement().id
and comparing the result to the string passed in to get a match.
Is there a better way to get to the uniface field object from the element ID as a string?
Regards,
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------




