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



Mar 16, 2011, 4:29 AM
22 Posts

Re: How can I set view panel keys using search criteria input by the user?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: view,keys,search
  • Replies: 2
I've not really done this before, but perhaps you could try the following...
 
var userName=context.getUser().getCommonName();
var lastName = (userName.indexOf(' ')==-1) ? userName : userName.split(' ')[1];
var initial=lastName.charAt(0); 
var v:java.util.Vector = new java.util.Vector();
v.addElement(initial);
v.addElement(lastName);
return v;
 
I haven't tested this, but it essentially breaks down the user's name into teh components you require and adds them into the vector.
 
I hope this helps! 
 
 
 
Mar 17, 2011, 8:15 PM
5 Posts
Re: How can I set view panel keys using search criteria input by the user?
This is basically the route I'm taking but I need to modify it somewhat do I can use the user-entered value I've captured from the search box.  So instead of putting this code as the computed value of the keys property, I need the values assigned by code that runs when the user clicks on the Search icon/label and write the keys to the view panel properties.  Can't seem to locate a method that will allow me to write to that property.

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