|
Hi Tommy Did you look at the example code for the DSM program in the article? I've copied it to http://code.midrange.com/index.php?id=a98d927910 for convenience. The program shows a the use of the DSM API's to emulate a simple DDS screen with an input field that has an initial value assigned. Looking at the code, the author assigns a field ID to the input field using the QsnSetField API and then assigns the initial value to the field using the QsnWrtFld API and specifying the field ID as one of the parameters. All the best Jonathan -----Original Message----- From: rpg400-l-bounces+jonathan.mason=astradyne-uk.com@xxxxxxxxxxxx [mailto:rpg400-l-bounces+jonathan.mason=astradyne-uk.com@xxxxxxxxxxxx] On Behalf Of Holden Tommy Sent: 04 November 2005 18:29 To: RPG programming on the AS400 / iSeries Subject: RE: DSM APIs I google as well & came up dry for a solution....That article doesn't really answer the question. Thanks for trying though!!! Thanks, Tommy Holden -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jonathan Mason Sent: Friday, November 04, 2005 11:23 AM To: 'RPG programming on the AS400 / iSeries' Subject: RE: DSM APIs Hi Tommy I did a search on Google and it seems that you use the QsnWrtDta API, passing the input fields handle. There's an article and example at http://www.mcpressonline.com/mc?1@xxxxxxxxxxxxxxxxx@.214a2b85 All the best Jonathan -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Holden Tommy Sent: 04 November 2005 15:44 To: rpg400-l@xxxxxxxxxxxx Subject: DSM APIs I have an app that I am writing using DSM APIs. I am creating my input fields using this: rc=SetDisplayField(OrdPos:EntryLen:Row :%Len(EntryName)+2:QSN_FFW_ALPHA_SHIFT:*OMIT :0:QSN_SA_UL:QSN_SA_GRN_UL:CmdBuffer:*OMIT:*OMIT); Where SetDisplayField is a rename of the QsnSetFld API, I have some existing data that I would like to display in the input field when the screen is written. I know I'm missing something. Is there a way to load the existing data into the input field?? If so, does anyone have an example??? Thanks, Tommy Holden HCA phone: 1-800-828-2561 direct line: 615-344-2151 fax: 1-866-593-0404
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.