Dear OpenMeetings Developers,

We appreciate any help to find what are we missing in the following modification.

We have tried to split the 'Recipient' field in Invitation Window into three independent fields:

Recipient Firstname:[____________]

Recipient Lastname:[____________]

Recipient Emailid:[____________]


The invitation is sent and received, and invitee is able to join the meeting. However the Lastname field in Users list displays the "email" instead of last name. What are we missing?

We have created the first two fields using 'customEdittext', and a single line in the "onblur" handler, like:

<![CDATA[

parent.lastname = getText();

]]>



And the email-id field as follows:

<labelText labelid="226" y="82" width="120"x="6" />

<customEdittext name="_emalid" width="340" x="120" y="82" >

<handler name="onblur">

<![CDATA[

parent.email = getText();

this.regExpCheckId = canvas.doRegExpCheck(parent.email, this.emailRegEx);

if(this.callDelegate == null) {

this.callDelegate = new LzDelegate(this, "checkRegExpResult");

}

lz.Timer.resetTimer(this.callDelegate, 50);

]]>

</handler>

--

RESULT: Shows Firstname correctly,    But Lastname shows the email ID.
=================================

So we tried to mimic as closely as possible the behaviour of original 'recipient' field, by assembling into it the three inputted fields above, and including the code that processes it.

  <![CDATA[
     parent.email = getText();
parent._recipient.setAttribute('text',"\"" + parent.firstname + " " + parent.lastname + "\"" + " " + "<" + parent.email + ">" );

///

var addr = parent.replaceAll(parent.replaceAll(parent._recipient.getText(), "'", ""), "\"", "");

if ($debug) Debug.write("addr: ", addr);

parent.firstname = "";

parent.lastname = "";

var idx1 = addr.indexOf("<"), idx2 = addr.indexOf(">");

if (idx1 > -1 && idx2 > -1 && idx2 > idx1) {

parent.email = parent.trim(addr.substring(idx1 + 1, idx2));

var s = parent.trim(addr.substring(0, idx1));

var idx = s.indexOf(" ");

if (idx > -1) {

parent.firstname = s.substring(0, idx);

parent.lastname = s.substring(idx + 1);

} else {

parent.firstname = s;

}

} else {

parent.email = addr;

}

if ($debug) Debug.write("[first, last, email]: ", getText(), idx1, idx2, parent.firstname, parent.lastname, parent.email);

///

this.regExpCheckId = canvas.doRegExpCheck(parent.email, this.emailRegEx);

if(this.callDelegate == null) {

this.callDelegate = new LzDelegate(this, "checkRegExpResult");

}

lz.Timer.resetTimer(this.callDelegate, 50);

--
RESULT:  Shows Firstname BLANK,      And  Lastname still shows the email ID.

Is there a guide to understand how the field values are processed in the <netRemoteCallHib> / database stage, and beyond when the invitee actually joins in?


--
Regards,

Susheel Jalali


www.Coscend.com <http://www.coscend.com/>

------------------------------------------------------------------

CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages from Coscend Communications Solutions' posted at: http://www.Coscend.com/Terms_and_Conditions.html <http://www.coscendcommunications.com/Terms_and_Conditions.html>

Reply via email to