This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 22, 2012, 7:31 AM
4 Posts

Substitution problem

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
 Hello,
 
I've strange problem - please help me  
I've done first database in our firm on XPages  
this is web site with few xpage - and other stuff like posting of notices
on web site in Administrator - there is rule of substitution  
/* -> /databasename.nsf/* 
and nobody know that this is domino web site - database name is simply removed from web site address - this is for better work with gooooogle search engine 
but on Xpage f.e. I have few fields to fulfill for customer request  
and on xpage is also button with script on click event 

import xpHTMLMail;
doc=currentDocument.getDocument();
docUNID=doc.getUniversalID();
RodzicID = currentDocument.getParentId();
dokument = database.getDocumentByUNID(@Text(RodzicID));
dokogo = dokument.getItemValue('przetarg_publiczny_os_odpowiedz');
kto = @Text(currentDocument.getItemValue('matkonkosoba'))
firma = @Text(currentDocument.getItemValue('matkonkfirma'))
email = @Text(currentDocument.getItemValue('matkonkemail'))
tel = @Text(currentDocument.getItemValue('matkonktel'))
tekst = @Text(currentDocument.getItemValue('matkonkwiadomosc'))
link = 'notes://Prasa/0/'+docUNID+'?OpenDocument'

doc=currentDocument.getDocument();
docUNID=doc.getUniversalID();
RodzicID = currentDocument.getParentId();
dokument = database.getDocumentByUNID(@Text(RodzicID));
plik=dokument.getFirstItem('przetarg_pub_zalacznik_oferty').getEmbeddedObjects().get(0).getName();
var mail = new HTMLMail();
mail.setTo(dokogo);
mail.setSubject("Wniosek o materialy konkursowe");
mail.addHTML("Prośba o materiały konkursowe:")
mail.addHTML(kto+"<br>")
mail.addHTML(firma+"<br>")
mail.addHTML(email+"<br>")
mail.addHTML(tel+"<br>")
mail.addHTML(tekst+"<br>")
mail.addHTML("<br>poniżej odnośnik<br><a href="+link+">kliknij tutaj</a>")
mail.send();
 
and second simple action is - save data source 
 
and this simply doesn't work  
 
nothing happends  
script is not executed  and save data still don't work
 
what I'm doing wrong ?? 
 
 
May 22, 2012, 7:41 AM
4 Posts
Re: Substitution problem
 even if I remove script 
an there is only Sava Data Source  
this is still not working  
 
May 28, 2012, 9:30 AM
4 Posts
Re: Substitution problem
 Looks like onClick even does't work

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal