COMBO BOX
HI
We are migrating ND5 APPLICATION INTO IPLANET .We have method
called " populateXlatComboBox". This method should generate combox.
We are trying to generate combo box using DATA MODEL in method.
is there method like autorefill in IPLANET. could you please go through
method and if you have any sample code .could you please post it.
could you please tell me how to generate drop down box using DATA
MODELS.
Thanks
Sn
public void populateXlatComboBox(ComboBox xlatComboBox, Object
defaultForCmb, String fieldNameForLookup)
{
try {
Debug.debug("populateXlatComboBox", 2,
"populateXlatComboBox: fieldName for lookup is " + fieldNameForLookup +
": defaultforcmb is " + defaultForCmb);
com.iplanet.jatox.QueryModelBase doGetXlatFields
=(com.iplanet.jatox.QueryModelBase)
RequestManager.getRequestContext().getModelManager().getModel(DO_SEL_XLA
T_FIELDS);
doGetXlatFields.clearUserWhereCriteria();
doGetXlatFields.addUserWhereCriterion("WAND_SS_XLATTABLE_VW_FIELDNAME",
com.iplanet.jatox.QueryModelBase.EQUALS_OPERATOR, new
String(fieldNameForLookup));
xlatComboBox.setName(String)
xlatComboBox.setValue(defaultForCmb);
}
catch(Exception e)
{
onDisplayException(e);
}
}
-- Original Message --
From: "Todd Fast" <<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006 144139218183041">toddwork@c...</a>>
Date: Monday, July 9, 2001 10:42 pm
Subject: Re: [iPlanet-JATO] COULD YOU PLS HELP ME TO FIX REPEATED OBJECT
ISSUE.
> This code should generally be in the TiledView (it may appear in
> both the
> ViewBean and the TiledView after migration).
>
> > CSpRepeated repeated =(CSpRepeated) event.getSource();
>
> // Assuming the code is in the TiledView
> TiledView repeated=this;
>
> > CSpStaticText stFieldName =(CSpStaticText)
> > repeated.getDisplayField("stFieldName");
>
> StaticTextField stFieldName=
> (StaticTextField)getDisplayField("stFieldName");
>
> - or -
>
> StaticTextField stFieldName=getStFieldName();
>
> > int index = event.getRowIndex();
>
> In what event do you want to obtain the index? For the most part,
> you can
> just call TiledView.getTileIndex(). If this is a request event
> handlingmethod, the row index is part of the event signature.
>
> IMPORTANT: If the original code cached references to display
> fields as page
> instance variables for use in the class's events, you should NOT
> do the same
> in JATO. This was an ND pattern that is unnecessary and
> inefficient in
> JATO. Instead, you should just use the generated accessors or the
> getDisplayField()/getChild() methods to obtain a reference to a
> displayfield as needed. Mike Frisino has elaborated this point in
> the past; please
> refer to his emails.
>
> Todd
>
>
> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
>
>
>
>
>
>

