PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: [1] 2 3 ... 10
1
Programming / Re: Copy Data Definitions
« Last post by Jim Morton on Today at 03:11:45 PM »
Here is a routine I use on Windows to copy all files in a directory.
You can tweak it to change the filenames.

40400 COPY_DIR:! ^0200
40410 local fr_file$,to_file$,file_list$,command$
40420 ! needs fully pathed source$ and dest$
40430 source$=sub(source$,"/","\")
40440 call "*dirtree",source$,file_list$,sep,0
40450 while not(nul(file_list$))
40460 fr_file$=file_list$(1,pos(sep=file_list$)-1),file_list$=file_list$(pos(sep=file_list$)+1)
40470 to_file$=sub(fr_file$,source$,dest$)
40472 module$=fr_file$(pos("\"=fr_file$,-2)+1,2)
40474 if pos(module$=module_skip_list$,2) then continue
40480 ! Create any sub directories needed
40490 for i=1 to pos("\"=to_file$,1,0)
40500 directory to_file$(1,pos("\"=to_file$,1,i)),err=*next
40510 next i
40520 erase to_file$,err=*next
40530 command$=env("comspec")+" /c copy "+fr_file$+" "+to_file$
40540 invoke wait hide command$
40550 wend
40560 return
2
Programming / Copy Data Definitions
« Last post by Tom Anderson on Today at 02:56:51 PM »
I have tables defined in the Data Dictionary in PxPlus 2023 version that I need to replicate in the same dictionary.

All of the files are labeled beginning with 'Cx' where x is the company identifier. For example, the customer master file for Company 1 is 'C1ARCUST'.

I need to copy all of the elements in 'C1ARCUST' to 'C2ARCUST'. Everything is identical except for the number at position 2. I see where this is doable one file at a time under Copy but am wondering if the is a bulk copy utility do all of the C1 files at one time.

Thanks!

Tom 
3
Programming / Copy Data Definitions
« Last post by Tom Anderson on Today at 02:48:58 PM »
I have tables defined in the Data Dictionary in PxPlus 2023 version that I need to replicate in the same dictionary.

All of the files are labeled beginning with 'Cx' where x is the company identifier. For example, the customer master file for Company 1 is 'C1ARCUST'.

I need to copy all of the elements in 'C1ARCUST' to 'C2ARCUST'. Everything is identical except for the number at position 2. I see where this is doable one file at a time under Copy but am wondering if the is a bulk copy utility do all of the C1 files at one time.

Thanks!

Tom 
4
Webster Plus / Folder/Directory browsing from Webster+ page
« Last post by pwhirley on Today at 09:28:38 AM »
In one of my file maintenance programs I need to select a folder from the SERVER to store in the record.  At this moment it is up to the user to just fill the path in, but I'd love to allow the user to browse local and network folders from the server's perspective.  I could not find a utility to allow this, but I'll be there is a way.

For the full story, the file maintenance identifies a printer and a folder.  At the user's demand the program spawns a background process which continuously monitors the folder for CSV files containing information to be printed to labels on the printer.

Any ideas for allowing the user to select a folder?

Thanks - Phil
5
ODBC / count distinct not working
« Last post by Thomas Bock on May 22, 2024, 06:57:37 AM »
I receive an error 15 with
Code: [Select]
select count(distinct columnName) from table
msg(-1)=37000: [PxPlus][SQL ODBC Driver]Expected lexical element not found: <identifier>

How can I count distinct column values using ODBC 7.0.3?
6
Off Topic / Re: Possible error in query logic?
« Last post by jhendrickx00 on May 21, 2024, 05:07:10 PM »
You're right, my mistake. Thanks you!

Jean H//
7
Off Topic / Re: Possible error in query logic?
« Last post by Susan Cryderman on May 21, 2024, 10:54:18 AM »
It looks like the query definition for the multi-line control is not quite correct.  To use *win/email and *win/url the query for the multi-line control should be defined with Query Type of Query Program rather than Non-Query Logic.
 

There is documentation about these 'service' queries at:

https://manual.pvxplus.com/PXPLUS/NOMADS%20Graphical%20Application/Dictionary-Based%20Development/Query%20Subsystem/Service%20Queries%20for%20Web,%20Email%20and%20Map.htm
8
Off Topic / Possible error in query logic?
« Last post by jhendrickx00 on May 19, 2024, 05:34:28 PM »
Hi, when using the *win/url and *win/email programs I got an ERR=28, below are some screen caps; of course, VERY probably I'm making a mistake, below are the captures:
9
Nomads / Modifying Calendar query
« Last post by jhendrickx00 on May 19, 2024, 03:52:44 PM »
  Hi, perhaps the sunday afternoon is hitting me... but I can't figure out how modify NOMADS created calendar (this associated to a multi_line query), I think I can use the DEF DTE to translate the days names, but didn't work. Any generous soul  ;D could be pointing in the right heading? Also want to see if I can move the calendar panel (to be at the side of control, no below)...

  Thanks!
  Jean H//
10
Web Services / Re: Posting a File to a Web Service - > i got it to work
« Last post by Jeffrey Ferreira on May 18, 2024, 01:02:57 PM »
Hi,

i got it to work  :) with Stephane's helper class.
thank you so much.
at least the response said message queued and i'm pretty sure that means it worked.
i have to read thru Stephane's class now and figure out what on earth he did.

jeff
Pages: [1] 2 3 ... 10