Another generic thing we might do is remove all the "+" prompt fields from the screen and strip the trailing dots from all the field labels.
To do this you could add code like this to the SHARED,ApplyStandardLayout function:
/* Get all elements between lines 3 and 22 */
<span style="color: #0000ff">var</span> aH = HTMLAPI.getElementsinRowRange(3,22);
/* Hide all fields containing "+" signs and strip trailing dots from others */
<span style="color: #0000ff">for</span> (i = 0; i < aH.length; i++ )
{
<span style="color: #0000ff">var</span> oH = aH[i];
<span style="color: #0000ff">if</span> ((oH != <span style="color: #0000ff">null</span>) && (<span style="color: #0000ff">typeof</span>(oH.tagName) != <span style="color: #a31515">"undefined"</span>))
{
<span style="color: #0000ff">var</span> fIsINPUTField = ((oH.tagName == <span style="color: #a31515">"INPUT"</span>) || (oH.tagName == <span style="color: #a31515">"TEXTAREA"</span>));
<span style="color: #0000ff">if</span> ( !(fIsINPUTField) ) /* This NOT an input field on the screen */
{
<span style="color: #0000ff">if</span> (oH.innerText == <span style="color: #a31515">"+"</span>) HTMLAPI.hideElement(oH);
<span style="color: #0000ff">else</span> HTMLAPI.stripTrailingDots(oH);
}
}
}
When executed the example 5250 now looks like this:
![]()
[<span style="color: #0000ee"><span style="text-decoration: underline; ">Show Contents List</span></span>|../../index.htm#lansa/lansa050_1025.htm]