hai
any body plese tell me how to display a document in a field in a form opened in a webbrowser…
i have to get the documents in aview and have to display it in a form opened in a “webbrowser” the bottom line is “webenabling the form”
i have explained the scenario below. please have a look at it.
scenario :
-
i have a form in which i have a field named “content”.
-
now i want to put a question in the field named “content”
-
The question is like this
Is java a language? -
and also i have choices for the question also
The choices are a) Yes and b) No -
now i have to put the question and the corresponding choices for the question in the field named “content”.
-
now the toughest part is here !!!
the form should be shown in "web browser " in which a user will answer the “question” and the “validation” is done by means of “javascript”
-
Now tell me how i will put the data i.e " the question and the choices " in the field named “content” ?
-
surely i have to do it by means of an “agent”.
i can call the agent using “webqueryopen” event and the agent will put the data into the field.
-
fine now pls tell me what coding goes into the agent “initialize” function ?
-
i have tried the following codings but it doesnt works…
dim ss as new notessession
dim db as notesdatabase
dim doc as notesdocument
dim item as notesrichtextitem
dim question as string
dim answer as string
dim final as string
set db =ss.currentdatabase
set doc=db.createdocument
doc.form=“testform” // my form name
set item=db.createrichtextitem(“content”)
question = { is java a language?
}answer = {yes
no
}finalvalue=question + answer
call item.appendtext(“content”,finalvalue)
call doc.save(true,false)
----- the coding… ends here -------
if i use “document context” in the place of “create document” i can put the value in the field without going for "createrichtext item "
but the html tags are apeearing as it is inside the field and
for eg.
<b> hello </b>
is not converting into bold text and is appearing as it is inside the field.
but i want it to be html formatted…
also i dont want to put the question as typed over the form and by enabling the "pass thru HTML " option to ON.
please help me to overcome the situation.
im very indeed of the same. and i need it very critical.
plese help me out in this … using lotus script.