Re: The PoddyShein credit management statement crashing problem
UNILYNX
9-7-18
The problem has been solved.

The corrected Hal code looks as follows:-

// VER: 5.4 080912
// UST: 23.09.2008 (update)
// VER: 5.3 071214
// UST: 10.01.2008


global
procedure DoRunCMForm(record RcVc Dummyr,record RcVc RepSpec)
begin

    string 30 formcode;
    boolean testf;

    formcode = "INVOICE";

    LogText(0,"Before OpenForm 0");
   
//    FormLabelGrid(1,1,1,1);
    LogText(0,"Before OpenForm 1");
    testf = (OpenForm(formcode)==true);

CloseForm;
    LogText(0,"After OpenForm: " & testf);

return;
end;


global
procedure RunCMForm(record RcVc RepSpec)
BEGIN
boolean tmpf;


tmpf = PrintDocument(RepSpec,"RunCMForm",false);

LBH_StockMovLabelForm:;

RETURN;
END;




So the procedure with openform() in it has to be called via PrintDocument()

tmpf = PrintDocument(RepSpec,"RunCMForm",false);
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Gastón Salomone
Hi, I cannot find any information on about this feature on hansamanual. That is the purpose, is it working, how it works or how must be configured to work ? For REST API many web request per...
23:47 3 Oct 2024
Paul Timms
Thanks Bror-Erik, it's hard to replicate so we won't know for sure until we upgrade the customer with this issue....
10:37 30 Sep 2024