Hi everybody,

Now I have a similar problem but with a webform. When I try to delete it using this code:

   while select u
   where u.name == "WebForm1" &&
         u.utilLevel == UtilEntryLevel::USR
   {
       print u.utilLevel;
       print u.name;
       print "Found";
       u.Delete();
   }

I get an error like "The sequencenumber doesn't match the original number". Apparently 
it finds the right record, but fails when I try to delete it.
Any good ideas?

Kind regards
Thomas Jensen


-----Oprindelig meddelelse-----
Fra: Malcolm Burtt [mailto:[EMAIL PROTECTED] Sendt: 29. oktober 2003 13:38
Til: [EMAIL PROTECTED]
Emne: RE: [development-axapta] Problem with Adress table


Yep, that worked a treat! Thanks. That's been bothering us for months.
-----Original Message-----
From: Sherif Metwally [mailto:[EMAIL PROTECTED]
Sent: 29 October 2003 11:52
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Problem with Adress table
Hi,
Try this. it should work
while select u
where u.name == "GrossWeight" &&
u.utilLevel == UtilEntryLevel::USR
{
print u.utilLevel;
print u.name;
print "Found";
//u.Delete();
pause;
}
-----Oorspronkelijk bericht-----
Van: Malcolm Burtt [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 29 oktober 2003 11:04
Aan: [EMAIL PROTECTED]
Onderwerp: RE: [development-axapta] Problem with Adress table
Hi Bjørn


I have a similar problem to Sherif. In my case the GrossWeight Extended Data Type is corrupt (Its a Real in the SYS layer, but in my USR layer its being seen as a String). Axapta crashes whenever this EDT is referenced, so I was hoping your solution would work for me too. I tried modifying the code you supplied to look for "typeId(GrossWeight)" in the USR layer, but it doesn't find anything. Just to check I'd made the right sort of change I tried getting it to select from UtilIdElements for another EDT, but still nothing. i.e.

classId = typeId(EmplId);

while select u
where u.id == classId {
print u.utilLevel;
print u.name;
print "Found";
}


Any suggestions on how I might change your code to fix the EDT corruption that I have?

Malcolm.
-----Original Message-----
From: Bjørn Gudbrand Idstad [mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 09:26
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Problem with Adress table
Hi!

You can run this job:

static void DeleteLayer(Args _args)
{
   Utilidelements u;
   ClassId classId;
   ;

classId = tableNum(Address);

   delete_from u
       where u.id == classId &&
             u.utilLevel == UtilEntryLevel::bus;

   pause;
}

- Bjørn
-----Original Message-----
From: Sherif Metwally [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 10:21 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Problem with Adress table
Hi everbody,


I have a major problem with the adress table in the AOT. As soon as it gets 
highlighted throw the mouse or keyboard, axapta crashes. So i cant do anything with 
this table.
The only information that i can get about this table is that it has modifications in 
the BUS Layer.
Does anybody knows how can i delete this layer from this table knowing that i can not 
aproach this table within axapta AOT.


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

_____

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 the Yahoo! Terms of Service.

Reply via email to