Easy to Create, Easy to Change - Easy to use!


Printing out of form


Started by gg.stemper@t-online.de
Search
You will need to Sign In to be able to add or comment on the forum!

Printing out of form

Printing a record of a form, for example "Customer" with several subforms, is done with a button calling up the procedure. The procedure contains a data input form where you have to put in the customer number and the following procedure script :

for Customer with Number = data-entry number ;

list records

.......

Is there any possibility to run the procedure directly from the button in the Customer form without the need to put in the Customer Number?

It should be possible to get the Customer Number of the current record into a global variable that can be used as the selection criteria in prodedure without using the data entry form.

Written by gg.stemper@t-online.de 31/03/14 at 10:14:34 DataEase for Windows 7.x

Re:Printing out of form

Hi Guenther!

Here there will be several distinctive differences between DE8 and DE7. 

In DE8 you could do this via the internal functions SetVar()/GetVar() but in DE7 you will need to use either the CDF Set/GetArray() or Set/GetGlobal().

There is no unqique record number in DFW, so you will have to use a relational filter (but you do that already so shouldn't be a problem).

Simply choose the Action "Execute CDF" and then write in the following derivation (adapted for your needs)

SetArray(1,Number)+OpenProcedure("MyProcedure") 


In the procedure you simply write:

for Customers with Number=GetArray(1) ;

etc

Written by DataEase Tech Sup 31/03/14 at 11:23:49 DataEase for Windows 7.x