Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Composing Links with Server Context

Posted on 2000-04-19
6
Medium Priority
?
207 Views
Last Modified: 2013-12-18
I have a form with a rich text field where notes client users enter pass-thru HTML to compose links to other documents in the same database which is widely viewed as an intranet web site. The database recently has been replicated to another server. The existing pass-thru links included the original server name hardcoded like this:

<a href = "http://OriginalServerName/FolderName/DatabaseName.nsf/0/DocumentIDNumber"> LinkDisplayText</a>


These links need to be changed to determine the correct server like this:


<a href = "http://CurrentServerName/FolderName/DatabaseName.nsf/0/DocumentIDNumber"> LinkDisplayText</a>

Where CurrentServerName accurately reflects the server on which the current page is being viewed.

I've tried computed text which seems to be ignored as pass-thru. I've enclosed it in square brackets and I get funny </font> tags in my composed URL.

I'd be glad to post all the things I've tried if anyone thinks it might help.

Thanks!
-Plog
0
Comment
Question by:Plog_Dougules
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:amit_dutta
ID: 2743307
Hello Plog,

U can solve ur problem by using computed text field instead of hard coding the value of the link.

Example:
<a href = {Text Field}> LinkDisplayText</a>

The text field which i have placed inside the curly braces should actually be a notes text field and the default value of which can be computed using @formulas. The whole thing can be passed through HTML. This will surely work. I have done it myself.

Note: Use @DbName in the value of the computed text field to get the server name and the database name.

Best of luck

Amit
0
 

Author Comment

by:Plog_Dougules
ID: 2743879
Thanks for the answer.  It seems like a reasonable alternative which should have been considered at design time.  The problem is that these links are created at run-time inside a rich text field using the Notes client.  I don't think you can insert computed text fields into a rich text field at run-time.

Specifically, these links are on a regularly published "new page" and refer to other "new pages."  Hence their number and placement will vary from time to time.  
0
 
LVL 3

Expert Comment

by:Simon_Hendry
ID: 2749735
Have you tried getting the people to create hotspots with formulas like..

DOCID:=<DOCID>;
DBURL:=@ReplaceSubString(@Subset(@DBName;-1);"\\";"/");
@URLOpen("/" + DBURL +"/0/ + DOCID)


Where <DOCID> is the documentid that you want to link to

??
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Accepted Solution

by:
Simon_Hendry earned 200 total points
ID: 2749736
@URLOpen("/" + DBURL +"/0/ + DOCID)

Should be

@URLOpen("/" + DBURL +"/0/" + DOCID)

Sorry Typo !!
0
 

Author Comment

by:Plog_Dougules
ID: 2751504
Does access to the formula box for the action hotspot depend on whether someone has designer access?

-Plog
0
 
LVL 3

Expert Comment

by:Simon_Hendry
ID: 2753152
No ... As an author you have access to the hotspot formulas inside a rich text field...

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question