The single-edit screen of the Product Master
application provides an extra UOM feature for displaying user-defined content. Only one instance of
UOM pane can be configured in a single-edit screen.
About this task
Using single UOM browser pane, the single-edit screen displays only user-defined or
manipulated content that is related to the Product Master data. You can configure UOM by using either getContent or
getURL() methods.
Procedure
To configure UOM for the single-edit screen.
-
Browse to and trigger either getContent or getURL()
method.
getContent method
function getContent(entry){
var _htmls = “<div id=’scriptWrapper’ style=’height:XXXpx; width:100%;’ >XXXXX</div>”;
return _htmls;
}
data_entry_properties.xml
getURL() method
getURL(entry){ return url;}
function getContent(entry){
var _url = getURL();
var _htmls = “<div id=’scriptWrapper’ style=’height:XXXpx; width:100%;’ >”;
htmls += “<iframe src=’”+_url +”’ height=’100%’ width=’100%’></iframe></div>”;
return _htmls;
}
Where,
- XXX - Defines height and cannot be empty or 0.
- XXXXX - Defines custom HTML element.
-
Edit and add following in the data_entry_properties.xml file.
<catalog name="catalogOrHierarchyNameUOMShouldDisplay">
<script>
<type>content</type>
<extra>height='XXX'</extra>
<title>Special</title>
<path>/scripts/triggers/scriptName</path>
<extraincludes>
<include/>
</extraincludes>
</script>
</catalog>