× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rick,

We did similar data entry for a parts order (MRO) screen. If you can get
away with Javascript, you can do something like this (code for Internet
Explorer):

<input type=button id="AddItem" value="Add New Item" onclick="AddItem ();"
/>

<script language="javascript" type="text/javascript">
function AddItem()
{
        // this function adds a row to the items area of the screen, when
the 
        //   additem button is clicked
        
        var oTab = document.getElementById("table2");
        var count=0;
        {
                for (i=0; i < document.all.table2.rows.length; i++) {
                        count++;
                }
                oRow = oTab.insertRow();

                oCell = oRow.insertCell();
                oCell.innerHTML = "<input id=delete"+i+" type=button
class='deletebutton' onclick='removeitem("+i+");' value=' X ' alt='Remove'
title='Remove'></input>";

                oCell = oRow.insertCell();
                oCell.innerHTML = i;

                oCell = oRow.insertCell();
                oCell.innerHTML = "<input size=10 id=stockno name=stockno
onchange='stockno_validate("+i+");' ondblclick='stockno_search("+i+");'
onMouseOver=style.cursor='help'>";      

                oCell = oRow.insertCell();
                oCell.innerHTML = "<input id=qty name=qty size=5
onkeyup='check_qty_qoh("+i+");'>";

                oCell = oRow.insertCell();
                oCell.innerHTML = "<input id=qtyoh name=qtyoh size=5
disabled=true>";
        }
}
</script>

The QTYOH field is disabled because we get the on hand quantity after the
user enters the stock number, and show it on the screen as a reference.

The ADD button is below the line items, and "floats" downward as more rows
are added to the list. This works well for us, and allows the users to add
as many lines as needed. 

The November News/400 had an article on "5250-ifying" the browser experience
with JavaScript that may be useful if you want to use function keys as part
of the interface. I'm sure Joe P. can expound further on Javascript in the
browser. :)

HTH,
Loyd


-----Original Message-----
From: rick.baird@xxxxxxxxxxxxxxx [mailto:rick.baird@xxxxxxxxxxxxxxx] 
Sent: Tuesday, November 25, 2003 13:29
To: Midrange Systems Technical Discussion
Subject: RE: Where would you start?


John,

Sounds very cool - and probably fun to develop too!

How ugly were your browser based data entry screens?  To make this
functional, I'm looking at an indeterminate number of rows of at least 15
entry and 2 or 3 display only fields per row.  strait html doens't lend
itself to that very well, i'm afraid.

Rick

---------original message---------
Rick,
I did the same thing you are attempting to do for a retailer with 8,000
stores for budget in JD Edwards. Used RPG-CGI and built a retrieval from
the
iSeries database. Store managers keyed budget numbers. Zone managers keyed
revised budget numbers in a separate field. District managers keyed
approved
budget numbers by zone in a separate field. Formatted into JD Edwards and
uploaded. Regional managers used JDE green screens to approve/modify
budgets. On acceptance, it all flowed backwards back down to see the real
numbers.

John Brandt
iStudio400.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.