Hi,
There is a Page DataType in the parameter list option of a function. If I want to pass the current page out to a codeunit function to use the current values of that page, how do a do that?
For example if you are in the Customer Page CurrPage wont work in:
Page:
CodeunitName.FunctionName(Rec, CurrPage);
CodeunitName:
FunctionName(VAR Customer: Record Customer; VAR CustomerCard : Page "Customer Card")
The Page variable must below to 21 and not to 2147483643
Any ideas?
Many Thanks
0
Comments
As the parameters ask, it need to be a Record from Customer Table plus The page Customer Card...
The error: Means that you should pass a var page of Customer Card.
Is there in that codeunit something else that might use what you need but accepts other page id?
Keeping virtually all bespoke code out of the standard objects and in bespoke object ranges is a preferred development standard. The Form object and still the Page object appear to be primitive in allowing this to happen to the full potential I think.