Hello.
I am working on a web application. I have a multivalue field on a form - comma, semicolon and New line as the separator. I want to display the values of this field on a view as separate entries.
I have set the view column properties to display multivalues as separate entries and separator as NewLine.
The first column in the view is a categorized column (not a multivalue field). Second column is the multivalue field.
In a document, the field contains two values.
I want to see two rows - one for each of the two values in the field.
I am able to see two rows, but the problem is - on both the rows, both the values - separated by comma - are displayed.
The same view displays correctly on notes client.
Is there a way to display the multivalue field based column correctly on web - one entry each for one value.
Thanks for the help.
Sanjay A.
Subject: Display multivalue field on web view
Create a seprate view for the web, and take the HTML into your own hands.
If you only have two colums, try the second column formula or something like
@Implode(FieldName; “br />]”)
or, you could get more fancy by treating everything as HTML and do something
like this:
$$ViewTemplate would surround the view with
and
View would have “treat contents as HTML” checked.
First column:
“
” + FieldName + “”
Second column:
@Implode(“
” + FieldName + “”;
@Newline)
Hope this helps. Good luck!
Subject: RE: Display multivalue field on web view
Hello.
Thank you for the response.
But this might not be an option for me. There is something more that I am trying to do in the field and the column value.
The multivalue field value is a concatination of a title and a link (separated by a delimiter) for a document. It might contain two or more such references.
eg:
title1~~http://servername/dbname/doc1link;title2~~http://servername/dbname/doc2link
I want to display, each of these values separately in the view column as : Display the title with an href link using the doclink value associated with the title.
eg :
1st row should contain : " + title1+"
2nd row should display : " + title2+"
Please let me know, if this can be done through a view and a view column.
Thanks & Regards,
Sanjay A.
Subject: Display multivalue field on web view
Hi.
I got it working with the normal view. I had given the wrong delimiter in the column properties. I had to change it from New Line to Semicolon (the field uses semicolon as the selimiter).
Thanks & Regards,
Sanjay A.