Form.load callback function shows previous record info

I’m currently working with on a Ver3.0 Pro Suite. Within the ‘callback’ function when I do ANY :

form.getItemValue(‘xyz’)

I am getting the value that was there BEFORE the form’s new data got loaded. Here are the code snippets:

frmClient.load('/client/loaddata/'+parent.CurrUserID+'?type=frm&clientid='+cmbClients.getSelectedValue(),doAfterLoadData());

The above loads xml data and here is the callback function:

function doAfterLoadData()
        {
            alert(frmClient.getItemValue('clientname'));
        }

Please can anyone help. I know this is an old version but I’m trying to add a small bit of functionality for the client. Alternately is there any other event that I can use.

Thanks in advance for your help.

Purvez

Please, try to use:
frmClient.load(’/client/loaddata/’+parent.CurrUserID+’?type=frm&clientid=’+cmbClients.getSelectedValue(),doAfterLoadData)
instead of
frmClient.load(’/client/loaddata/’+parent.CurrUserID+’?type=frm&clientid=’+cmbClients.getSelectedValue(),doAfterLoadData())

Hahaha!!! Now I feel FOOLISH & EMBARRASSED!!

But many thanks for your reply because I have been tearing my ‘hair out’…and I’m nearly bald!!

Yes!!! It works.

Purvez