I have an app (notes client only) which features some computed text in passthru html. This text contains links based on a formula. I am trying to use such a link to create a new notes document and populate one of the fields. I have used the ?OpenForm url command, which successfully opens a new instance of the form I require. In this forum there are lots of suggestions about how to pass a variable or populate a query string field, but I can’t seem to get this to work in the client. Am I flogging a dead horse, or is there some other method I can use
Querystrings don’t work in Notes URLs, which can be a pain, but I don’t see why that should be an issue in this particular scenario: if your app is Notes-only, why bother trying to use them? Why not generate a document / inherit from another document in the conventional way?
Cycle through a list of documents and for each one present several fields in a one line description. The color and decoration of the text needs to change depending on the value of certain fields and clicking on different words in the description will take the user to different documents. To do this so far, I have used some computed text with pass thru HTML as it seemed the easiest and it works fine. In the example below, the last thing I need to do is to create a new person information document in a different database and pass it a variable for one of the fields when the user clicks on the word “For Sale” in my description. If the user clicks on the word “Sold” it takes them to the relevant purchaser information document, clicking on the product description takes them to the product brochure and clicking on the price or the plot number takes them to the relevant plot information document.
Plot1 The Kensington 123456 For Sale
Plot2 The Belgravia 122552 Sold Mr and Mrs J Doe
Plot3 The Richmond 132950 Complete Mr and Mrs Smith
So basically I want to present calculated links with differing text properties.
Quite a tricky one. I’d approach this by placing some Lotusscript behind the relevant computed text elements (hotspots or whatever). Each hotspot would then invoke a sub-routine that gets a handle on another document and opens it.
However, how you obtain a handle is the tricky bit here, as you’re dealing with indefinite numbers of documents feeding into plain ole’ computed text. If you were updating fields, then life would be much easier. I presume the reason you’re not referencing fields is the conditional formatting being used, however, that should be addressable in Notes 6 by computing the relevant HTML / CSS attributes on a field by field basis (via the “HTML attributes” section), no?
Thanks for the reply. I haven’t used fields as I was unable to get them to display as HTML (setting them as passthru text didn’t work)
Of course fields would be better because I could then use hotspots as you mentioned (which of course dont work over computed text)
I am afraid I don’t generally do any web development, so I’d need some pointers on how to use the HTML attributes section of a field
Getting a handle on the document may not be such a task becuse I obtain the relevant link from a view column (eg price+“~”+description+“~”+url+“~”+status…
the computedtext is just looping through the entries and appending the html as approriate.
As I mentioned it all works fine except creating a document in another database and passing it a value…
OK, the “HTML Attributes” section can contain formula like any other “event”, so it’s fairly trivial to place some code in there that resolves to a legitimate HTML attribute. That said, I’m not familiar with how well, or not, Notes renders CSS and the like. For example, I would test adding some code like this to the HTML attributes field:
@If(TestField="1"; {style="border: 1px black solid; color: #eee;"}; "")
If I get a chance later, I’ll play around with this some more. I’ve not looked into pass-thru HTML in the Notes client yet, so for all I know I’m leading you up the garden path!
Thanks again for the response. I did a quick test, but the amount you can place into the HTML attributes seems to be limited. Please don’t bust a gut on this one, it is a feature that would be nice for my project but is not essential. It would be nice though if you could use query strings in the client
It would be nice though if you could use query strings in the client
Amen to that. We have some portal stuff that uses the notes:// protocol to access resources in the Notes client. It would be extremely useful if query strings worked in that scenario also, for the client to pick up via Javascript.