GetProfileDocument method can not get field value

Dear all,

I wrote profile document and saved it, when I reopened it with fomula, I can see these field value are correct.

but if I opened it in Script with GetProfileDocument method, I can’t get these field value, when I debuged the code with steps, I found the DOC successfully got the profile object,but the strange thing is, those fields I created is not inside the “ITEMS” collection, only three items are inside(see below):

[0] [“$Name”, 1280,26,False,False,True,False,…]

[1] [“UpdatedBy”, 1074,17,False,False,True,…]

[2] [“$NoPurge”, 1280,3,False,False,True,…]

The script I use is very simple:

Set DOC = db.getprofiledocument(“ProfileName”)

Anybody know what is the reason?

Thanks in advance.

James

Subject: GetProfileDocument method can not get field value

In your formula, are you using by any chance: Value := @GetProfileField(“ProfileName”,@UserName) ?

In that case , you must use set doc=db.getprofiledocument(“ProfileName”,session.CommonUserName)

Subject: RE: GetProfileDocument method can not get field value

No, I never use @UserName.

Thanks!

James