Hi

I remember to have read somewhere (probably in Technet) that you can only
overwrite the systemfields when inserting records. So, only "createdBy" and
the like can be set manually, but not "modifiedBy" etc.

The only solution for you I can think of is directly writing SQL statements
(either in SQL tool or with Axapta connection/statement).

Best regards
Helmut Wimmer

-----Urspr�ngliche Nachricht-----
Von: Henrik �sterg�rd [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. J�nner 2004 15:17
An: [EMAIL PROTECTED]
Betreff: RE: [development-axapta] Re: overwritesystemfields doesnt work



>-- Oprindelig Besked --
>To: [EMAIL PROTECTED]
>From: "agramm2000" <[EMAIL PROTECTED]>
>Date: Thu, 22 Jan 2004 13:55:52 -0000
>Subject: [development-axapta] Re: overwritesystemfields doesnt work
>Reply-To: [EMAIL PROTECTED]
>
>
>--- In [EMAIL PROTECTED], Henrik �sterg�rd
><[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Could anyone please tell me why the systemfield "ModifiedBy" doesnt
>seem
>> to be updated.
>> Its for an conversion from XAL, where some transacts uses these
>fields.
>> Dirty trick would be to make a new field, but I would rather not.
>>
>>
>>    ttsbegin
>>    cg = custgroup::find("test1",true);
>>
>> info(cg.modifiedby);
>>    cg.overwriteSystemfields(true);
>>    cg.(fieldname2id(cg.TableId,"modifiedBy")) = "test";
>>    cg.update();
>>
>>    ttscommit;
>> info(cg.modifiedby);
>>
>> Rgz, Henrik
>
>Did you enable "Modified By" in property of table custgroup? It it not
>enabled in standard.
>
>Regards
>Andi

Hi Andi
I did now, but it didnt help.
rqz, Henrik





Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to:  http://docs.yahoo.com/info/terms/



Yahoo! Groups Links

Reply via email to