PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → ERROR: PageDisplayDialog should have returned a value
ERROR: PageDisplayDialog should have returned a value
Débuté par Zach Allen, 03 nov. 2017 14:41 - 1 réponse
Posté le 03 novembre 2017 - 14:41
Pretty simple error but hard to find a fix.
We have buttons with hardcoded values on the Dialog page:
- Save button that closes the dialog with true
- Close button that closes the dialog with false

The button works about 99.9% of the time but once in awhile throws the below error.
How is this possible with hardcoded values?
This issue has been in some our software for years, is not consistent, and happens on the majority of dialogs that we have at one time or another. We are developing a new project and have a little time to dig into this issue to try and find a fix but we are stuck.

We thought it might have something to do with users double-clicking so we added popup's everywhere with please wait. That seemed to work, but then it would happened again days later. We have no way to reliably replicate and produce this error.
We thought it might have something to do with calling dialogs after pressing back or refresh in the browser, but that is not consistent either.

Does anyone else have this issue? have they found the problem? or a fix?

on a Page, click change. Opens the dialog with Change, and click save or close to close the dialog and return to the page.
The dialog is opened with PageDisplayDialog(DLG_ALTER_Design,id) and is closed with PageCloseDialog(false) and PageCloseDialog(true).

WL call: Process of 'Click of BTN_Change ( CELL_MDL_Body ) (server)' (PAGE_Designs.CELL_MDL_Body.BTN_Change), line 6, thread 0 What happened? 'PageDisplayDialog' should have returned a value. Error code: 1005 Level: fatal error Dump of the error of 'wd220vm64.dll' module (22.0.219.4). Identifier of detailed information (.err): 1005 Debugging information: Fonction (31,188) Additional Information: EIT_PILEWL : Click of BTN_Change ( CELL_MDL_Body ) (server) (PAGE_Designs.CELL_MDL_Body.BTN_Change), line 6 EIT_DATEHEURE : 03/11/2017 10:24:30 EIT_TYPE_WDFILE : <65538> EIT_IDCODE : <851984>
Membre enregistré
67 messages
Posté le 20 janvier 2020 - 16:30
Hi Zach

Did you ever find out what the problem was? How did you resolve it? I am having the same issue with a project that was working perfectly okay and then suddenly after a small change to the code started exhibiting this behaviour.
Would appreciate your feedback.

thanks