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



Apr 12, 2012, 10:20 PM
2 Posts
topic has been resolvedResolved

Here comes the "stupid xpages newbie" question....

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer,Administrator
  • Tags:
  • Replies: 4
I have what is, to my mind, a pretty simple problem that I want to address.   I need to create a web page that allows an anonymous user  to input a person's email address, and get back the associated Username and Mailserver.      
 
Is this something that I could accomplish using an Xpage?  Can any necessary code be done in lotusscript or formula?  I'm not great with JS and even worse with Java.
 
And if so, does anyone have any samples that they could share that shows something similar.  
 

Apr 13, 2012, 5:27 AM
17 Posts
Re: Here comes the "stupid xpages newbie" question....
Hi Kurt,
 
like this, for example:
 
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">

    <xp:inputText id="email" style="width:232.0px"></xp:inputText>
    <xp:button value="Look up" id="button1">
        <xp:eventHandler event="onclick" submit="true"
            refreshMode="complete">
        </xp:eventHandler>
    </xp:button>
    <xp:br></xp:br>
    <xp:label id="username">
        <xp:this.value><![CDATA[#{javascript:var username = session.evaluate("@Name([Abbreviate];@NameLookup([Exhaustive];\"" + getComponent("email").getValue() + "\";\"Fullname\"))");
username[0] || "N/A"}]]></xp:this.value>
    </xp:label>
    <xp:br></xp:br>
    <xp:label id="mailserver">
        <xp:this.value><![CDATA[#{javascript:var mailserver = session.evaluate("@Name([Abbreviate];@NameLookup([Exhaustive];\"" + getComponent("email").getValue() + "\";\"MailServer\"))");
mailserver[0] || "N/A"}]]></xp:this.value>
    </xp:label>
</xp:view>

Apr 13, 2012, 1:16 PM
298 Posts
how about some XPages training?
TLCC has a free XPages course to get you started: http://www.tlcc.com/admin/tlccsite.nsf/pages/free-xpages-training Then we have a complete line of XPages courses (and even a JavaScript for XPages course) to take you further: http://www.tlcc.com/xpages Howard
Apr 13, 2012, 3:25 PM
2 Posts
Thank you!!
Thanks for the example, Rick, and for the link to the intro course, Howard.  I will definitely try it out.
Apr 14, 2012, 11:11 AM
586 Posts
Re: Here comes the "stupid xpages newbie" question....
 Kurt,
 
There are a lot of samples on XPages.TV / NotesIn9.com as well.  XPages.Info is a good starting point. 

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