hi,
How to disable some modules for one company(not all companies) in address bar(Ax 2009).
thanks in advance…
hi,
How to disable some modules for one company(not all companies) in address bar(Ax 2009).
thanks in advance…
hi surendra,
void loadlist(container currButtons)
{
int i;
str buttonState;
str buttonInfo;
FormListItem item;
str aotName;
_listView.deleteAll();
for (i= (conlen(currButtons) -1); i >= 1 ; i-=2)
{
buttonInfo = conpeek(currButtons,i);
buttonState = substr(buttonInfo,0,1);
aotName = substr(buttonInfo,2,strlen(buttonInfo)-1);
// the button label is a i+1
// BP deviation documented
item = new FormListItem(conpeek(currButtons,i+1),0,aotName);
// this adds the item to the top of the list
_listView.addItem(item);
// get the item so that we can set the state
item = listView.getItem(0);
if (buttonState==#Zero)
{
item.stateChecked(false);
}
else
{
item.stateChecked(true);
}
// set the item so that we maintain state
if (curext() == “DAT”)
{
if (item.text() == “prod”)
{
listView.setItem(item);
}
}
else
{
listView.setItem(item);
}
}
_listView.setColumnWidth(0,_listView.widthValue());
if (_listView.getCount() > 0)
{
item = _listView.getItem(0);
item.stateSelected(true);
item.stateFocus(true);
_listView.setItem(item);
}
_listView.setFocus();
}
please update this code in the loadlist() method in the form sysnavpaneoptionsdialog…
this method enables to open a single module “PRODUCTION” in the DAT Comapny
and all the modules in other company…