if i am using a local database can i kill my session???
since i am trying this example in my laptop and not in a server where lots of people are using my databse i cant test it. can i test this in local databse?? i created the single instance codeunit but where from shoiuld i call this codeunit to run close sessions??
pls advise as i m new to navision i have little knowledge only
thanks in advance
Dear Kriki
If I will create the Report (Processonly) by taking DataItem(Session) and give filter to Login type to(Windows) then will it work in SQL DB.
Dear Kriki
If I will create the Report (Processonly) by taking DataItem(Session) and give filter to Login type to(Windows) then will it work in SQL DB.
I am not sure I understand what you want to do. :oops:
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
this is my single instance codeunit coding to kill a session
OnRun()
IF ISCLEAR(Timer) THEN
CREATE(Timer);
Timer.StartTimer(6000);
Code;
Code()
Session.SETRANGE("My Session",FALSE);
Session.SETFILTER("Idle Time",'>100 min');
IF Session.FINDFIRST THEN REPEAT
Session.DELETE;//Debugger stops here saying "you cannot delete a session when u r not connected to server
COMMIT;
UNTIL Session.NEXT = 0;
how to solve it.. i tried it by opening two fin.exe and running this codeunit in one
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
Comments
http://www.mibuso.com/forum/viewtopic.p ... ssion+kill
Rajesh Patel
I need this for a native DB.
Deep
India
you could use www.autocloseidle.com or www.expandit.com
http://www.BiloBeauty.com
http://www.autismspeaks.org
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Deep
India
if i am using a local database can i kill my session???
since i am trying this example in my laptop and not in a server where lots of people are using my databse i cant test it. can i test this in local databse?? i created the single instance codeunit but where from shoiuld i call this codeunit to run close sessions??
pls advise as i m new to navision i have little knowledge only
thanks in advance
Vineeth.R
If you put code in the OnRun-trigger of the singleinstance codeunit to initiate the timer, you can just run the codeunit from the object designer.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
If I will create the Report (Processonly) by taking DataItem(Session) and give filter to Login type to(Windows) then will it work in SQL DB.
Navision Technical Consultant
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
i tried as u said using 2 fin.exe opened. but when i tried to run my codeunit one error message prompted saying "You cannot close a session when u r not connected to server" ??? what did it mean..how to solve this issue pls advise
thanks Vineeth
Vineeth.R
Try to use the debugger to see if you find something more on the command that creates the error.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
this is my single instance codeunit coding to kill a session
OnRun()
IF ISCLEAR(Timer) THEN
CREATE(Timer);
Timer.StartTimer(6000);
Code;
Code()
Session.SETRANGE("My Session",FALSE);
Session.SETFILTER("Idle Time",'>100 min');
IF Session.FINDFIRST THEN REPEAT
Session.DELETE;//Debugger stops here saying "you cannot delete a session when u r not connected to server
COMMIT;
UNTIL Session.NEXT = 0;
how to solve it.. i tried it by opening two fin.exe and running this codeunit in one
Vineeth.R
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
http://www.BiloBeauty.com
http://www.autismspeaks.org
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!