[development-axapta] BC writing in SYS layer - why?

2010-04-22 Thread TeenDivaBrat
Hi All,

I've a static method in a class running in server, which would create new 
BaseEnum element programmatically as below, for example.

public static server void createNewEnumElement(Args _args)
{
#AOT

TreeNode   treeNode;
TreeNode   subTreeNode;
SysDictEnum  sysDictEnum;

str   enumValue;
str   elementName;
str   enumerationName;

#define.EnumValue('EnumValue')
;

enumerationName = ABC;
elementName  = Z;

treeNode = TreeNode::findNode(#BaseEnumsPath + '\\' + enumerationName + 
'\\' + elementName);

if (!treeNode)
{
treeNode = TreeNode::findNode(#BaseEnumsPath);
treeNode = treeNode.AOTfindChild(enumerationName);

if (treeNode != null)
{
subTreeNode= treeNode.AOTadd(elementName);

if(subTreeNode != null)
{
sysDictEnum = new SysDictEnum(enumName2Id(enumerationName));
subTreeNode.AOTsetProperty(#EnumValue, sysDictEnum.lastValue() 
+ 1);
subTreeNode.AOTcompile();
subTreeNode.AOTsave();

enumValue = int2str(sysDictEnum.lastValue() + 1);
}
treeNode.AOTcompile();
treeNode.AOTsave();
}
}
}

I haven't find any issue when this piece of script executed inside Axapta 
irrespective of the tier where it is getting executed.

But, when the above piece of code getting executed in server when the method is 
getting invoked by Business Connector, 
the new element in the BaseEnum is getting created in `SYS' layer instead of 
getting created in the current/top AOS layer.

(The Client configuration for the BC is set to open on the current layer which 
is not `SYS' when it is getting invoked from BC. 
Moreover, the new element is getting created in the current layer and not in 
`SYS' layer when it is running in client tier.)

Is it any way related to that BC component – Interpreter, which allows the code 
to be executed in kernel?
Is it a bug? Or Which makes the new object getting created in `SYS' layer in 
Dynamics AX when it invoked via BC and the code is running in server?

I'd really appreciate if anyone can share some insight about this issue. Thanks 
in advance.


Thanks  Regards,
Balasubramanian Kumaran




[development-axapta] Copy Item to another company/dataarea

2010-04-22 Thread axaeffect
Hi all,

How to copy item (InventTable, InventTableModule, InventeItemLocation)
to another company/dataarea?

Kindly advise,
Thanks,
Axl



[development-axapta] Unable to move form fields around

2010-04-22 Thread shamika
Hello,

I am unable to move form fields around.
Columns in header of PO status form can not moved around. Line columns are 
moving around.
I checked respective design properties and all are set properly.
Any thoughts??

Thanks,
Sam



RE: [development-axapta] Copy Item to another company/dataarea

2010-04-22 Thread Ruel Ormita
Hi,

 

There are two methods.

 

1. Export it using Administration  Periodic  Export 

Need to setup the definition group. Then select the corresponding tables
you want to export.

 

2. Create a job using the changecompany() function.

 

 

Regards

 

 

From: development-axapta@yahoogroups.com
[mailto:development-axa...@yahoogroups.com] On Behalf Of axaeffect
Sent: Wednesday, April 21, 2010 12:36 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Copy Item to another company/dataarea

 

  

Hi all,

How to copy item (InventTable, InventTableModule, InventeItemLocation)
to another company/dataarea?

Kindly advise,
Thanks,
Axl





[Non-text portions of this message have been removed]



RE: [development-axapta] Unable to move form fields around

2010-04-22 Thread Ruel Ormita
Hi,

 

Maybe this field is with a group. Try dragging a field in the data source
and put it in the design. 

 

From: development-axapta@yahoogroups.com
[mailto:development-axa...@yahoogroups.com] On Behalf Of shamika
Sent: Tuesday, April 20, 2010 11:28 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Unable to move form fields around

 

  

Hello,

I am unable to move form fields around.
Columns in header of PO status form can not moved around. Line columns are
moving around.
I checked respective design properties and all are set properly.
Any thoughts??

Thanks,
Sam





[Non-text portions of this message have been removed]