Hi,
I am making my first development in XPages.
My XPage is related to a document of the names.
I wish to compute this :
Name := @Name([Abbreviate]; @Subset(FullName;1));
MailInt := @If(InternetAddress != “”; @LowerCase(InternetAddress); “”);
Short := @For(n :=1; n<=@Elements(ShortName); n:= n + 1;
full := @If(
@Contains(ShortName[n];"@"); full +"," + ShortName[n]; full
)
);
PString := MailInt +“,” + full;
PList := @Explode(PString; “,”);
List:=@Trim(@Unique(PList));
List
How do I do ?
Thanks a lot.
Subject: XPage for Web Application not for Notes Application
XPage for Web Application not for Notes Application
Subject: XPage for Web Application not for Notes Application
XPage for Web Application not for Notes Application
Subject: XPage for Web Application not for Notes Application
XPage for Web Application not for Notes Application
But may be like this
Name = @Name(“[Abbreviate]”, @Subset(FullName,1));
if (InternetAddress != “”) {
MailInt = @LowerCase(InternetAddress);
} else {
MailInt = “”;
}
for(n=1; n<=@Elements(ShortName); n= n + 1) {
if (@Contains(ShortName[n],“@”)) {
full = full +"," + ShortName[n];
}
}
PString = MailInt +“,” + full;
PList = @Explode(PString, “,”);
List = @Trim(@Unique(PList));
List
hope it help