lotus notes - Getting values from profile document -


i have problem getting value profile document. creation, followed these instructions: creating profile form 1.create form fields hold values want store in profile documents. 2.choose design - form properties , deselect "include in menu. , "include in search builder" 3.save form. 4.do not include form in view.

in form have 1 field computed when composed (a number), computed value "0"

but code can't retreive field value:

dim session new notessession              dim db notesdatabase              dim doc notesdocument                 set db=session.currentdatabase               set doc=db.getprofiledocument("nameofprofiledoc") dim number integer number=doc.fieldname(0) 

isprofile return true, number "". reason never gets value

perhaps because haven't saved document database yet. can create action button let's edit document , save it:

@command( [editprofile] ; formname ); 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -