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

Pages: 1 2 [3]
31
Programming / Re: Field Force development
« on: December 05, 2018, 12:47:56 PM »
I have no problem with the field checking function...
I was wondering what the best method would be to construct a maintenance routine that will allow the users to specify which fields are required.
I am thinking about a drop list populated from the file DD that would have check boxes for each field.
Is this the easiest method?


32
Programming / Field Force development
« on: December 05, 2018, 08:37:28 AM »
A client wants to be able to indicate what fields in their account master file of our application should be forced/required before an update is allowed.
They just need a maintenance routine to allow them to indicate which fields are required and a file to store the results.
Our existing update could check this new file to see if all required fields are filled in.

Just wondering what would be the fastest way to develop this in nomads?


33
Programming / Re: Backups and corrupted files
« on: November 22, 2018, 10:40:47 AM »
Paul, have you considered using the CREATE FILE directive to make your backups?
https://manual.pvxplus.com/page/directives/create_file.htm

This directive (added in PxPlus 2016) was specifically designed to help with this problem.  It does a high-speed data backup of active data files while placing a temporary lock on the file that prevents any updates. 

Assuming your files are a reasonable size you should be able create duplicate files fairly quickly.  For example on my Suse Linux server here I was able to create a backup of a 750MB file in under 2 seconds using the CREATE FILE directive.  The system prevented any updates to the file during this process but still allowed other processes to have the file open and simply stalled any updates until the copy was complete. A few second delay during off-hours is likely not going to be noticed.

In theory you should be able to create a program that makes copies of all your files as your backup and optionally ZIP that that directory up or transfer to another machine.  This should help assure you clean backups.
Trying to get the syntax of the command working with a channel number.
Can someone post a sample of the "CREATE FILE" command using a channle number.
Thanks

34
Off Topic / ITACIT interface
« on: October 11, 2018, 10:33:28 AM »
Has anyone done any integration with the ITACIT information system.
They use a REST interface to upload data.


35
Language / Re: Update a LIST_BOX
« on: July 25, 2018, 01:30:03 PM »
Actually its easier than that -- just set 'Item to the index for the item you want to change then set 'ItemText$ to the new value.

If you want to change the current item the set 'Item to 'CurrentItem and then change 'ItemText$. Here is a demo program.
Code: [Select]
0010 PRINT 'CS'; LIST
0020 LET Lb=100
0030 LIST_BOX Lb,@(40,1,12,6),FNT="*"
0040 LIST_BOX LOAD Lb,"Dog/Cat/Pig/Cow/Ant/Gnu/"
0050 WHILE 1
0060 SET_FOCUS Lb
0070 INPUT *
0080 IF CTL=4 THEN BREAK
0090 LET item=lb'currentItem
0100 IF item=0 OR CTL<1 OR CTL>3 THEN CONTINUE
0110 IF CTL=1 THEN LET Lb'item=item; LET Lb'ItemText$=UCS(Lb'ItemText$)
0120 IF CTL=2 THEN LET Lb'item=item; LET Lb'ItemText$=LCS(Lb'ItemText$)
0130 IF CTL=3 THEN LET Lb'item=item; LET Lb'ItemText$=CVS(Lb'ItemText$,256)
0140 WEND
0150 ! list_box remove Lb
0160 END
Run it and select an item from the list.  Pressing F1 will convert to upper, F2 lower, F3 mixed, F4 Quit
This works even better...

36
Language / Re: Update a LIST_BOX
« on: July 25, 2018, 01:29:10 PM »
Ed,
You have to remove the currently selected item, add your new item, then select it.  See lines 52-58 below

0010 print 'CS'; list
0020 list_box 100,@(2,14,12,6),fnt="*"
0030 list_box load 100,"Dog/Cat/Pig/"; wait 1
0040 list_box write 100,"Cat"; wait 1
0050 ! list_box load 100,1,*
0052 list_box read 100,_index ! Get index of current selection
0054 list_box load 100,_index,* ! Remove current selection
0056 list_box load 100,_index,"T-Rex" ! Add this one in its place
0058 list_box write 100,"T-Rex" ! Select the new option
0060 end

This is what i needed.

37
Language / Update a LIST_BOX
« on: July 25, 2018, 10:47:30 AM »
what is the command to update the currently selected item in a LIST_BOX with a new value?

38
Nomads / Re: New Query not pre-loading
« on: July 12, 2018, 09:26:38 AM »
I may have had a corrupt query... i re-defined it and it loads as expected now and very fast.

39
Nomads / Re: New Query not pre-loading
« on: July 11, 2018, 01:22:26 PM »
The new query does not actually pre-load data. This is an option setting for the classic query to allow column sorting. The new query will either load-on-demand or background load. The issue which you may be encountering is that you can only sort on a column when all the data has been loaded into the query listbox. With the classic query, there was no display until all the records were read, so when you clicked on the column header, the sort occurred. With the new query, records are displayed before they have all been read, so there could be a wait while records are being loaded before the sort could happen.

I was missing the "Loeading.." message that is on the classic query.

Would it be practical to put a loading message on the new query... So the user is aware that the records are still being loaded?


40
Nomads / New Query not pre-loading
« on: July 10, 2018, 12:54:45 PM »
We have tried the new query with several applications and found it does not behave properly.
Using version 13.1
If the file has many records and the query is set to pre-load data... most times the data will pre-load but you cannot re-sort by clicking on a column title.
The only solution we have found so far is to exit the query and run it again. Usually the second time it works as expected.
This happens with various files and applications.
We have now reverted back to the old query, which seems to work fine.
Has anyone else experienced this? Or should I be looking for a solution?


41
Nomads / Re: Query problems
« on: July 09, 2018, 02:32:27 PM »
Found the problem... A program was setting %NOMAD_QUERY_KNO=1 and this was overriding the query definition.

Solved Now

42
Nomads / Re: Query problems
« on: July 09, 2018, 02:25:03 PM »
More info...

If I do not run our application the query loads with the proper alternate key.

What %nomads variable will prevent a query from loading an alternate key?


43
Nomads / Query problems
« on: July 09, 2018, 10:29:12 AM »
Using version 13.1
Defined querys will not pre-sort by alternate key.
Have tried classic and + options and many other combinations.
It will on random occasions sort by the alternate key, but then switches back to a default alternate key.
what options shouild i be looking at?

44
Off Topic / Re: Hi there!
« on: June 25, 2018, 01:27:46 PM »
Glad you like it.  It should make things easier for people while allowing individuals to maintain email notifications if they desire.

We also setup the Knowledge base area and a secondary theme to provide a different look for those who want it.
For our European friends we added the language packs for Dutch, German, Spanish, and French.

How do you get that many posts on the first day?  ;)

45
Off Topic / Re: Hi there!
« on: June 25, 2018, 01:11:52 PM »
Howdi

Just joined

Ed

Pages: 1 2 [3]