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 - bteixeira

Pages: 1 [2]
16
Language / DIM (FIND ) and LIKE
« on: October 04, 2019, 09:12:51 AM »
I'm trying to get the first element in an array that contains a substring.  (Preferably without having to do a for loop)
DIM (FIND ) looked promising but it doesn't seem to work with the LIKE comparison.
Is there another way to do this?

17
Language / DUMP GOTO / 'TJ' Parameter
« on: July 31, 2019, 10:42:45 AM »
DUMP GOTO looks like it would be really useful for debugging... but the results I'm getting are basically pages and pages of *winproc... is there another parameter that says don't track jump history in system programs?

18
Programming / Re: Apache HTTP Interface
« on: February 21, 2019, 04:19:53 PM »
Mike,
     I did some digging into in_proc, in_send and in_recv and came up with the following code that looks like it does what I want:

00010  let OUTFILE=%INOMADS'TCPFILE
00020  let TO_OUTPUT$="<?xml version="+quo+"1.0"+quo+"?><outside><first>Ben</first><last>Teixeira</last></outside>"
00030  let TO_OUTPUT$+=$0D0A$
00040  if len(TO_OUTPUT$)>9000 \
        then write record (OUTFILE,err=*next)ior($8000$,bin(8000,2))+mid(TO_OUTPUT$,1,8000);
             let TO_OUTPUT$=mid(TO_OUTPUT$,8001);
             goto *same
00050  if not(nul(TO_OUTPUT$)) \
        then write record (OUTFILE,err=*next)bin(len(TO_OUTPUT$),2)+TO_OUTPUT$
00060  remove (OUTFILE,err=*next)
00070  end

I just set up a transaction with this program and no exit url.  Using *plus\web\request the response is exactly right.
This works, but I'm hesitant to use something like this, sort of going around the back of iNomads.  Who knows what might change in future versions of PxPlus?

As a wishlist item, could we get something in iNomads where you could specify that a transaction is a REST request and we could write a program similar to the above (or better just set something like %inomads'rest_response$) that would handle the response?

19
Programming / Re: Apache HTTP Interface
« on: February 21, 2019, 09:30:51 AM »
I'm more asking, since I know iNomads lets you keep the application server separate from the web server, can I use iNomads to generate the XML/JSON response rather than doing the Apache reverse proxy you mentioned before.

20
Programming / Re: Apache HTTP Interface
« on: February 21, 2019, 08:25:58 AM »
Can you use iNomads to generate an xml or json file instead of displaying a panel?  I know you can specify a program to run instead of a panel but I don't see anything equivalent to the %print_fn channel.

21
Programming / Apache HTTP Interface
« on: February 20, 2019, 05:02:24 PM »
I'm looking to implement some web APIs (json or xml).  The Apache HTTP Interface looks to be basically what I need but the setup documentation implies that PxPlus needs to be installed on the Apache server.  Can I use the interface if I want to separate the web server and my application on different boxes?

22
iNomads / File Upload
« on: January 08, 2019, 04:22:46 PM »
Mainly looking for best practices when using the %inomads'upload_file() method.  We want to limit file type and file size on an upload.  We'd also want to scan the file for viruses.  I don't see anything in the inomads documentation that does any of this.  Is there a way to limit file type/size.  Can iNomads integrate with a virus scanner? 

23
Nomads / Re: Locked Cells in a Grid
« on: October 15, 2018, 04:36:54 PM »
Mike,
     Can you elaborate on 'SkipLockedCells?  I did some experimentation and am finding it rather lacking for what I'd hoped it would do.

  • It appears to ignore celltype of "Button".  If you lock a button cell, arrow keys still let you go there
  • Up/down arrows don't seem to honor this property.  If you lock all of row two and you arrow down from row one it still goes to row two rather than skipping it and going to row three
  • TabMode of 2 does skip the whole locked row but EnterMode of 3 goes to the locked cells

24
Nomads / Grid Arrow Keys
« on: October 12, 2018, 03:10:52 PM »
Is there a way to override the standard arrow key behavior in a grid or at least to trap that an arrow key has been pressed.

Basically what I'm trying to do is if a user presses a down arrow to jump down two rows instead of the standard one.

25
Nomads / Re: Button Don't underline &
« on: July 31, 2018, 08:50:09 AM »
I see it in all of v14.0, v13.1 and 12.5  I don't see it in v10.  I didn't check any other versions
See attached.

26
Nomads / Button Don't underline &
« on: July 30, 2018, 03:39:36 PM »
I have some buttons where the text is coming from user entered data.  It could have basically any characters including ampersand.  On the font attribute, there is a checkbox for "underline & characters" but this doesn't seem to do anything for buttons.  Short of having to put in a bunch of sub(mytext$,"&","&&") and sub(button.ctl'text$,"&&","&") statements, is there any setting to tell the button to not underline & characters / don't be a hot key button?

27
Wish List / Forum Notifications
« on: July 20, 2018, 02:35:05 PM »
I've been trying to set up notifications for all boards on the forum.  Arguably, the most important are the FAQ and Tips & Techniques boards yet these are the only boards that you cannot set up notifications for!  These do have activity, posting even just today (7/20/18).  I could see reason to lock down who can post to these boards but not why you'd prevent users getting notifications from these.

Pages: 1 [2]