Recent posts

#91
Language / *plus/web/request - Unable to ...
Last post by Stéphane Devouard - October 23, 2024, 03:21:55 AM
Hello

Our ERP is interfaced to a bunch of external webservice APIs for various purposes
We are using *plus/web/request for all theses interfaces

We randomly get these errors returned by *plus/web/request :


Cannot contact host server xxxxxxxxxxxx;443;secure Unable to connect securely (err/ret=4/4)
This sounds like an issue with SSL/TLS. The last part is returned in MSG(-1). Can PxPlus support confirm in which case such a message is returned ?

The question is : is there any way of knowing if the issue comes from our server or from the 3rd-party host (whose IT department's, when asked, always respond that they haven't found any issue in their infrastructure).

Has anyone else got a similar issue and was able to troubleshoot it ?

TIA
#92
Nomads / Re: SELECTING A LINE OR LINES ...
Last post by Mike Hatfield - October 21, 2024, 05:12:38 PM
James,

Great explanation.
I shall try this and report back.
Thank you.
#93
Nomads / Re: SHOW CONTROL
Last post by James Zukowski - October 21, 2024, 04:27:32 PM
Actually, I (and NOMADS) use Fonted Text for the prompts for the different fields. Works fine there.
#94
Nomads / Re: SHOW CONTROL
Last post by Mike Hatfield - October 21, 2024, 04:25:21 PM
Thank you everybody for the help and comments.

Four days of frustration could have been avoided if the documentation noted that SHOW/HIDE doesn't apply to Fonted Text as it does for other controls.
In fact, from what I'm reading in these replies the documentation should be amended to recommend that Fonted Text not even be used as it's historic and retained for compatibility.
#95
Programming / Re: Calendar in grid input?
Last post by Jane Raymond - October 21, 2024, 10:26:25 AM
Here's a sample non-nomads program that creates a grid with cells that use a calendar query:
 
PRINT 'CS',
  mygrid=1000
  GRID mygrid,@(20,12,40,10)
  mygrid'columnswide=3,mygrid'rowshigh=5
  mygrid'row=0
  mygrid'colno=0,mygrid'columnwidth=10
  mygrid'colno=1,mygrid'celltype$="lookup" ! can edit cell
  mygrid'colno=2,mygrid'celltype$="query" ! cannot edit cell
  WHILE 1
  OBTAIN (0,SIZ=1)'ME',*,'MN'
  IF CTL=-1999 OR CTL=4 \
  THEN BREAK ! X or ESC
  IF CTL=mygrid \
  THEN GRID READ mygrid,mycol,myrow,myVal$,myEOM$;
        IF mycol<3 AND myEOM$=$FF$ \
        THEN GOSUB Do_Calendar \
        ELSE MSGBOX myVal$,"Value" ! the EOM for the lookup/query button is $FF$
  WEND
  END
!
Do_Calendar:
  PROCESS "Calendar","*win/calendar.en",myVal$
  GRID LOAD mygrid,mycol,myrow,myVal$+SEP
  RETURN
#96
Nomads / Re: SHOW CONTROL
Last post by Jane Raymond - October 21, 2024, 09:04:26 AM
To HIDE/SHOW something on a panel, I find it easy to use Dependency Definitions:
https://manual.pvxplus.com/page/NOMADS%20Graphical%20Application/Panel%20Designer/Options%20and%20Utilities/Dependency%20Definitions.htm
A dependency definition will hide/show controls automatically based on a condition.
Note: To use a Dependency for fonted text you would first have to assign it to a group, and hide the group.
#97
Nomads / Re: SHOW CONTROL
Last post by James Zukowski - October 21, 2024, 08:48:46 AM
The main reason it doesn't seem to work is that it isn't really an addressable control. It's text that is on the text plane, and the *wingrp routine deals with SHOW/HIDE separately.

I find that using a multi_line is much more effective, as I can drop whatever text I want into it and it's done.
#98
Nomads / Re: SHOW CONTROL
Last post by martinp - October 19, 2024, 10:36:42 PM
Hey Mike, Looks like for fonted text you need to assign the text to a group (Utilities->Group Assignment) then use the following:

call "*wingrp;HIDE",YourGroupName.grp$ 
call "*wingrp;SHOW",YourGroupName.grp$

To do what you need if you are still interested in using a fonted text.
#99
Nomads / Re: SHOW CONTROL
Last post by jhendrickx00 - October 19, 2024, 07:48:27 PM
Hi Mike, many many moons ago, someone (Mike or Yvonne) said was better use MULTI_LINE (instead of Fonted Text) to have a greater control over the shown text. Indeed, yes, you're right, the fonted text would be the control to use... but ...

Also, the only 'use' I saw for the regular text (aka 'Fixed Text') is have some clickable titles, but, the other controls (like transparent buttons) isn't longer need ...

Perhaps some of the resident gurus have a better explanation.

Jean H//
#100
Nomads / Re: SHOW CONTROL
Last post by Mike Hatfield - October 19, 2024, 07:01:17 PM
MARTIN - Header has suppress.val checked.

I think you are right SHOW does not work with FONTEWD TEXT
Jean - I have finally got the SHOW to work with MULTI_LINE as you suggested.
HOWEVER, I had to move the directive from the initial section of the program to where the List Box is loaded.
I initially thought I could ECEUTE the code in the HEADER at POST-DiSPLaY but that didnt work either.
Now that I have changed to MULTI-LINE POST-Display works
Nomads is such a confusing product.
Some good working examples would be so much more helpful.

Thanks