I have an app (authored in Notes client, displayed via the web). We previously were on 5.0.11 client/ server and are upgrading to a 6.0x server (not sure minor release) and 6.0 client. I have also taken this opportunity to upgrade the authoring/display interface (so I guess I’m changing pretty much everything ).
Previously, I provided my users a ‘meta tags (keywords)’ facility to select keywords from a Keywords list (uses a special view, keywords field, and this as a selection formula:
@Unique(@DbColumn(“” : “NoCache” ; “” : “” ; “Keywords”; 1))
). To display the keywords content in the document on the web, I used a text field on the form with default value of ‘@Text(MetaKeywords)’.
In my new design, I keep the view, view selection, and MetaKeywords field. I am attempting to now use the ‘HTML Head Content’ section to build the complete meta tag statements:
h01:=“<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />”;
h02:=“<meta name="DC.Date" scheme="iso8601" content="2004-08-27" />”;
…
h10:=“<meta name="Keywords" content="”+ Text(MetaKeywords) + “" />”;
…
(and the following to build):
@NewLine+h01+@NewLine+h02+…(etc)
When I do this, the entire ‘HTML Head Content’ section repeats multiple times (once for every keyword) with a ‘,’ between repeats. I have noted that my MetaKeywords field is of type Computed ‘Text List’ in the old and new design, but when I review the document properties in my old design (metaKeywords field), they appear as a single string, (individual words seperated by semicolons). In my new design, they appear as individual entries with line breaks. Perhaps this is a new way R6 is handeling Keyword lists?
More importantly, how do I just derive that into a commoa seperated string? I have tried @Replace(MetaKeywords; @newline; “,”), putting the output to a temporary field (on the form) and calling directly, or as a @text(tempfield), etc. Nothing seems to work.