Subject: How to dispaly all values of a mutiple text field using for loop
Subject: In LS
Dim item as NotesItemSet item = doc.GetFirstItem(“fieldname”)
Dim count as integer
count = Ubound(item.Values)
For i = 0 to count
'whatever you are wanting to do
'accessing the values by using item.Values(i)
Next
Subject: How to display all values in multivalued field
Thanx…
But i wanted the code in formulla language.Bcoz the fileds are Computed ones so cant write lotus script.Actually the value of that multivalued field always depends on some other mutivalued field in the form and we have to map the exact values.
we tried this code but it displays on the last value
FIELD M1Per:=“”;
@For(n := 1;
n <= @Elements(M1Hrs);
n := n + 1;
FIELD M1Per:=@Round((@TextToNumber(M1Hrs[n])*100)/TotalHours;5);@Explode(@Text(M1Per))
)
Hope u i posted the problem clearly and will get a response soon.
Subject: Take a look at @implode
to display a multivalue item in comuted text you need to @implode it.
But your problem is you overwrite the value of M1Per everytime you loop cycles.