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 - Thomas Bock

Pages: 1 ... 7 8 [9] 10 11 12
121
ODBC / Re: [PxPlus][ODBC Driver][PXPIO]File is busy
« on: May 09, 2019, 01:52:18 AM »
Try turning on debug mode and take a look at the logfile. Though it might be large after 4.5 hours it might also provide the information you are looking for.

122
Programming / scrollbars in multiline
« on: May 08, 2019, 10:47:04 AM »
Is there a way to display the scrollbars (v/h) only if needed?

123
Programming / error 0 while applying journal files
« on: April 23, 2019, 08:16:37 AM »
Now and then we encounter an error 0 while reading a journal:
** Error 0 on read of journal file:/u1/koss/data/jrnl/in/journal.735
That journal is in use for several hours, when the error occurs. What might be the reason for this?

124
Nomads / Re: using code snippets for standard control definitions
« on: April 05, 2019, 02:15:41 AM »
Mike,

I wasn't aware of this feature. I did dsome tests. It is okay for small libraries due to the time needed for the search. And  it is integrated of course.
But using the clipboard I can insert a group of controls at once as long as an embedded panel is no option.

125
Nomads / using code snippets for standard control definitions
« on: April 03, 2019, 11:04:13 AM »
This is how we create new controls with default definitions in nomads. We use Sublime 3.2, which is able of using code snippets. (In PSPad they are called clips.) These snippets are like macros plus some predefined replacement tokens. Upon execution of a snippet each replacement token can be substituted on the fly. The result is a text fragment, designed to speed up coding. We use this feature to create controls with several default values in nomads.

  • create a properly defined control in nomads and copy it to the clipboard
  • paste the clipboard content into an editor and make changes in order to save it as a code snippet (depending on the editor)
    This may start like this (keep the empty lines and everything else)
    [Nomads]
    PANEL       2537${1:<CONTROL>}
    36
    24
    20
    1
    M


    19

    P";"+id$+"_POST_CREATE"

    P";"+id$+"_ON_CHANGE"

    ...
  • use such a code snippet and copy the whole text result to the clipboard
    the editor will ask for a substitution for ${1:<CONTROL>}
  • move to a panel and paste the control

That's a little bit long-winded, but it works and it is much faster than editing all the entrypoints one by one.

126
Off Topic / Re: pvxplus educational material for beginner
« on: April 03, 2019, 06:24:10 AM »
Quote
Having some place in Nomads global settings to define those coding standards would be a nice addition, BTW.
You can do that with code snippets with your editor:

  • create a properly defined control in nomads and copy it to the clipboard
  • insert that text into your editor and make changes in order to be used as a code snippet
  • use such a code snippet and copy the whole text into the clipboard
  • move to the panel and paste the control

That's a little bit long-winded, but it works and it is much faster than editing all the entrypoints one by one.

127
Off Topic / Re: pvxplus educational material for beginner
« on: April 01, 2019, 05:52:29 AM »
Peter,

Again it is worthwhile reading posts I'm not really interested in ;) . Though I knew id, id$ and ";POST_DISPLAY" I didn't know anything about ";"+id$. I'll forward this to our devel team ASAP :D . It will save us a lot of copy-paste-adjust-cycles.

But watch out for query program definitions. As id$ is set according to the focused control, a click on a query button will not trigger the correct program unless it is the query button for the currently focused control.

128
Programming / Re: dropping files with umlauts
« on: March 28, 2019, 03:16:01 AM »
I simply want to open a file, which has been reported to my program by a drop event.
Running PxPlus V14 SCS on a Linux server.
Code: [Select]
read data from fin(0, "DROPFILES") to droppedFile$
open(hfn) "[wdx]"+droppedFile$
None of my conversions/substitutions for the umlaut have been successful so far.

129
Programming / dropping files with umlauts
« on: March 27, 2019, 07:43:15 AM »
A user received a file with an "ö" (ouml) in his mail client. He saved it in the file system and dropped it from the explorer to a multiline on a PxPlus panel. The file can not be processed in any way, because PxPlus always throws an error 12.
All components correctly show an "ö", these are the mail client, Windows explorer, and Linux bash.
Reading the directory content with a PxPlus program returns that file with $6FCC88$ for the "ö" and the file can be opened by PxPlus. But the drop event (FIN(0,"DROPFILES")) returns $6FA8$ for the "ö", which causes error 12.
What characters set is used for the drop event?

130
Programming / strange error 40
« on: March 27, 2019, 04:35:14 AM »
During the import of CSV-files to Excel our program does basically something like this:
Code: [Select]
import = sheet'queryTables'add(*connection, *range)
import'adjustColumnWidth = 1
import'textFileCommaDelimiter = 0
import'textFileDecimalSeparator$ = ","
import'textFileThousandsSeparator$ = "."
def object datatypes, %wdx$ + "*VARARRAY"
datatypes'setData(0, 2)
datatypes'setData(1, 2)
datatypes'setData(2, 1)
datatypes'setData(3, 4)
import'textFileColumnDataTypes.put(*datatypes)
This runs fine everywhere, but...
At one site the last statement throws an error 40. If I type "run" the program continues without errors.
Is this an issue of our program or an issue of Excel? Where does this error 40 come from, and why is it gone upon continuation?

131
Programming / Re: Data Dictionary Variable File Names
« on: March 26, 2019, 02:31:26 AM »
Define the physical file as an expression and enter the file name like this:
%path$+"fixedPartOfFileName"
You can use as many global variables as you want.

132
Programming / unique file name
« on: March 18, 2019, 05:52:45 AM »
Is this loop save to generate a unique file name in a multi user environment?
A customer reports issues which can only occur if that loop creates the same file for 2 processes.

Code: [Select]
mask$      = "0000000"
extension$ = ".txt"
filePart1$ = path$ + "spoolfile"
counter    = 0
repeat
checkFile$ = filePart1$ + str(++counter : mask$) + extension$
serial checkFile$, err = *continue
break
until 0

133
Programming / Re: Frequent Error 65's
« on: March 11, 2019, 02:56:53 AM »
We see a similar behavior on customers' sites only. I don't think the reason is a two head system, because our software is developed on multi head (2-3 monitors) systems. As far as I could find out there is an error 29 preceeding but it is not constantly happening. So next time the panel runs fine.
Somehow I got the impression that error is limited to controls near the right window border. But that is just a guess.

134
Programming / Re: Windx screen size.
« on: February 20, 2019, 04:05:20 AM »
Bill

The TypeSizeLoc entry in the section [WindowFrame] of your pvx.ini helps.
You can find a detailed documentation of the pvx.ini contents in the help file.

135
Programming / error 88 with sizer buttons
« on: February 08, 2019, 09:41:26 AM »
With PxPlus V14 locally installed on a Windows system we see several error messages like this one:
_WP_PROPERR:LBXSIZER HOVERTEXTCOLOR$ White Error #88: Invalid/unknown property name 37100 *winproc.dsp

This does not happen with WindX. What are we missing?

Pages: 1 ... 7 8 [9] 10 11 12