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.


Topics - clayton.fast

Pages: [1]
1
Programming / No event firing in Report View List_Box
« on: December 19, 2020, 09:42:29 PM »
The CHANGE<ctl.name> is not being executed in a class.  I'm using a NOMADS panel.

I'm sure the answer to this is simple but I haven't figured it out.  I attached screenshots of the List_Box properties from NOMADS.

Here's the program starting the class:
0010 REM "era.pvx
0020 SETERR ERROR_TRAP
0030 LET SESSION=NEW("session")
0040 LET ERA=NEW("era")
0050 LET RESULT=ERA'PROCESS()

Here's the FUNCTION from era.pvc:  (It doesn't get here when I click on a row in the List_Box.  It does fire until I double click on a row)
00880 FUNCTION CHANGELB_CLAIMS()
00890 SETERR ERROR_TRAP
00900 GOSUB SET_IOLISTS
00910 LET LC=LB_CLAIMS.CTL,L1=LC'VALUE,L2=LC'ITEM,L3=LC'CURRENTITEM,LC$=TRY(LC'ITEMTEXT$,"")
00920 LET TT$="Control id ="+STR(LC)+"  Value = "+STR(L1)+"  Item Num "+STR(L2)+"  Item Text = "+LC$+"  Current Item = "+STR(L3)
00930 MSGBOX TT$
00940 RETURN

I attached the Nomads List_Box properties.

I'm developing on Win 10 and running PxPlus 2019

2
Web Services / Error Compiling mod_inomads.c
« on: October 21, 2018, 02:26:34 PM »
We are in the process of moving our applications from a local server to an Azure Centos v7.  We are using inomads.  We have installed PxPlus 2018 and it is working for our character based application.  We are attempting to replicate what was running on the local server.  There are 2 PxPlus installations on the server (one standard version and 1 Wayfarer version).

Can someone help us figure out what is going wrong?  Thanks.

When we attempt to compile the inomads module for apache (mod_inomads.c) with this command: apxs -i -a -c mod_inomads.c, we get the following errors:

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_inomads.lo mod_inomads.c && touch mod_inomads.slo
mod_inomads.c:137:62: error: unknown type name 'BOOL'
 static struct SESSION *Session_Find(struct INOMADS *pNomads, BOOL bCreate);
                                                              ^
mod_inomads.c: In function 'Load_Config':
mod_inomads.c:287:4: warning: implicit declaration of function 'stricmp' [-Wimplicit-function-declaration]
    if (stricmp(szLine, "DIRECTORY") == 0)
    ^
mod_inomads.c: In function 'Load_session':
mod_inomads.c:626:2: error: unknown type name 'BOOL'
  BOOL   bUsedCookie; /* Indicates if cookie was used to get session ID */
  ^
mod_inomads.c:677:3: warning: implicit declaration of function 'Session_Find' [-Wimplicit-function-declaration]
   if (Session_Find(pNomads, FALSE) == NULL)
   ^
mod_inomads.c:677:36: warning: comparison between pointer and integer [enabled by default]
   if (Session_Find(pNomads, FALSE) == NULL)
                                    ^
mod_inomads.c: In function 'Spawn_ViaTcp':
mod_inomads.c:954:11: warning: assignment makes pointer from integer without a cast [enabled by default]
  pSession = Session_Find(pNomads, TRUE);
           ^
mod_inomads.c: At top level:
mod_inomads.c:1627:63: error: unknown type name 'BOOL'
 static struct SESSION * Session_Find(struct INOMADS *pNomads, BOOL bCreate)
                                                               ^
mod_inomads.c: In function 'Session_Free':
mod_inomads.c:1705:3: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'struct SESSION *' [-Wformat=]
   ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, Request->server, "Releasing SESSION %s entry at %8.8x", pNomads->szSession, pSession);
   ^
mod_inomads.c: In function 'FileIO_GetDir':
mod_inomads.c:1928:2: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
  apr_table_setn(Request->headers_out, "Content-Range", apr_psprintf(TmpPool, "bytes 0-%d/%d", max(0,nBytes-1), nBytes));
 ^
mod_inomads.c: In function 'FileIO_GetFile':
mod_inomads.c:1979:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'apr_off_t' [-Wformat=]
  apr_table_setn(Request->headers_out, "Content-Range", apr_psprintf(TmpPool, "bytes %d-%d/%d", nOffset, nOffset+max(0,nLength-1), nFileSize));
  ^
mod_inomads.c:1979:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'apr_off_t' [-Wformat=]
mod_inomads.c:1979:2: warning: format '%d' expects argument of type 'int', but argument 5 has type 'apr_size_t' [-Wformat=]
mod_inomads.c: In function 'FileIO_Put':
mod_inomads.c:2021:2: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
  { nRead = (long)min(sizeof(bfrTemp), nBytes-nOfsIn);
  ^
apxs:Error: Command failed with rc=65536

3
Off Topic / Label Printer Suggestions
« on: August 14, 2018, 01:44:00 PM »
I need suggestions for a label printer that I can print to from PXPLUS running on a Linux Centos server.  This is a WAN deployment; if that makes any difference. ???

Thanks,
Clay

4
Nomads / Dictionary
« on: August 05, 2018, 09:26:51 PM »
We build providex.dde and providex.ddf from our proprietary dictionary.  I'm trying to figure out how to incorporate it with Providex tools like Nomads and the Report Writer.

I have several questions:

1) How do I set the global variables in the file name/path so that the PVX tools know where to find the physical file.  I could probably figure out how to do it if I started the tools from within a Providex program that I write.  I'm struggling trying to figure out how to do from the IDE.
2) How do I determine or force the dictionary to use my specific physical copy of providex.dde and providex.ddf?  There are so many copies of those files in different folders that I can't figure it out.  I even tried to see which physical file changed when I changed dictionary information,  That didn't work for me.  That wasn't logical to me.
3) Where can I find information on how to define the keys for a particular file definition?  I could probably figure that out if I could get an answer to #2.

Thanks,
Clay

Pages: [1]