Get MS Dynamics Ax Call Stack in X++ Code - Microsoft Dynamics AX FOR TECHIES - AX Technical Blogs - Microsoft Dynamics Community:
'via Blog this'
Wednesday, April 4, 2012
Wednesday, February 22, 2012
How to check filter is enabled on a form
Query:
How can i check if the filter is enabled on an AX Form.
Answer:
The actions user perform an an ax form are processed in a method called task. You can override that method to see task id 2855. If it is the value then filter is enabled.
How can i check if the filter is enabled on an AX Form.
Answer:
The actions user perform an an ax form are processed in a method called task. You can override that method to see task id 2855. If it is the value then filter is enabled.
Wednesday, February 15, 2012
Enable remote errors on SSRS
Query:
I am getting some errors when viewing SSRS reports on client machines but i can not see the full error because it is asking me to enable remote errors on ssrs. How can i do that on ssrs 2005.
Answer:
The setting is stored in the table named 'ConfigurationInfo ' on the report server. Just open the table and set Enable Remote Errors to true.
Wednesday, February 8, 2012
Sunday, January 15, 2012
How to increase scroll bar size in windows application?
Question:
How can i increase scroll bar size in a windows application based on .Net Business Connector ?
Answer:
You can use windows display properties under personalization for it.
Further reading
How can i increase scroll bar size in a windows application based on .Net Business Connector ?
Answer:
You can use windows display properties under personalization for it.
Further reading
Wednesday, January 11, 2012
How TO Write an Edit Method
Question:
How to write an edit method?
Answer:
Suppose you have an integer field with allowed values of 0 and 1. We can use an edit method to show a check box instead. We just have to use this edit method as a display method on the form control.
public edit NoYesId IsAllowed(boolean _set, NoYesId _value)
{
NoYesId ret;
int actualValue;
if (_set)
{
if(_value == NoYes::Yes)
{
actualValue = 1;
}
ttsbegin;
this.IsAllowedInt = actualValue;
this.update();
ttscommit;
}
else
{
if(this.IsAllowedInt)
{
ret = NoYes::Yes;
}
}
return ret;
}
How to write an edit method?
Answer:
Suppose you have an integer field with allowed values of 0 and 1. We can use an edit method to show a check box instead. We just have to use this edit method as a display method on the form control.
public edit NoYesId IsAllowed(boolean _set, NoYesId _value)
{
NoYesId ret;
int actualValue;
if (_set)
{
if(_value == NoYes::Yes)
{
actualValue = 1;
}
ttsbegin;
this.IsAllowedInt = actualValue;
this.update();
ttscommit;
}
else
{
if(this.IsAllowedInt)
{
ret = NoYes::Yes;
}
}
return ret;
}
Monday, January 9, 2012
Dynamics AX Business Connector : Client made two requests at the same time.
Question :
I received a following error in my application built on the middle ware of business connector, "Client made two requests at the same time.".
Answer:
This is happening because you might have a multi-threaded application using same AX session in two requests. What you can do to fix it is to use different session objects for different parallel threads.
I received a following error in my application built on the middle ware of business connector, "Client made two requests at the same time.".
Answer:
This is happening because you might have a multi-threaded application using same AX session in two requests. What you can do to fix it is to use different session objects for different parallel threads.
Tuesday, December 13, 2011
Monday, December 12, 2011
Wai Keat Ng's Dynamics AX Blog: Create Alert using X++ codes
Wai Keat Ng's Dynamics AX Blog: Create Alert using X++ codes: "EventInbox inbox;
;
inbox.initValue();
inbox.ShowPopup = NoYes::Yes;
inbox.Subject = "This is the Alert subject";
inbox.Message = "This is the Alert message";
inbox.AlertedFor = "This alert is just information no links are available";
inbox.SendEmail = false;
inbox.UserId = curuserid();
inbox.TypeId = classnum(EventType);
inbox.AlertTableId = tablenum(Address);
inbox.AlertFieldId = fieldnum(Address, Name);
inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
inbox.CompanyId = curext();
inbox.InboxId = EventInbox::nextEventId();;
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
inbox.insert();"
'via Blog this'
;
inbox.initValue();
inbox.ShowPopup = NoYes::Yes;
inbox.Subject = "This is the Alert subject";
inbox.Message = "This is the Alert message";
inbox.AlertedFor = "This alert is just information no links are available";
inbox.SendEmail = false;
inbox.UserId = curuserid();
inbox.TypeId = classnum(EventType);
inbox.AlertTableId = tablenum(Address);
inbox.AlertFieldId = fieldnum(Address, Name);
inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
inbox.CompanyId = curext();
inbox.InboxId = EventInbox::nextEventId();;
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
inbox.insert();"
'via Blog this'
Dynamics AX Custom ALerts
Query :
How can i add custom alerts in dynamics ax?
Answer :
void createAction()
{
EventNotificationSource _source;
EventNotificationBatch event = EventNotification::construct(EventNotificationSource::Batch);
;
event.parmUserId(curuserid());
event.parmSubject(subject);
event.parmMessage(message);
event.parmNotificationType(EventNotificationType::Action);
event.parmShowPopup(NoYes::Yes);
event.parmSendEmail(sendemail);
event.create();
}
How can i add custom alerts in dynamics ax?
Answer :
void createAction()
{
EventNotificationSource _source;
EventNotificationBatch event = EventNotification::construct(EventNotificationSource::Batch);
;
event.parmUserId(curuserid());
event.parmSubject(subject);
event.parmMessage(message);
event.parmNotificationType(EventNotificationType::Action);
event.parmShowPopup(NoYes::Yes);
event.parmSendEmail(sendemail);
event.create();
}
Subscribe to:
Posts (Atom)