openedge

unixodbc driver manager cannot open specified library on install

半腔热情 提交于 2019-12-21 04:23:18
问题 I'm using ArchLinux and I am trying to install OpenEdge progress drivers so I can access it via PHP. I've installed the unixodbc package and the drivers, but when I test the connection via isql or PHP, I get the same error... # isql -3 SUBS2A [01000][unixODBC][Driver Manager]Can't open lib '/usr/dlc/odbc/lib/pgoe1023.so' : file not found [ISQL]ERROR: Could not SQLConnect The messed up thing is that "/usr/dlc/odbc/lib/pgoe1023.so" presently exists, I even symlinked it from "/usr/dlc". The

OpenEdge ABL automatically close a yes/no message after a certon amount of time has pasted

时光毁灭记忆、已成空白 提交于 2019-12-20 05:48:31
问题 Right now I have: message "Hello World" view-as alert-box warning buttons yes-no update lVariable. how can I automatically click the no after 14 seconds. 回答1: How to do this "another way": DEFINE FRAME f-message "This is your message" WITH CENTERED OVERLAY . DO ON ENDKEY UNDO, LEAVE: VIEW FRAME f-message. PAUSE 14 NO-MESSAGE. HIDE FRAME f-message. END. 回答2: In ChUi, you can't. (and this is some more characters so I make the 30 char minimum for an answer.) 回答3: If you're on version 10.2b+ you

OpenEdge ABL automatically close a yes/no message after a certon amount of time has pasted

寵の児 提交于 2019-12-20 05:48:04
问题 Right now I have: message "Hello World" view-as alert-box warning buttons yes-no update lVariable. how can I automatically click the no after 14 seconds. 回答1: How to do this "another way": DEFINE FRAME f-message "This is your message" WITH CENTERED OVERLAY . DO ON ENDKEY UNDO, LEAVE: VIEW FRAME f-message. PAUSE 14 NO-MESSAGE. HIDE FRAME f-message. END. 回答2: In ChUi, you can't. (and this is some more characters so I make the 30 char minimum for an answer.) 回答3: If you're on version 10.2b+ you

Solve max length or precision with Progress using Spring Batch

对着背影说爱祢 提交于 2019-12-13 08:28:44
问题 I'm using spring batch, and I need to query data from a legacy system, which uses the progress database. However I am with this exception java.sql.SQLException: [DataDirect][OpenEdge JDBC Driver][OpenEdge] Column Ag-Obs-conf in table PUB.Agenda has value exceeding its max length or precision. I was able to partially solve this problem using a SUBSTR in the select, but I need all the data from the database. And I can not in any way change the database. Can anyone give me an idea how to solve

After searching in a database how to display the result field values in an editor widget using progress 4gl

瘦欲@ 提交于 2019-12-13 06:14:49
问题 Accept a customer number and then output the details of each order and items to an editor widget. Display them in the editor widget ( editor-1 as object name). define temp-table ttcustomer field custnum like customer.cust-num field cname like customer.name field orders like order.order-num field items like item.item-num field itemname like item.item-name . find first customer WHERE customer.cust-num = input f1 NO-LOCK . create ttcustomer . assign ttcustomer.custnum = customer.cust-num

Writing Temp table value into .csv file

旧街凉风 提交于 2019-12-13 02:50:46
问题 We have created one temp-table dynamically . and we want to out put the complete table into a .csv file. how to do? DEF VAR ttH AS HANDLE NO-UNDO. ttH:CREATE-LIKE(hBuffer). ttH:Temp-table-prepare("tmytable") 回答1: Because you created your temp-table dynamically, you cannot use the EXPORT statement (at least to my knowledge). What you can do though is dynamically output first the fieldnames and then the field values of your table. Like so: DEFINE VARIABLE hQuery AS HANDLE NO-UNDO. DEFINE

Progress display long field (frame/form)

风格不统一 提交于 2019-12-12 19:15:39
问题 How can i display a long field on screen. For each cust : Display remarks. End. The remarks field has 300characters to display. The display statement gives an error that the field is too long to display. I already tried form and frame definitions. With the width-option this doesn't work. Now i tried with size 300 by 2 but then it show me 80 chars and scroll bars to see the rest. How can i display the field completely on the screen without scrolling etc? Tkx 回答1: I'm assuming that a "remarks"

How to Copy MEMPTR to/from a LONGCHAR variable with out getting error or NULL value?

最后都变了- 提交于 2019-12-12 19:04:23
问题 while copying the value of a MEMPTR to a LONGCHAR variable using GET-STRING, i got an error 9324 . Is there any solution ? I've tried this: function x returns longchar(): DEF VAR i_xml_string AS LONGCHAR NO-UNDO. DEF VAR i_mem AS MEMPTR NO-UNDO. p_doc:SAVE("memptr":U, i_mem). COPY-LOB FROM i_mem TO i_xml_string. return i_xml_string. end. But got the following errors: [16/03/17@10:20:58.984-0700] P-009824 T-000001 3 4GL 4GLTRACE Return from ConvertXmlDocToLongString "" [yeai/ye508mu.p] [16/03

Asynchronously read cmd output in .NET - Hanging on process input request

北慕城南 提交于 2019-12-12 02:44:42
问题 I'm asynchronously reading the output from a batch file, after starting it with some parameters. If the batch file is waiting for input - the input request text is not being redirected - unless the process is terminated (which is obviously too late to respond). If executed in a standard cmd window, the prompt is: OpenEdge Release 10.2B07 as of Fri Sep 7 02:16:54 EDT 2012 testdb already exists. Do you want to over write it? [y/n]: The output when using redirect will hang, without triggering

Progress 4GL web service procedure

≯℡__Kan透↙ 提交于 2019-12-12 02:37:40
问题 I'm trying to update our stocks thought the Magento API using Progress 4GL (OpenEdge 10.2B) So far so good, ie: I can update the stock if the SKU is a match. But if it isn't, it doesn't return an error. So I looked into how ABL manages SAOP fault errors, and found some examples which I tried to implement. But to no avail. My new code is as follows: DEFINE VARIABLE hWebService AS HANDLE NO-UNDO. DEFINE VARIABLE hMage_Api_Model_Server_V2_HandlerPortType AS HANDLE NO-UNDO. DEFINE VARIABLE