× 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.



Aaron Bartell wrote:
pseudo code:

/free

webICCD = ui_getSelected('item_code_dropdown');

setll key ITMCD;
reade key ITMCD;
dow not %eof(ITMCD);
ui_addDataList('item_code_dropdown': ICCD: webICCD);
reade key ITMCD;
enddo;

Something to consider: the code above shows tightly bound UI and business logic. Personally, I'd prefer logic wherein the business logic simply returns an array of data structures. A middle layer would then transport that information to the UI. That way, your business logic is UI independent, and you can use the same business logic to either generate HTML or send a formatted string (e.g., JSON) to a rich client or send a SOAP message to an external consumer.

That way, you write the code once and reuse it.

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.