Question

  Asked: Jul 24 2008   3:47 PM GMT
  Asked by: Mrg


Accessing $$SearchTemplate by form name


Lotus Notes, Domino 6.5, Domino Designer, Lotus Forms

Hey folks -- I'm trying to add a 'breadcrumb' trail via a subform to a number of documents. In the subform, I use a <computed value> to determine what page the user is on, and then load in the appropriate breadcrumb as needed.

I'm trying to add the subform to a SearchTemplate, but not sure if my logic is correct.

I've been doing something like this...
@If(@Contains(path_info;"createContent");"Create Content";
form="$$SearchTemplate for searchMyContent";"Search > My Content";
"")

But that second part doesn't seem to be working. I've tried just using "searchMyContent", as the variable, but that isn't working either.

Does anyone have any other suggestions?
Thanks
-MrG.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Have you tried referencing the value of the $$ViewBody field?
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Lotus Domino.

Looking for relevant Lotus Domino Whitepapers? Visit the SearchDomino.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Brooklynegg  |   Jul 25 2008  2:17PM GMT

Create a Form field in the form. Display the field on the page. Use the value displayed on the page for your code. Let me know if this helps.

 

Mrg  |   Aug 6 2008  6:46PM GMT

Stiletto — I’m not sure how the $$ViewBody field works. I read the help and other docs on the web, but from what I understand, it won’t display on the web.
Not I’m not sure if that means it won’t work in Formula or not.

Brooklynegg — I did try what you said, and in my breadcrumb subform did something like this:
<p class="breadcrumb”><Computed Value></p>

In the Computed Value, I tried this formula:
myText = $$Viewbody;
myText

No luck… I did the same idea using a Field instead of a Computed Value. Still nothing. Even if I should be using a field, what type/state should I be using? Computed? or Computed for Display?

Not sure if it makes a difference, but all the code above is in a PassThru HTML.

Actually, now that I re-read this, are you saying that in the various $$ViewTemplate forms, I should include a hiddenField with the name of the form, and then read that field from my subform to output the breadcrumb? I think that makes sense, but wouldn’t that be a whole lot more work, and less dynamic?