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.


Links between Frame buttons in SmartWindow

Hi,

I need help, I do not know how to make a link between two diferent SmartFrames in SmartWindow, I would like to link them with a button, I hawe made a manu bar in SmartWindow and in a way linkt them but that isn't wath I was looking for.
I have attached the picture where you can see two of the frames I want to link, the right one with the left one, I would like, when I push the blue button to open the left frame in the SmartWindow.

Thank's a lot!


Creating a PDF viewer in OpenEdge

I need to be able to create a way to view/modify a PDF file (Adobe form) inside an OpenEdge application. Has anyone done this that might have suggestions on how to start?


Exit button

Hi,

I am new in progress OE10 programing, I am makeing some king of database and I need the code to make an EXIT button... a suposse it is not complicated but I simply do not know how to write the code and I can not find it on any forum.

thank's


Progress DB access via VM

Hi,

I'm using Progress 10.1c in Linux(ubuntu 10.04) which runs on a Windows machine via VM. The databases are running in Linux as local databases i.e. without specifying any port numbers. How can I access the DB's running on Linux from Windows.
Is i possible at all?

Regards,
Akshay


OE 10.1 and Crystal Reports

I have a legacy character progress application (WDS-II) and would like to create a process to generate customer packing slips for orders using a centralized Crystal reports. Has anyone done this before? We are running OE10.1B03 on 64 bit Linux (soon to upgarde to OE10.2A). We have 4 locations and would like to centralize a Crystal report system for handling the printing of packing slips so any customization can be done in one spot. Any info on the best way to implement this would be great. Please include the best way for Crystal to communicate with OE.


Dynamic Query system

I want to build a procedure that will take in a query string, dynamically run it and display the results into a grid. I've done that using code like this:

DEF VAR vBuffer AS HANDLE NO-UNDO.
DEF VAR vQuery AS HANDLE NO-UNDO.

CREATE BUFFER vBuffer FOR TABLE txtTable:SCREEN-VALUE.
CREATE QUERY vQuery.

vQuery:SET-BUFFERS(vBuffer).
vQuery:QUERY-PREPARE(txtQuery:SCREEN-VALUE).
vQuery:QUERY-OPEN().
vQuery:GET-FIRST().
...
Code to insert into the grid...
...


Seeking Events From Progress Redirection

Hi,

I am working on some projects that use 'Progress Redirection' to programmatically populate the main input frame in a maintenance screen program using values from an 'input file'.

To populate the frame manually, a user 'tabs' from field-to-field within a sub-frame and 'carriage-returns' to subsequent sub-frames within the frame. My 'input files' reflect this, listing 'tabbed' fields on the same line (separated by spaces), and signaling 'carriage-returns' with new lines.


Calling out to a C++ class from the Progress ABL

On a programmer mailing list, there was a question about how to call out to a class in C++ from the Progress ABL. The following gives an example of doing so.

First, here is a bit of C++ code that hopefully illustrates a wrapper on how to call out to a class from the Progress interface (explanation follows):

------------ 2.cpp -----------


extern "C" {

int TestRoutine () ;

}




class A {

 private :

 int A1;

 public :

 int SetA1 (int V) {

   A1 = V;

 }

 int GetA1 () {

   return A1;

 }

}; // class A


int TestRoutine () {

Changing text on popup message alert buttons

Is there a way to change the text on buttons that are displayed in a popup message? For example:

MESSAGE "This is a test. Do you wish to continue?"
VIEW-AS ALERT-BOX BUTTONS YES-NO UPDATE vContinue.

Is there a way to creat buttons that don't say YES-NO like above and say something else (whatever I want to put into them)?


Note about character client on Windows

Just a note, in case anybody else runs into this. I couldn't get the character client to work (Windows 7), but found what was wrong. Right-click on the shortcut to get the context menu, go to Properties, select the Layout tab, and look at the Screen buffer size. The height in the screen buffer size should be the same as the height in the Window size.


How to pass/get selected text from active OEA editor to "Customization program".

Hi,

In OE Architect you can run your own procedures from menu or context menu using OpenEdge Customization editor. If I select some text from active file on editor, is there any change to get that selected text in called procedure? Meaning that I have some file opened in OEA. Then I select text from it. Then I run my own procedure (ie test.p) that I have added to Customization/Extensibility menu. In that called procedure (test.p) I need to know that selected text.


libooxml

Where can I find libooxml/samples?


Managing user privileges

Hey,

Lets suppose my current progress session(Version 10.2c) is having a database COMMON running on it. This database has 3 tables Customer, Order & Service.

Now I want to restrict certain user 'A' to be allowed to view data in Customer table only i.e. this particular user should not have insert, update or delete rights. It can only view data in one of the tables of COMMON database.
Assumption : User will be using procedure editor which they will be starting using mpro from command line to view data in Customer table.


Convert OpenEdge format expression to a regular expression

Has anyone written a tool to convert an OpenEdge format expression to a regular expression that is used by things like JavaScript and Silverlight?


SMTPMail with NTLM Authentication

Hi,

Can anyone help me with smtpmails. I am trying to use smtpmail.p using an Exchange server with NTLM authentication. Current smtpmail.p supports only LOGIN menthod. I did some research but couldn't find a sample program to generate NTLM type 3 message. Can someone help me with this or a way to get around this. I am not able to stick to Windows alone solution such as a com/dll I need to use the program with a linux client with an Exchange Server.

Thanks,

Sam


#
Syndicate content