You probably need to refresh the dataSource you just updated. Try one of these method on your dataSource : (reread() or refresh() is probably what you are looking for)
.refresh() will not reread the record from the database. It basically just refreshes the screen with whatever is stored in the form cache. .reread() will only re-read the CURRENT record from the DB so you should not use it to refresh the form data if you have added/removed records. It's often used if you change some values in the current record in some code, and commit them to the database using .update() on the table, instead of through the form datasource. In this case .reread() will make those changes appear on the form. .research() is probably what you want. This will rerun the existing form query against the datasource, therefore updating the list with new/removed records as well as updating existing ones. This will honour any existing filters and sorting on the form. .executeQuery() is another useful one. It should be used if you have modified the query in your code and need to refresh the form. It's like .research() except it takes query changes into account. regards, Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, G Radhakrishnan <[EMAIL PROTECTED]> wrote: > > Hi all, > We are also facing the problem. In our case, we take > voucher number from lines to header. What we are doing > is closing and opening the form; then it gets > displayed. This is the way we are doing.. expecting > some good replys from gurus... > > Regards, > GR. > > --- abhijit raje <[EMAIL PROTECTED]> wrote: > > > Hi friends > > can any one tell me how to refresh form when i add > > any new value on it. > > i.e. i have afield in header and its dependent on > > the > > line value so after entering in the line the header > > should be updated automatically can u tell me where > > to > > place refresh function for this to happen > > > > > > > > > ______________________________________________________________________ _____________ > > You snooze, you lose. Get messages ASAP with > > AutoCheck > > in the all-new Yahoo! Mail Beta. > > > http://advision.webevents.yahoo.com/mailbeta/newmail_html.html > > > > > > > ______________________________________________________________________ ______________ > Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. > http://sims.yahoo.com/ >