hcl-bot
February 24, 2009, 8:40am
1
Hello, sorry for my english, i’ll try.I have XPageA that include a Computed XPage(XPageB or XPageC,…)
I tried :
if (condition==true)
return "XPageB"
else
return "XPageC"
2)return “XPageB”
3)“XPageB”
I get an http 500 error, for 1, 2 and 3.
I need that functionality to get working. It’s the base form my application design.
Help please.
Thanks
Diego
hcl-bot
February 24, 2009, 9:27am
2
Subject: Include the extension “.xsp”
Include the xsp extension in the XPage name. For example: “XPageA.xsp”
A good way to troubleshoot syntax for something like this is to select an XPage to include (instead of computing the name) and then view the source for the page to see what the syntax is.
John
hcl-bot
February 24, 2009, 10:31am
3
Subject: it worked
Thanks Jhon, you are true, and de lotus designer help it’s bad.thank you Very very much , it worked…
Diego
Subject: Not work for me…
I have a xpage with 2 links:
?parameter=xxx
and
?parameter=yyy
I also have a computed include page with the following code:
var test = context.getUrlParameter(“parameter”);
if( test == “” || test == null ){
return "cc_1.xsp";
} else {
if( test == "xxx" ){
return "cc_1.xsp";
} else {
return "cc_2.xsp";
}
}
The computed include page always shows cc_1.xsp.
What is the problem?
(Sorry about my bad english. It is not my first language…)
regards
Thiago