PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jeffrey Ferreira

Pages: 1 ... 9 10 [11] 12
151
Language / Re: *plus\web\request
« on: August 08, 2019, 05:46:25 PM »
Chris et al,
thanks
i backed up program.
put change in and saved it.
the request still works ...so that is good....
question:  why did my variables change from lowercase to uppercase in the pxplus program?
should i be concerned
jeff

152
Language / *plus\web\request
« on: August 08, 2019, 04:28:47 PM »
Hello,

i've been using *plus\web\request a lot but periodically (once  a day)
i get an error 47 at line 100

recvhdr$=stp(r$(1,o-1),3,$0D$)+$0A$

my first thought is to put an error branch on call and then re-try it...

but has anyone else experienced this error and maybe know a fix

jeff

153
Programming / Re: *web\request
« on: August 01, 2019, 11:02:21 AM »
Thank you Mike...including the boundary got me a lot further.

154
Programming / *web\request
« on: July 31, 2019, 01:07:44 PM »
Hello List,

I'm using *web\request to communicate with a web\service. I'm quite new to the whole posting to a web service....
I'm having trouble with one of the POST's.

Someone has shown me a tool call post-man to show me what the code looks like in other languages  (like python, node, javascript, etc)
and all of them do this thing where they wrap the POST_BODY in this webkitformboundary

my post fails...
i'm just curious...do i have to do this webkitformboundary or does *web\request do this for me...

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"DiscountUpdate.xml\"\r\nContent-Type: application/xml\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"

headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'Content-Type': "application/x-www-form-urlencoded",

155
Language / Parameter '-NE'
« on: July 08, 2019, 01:27:58 PM »
Hello List,

I have parameter '-NE' set because I'm running a program as a scheduled task and I want the errors returned to the performing program.  I was wondering is there any variable I could access to get more info about the error that happened in the "Performed" Program.

thanks

Jeff

156
ODBC / Re: Providex File Service Keeps Dying
« on: July 02, 2019, 09:36:29 AM »
Please ignore. I think i have a driver version issue.

157
ODBC / Providex File Service Keeps Dying
« on: July 02, 2019, 09:21:02 AM »
Hello List,
We have this account where we are running Providex File Service and PxPlus IO Service.
the PxPlus IO Service runs fine.
but everytime we go to query from the Providex File Service  the Service Stops.
The event viewer is not helpful.
I added a log to my dsn....
and here is what i get (see below)
does anyone have any thoughts

=======================================================
Driver version: 5.20.0000
ISAMOpen: UserID='cai', length=3
ISAMOpen: Trying to access the server using UserID='cai', Company=''
GetAccessibleTables:<table=ALL> Open catalog(s) [rmt:ponderosa1;20222]p:\cai\cai_lib , available 1266 table(s)
<Customer Master File> Open file p:\customer_data\mpd\MF1010, maxksz=22
ISAMCloseTable: Closing table Customer Master File - 0 file reads, 0 re-reads, 0 writes, 0 removes
     CACHE STATS - 0 reads, size 21642240 estimated, 0 used
------------------------------
SELECT * FROM "Customer Master File" WHERE 0 = 1

<Customer Master File> Open file p:\customer_data\mpd\MF1010, maxksz=22
Accessing table Customer Master File using keyno 0 * All records *
ISAMCloseTable: Closing table Customer Master File - 0 file reads, 0 re-reads, 0 writes, 0 removes
<Customer Master File> Open file p:\horner\mpd\MF1010, maxksz=22
ISAMCloseTable: Closing table Customer Master File - 0 file reads, 0 re-reads, 0 writes, 0 removes
     CACHE STATS - 0 reads, size 21642240 estimated, 0 used
GetAccessibleTables:<table=ALL> Open catalog(s) [rmt:ponderosa1;20222]p:\cai\cai_lib , available 1266 table(s)
------------------------------
SELECT * FROM "Customer Master File" WHERE ( 0 = 1 )

<Customer Master File> Open file p:\customer_data\mpd\MF1010, maxksz=22
ISAMCloseTable: Closing table Customer Master File - 0 file reads, 0 re-reads, 0 writes, 0 removes
     CACHE STATS - 0 reads, size 21642240 estimated, 0 used
------------------------------
SELECT * FROM "Customer Master File" WHERE ( 0 = 1 )

<Customer Master File> Open file p:\horner\mpd\MF1010, maxksz=22
ISAMCloseTable: Closing table Customer Master File - 0 file reads, 0 re-reads, 0 writes, 0 removes
     CACHE STATS - 0 reads, size 21642240 estimated, 0 used
------------------------------
SELECT * FROM "Customer Master File" WHERE ( 0 = 1 )

<Customer Master File> Open file p:\customer_data\mpd\MF1010, maxksz=22
ISAMCloseTable: Closing table Customer Master File - 0 file reads, 0 re-reads, 0 writes, 0 removes
     CACHE STATS - 0 reads, size 21642240 estimated, 0 used
------------------------------
SELECT * FROM "Customer Master File"

<Customer Master File> Open file p:\customer_data\mpd\MF1010, maxksz=22
Accessing table Customer Master File using keyno 0 * All records *
<Customer Master File> First Read Seek sts=0 key='', len=-1, keyno=1
<fh=Customer Master File> PVK_read returns buffer= iRsz='-1'

158
Programming / Re: Object Oriented Question
« on: June 25, 2019, 02:30:17 PM »
Stephane,

i think i finally understand what you are saying and how it could work....
if i had program1 create instantiate an object...
and inside method of the object i use the concurrent window that would allow me to create a closeable window  and because it is inside the method it would not be visible to the program that isntantiated the object...
is that what you were saying?

jeff

159
Programming / Re: Object Oriented Question
« on: June 24, 2019, 07:27:04 PM »
Hi Mike,

Thank you I will look at it. However, I was trying to get my feet with OOP and I thought why not do it with something useful.
I guess what I was looking for was an answer to the question:

is OOP good to use for GUI user interfaces?
or just for doing calculations and storing data.

For instance i can see the usefulness of something like this
==============================================
Customer.pvc object

cust=new("Customer")
cust'load("ABC100")
print cust'ar_balance
cust'deactivate()

but i cant see a good way to get it to work with a panel....

and the answer might be, "No Jeff you dont use OOP with panels."

thanks for you patience with me.

jeff

160
Programming / Re: Object Oriented Question
« on: June 24, 2019, 11:56:36 AM »
Hi Stephane,

Thanks for getting back to me. My only concern with that is that I think then all the controls / variables will be visible in new window.  I dont think that is a good idea or at least it violates the concept of encapsulation. I feel like a dummy because i read all these tutorials on OOP and it seems to work fine if you never want a user interface. But again it is probably the way I am implementing and I'm missing something very basic.

Jeff

161
Programming / Re: Object Oriented Question
« on: June 23, 2019, 08:03:36 PM »
i re-read my post...i should clarify...all the oop examples are like:

x=new("Automobile")
x.blow_horn()
x.top_speed=120

i'm wondering if associating a panel is a good idea or possible with oop

thanks

jeff

162
Programming / Object Oriented Question
« on: June 23, 2019, 07:19:06 PM »
Hello List,
i'm really new to oop.
I was trying to create an object using pxplus charts that would do something like the following:
chart1=new("chart")
and then i change properties to make a bar, line chart etc..then i can invoke the object from any panel presenting data....
the problem i am having is I want it to display in  a window...
i would like to equate to:

def object excel_obj="Excel.Application" and you have a visible excel that you can close....

the problem is when i draw a 'dialogue' and put my chart on it
if i close it i close my whole session....

i feel like once i get past this hurdle i can run with it....

163
ODBC / Re: Error Log ODBC
« on: March 18, 2019, 01:23:27 PM »
Devon, i think i'm pretty sure i'm using the same one
i have 64 bit version
if i go back in there it is still checked....
i will double check everything.

164
ODBC / Error Log ODBC
« on: March 18, 2019, 11:36:41 AM »
Hello List,
On the Debug Tab of a 64 bit odbc pxplus data source i checked.
Enable Debug
and then specified log file
if i use test connection it outputs to the file but no other tests will write to the file....Excel  or Other applications that we use to access it...
Has anyone had this issue before....
i have used this feature before at another client with some degree of success.

jeff

165
Programming / Re: Generic Query
« on: March 07, 2019, 05:02:49 PM »
i was told i need to do a set_focus and not next_id

Pages: 1 ... 9 10 [11] 12