I want to automatically ask for the work date while logging in to nav database (using companyopen() in CU1). is it possible ? how to call the system form to set the work date ? help required.
Actualy my objective is to launch automatically (while logging in) the system form by which we set Work Date (Tools -> Work Date). While logging in user can change work date or can accept the default one.
You can accomplish this through training. Show the user how to change their work date. What reason is there to have it pop up automatically when they login? To me that's like saying for every user in sales the customer card and sales order forms should open automatically when they log in. Or the Chart of Accounts should open for every Finance user.
You need to make a form having feild User defined workdate and pass the parameter to workdate by using function in CU 1 on LoginStart().This will help you to change WorkDate accordingly.
I agree with Mattrax. Before you go with the question of how to achieve your wish, maybe you could start with "what is your real problem? and why you should need this?".
Since I think it is not a hard effort, to click Tools | Work Date, right?
Comments
see what system does....
IF Glentry.ISEMPTY then
WORKDATE = TODAY
ELSE BEGIN
Glentry.SETCURRENTKEY("Posting date");
Glentry.findlast;
WORKDATE = Glentry."posting date";
END;
You can try it by using Shell Commmands(Alt+T then W) which opens WorkDate Form
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Since I think it is not a hard effort, to click Tools | Work Date, right?
Andwian