Form Refresh

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 | 8 Replies | 0 Followers

Male
54 Posts
494 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra posted on 2012-2-2 8:25

hi every one,

Can any one help me sort small issue.

I want to refresh my form whenever i move different records in grid. When i move cursor to different record in grid then form should get refreshed..

 

Thanks in advance.

 

All Replies

Female
182 Posts
3,294 Points
Joined: 2011-10-13
Last Online:
2014-8-15 20:19
Location: Hyderabad
Jyothi replied on 2012-2-2 8:42

Hi ,

try with

       datasourcename.reread();

       datasourcename.refresh();

After ur code

 

 

Regards

- JP 

Male
54 Posts
494 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra replied on 2012-2-2 8:50

Hello jyothi,

Thanks for quick reply.

In which method should i use the reread and refresh statement?

Regards,

Rajendra

 

Male
54 Posts
494 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra replied on 2012-2-2 9:02

I am Able refresh data source. But in my form i am enabling and disabling buttons whenever i move cursor to different records in grid.

Female
182 Posts
3,294 Points
Joined: 2011-10-13
Last Online:
2014-8-15 20:19
Location: Hyderabad
Jyothi replied on 2012-2-2 9:37

Hi Rajendra,

where ever ur enabling and disabling the buttons after that u try to refresh...and after that write Datasourcename.executequery()

Regards

- JP 

Male
54 Posts
494 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra replied on 2012-2-2 10:01

Hi Jyothi,

I am enabling and disabling buttons in data source active method. Form is continuously refreshes if i use refresh and reread in Active method.

Regards,

Rajendra

Male
3,231 Posts
78,158 Points
Joined: 2007-11-12
Last Online:
2014-7-28 17:10
Location: Hyderabad - India
DynamicsAXMVP
Kranthi replied on 2012-2-2 10:18

Enabling and disabling doesn't need a refresh or reread, don't call them on active method only place the enable/disable logic on active method.

 

 

Kranthi

Male
54 Posts
494 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra replied on 2012-2-2 10:35

Hi kranthi,

After removing refresh and reread datasource is getting refreshed but form buttons are not refreshing.

Regards,

Rajendra

Male
54 Posts
494 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra replied on 2012-2-2 10:37

If i press F5 then form is getting refreshed.

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