RE: [development-axapta] Problem with Adress table

2004-01-02 Thread Malcolm Burtt
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. 



Yahoo! Groups Sponsor	 
ADVERTISEMENT
Click to learn more... 	
	

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


RE: [development-axapta] Problem with Adress table

2004-01-02 Thread Malcolm Burtt
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. 



Yahoo! Groups Sponsor	 
ADVERTISEMENT
click here	
	

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


RE: [development-axapta] Problem with Adress table

2004-01-02 Thread Sherif Metwally
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. 



Yahoo! Groups Sponsor	 
ADVERTISEMENT
Click to learn more... 	
	

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


RE: [development-axapta] Problem with Adress table

2004-01-02 Thread Sherif Metwally
It solved my problem, thanks

-Oorspronkelijk bericht-
Van: Bjørn Gudbrand Idstad [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 28 oktober 2003 10:26
Aan: [EMAIL PROTECTED]
Onderwerp: 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. 



Yahoo! Groups Sponsor	 
ADVERTISEMENT
click here	
	

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


RE: [development-axapta] Problem with Adress table

2004-01-02 Thread Bjørn Gudbrand Idstad
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. 



Yahoo! Groups Sponsor	 
ADVERTISEMENT
click here	
	

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