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 ??