integrating newlook in this presentation… –integrating your underlying iseries application with...

9
Integrating newlook In this presentation… Integrating your underlying iSeries application with 3 rd party applications. Using DDE and the API. Using Call and Declare.

Upload: malcolm-webb

Post on 13-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook

• In this presentation…– Integrating your underlying iSeries application with 3rd party applications.– Using DDE and the API.– Using Call and Declare.

Page 2: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook

• Integrate newlook– Refers to integrating newlook with standard desktop applications, such as MS

Word, Excel, Lotus Notes and Email.

• Key newlook tools– Designer– Macro Editor

Page 3: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook – DDE & API

• DDE macro actions– LinkInitiate– LinkExecute – LinkPoke– LinkTerminate

Page 4: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook – DDE & API

• Sample DDE commands– Word

[SetDocumentVar “Balance”, “999.99”][EditSelectAll][UpdateFields][SendKeys {home}]

– Excel[Workbook.Activate (“Sheet1”)][Echo (0)]

Page 5: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook – Call & Declare

• Call and Declare– Declare (library, procedure, alias, return values, arguments)– Call (procedure, arguments and return values)

• Sample Call and Declare– Declare (Kernel32.dll, WritePrivateProfileStringA,

WritePrivateProfileString, Boolean,

ByVal Section as String, ByVal Key as String, ByVal Value as String, ByVal File as String)

– Call (WritePrivateProfileString, "Section", "Key", "Data", "myapp.ini", rc)

Page 6: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook – DDE & API

• newlook API (for external applications)– NL_GetVersion– NL_EnumInstances– NL_GetValue– NL_SetValue– NL_RunMacro

Page 7: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Integrating newlook – DDE & API

• Using the newlook API– 32 bit– Visual Basic

Samples\Visual Basic\ApiTest– Visual C++

Samples\Visual C++\ApiTest– Other languages

Link with NLAPI.DLL

Page 8: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

Summary

• newlook can be used to integrate your underlying iSeries application.• The key tools used in integrating your application are Designer, Macro

Editor and the Expression Builder. • You can use DDE and API calls to export data to common desktop

applications, e.g. MS Word and Excel.

Page 9: Integrating newlook In this presentation… –Integrating your underlying iSeries application with 3 rd party applications. –Using DDE and the API. –Using

newlook 8 Training

Workshop 6