Hope this helps you
@GetDocField : getComponent("Field Name").getValue()
@SetDocField : getComponent("Field Name").setValue("New Value")
@GetProfileField :
Profiledoc:NotesDocument= database.getProfileDocument("ProfileDocName","")
ProfileDoc.getItemValue("field Name")