openedge

How to use FTP using Progress 4GL?

跟風遠走 提交于 2020-01-03 07:02:58
问题 Is there any way to send files from a local folder to an FTP folder using Progress? 回答1: If you're running windows, then WinSCP is a good solution: http://winscp.net/eng/index.php 回答2: The "classic" way to do this is to send the commands that you would use if you were doing this manually to the built-in FTP command. If you know that you want to send a file called "myfile.txt" to the server at 192.168.0.1 you might code: define variable IPAddr as character no-undo. define variable fileName as

C# to connect to a Progress Database

冷暖自知 提交于 2020-01-03 03:01:18
问题 I'm trying to develop a program that will connect to a Progress Database (9.1E) using C# (Visual Studio 2010 Ultimate), but I first need to get a connection string to the Progress Database from the C# program. I have tried the following, but I'm unsuccessful in establishing a connection to the Progress database. I'm not sure what the connection string should look like, but here's what I have before I start expanding everything. Also, I'm not sure what the DSN name should be. private void

Value changing event in browser?

眉间皱痕 提交于 2019-12-25 07:59:46
问题 define variable hOrderQuery as handle no-undo. define variable browseOrder-hdl as handle no-undo. define variable browse-hdl as handle no-undo. define variable CNumber as integer no-undo. CREATE QUERY hQuery. hQuery:SET-BUFFERS(BUFFER Customer:HANDLE). hQuery:QUERY-PREPARE("FOR EACH Customer"). hQuery:QUERY-OPEN(). CREATE BROWSE browse-hdl ASSIGN TITLE = "Customer Browser" FRAME = FRAME MyFrame:HANDLE QUERY = hQuery X = 2 Y = 2 WIDTH = 74 DOWN = 10 VISIBLE = YES SENSITIVE = TRUE READ-ONLY =

Progress Sax-reader

只谈情不闲聊 提交于 2019-12-25 01:34:18
问题 I'm new to the progress Sax-reader. I'm reading an XML and I'm trying to get the value of one of the attributes in a node. Specifically the place-id attribute value. <address ssid="32975" place-id="11537" quality="good"> I'm reading the documentation here: https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dvxml%2Fretrieving-data-from-a-sax-attributes-object.html%23wwID0ECILM and to me that seems to indicate I should be using GET-VALUE-BY-NAMESPACE-NAME( ) I've

How to search all tables and all fields for a string?

試著忘記壹切 提交于 2019-12-24 17:25:07
问题 I want to search all fields in all tables of a database for a user supplied value and display records which contain that input keyword. Something like this: FOR EACH _file WHERE (NOT _file-name BEGINS "_" AND NOT _file-name BEGINS "sys") NO-LOCK: FOR EACH _field OF _file NO-LOCK: ASSIGN ttable = _file._file-name tfield = _field._field-name . FOR EACH &ttable WHERE ttable.tfield MATCHES "urpon frisbee " NO-LOCK : MESSAGE "hai" VIEW-AS ALERT-BOX INFO BUTTONS OK. DISPLAY _file._file-name . END.

How to export Fields to CSV in OPENEDGE

那年仲夏 提交于 2019-12-23 04:42:22
问题 Good day I have a 2 parts problem. currently i have a list of tables and its data needs to be exported to csv. My code is here: def temp table tt-table field f1 as int field f2 as char field . . . . output to value(session:temp-directory + "temp.csv"). put f1 at 1 "," f2. . . output close. is there a way to do this automatically or to shorten this code? there are 30-40 fields each table average and 5 tables needs to be exported. Second part: if i imported them back to our system, is it

Connecting via JDBC to OpenEdge in Talend

左心房为你撑大大i 提交于 2019-12-22 17:46:34
问题 In "Talend Data Integration" I want to create a connection using JDBC to a Progress OpenEdge database. I have no experience whatsoever with this type of connection. My ODBC-connections to the same resources work fine, but Talend requires a JDBC connection to function properly. The connection settings in Talend I have at the moment are: DB Type: General JDBC JDBC URL: jdbc:sqlserver://db-name:port;databaseName= * * Driver jar: ??? (which jar-file do I need for OpenEdge?) Class name: ??? (which

running a loop on a comma delimited list of items progress 4GL

独自空忆成欢 提交于 2019-12-22 06:15:03
问题 def var cList as char no-undo. assign cList = "one,two,three,four". <Loop> cList logic... </Loop> What's the best way to loop through a comma delimited list in a char variable so that in this example I would get one then two then three then four. 回答1: Lol I still remember a bit of Progress I think. DEF VAR i AS INT NO-UNDO. &SCOPED-DEFINE LIST "one,two,three,four" DO i=1 TO NUM-ENTRIES({&LIST}): MESSAGE SUBSTITUTE("LIST[&1] is &2", i, ENTRY(i, {&LIST})). END. 回答2: DEFINE VARIABLE ch-list AS

running a loop on a comma delimited list of items progress 4GL

大憨熊 提交于 2019-12-22 06:12:49
问题 def var cList as char no-undo. assign cList = "one,two,three,four". <Loop> cList logic... </Loop> What's the best way to loop through a comma delimited list in a char variable so that in this example I would get one then two then three then four. 回答1: Lol I still remember a bit of Progress I think. DEF VAR i AS INT NO-UNDO. &SCOPED-DEFINE LIST "one,two,three,four" DO i=1 TO NUM-ENTRIES({&LIST}): MESSAGE SUBSTITUTE("LIST[&1] is &2", i, ENTRY(i, {&LIST})). END. 回答2: DEFINE VARIABLE ch-list AS

running a loop on a comma delimited list of items progress 4GL

六眼飞鱼酱① 提交于 2019-12-22 06:12:08
问题 def var cList as char no-undo. assign cList = "one,two,three,four". <Loop> cList logic... </Loop> What's the best way to loop through a comma delimited list in a char variable so that in this example I would get one then two then three then four. 回答1: Lol I still remember a bit of Progress I think. DEF VAR i AS INT NO-UNDO. &SCOPED-DEFINE LIST "one,two,three,four" DO i=1 TO NUM-ENTRIES({&LIST}): MESSAGE SUBSTITUTE("LIST[&1] is &2", i, ENTRY(i, {&LIST})). END. 回答2: DEFINE VARIABLE ch-list AS