ABL(4GL) General Programming Group

This group is for topics on coding in ABL (formerly known as Progress 4GL). Topics include code snippets, code examples, utility programs, tricks, techniques, and patterns. There are other groups for other more specific topics like Win32 API, OO programming, and specific programming tools.


Using Object Oriented Programming For Custom Programming In A SaaS Application

In the SaaS world, often customers will want their own customizations into the source code specific to how they want to do business with your software.

Here is a point where object oriented programming stands out. By crafting your programming in such a way that basic functionality is enhanced - you can use different classes specific to particular customers for enhanced implementation.

Since we are going to potentially be using one of multiple classes, we need to have an interface describing the methods available in the class.


Developing Application using Webspeed

Hi to all,

Can anybody direct me where I can browse for Webspeed tutorials? Any links?

I found some pdf files but just like an introductory.
I want to know how to use speedscript in updating records.

Thanx in Advance.


OEUnit - Unit Testing Framework 1.1-beta

Download: OEUnit-1.1-Beta.zip
Size: 250.24 KB
md5_file hash: b375eac341ea29c3ba8ac8d82ee4274a
First released: Sat, 2009-03-28 01:11
Last updated: Sat, 2009-03-28 01:09

Updated to work with OpenEdge 10.2A

OEUnit is a unit testing framework for Object Oriented ABL (OOABL). OEUnit is intended to help write and run repeatable unit tests. OEUnit is similar to JUnit and other xUnit-based unit testing frameworks.


COMPILE with optimal PROPATH

Make sure that the PROPATH in use at the time you use the COMPILE statement have the source code folders available as the first folders. That's also true for the PROPATH used by OE Architect's syntax analysis.


SAX-READER from GOOGLE

I use the sax-reader to get information about geocoding an address. I is very usefull because correct the address, check it and give my the geoposition ( lat/long ).

The problen is that in Spanish there are tilde in vocals line "José" and the SAC-READER don´t retrive it.
I give a simple example to check whay I meen, just run in the Procedure Editor, I would appreciate any help.

/*****************************************/
DEFINE VARIABLE hParser AS HANDLE NO-UNDO.
define variable hhandler as handle no-undo.
define variable clee as char no-undo.


OOP Mail Classes in Progress ABL/4GL Available

A new library of Amduus Classes I am putting together includes some code for sending email in Progress 10.1a or better programs.

Example call in HTML with embedded images and an attachment.

define variable M as com.amduus.mail.MailBySendmail no-undo.
define variable HTML as character no-undo.

M = new com.amduus.mail.MailBySendmail().

M:ToEmail = "sauge@localhost".
M:FromEmail = "root@localhost".
M:BCCEmail = "root@localhost".
M:Subject = "Test 1".

HTML = "<html><body>"
+ 'This is a <b>test</b> <img src="cid:y1"> email'


Video on calling web services from the 4GL/ABL

I have a video up on amduus.com on how to call out to web services with example coding.

The video can be seen at http://amduus.com/training/Using_bprowsdldoc.html


Book on object oriented programming available

I have a book on object oriented programming in the ABL language available at http://www.lulu.com/content/paperback_book/discussions_of_object_oriente...


Video on setting up Webspeed on MS Windows

Since it is asked quite often in the Progess community how to set up a broker in the MS Widnows environment, here is a little video on how to accomplish this.

View the video at http://amduus.com/training/WebspeedBrokerOnWindows.html


Include Unit Code at the bottom of your class files

One of the important things in software development is to do unit testing - that is a set of tests the programmer can do on a piece of code to be assured it is most likely working the way one wants it to.

Surprisingly it is rare to find unit test code as part of a source code file. If it is created at all (horror), it is usually tucked away on some developers disk someplace or simply thrown away!

What I have found helpful for myself as well as others working the same code, is to place a comment at the end of the program with the unit test code.


Star Office Charts

Hi,

Can anyone please help me with the sample 4GL Code to create charts in star Office.

Cheers
Prashant


SFTP (Secure Shell File Transfer Protocol)

Does anyone know something more how about you can connect, send data,... in progress too an SFTP-server?


Trigonometric functions, SINE,COSINE,ARCSINE.

I need some trigonometrics function and 4GL don´t include any one.

Have anyone any dll to solve this? This is for the windows environment.

Thanks in advance.


Web Services Input

Hi All.
I'm trying to write a new Web Service.
It is a order contained in the body of the soap message.
How do I read the data within the soap message?
Below is a extract from the soap message.

TEST
SECRET
MSG-123

4012345500004

5412345000013

5412345000013


cursor-offset for Drop-down Combo-box

I have an application that had a combo-box in drop-down mode ( allow editting like fill-in) and use triger "ANY-KEY" for processing. I need the CURSOR-OFFSET to set the cursor position, but i get and error.

Is this a bug?, any work around perhaphs an API call ?.


#
Syndicate content