hello,i have this problem.
i have a document which contains an embedded view with an html field (in the view) in order to edit value to this field. after the input i run an agent which updates for the selected documents this value. the embedded view has the first column an id in which the view is categorised it and the second column is the ids of the documents that must be update. so i have a field in my form which the user writes the id and then another field hidden which holds these ids in order to be updated only the documents that are under the id the user choose.
the code of the agent is
Set oSession = New NotesSession
Set oDatabase = oSession.CurrentDatabase
Set opWebDocument= oSession.DocumentContext
vLoop = 0
If opWebDocument Is Nothing Then
End
End If
Dim count As Integer
Forall DocID In opWebDocument.CheckBox
count = count + 1
Set oSelected = oDatabase.GetDocumentByUNID(DocID)
oSelected.Status2 = opWebDocument.status2(count-1)
oSelected.Save True, True
End Forall
the code of the hidden field is
tmp:=@DbLookup(“”:“NoCache”;“”:“”; “ByCompany”; txtCompanyCIF; 2);
@IfError(tmp)
the txtCompanyCif is the field tha the user puts the id.
the above works only if the field that holds the document id is not hidden.
i need some help in order to run the agent correctly even if the field is hidden.
Subject: update field of a view in the web after the user inserts the value
Make sure that “Generate HTML for all fields” is checked on the second tab of the form properties and then hidden fields will then be accessable.
Regards,
Wendall
Subject: update field of a view in the web after the user inserts the value
Hi,
you must enable the Form option “generate HTML for all fields” and then it should work.
Cheers, Michael
Subject: RE: update field of a view in the web after the user inserts the value
thank you but I have already done it and still it doesn’t work…any other ideas?
Subject: RE: update field of a view in the web after the user inserts the value
You can do it the hard way. In the lookup field properties go to the HTML tab and in Other type in:
type=hidden
This should hide the field from end users. The other thing you can do to “hide” it is use CSS. Under the HTML tab Style field enter:
visibility:hidden;position:absolute;left:-500px
The CSS will help hide the field and will remove the “blank line” that is left … (if the field was on a line by itself the field would be hidden but the blank line would show up - the CSS hides the blank line as well by positioning it off the screen).
Hope this helps,
wmoze
Subject: RE: update field of a view in the web after the user inserts the value
Rather than setting the visibility to hidden, try setting the display to none – no space is reserved for elements having a display of none. The only drawback is that when using display with DHTML, you need to be aware of the “normal” display value for the element you are hiding (block, inline, table-row-group, etc.).