.Net


Using .net user control with 4GL (adm2) container

The sample shows how a .net user control can be used with an ADM2 container. There is no specific support for ADM2 otherwise (links, etc) but it should be quite possible to modify the window super-proc to support automated display of date values in a date picker, f.ex, along the lines it's done for the JukeBox framework.

Components:

JBoxWrapWindowInForm.p:
Super proc for container that keeps track of control(s) in window, (re-)creates the window menu as .net menu and manages resize of control(s)

JBoxWrapperForm.cls:


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".


Convert .NET System.Byte[] TO Progress MEMPTR

I would like to convert .NET System.Byte[] TO ABL MEMPTR (BLOB).
What is the most efficient way to achieve this?

I have already create code to get this done, but it performs much to slow. (see code snippet: METHODE 1)

I was try to increase the performance for the conversion by using base64 as an intermediate form.
But i can not get it to work. See code snippets METHODE 2 and METHODE 3)


/* METHOD 1 */
METHOD PUBLIC STATIC MEMPTR ConvertToMemptr( byteArray AS "System.Byte[]" ):


New position

Accepted a position in March 2011 with PNY Technologies in Parsippany NJ, as Sr. Programmer/Analyst. We are installing the Epicor 9 MRP system, the business logic of which is written in Progress ABL.

I'm doing various enhancements to the Business Objects to customize the system for PNY's needs. We will eventually install e9 in our facilities in France and Taiwan.

The GUI is written in .Net and all ABL is run on appservers. We are actually using a SQL-Server database and Progress DataServer for MSSQL.


Distinct color generator

Generates a given number of distinct colors for use with GUI for .NET e.g. UltraCharts.


.Net and Progress Gui

I'm not sure this is even possible but figured I'd throw it out there, it's at least good for an eye roll and muttered "WTF?"...

We have a legacy application, heavily based upon adm2. The idea is being explored to redo the UI, and instead of doing the entire app at once, the goal is to impliment pieces at a time. The solution that is being explored is to embed a web browser in the application, write the new functionality in Asp.net with ajax and utilize the embedded browser to view the page, essentially "overriding" the former functionality.


Syndicate content