Sometimes it is necessary to communicate between objects of Navision with the purpose of transferring additional or complementary information to the called object. The more used option for it is by means pass of parameters, that is, from an object we executed to another object but before we called to a function defined by us.
For example: From the form A we executed form B passing to him some parameters with additional information.
First, in form B we will add a function with the parameters to receive:
SetMyParameters(Param1 : Integer; Param2 : Integer)
MyParameter1 := Param1;
MyParameter2 := Param2;
MyParameter1 and MyParameter2 must be defined as Globals, so that they conserve the value until the object is destroyed.
Add code in event OnOpenForm of form B so check that the vars have the value assigned by means pass of parameters :
Form - OnOpenForm()
MESSAGE('MiParametro1 = %1', miParametro1);
MESSAGE('MiParametro2 = %1', miParametro2);
Second, in form A, and before execute to form B, pass the parameters:
control1000000000 - OnPush()
myFormB.SetMyParameters(1, 2); //Pass parameters to form B
myFormB.RUNMODAL; //The var. MyParameter1 and MyParameter2 have value
CLEAR(myFormB); //The var. MyParameter1 and MyParameter2 NO have value
When execute the line myFormB.RUNMODAL it shown 2 messages inform of value of global vars in form B.
Tips dBits is a community of users and professionals that use and work with Microsoft Dynamics ERP NAV (Navision), related applications and other compatible technologies. In this web it will find all type of information and resources, such as news, documents, tricks, downloads, jobs, forums, tutorials and links to other webs.
Monday, March 20, 2006
Monday, February 27, 2006
Acces methods to Navision
Due to the persecution of the obtaining of the excellence in the chain of value of the organizations by means of the optimization of business processes (BPM), every time exists more necessity to connect distributed applications, with the purpose of constructing an infrastructure of software based on services (SOA), and this way, to gain in competitiveness, doing this process more efficient, more flexible and less expensive processes and to facilitate, thus also, the decision making (BI).
Navision, like fundamental part of this infrastructure (ERP), has different methods to facilitate its integration in the processes.
Click here for access to powerpoint archive that show this methods.
Navision, like fundamental part of this infrastructure (ERP), has different methods to facilitate its integration in the processes.
Click here for access to powerpoint archive that show this methods.
Thursday, February 02, 2006
Eliminate sessions
Thanks to rvalls for post in forum of Tips dBits.
From version 4.0 of Microsoft Business Navision, it is possible to eliminate sessions, in the native BBDD as in SQL Server. For it will be acceded to the window of "Database sessions", by means of menu File-Database-Information and in the eyelash "Sessions" it will be acceded to the LookUp of "Current sessions". Simply pressing the F4 key, any session will be able to be eliminated, except the present one "My session".
From version 4.0 of Microsoft Business Navision, it is possible to eliminate sessions, in the native BBDD as in SQL Server. For it will be acceded to the window of "Database sessions", by means of menu File-Database-Information and in the eyelash "Sessions" it will be acceded to the LookUp of "Current sessions". Simply pressing the F4 key, any session will be able to be eliminated, except the present one "My session".
Subscribe to:
Posts (Atom)