PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Webster Plus / Re: Retrieving calculated string from program to web page
« Last post by Susan Cryderman on May 15, 2024, 02:40:16 PM »
Hi Phil,

If I'm understanding this correctly - printer$ is the element in the data file being maintained and printerList$ is the delimited list of available printers (that is not an element in the data file).

I have not tried this - but it sounds like you might need to add a Hidden Variable to the form.  You can do this by adding a line using the [hide] short code to the generated html page that looks something like:

[hide printerList$ value=""]

 - or -

If you are running PxPlus 2022 or later, you should be able to also do this from within the File Maintenance Generator.  Press the Hidden Variables button on Step 6 and add an Additional Variable of printerList$.
 
12
Webster Plus / Retrieving calculated string from program to web page
« Last post by pwhirley on May 15, 2024, 11:32:31 AM »
I'm not sure how best to explain my question. I feel sure it is an easy solution but I'm tired of trying to figure it out.
I have a file maintenance page generated through the NOMADS tools.  It works just fine and I've been able to do some tweaks.  I have copied _fm_webmaint to my progs folder and modified it and all the mods work except one.  One of the fields available to edit is the selected Printer.  I have made this a drop box and intend to offer a list of the available printers ON THE SERVER.  I inserted this line within the <form>:
[execute perform "Tools;Printer_List"]
The line executes and creates a variable, printerList$ that has a delimited list of available printers.  I cannot figure out how to make that variable available on the page so that it shows up in the line below:

[row "*\[show usefile field=printer$\]:"][list printer$ usefile event=Printer_Validate]
      [data rowsep=/]printerList$[/data][/list]
   [/row]<br />[/font][/font][/size][/size]

I have tried using %webster'Update(printerList$,mynewlist$) in my program, but I cannot get any data in the variable printerList$ on the web page.

Any help would be appreciated.  It is something simple, I am certain.

Thanks - Phil
13
Programming / Re: close programme
« Last post by EVa on May 15, 2024, 05:58:40 AM »
Can you explain what you mean by "uploading a file in the system" ?  Are you using iNomads or the webserver or Webster+ ?  Or is it an FTP upload ?  Do you have a screenshot of the popup ?
14
Programming / Re: close programme
« Last post by Danilo David on May 15, 2024, 02:23:35 AM »
hello,

Anyone knows, sometimes when Im uploading a file in the system
theres a popup "close programme" then when you press ok it will close everything
but thats not always like that, sometimes is ok.

Thank you for your reply
regards,
Danilo
15
Webster Plus / Re: Password for downloaded CATS Webster+ demo
« Last post by pwhirley on May 14, 2024, 03:43:52 PM »
Thanks Jean,
I was not requesting a password for the online demo.  I downloaded the code to my local machine from https://demo.pvxplus.com/site.zip.

I chatted with Mike K. and found that the user name is "Admin" and the password is the same as the default online password.  It all works now and is very helpful.

Phil
16
Webster Plus / Re: Password for downloaded CATS Webster+ demo
« Last post by jhendrickx00 on May 13, 2024, 07:06:16 PM »
Why just don't request another password with your same email?

https://demo.pvxplus.com/

  Check the button [ I forgot my password ] and provide your email.

Jean H//
17
Webster Plus / Password for downloaded CATS Webster+ demo
« Last post by pwhirley on May 13, 2024, 02:05:24 PM »
Hello All,
I have downloaded the CATS Webster+ demo application but cannot find the password.  Since I'm not terribly familiar with the PXPlus security system, yet, I have been unable to figure out how to hack it and get into the demo on my local system.

What's the user name and password for the demo system that I have downloaded?

Thanks - Phil
18
Programming / Re: Source code formatter
« Last post by pwhirley on May 13, 2024, 11:52:26 AM »
This is great news, Len!  Thanks for letting us know.  I will look forward to the extension and will immediately begin playing with it. 

Perhaps I'll even make it to the developer conference in September, though I can't find much information on it.

Phil
19
Programming / close programme
« Last post by Danilo David on May 13, 2024, 04:55:17 AM »
hello,

Anyone knows, sometimes when Im uploading a file in the system
theres a popup "close programme" then when you press ok it will close everything
but thats not always like that, sometimes is ok.

Thank you for your reply
regards,
Danilo
20
Cedric

Here is the code I use on Linux to ungzip content returned by some APIs we're working with :

Code: [Select]
0780 UNGZIP:
0790 ENTER (GZIPPED$)
0800 !
0810 UNGZIPPED$=""
0820 !
0830 GZFILE$="/tmp/pvx/TEMP."+FID(0)+"."+DTE(0:"YYYYMMDD.%Hz%mz%sz")+".gzip"
0840 OPEN CREATE PURGE (HFN,ISZ=-1,ERR=*NEXT)GZFILE$
0850 IF TCB(2)=1 THEN RETURN ""
0860 WRITE RECORD (LFO,SIZ=LEN(GZIPPED$),ERR=*NEXT)GZIPPED$; GZIPPED$=""
0870 CLOSE (LFO)
0880 FOR (GZIPPED$="")
0890 OPEN (HFN,ERR=*BREAK)"<cat "+GZFILE$+"|gzip -d"
0900 UNGZIPPED$+=RCD(LFO,END=*NEXT); GOTO *SAME
0910 CLOSE (LFO)
0920 ERASE GZFILE$,ERR=*NEXT
0930 NEXT
0940 !
0950 RETURN UNGZIPPED$

Hope this helps
Pages: 1 [2] 3 4 ... 10