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 - Peter.Higgins

Pages: 1 ... 4 5 [6] 7 8
76
Nomads / Re: Cannot remember how folders work in Object Nomads.
« on: July 31, 2019, 09:01:01 AM »
Thanks Mike,
Suspecting a refresh issue, I had traced the logic in debug mode from the read to the folder display. After the read, the variables for the second folder were populated, and after clicking the tab to display for the first time, they were not.   To keep the project moving I saved off the folder panels and made one screen so there is no going back for a quick test now. 
The system parameters do have Thoroughbred compatibility set.
Could all be from the need of a server reboot too since I am seeing the occasional quirks. 
Yesterday and today for instance, an inherited class on this panel started running the panel keyinit rather than its own method and wiping out the key value.  This code was tested a couple days after starting this thread and has just worked since.   To correct, I needed to go back and add "from 'This class'" to all the inherited base class method instances.  A first for me.


77
Nomads / Re: Cannot remember how folders work in Object Nomads.
« on: July 26, 2019, 12:14:01 PM »
Mike,
Version is 1400-664.

78
Nomads / Cannot remember how folders work in Object Nomads.
« on: July 24, 2019, 09:15:52 AM »
Hi list,

Tried adding a two panel folder to an object nomads panel yesterday and could not get the second panel to load the data (iol variables in fields) unless it was visible when when the record was pulled up.  Illogically, in that case, the first panel had its data as well, and both panels kept their data while flipping back and forth and navigating other records then returning. 

Really seems like the second panel clears the record variables on it when first shown,  but first panel does not, even when displayed second. 

After sleeping on it I am still mystified.  What am I doing wrong? Is it necessary to make the last panel the current panel prior to reading a record and switch back?  Fldr'DisableFldr() until after the read?

Background:
V17.  Not using  RefreshScrn( ) as it does not work for the main panel.   
Key and navigation Btns use same logic from record read which is by record.
Record data is moved to screen variables, which is iol list.

 

79
Programming / Re: How to remove a file from an FTP server using Curl
« on: June 20, 2019, 04:27:29 PM »
Mike,
I recently ran into a hosted ftp curl delete issue and the answer was to put a ./ before the filepath.

80
Nomads / Re: using code snippets for standard control definitions
« on: May 24, 2019, 08:53:52 AM »

Another way to see all the lines and change them quickly is to export a similar panel and change the "INI" like text, and then reimport as the new panel.  Down side is you leave text files on the system that have to be transferred and cleaned up.  Occasionally it fails as well.  But it was a major time saver for years. 

I also use clip and snip nomads libraries, but when working around different systems you get burned by less obvious things like validations unless you examine every folder on every field.  Yesterday I copied a dictionary field and lost the time saving and more in the testing phase. 

After playing with Thomas's method yesterday, I realized it is a superior method, and is going to save me a lot of headaches and heartaches.

Thanks Thomas.

81
Nomads / Re: ERR=10 *nomads /pvx/lib/*winproc - Line 230
« on: May 24, 2019, 08:36:09 AM »
Something to keep in mind when working with Nomads

Nomads creates a shadow copy of the panel you are working on (if none exists) by doing AND $80$ on the first character of every key for the panel.   You are working with the shadow copy until the panel is saved or abandoned. 
A good example of this is to shift insert on a field, then paste into a text editor.  The record will start with a special character, not the one you were expecting and the asc() will be 128 higher.

So when you open a panel and on exit after no changes and get the messages save and abandon, the shadow record still exists because someone did not abandon their changes however many years earlier.

82
Nomads / Re: Accommodate different monitor sizes
« on: May 24, 2019, 08:26:20 AM »
THANKS James,

Great tip!  We are already doing some of this. 
The old code was using the same fonts, just reading  'OPTION'("Stdfont") to refactor the size, so I was thinking of adding "GraphicFont" as well thinking it was needed for the graphic fonted text labels. 

Now  hopefully someone will be able to point out where DPI value is available in the system. 

83
Nomads / Accommodate different monitor sizes
« on: May 23, 2019, 04:33:51 PM »
Trying to make  panels relatively the same size on different monitors.

After obtaining the monitor DPI and calculating the new default graphic and text fonts
it looks like I need to drop and reinstantiate or init() the *obj/nomads.pvc object.
That's where nomads instantiation gets murky.

Does the font have any affect on character size?
Will I also have to set other fields like the Xchar, YChar, Xmax, Ymax? 


84
Language / database.pvc encapsulation issue gives wrong results.
« on: May 16, 2019, 03:09:06 PM »
Hoping this is already a non issue in V2019 because of the SQL export.   Nice job on all the upgrades. 

Just wanted to bring this to your attention. 
When using database.pvc :
If setdatabase(x$) method is used to set a new dictionary, the %Z__PVXDDF$ variable is not set. 
This is important as other methods besides password use CALL "*dict/dd_updt;... and these methods fail if the current path in %Z__PVXDDF$ is not the same as X$ because  "*dict/dd_updt" calls a dictionary open routine dependent on  %Z__PVXDDF$ path in the opens.   
Thanks

85
Language / database.pvc
« on: May 07, 2019, 11:08:35 AM »
Found something this morning.
Using a delimited file structure I get column width=0 for all key fields from the IDXINFO object returned from database.pvc method GetIndexInfo().
In the executed LOAD_INDICES procedure of database.pvc, the properties are loaded by the line
READ DATA FROM X$,SEP=":" TO KN,SN,COLUMNATTR$,COLUMNWIDTH,COLUMNOFFSET
x$ is a lightly modified Keydefinition$ from dde_fh. 
Both have contents of "1:1:AC"

If columnwidth is 0 after this statement then should not a columnwidth = num(length$,err=...) be added so a separate routine to poll COLINFO object to get field length is not required?


86
Language / Re: web/ftp & websftp
« on: April 25, 2019, 04:54:33 PM »
Austin,
I'm Sorry that wasn't clear. 
The messages show are the result$ returned.

87
Language / web/ftp & websftp
« on: April 25, 2019, 02:27:33 PM »
I am occasionally getting error messages from one or both of these programs.
Error #12: File does not exist (or already exists)(At Line: 792)
Error #12: File does not exist (or already exists)(At Line: 878)

The application is run as a script and the client advises there is occasional network congestion. 
Since the program is encrypted, this is not much help in determining the where, what, how, of the issue. 

What needs to be known and cannot be determined any other way from the error for audit verification are Procedure and file name. 

What would be even nicer is an object that could re-classed and extended with such luxuries as
  • memory file lists for remote
  • memory file lists for transferred
  • file count remote
  • file count transferred
Why encryption is applied to a wrapper around curl which is open source, (even if it is not copy left), with the usage well and widely documented?
There are a significant number of unencrypted programs that would be far harder to figure out and reproduce. 


88
Off Topic / Re: pvxplus educational material for beginner
« on: April 25, 2019, 01:44:24 PM »
Thanks Stephan,
The +U and -U are very handy but do not work on the grid.  At  least not for the flashing that occurs at the 0,0 position when doing background changes to cells. 
Actually it was the first thing I tried as I use them within custom progress bars and widgets.  Focus was second.
There are times hiding a grid just doesn't look right and I am not a fan of putting a place holding graphic behind saying Loading etc.
A screen updating property for the grid would be nice to have. 

89
Programming / Re: XML Parser - Find Node based on Attribute Value
« on: April 19, 2019, 09:21:35 AM »
Josh,
Since PVX has object inheritance, I would suggest a re-class of the xml object to add Mikes attribute search function so the code is reusable and not in the edited programs.   If the process does a large amount of searching in large files, adding an override of the *obj/xml parser routine to add a memory file with alternate keys on the attributes etc would be warranted.

90
Programming / Re: 2 factor authentication under linux?
« on: April 19, 2019, 08:58:54 AM »
Mike,
Thanks for pointing this tool out.
SMS is so much more appropriate for critical issues after hours than email.

Pages: 1 ... 4 5 [6] 7 8