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.


DocxFactory Barcode Screenshot 1

DocxFactory Barcode Screenshot 1

DocxFactory Barcode Screenshot 2

DocxFactory Barcode Screenshot 2

Database Activity Monitor

A ChUI Database Activity Monitor that asks you to select a database connection. Database activity for that connection is then displayed in a browses - there is a Table view and an Index view. Reads / Creates / Updates by Table or Index. The activity is read from _UserTableStat and _UserIndexStat VSTs. There is a one minute auto-refresh, or it can be refreshed manually by pressing the space bar. There is a hotkey to display the stack trace for the connection, but statement caching must be enabled for this to work. There is an option to reset all stats to Zero.


The DocxFactory Project

DocxFactory is a free project for generating .DOCX files.

Features at a glance -

  • Simple to use - To create a .DOCX file, design a template (regular .DOCX file) and merge your data with the template using 4GL/ABL or from the command line. No technical knowledge of the .DOCX file format (Open XML) is required.
  • Powerful - Does a lot more than simply inserting values and creating simple letters, it allows you to truly create real world, sophisticated reports and includes barcodes, pictures, paging features and much more.

Obfuscate Code.

Hi everyone.

I need obfuscate just a some lines of my code 4gl. Someone have any information how I can do this.

Thanks for you help and sorry for my english :D.


Date Picker in pure ABL

Hi,
This Time picker is written pure in 4GL/ABL. No need to using any other ocx. I written this tool because I don't like to use MS products much... :)

This code is written in Turkish but I'm sure it's easily to convert other languages by coder...

Regards,
Mucip:)


HTTP Request Header "Authorization"

I have a working web services client against a commercial concern's website, and have a problem with a recent security change. They used to use "SOAPEndpointUserid and SOAPEndpointPassword", and have changed to a new authorization token, using a new HTTP Request Header with the name "Authorization".

I'm not the most web services savvy developer, and I haven't been able to figure out the 4GL changes needed. I developed the app using the prowsdldoc tool's output, but the output doesn't seem to reference http headers.

Can anyone point me in the right direction on this?


Crystal Report 2011 v14+ with OE 10+

Hi,
Is there anyone who has worked with OE 10+ and Crystal Report v14+ integration.

Since crystal Report 2011 does not support runtime so not sure how we can proceed?
I am not able create connection to crystal report 2011.

I would appriciate if someone can help me out for the same.

Thanks


Returning a generic ADO.Net dataset from ABL

I'm trying to call a .Net object method that returns an untyped-generic System.Data.Dataset result but I cannot figure out the syntax. Once I do, I'm not sure how to access the records.
My code looks like this:

{bo\DynamicQuery\DynamicQuery_ds.i}
DEF var hProc as handle.
DEF INPUT-OUTPUT Parameter dataset-handle hDS.

Run bo\DynamicQuery\DynamicQuery.r PERSISTENT SET hProc No-Error.
IF VALID-HANDLE(hProc) THEN DO:
RUN ExecuteByID IN hProc (input "UFM-Cfg-Insite", {&dataset-handle hDS}).
END.
ELSE DO:
Message "InSite Configurator: Unable to create Dynamic Query BO".


Is it possible to send/receive message to IBM webshqere from Progress 9.1

Is it possible to send/receive message to IBM webshqere from Progress 9.1?

How to coding?

ths.

king wang
my mail address:
kingwang520123@163.com


How to execute mfg/pro progress code in unix by bash file

Dear all,

I want to call progress code by bash scripts.
The db version is progress 9.1d.
The bash code like this:

#!/bin/sh

DLC=/mfgpro/dlc91d;export DLC
PATH=$PATH:$DLC;export PATH
PROMSGS=$DLC/promsgs;export PROMSGS
PROTERMCAP=$DLC/protermcap;export PROTERMCAP
PROPATH=$PROPATH:/mfg/hhh/,/mfg/hhh/ch/xx,/mfgpro/qadeb2sp4/,/mfgpro/qadeb2sp4/bbi,/mfgpro/qadeb2sp4/src/,/mfgpro/qadeb2sp4/xrc; export PROPATH

#$DLC/bin/mbpro -pf $1 -p $2 > /dev/null
$DLC/bin/mpro -pf $ -p $2

The parameter 1 is db pf file.
The parameter 2 is my progress code.


Progress Naming Conventions

Is there any community information out there in the Progress world on naming standards?


Progress Profiler

There is a capability built in to ABL to provide run-time execution detail on a program. It collects execution times on blocks of code so that one can evaluate performance. It returns:

  • Line numbers.
  • Number of repetitions.
  • Average time.
  • Cumulative time.

It can be used by:

  • -profile run time parameter. Profiles whole session, but does not require modifying code.

Determine whether Progress is 32- or 64-bit

This is a bash script that determines whether the Progress version installed on a *nix system is 32-bit or 64-bit. It also determines whether the O/S is 32- or 64-bit, though this has not been widely tested. It can be conveniently called from other scripts by running with the -s switch and checking the return value (32 or 64, or 0 on error).

The script needs to be able to find the Progress installation in order to run. It will check $DLC, $PATH, and /usr/dlc.

Typical usage:

> 32or64.sh
Progress is 64 bits; OS is 64 bits

> ./32or64.sh -s
> echo $?
64


libxlsx Project

Hi all.

Does anyone know what happend to the libxlsx project?

Regards


#
Syndicate content