Dialog Method of runbase batch class

Latest Axapta / Dynamics AX FAQ Pages

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Not Answered This post has 0 verified solutions | 3 Replies | 1 Follower

8 Posts
76 Points
Joined: 2010-9-22
Last Online:
2011-2-8 1:30
Location: Hyderabad,India
Blacksmith Ismail posted on 2010-11-26 10:44

HI,

I have a requirement to add the SalesId as input parameter in a class which extends runbasebatch.

The input parametere salesIS should be fieltered in such a way that only Sales Orders of type "open order" only are shown.

 

When I add the field using addfieldValue(typeId(SalesId),Salesid) , the look up is showin all the sales oreder.

My question is how can i add a filter on the above to show sales oredrs of type open order only.

If any one has done this please suggest.

 

REgards,

Ismail.

All Replies

Male
31 Posts
541 Points
Joined: 2009-5-2
Last Online:
2013-7-6 22:23
Location: Dubai,UAE
Reyaz replied on 2010-11-26 11:36

Hi,

Use relation (Normal and RelatedFieldFixed) for EDT. 

Reyaz

8 Posts
76 Points
Joined: 2010-9-22
Last Online:
2011-2-8 1:30
Location: Hyderabad,India
Blacksmith Ismail replied on 2010-11-26 13:40

HI,

 

Thanks for the suggestion .

what in case if the selection criteria is not a base enum, then i can not have RelatedFieldFixed to put in.

Please suggest.

 

Regards,

Ismail

Male
3,231 Posts
78,164 Points
Joined: 2007-11-12
Last Online:
2014-7-28 17:10
Location: Hyderabad - India
DynamicsAXMVP
Kranthi replied on 2010-11-27 6:45

For that you need to create an EDT.

In the relations add normal relation -> EDTName == SalesTable.salesId.

Related Field Fixed ->  1 == SalesTable.SalesStatus

 

 

 

Kranthi

Page 1 of 1 (4 items) | Get this RSS feed | Bookmark and Share