Weird problem updating InteractionLog Entry

RoelofRoelof Member Posts: 377
edited 2006-03-29 in Navision Attain
Hi,

I have a weird problem.
I'm trying to modify the OnLookup trigger of the UserID field of Table 5065 (Interaction Log Entry). It seems to be, if you have 'Windows Login' set up and you want to zoom into this field, you'll get a error message.
I'm trying to change the lookup trigger and have create my own code:

User ID - OnLookup()
//LoginMgt.LookupUserID("User ID");
IF User.GET("User ID") THEN;
Users.SETTABLEVIEW(User);
Users.SETRECORD(User);
Users.LOOKUPMODE(TRUE);
IF Users.RUNMODAL = ACTION::LookupOK THEN BEGIN
Users.GETRECORD(User);
VALIDATE("User ID",User."User ID");
//Returning value not returned?
END;

But it doesn't seem to update the record.
Any ideas?

PS: I even removed the 'LoginMgt' local var in this trigger, incase that might effect the issue.

Roelof.
Roelof de Jonghttp://www.wye.com

Comments

  • krikikriki Member, Moderator Posts: 9,112
    Have you run the table directly or from a form?
    If you run the table directly this can happen, but if you do it from the form, it works.
    This is a bug that came up since version 3.7 (I think). Before this version I have never encountered the problem.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.