Description


Function for getting the HTML element ID (in the HTML DOM) for a Uniface JavaScript API object. It could be called .getHTMLId() It should be available on Field, Occurrence, Entity and Instance objects. A reverse function would also be appreciated. In this function you supply an HTML element id and it returns the corresponding API object.

Use Case


"When building a Uniface web application using a JavaScript framework a developer often needs to know the link between a Uniface JavaScript API object and the HTML DOM. For example you may need to know that: vTabOccs[i].getEntity(""PANEL.TECHNICAL"").getOccurrence(2), Is to be found in
: ""uocc:PANEL.TECHNICAL:CAS_EXHIBIT.3."" The numbering is not always related. The way the uocc:etc name is made up is not documented and should not be relied on. I would like to have a function .getHTMLId so I can make an advanced user interface for a Uniface web application without the risk that it does not work in the next release of Uniface. This function should be available on Field, Occurrence, Entity and Instance objects. A reverse function would also be appreciated. In this function you supply an HTML element id and it returns the corresponding API object (if there is one)."

Importance


This will greatly increase the options to build an advanced user interface on top of a DSP layer using a JavaScript framework.

Type


Uniface Web (USP/DSP/Services)

Operating System


Not Applicable

Status


Open

Leave a Reply