Multiple Selection in Table in uix page

Hello EveryBody,
I'm using jdeveloper 9051+adf+uix.
I'm using multiple Selection in a table (dragged as read only table of a View Object).
Now i've to perform some action on the selected rows from the page.
How to implement this feature please help me to solve this problem.
Waiting for the reply
Thanks and Regards
Mina

Hi RB,
Yes still you can use this.
Ex:
for(int k=0;k<wdContext.nodeEmployeeInfo().size();k++)
if (wdContext.nodeEmployeeInfo().isMultiSelected(k))
  /* Here you will get all the list of selected rows */
Regards, Anilkumar

Similar Messages

  • UIX/XML BC4J  Retaining multiple selection in tables

    We have a table with multiple selection, and we want the items to remain selected after the page refresh for some reason. Whats the cheapest way to obtain this?

    Data bind the selection attribute of multipleSelection to "someKey@ctrl:eventResult". Then in your event handler use an oracle.cabo.ui.data.ServletRequestDataSet and attach it to the event result, under the key "someKey".
    When the page is refreshed it should remember the multiple selection.
    Regards,
    John Fallows
    Oracle Corporation.

  • Multiple Selection for Tables

    HI Team, When I try to select the multiple selection for field Material in table Mara, the To value is not displayed
    e.g in table mara if i select the material option from A* to Z*, all the materials are displayed from A until x but no of the materials are displayed starting with Z. I have found this as standard functionality in SAP and happens for all fields with multple selection in tables. can you guys advise if there is an OSS note for this?
    Thanks,
    Sunny

    Hai Sunny,
    Please check Do you have material staring with Z
    and check is there any
    Maximum No. of Hits restriction.
    Till you get SAP notes
    Create a query in SQVI for only ine table and
    MARA and tick mark the selection b fields and fields to be displayed in the report.
    Now in the report selection screen you will get TO option as well it will list all the Z materials.
    Regards,
    Mani

  • Multiple selection in table not returning all selected rows

    I am unable to obtain multiple selected rows from a table. I only get a single row no matter how many I select.
    I have the following table
    <af:table value="#{bindings.TargetSelectorTargets1.collectionModel}"
    var="row"
    rows="#{bindings.TargetSelectorTargets1.rangeSize}"
    emptyText="#{bindings.TargetSelectorTargets1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.TargetSelectorTargets1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.ImplicitViewCriteriaQuery2.quickQueryDescriptor}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery2.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.TargetSelectorTargets1.collectionModel.selectedRow}"
    selectionListener="#{bindings.TargetSelectorTargets1.collectionModel.makeCurrent}"
    rowSelection="multiple"
    partialTriggers="::qryId1" id="t3"
    styleClass="AFStretchWidth"
    binding="#{testbean.targetselectortable}">
    <af:column sortProperty="Name" filterable="true"
    sortable="true"
    headerText="#{bindings.TargetSelectorTargets1.hints.Name.label}"
    id="c2">
    <af:outputText value="#{row.Name}" id="ot33"/>
    </af:column>
    <af:column sortProperty="Type" filterable="true"
    sortable="true"
    headerText="#{bindings.TargetSelectorTargets1.hints.Type.label}"
    id="c11">
    <af:outputText value="#{row.Type}" id="ot34"/>
    </af:column>
    </af:table>
    and I have the following bean method to get the selected rows
    RowKeySet rks = targetselectortable.getSelectedRowKeys();
    Iterator itr = rks.iterator();
    Object key;
    while(itr.hasNext())
    key = (Object)itr.next(); targetselectortable.setRowKey(key);
    Object o = targetselectortable.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) o;
    Row row = rowData.getRow();
    System.out.println(row.getAttribute("Name").toString());
    and I only get one row.
    Note: selectedRowKeys="#{bindings.TargetSelectorTargets1.collectionModel.selectedRow}"
    shows a warning that "reference selectedRow" not found.
    Can I do something to make it work?

    can u change the logic like
    RowKeySet rowSet = targetselectortable.getSelectedRowKeys();
    Iterator rowSetIter = rowSet.iterator();
    > while (rowSetIter.hasNext()) {
    > List l = (List)rowSetIter.next();
    > Key key = (Key)l.get(0);
    >
    FacesContext fc = FacesContext.getCurrentInstance();> BindingContainer bindings =
    > (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    > "#{bindings}",
    > BindingContainer.class);
    >
    DCBindingContainer bindings = (DCBindingContainer)bindings ;> DCIteratorBinding iter =
    > bindings.findIteratorBinding("TargetSelectorTargets1Iterator");
    >
    > iter.setCurrentRowWithKey(key.toStringFormat(true));
    > Row r = iter.getCurrentRow();
    > System.out.println(row.getAttribute("Name").toString());
    > }

  • Help needed with singleSelection and multiple selection in table.

    Hi ,
    How do i implement the singleSelection and multipleSelection on table rows.
    How do i capture the checked rows?
    How should the code be written and where should it be written.
    I should be capturing the values of the checked rows and pass it to the pl/sql package.
    I have a table - in -table so there is a singleselection on the outer table and multiple selection on the Inner table.
    Could anyone help me with this.
    Thanks,

    One solution to most of your questions : Read the advanced table section of Dev guide.
    Always go through the dev guide before putting up the issue. Let the forum be for those scenarios which dev guide doesn't covers in much detail.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Multiple Selection in Table

    Hi,
    I have a table control which is configured for multiple selection.
    But, I need to get the list of selected rows?
    How can I do it?
    I didn't find any methods on the table control or at the context node.
    Can anyone guide me out of this issue?
    Thanks and regards
    RB

    Hi RB,
    Yes still you can use this.
    Ex:
    for(int k=0;k<wdContext.nodeEmployeeInfo().size();k++)
    if (wdContext.nodeEmployeeInfo().isMultiSelected(k))
      /* Here you will get all the list of selected rows */
    Regards, Anilkumar

  • Multiple Selection of Table Rows

    Hi Friends
    I created a web dynpro application which displays a table with multiple records.
    I added a button "REMOVE" to delete the selected rows from the table.
    It is working good if I select single row, but if I want to delete more than one row I am not able to select the rows and how can I delete all the selected rows.
    Thanks

    Change the selection property of node binded to table as 0..n.
    This will allow you to select multiple rows.
    To get multiple rows, use  get_selected_elements method of if_wd_context_node.
    Code for your reference :
    DATA:  wd_node TYPE REF TO if_wd_context_node,
             wa_temp  TYPE REF TO if_wd_context_element,
             lt_temp  TYPE wdr_context_element_set.
      wd_node = wd_context->get_child_node( name = 'NODE' ).
      CALL METHOD wd_node->get_selected_elements
        RECEIVING
          set = lt_temp.
      LOOP AT lt_temp INTO wa_temp.
        wd_node->remove_element( EXPORTING element = wa_temp ).
      ENDLOOP.

  • Multiple selection in table filters 12c

    Hi all,
    I would like to filter a table using  multiple values in the same filter. According to the normal behavior you can use VALUE1 OR VALUE2 OR VALUE3... in the table filter and it works but I have a new requirement where the "OR" cojuntion must be a ",".
    So the question is:
    How to use  "," as conjuntion instead of  "OR"?
    Jhon
    jdev 12c

    Jhon, there is no such function (never has been). You are trying to create an  IN clause.
    What you can do it adopt the technique I outlined in my blog  JDeveloper 11.1.1.6.0: Escape QBE Operators in Filterable Tables | JDev &amp;amp; ADF Goodies
    Here I use a special syntax in the filter field to modify the query. I'm looking for '_and_' in the field to then search for the word 'and' in the column. However, you can modify the sample, use your own syntax and return an IN clause.
    Timo

  • Using multiple select lists in ADF

    Hi,
    I am trying to use a multiple select list in my JSP page, and have a method in the ApplicationModule be called when the Struts action is called. I am following the example ADF tutorials, where the method is added to the ApplicationModule class, then dragged onto the Stuts Flow diagram (to associate it with an action).
    I am able to create a dyna form bean for the page that contains the multi select as a type "java.lang.String[]" (string array). I am able get that values that were selected in a normal action's "execute" method. For example:
    msf = (DynaActionForm) form;
    String[] statusSelection = (String[]) msf.get("multSelectList");
    However, I cannot seem to get the "multSelectList" values into a method in my Application Module class. The "multSelectList" is defined in my dynaFormBean as a String[] type. I am passing it in as an argument like the following....
    public void setParams(String multSelectList[]) {
    This results in the method not being called at all. I am not sure why. Does this have something to do with a String[] not being serializable??
    However, if I just attempt to pass other types form items to the method, it works. For example:
    public void setParams(String simpleCheckbox) {
    Does anyone know how to use multiple select lists in conjunction with ADF?
    P.S.
    my multSelectList looks something like this:
    <select name="multSelectList" multiple size="5">
    <option value="ALL">Select All</option>
    <option value="preferred">Preferred</option>
    <option value="standard">Standard</option>
    <option value="approved">Approved</option>
    <option value="interim">Interim</option>
    </select>

    I got this working by changing the signature of the Application Module method to use ArrayList rather than String[], then you can marshal the Struts FormBean contents into an ArrayList to pass up.
    To do this, subclass the DataAction by using "Go To Code" off of the context menu and then override the initializeMethodParameters() method:
      protected void initializeMethodParameters(DataActionContext actionContext, JUCtrlActionBinding actionBinding)
        //Get the String Array from the Form Bean
        String[] selection = (String[])((DynaActionForm)actionContext.getActionForm()).get("multiSelect");
        //convert that to an ArrayList
        ArrayList selectionArr = new ArrayList( Arrays.asList(selection));
        //Add that object to the Arg List for the AM method
        ArrayList params = new ArrayList();
        params.add(selectionArr);
        actionBinding.setParams(params);
      }

  • Multiple selection Shift & Control

    Hi all,
    In my webdynpro application.The only option was to select multiple records with SHIFT and deselect records with CTRL.
    Is there any funtionnality in order to keep the selection by CTRL only ?
    Best regards

    In  recent post - someone mentioned that there is a SAP note for this behavior - although it's pretty old - so may/may not be the issue:
    [SMP login required - SAP note 1306538 - Multiple selection in table not possible using CTRL|https://service.sap.com/sap/support/notes/1306538]
    Is it possible that your release is at this level - looks like 7.01 SP1 to 3 has the issue but is corrected in 7.01 SP4.
    Hope that is useful,
    Cheers,
    Chris

  • Two LOVs in same UIX page based on the same table

    Hi group,
    Recently I ran into a problem with a UIX page that has two LOVs based on the same database table. In Emp and Job terminology, here's what I tried to do.
    Suppose we have use the Employees and Jobs tables from the HR scheme with one small modification. Add a column called PREFERRED_JOB_ID of type VARCHAR2(10) which is exactly the same as JOB_ID. Hypothetically speaking, this column will be used to allow Employees to select their preferred job in case they want to change their jobs.
    Next, create business components in JDeveloper based on the Employees and Jobs table. In order to be able to generate the LOVs for Job and PreferredJob create two ViewObjects, one called JobsLookupView and one called PreferredJobsLookupView. These both need to be based upon the same Jobs EntityObject. Also include the Jobs EntityObject twice in the EmployeesView ViewObject and give one the alias PreferredJobs. Include the JobTitle attributes of Jobs and PreferredJobs in EmployeesView so they can contain the JobTitles selected in our future LOVs.
    Next create a ViewController project if it's not already there and enable JHeadstart on it. Create an Application Structure File and create the lookups for the two LOVs. When I run the application I see this happening:
    When I click the flashlight icon next to the PreferredJob LOV and select a job, the PreferredJob field is selected in the UIX page but no job title appears. When I next first select the Job LOV and select a new job and then select the PreferredJob LOV again and select a different job, the job that was selected in the Job LOV is now also entered in the PreferredJob field. When I make sure the PreferredJob field isn't required (remove the required="yes" property on the messageLovInput entry for PreferredJobTitle and remove the PreferredJobTitle field from the addRequiredRowItems list in the UIX page) I can save the changes I made in the Employees.uix page. The same JobId is stored in the database for Job and PreferredJob.
    This behaviour is probably due to cacheing issues because both LOVs and the EmployeesView ViewObject use one EntityObject for four values in three ViewObjects.
    So I then modified my model a bit. I created a new EntityObject called PreferredJobs based on the JOBS table. I modified the EmployeesView ViewObject to use this EntityObject for the PreferredJobTitle attribute and modified the PreferredJobsLookupView to use this EntityObject.
    I needed to modify a few things as well in the Application Structure File (which were prompts and whether or not the attribute should be visible in a table) and after regenerating I made sure the PreferredJob attribute isn't required in the UIX page. When I then run the application again, I never see the JobTitle I select in any LOV allthough the PreferredJob field is selected when I select a Job in the PreferredJob LOV. The correct JobId now is stored in the database though.
    Has anyone ever encoutered this behaviour? Would anyone know how to get two LOVs based on the same table in one UIX page?
    Thanks in advance,
    Wouter van Reeven
    AMIS

    OK I figured it out. When I added the second Lookup ViewObject (PreferredJobs) no additional Association was created. Therefore, ADF BC wasn't able to figure out which field to update. When I added the Association between the PreferredJobs Lookup ViewObject and the Employees ViewObject everything started working ok.
    I then recreated my inital situation: one EntityObject for Jobs and one for Employees, now with two Associations between them. After modifying the Employees ViewObject and making sure the Jobs EntityObject was referred twice and via the corresponding Association, everything started working ok.
    Greets, Wouter
    AMIS

  • How to display multiple selected rows in a table inside a popup?

    Hi,
    I have a table on which multiple selection is enabled. I am able to get hold of multiple selected rows i.e. i am able to iterate over the selected row keys and print their values. Now, my problem is how to display the contents of all the selected rows in a popup? I get the details of only one row when I launch the popup.
    Thanks
    Karan

    Hi,
    Not confident if this works or not but just try it...
    1. create a ViewLink between the same view Object.
    The source and destination wil be the same Vo and the source and destination attribute will be the pk of both Vos.
    2. Update the changes in Appln Module.
    Open the AM and in DataModel tab .
    select the Same VO from which you created table in the DataModel Listbox and select the VL in the "Avaible View Objects" List Box. Add under it(selected vo in datamodel listbox).
    3. Refresh DataControl accordion.
    4. in your jsff page drag and drop the child vo as a table..
    See if it works
    Regards,
    Santosh.

  • Toggling between single and multiple selection in a table

    I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
    I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
    <f:facet name="selection">
    <af:tableSelectMany autoSubmit="true"
    rendered="#{treeBean.multipleRows}"/>
    </f:facet>
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"
    rendered="#{treeBean.singleRows}"/>
    </f:facet>
    When I use inside the switcher, it doesn't like the parent.
    Any ideas would be greatly appreciated.
    Thanks,
    Vijay.

    I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <af:document title="tableSelectMany Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <af:messages/>
    <af:selectOneChoice value="#{sessionScope.tableSelection}"
    autoSubmit="true"
    id="selType"
    label="Selection Type">
    <af:selectItem label="Single" value="#{null}"/>
    <af:selectItem label="Multiple" value="#{true}"/>
    </af:selectOneChoice>
    <af:table summary="Periodic table"
    binding="#{tableActions.table}"
    partialTriggers="selType"
    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
    value="#{periodicTable.tableData}" var="row" rows="10">
    <af:column>
    <f:facet name="header">
    <af:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Symbol"/>
    </f:facet>
    <af:outputText value="#{row.symbol}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Action Column"/>
    </f:facet>
    <af:commandButton immediate="true" text="Action"
    action="#{row.action}"/>
    </af:column>
    </af:table>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • HideShow  in table column in uix page

    Hi EveryBody,
    I am usin JDeveloper 9051+ adf+uix.
    In that i'm trying to put a <hide show /> component in a column.
    Hide and show is running but it does work for all the rows at a time since id of each <hideshow/> is same (i mean to say that all hideshows work at the same time) and i want it to work for the particular row in which the hide show is pressed.
    This is my code snippet kindly help in this:
    <hideShow id="hideshow1" disclosed="${'show'==uix.pageState.hideshow1}">
    <contents>
    <flowLayout>
    <contents>
    <labeledFieldLayout>
    <contents>
    <textInput model="${uix.current.Asset.KeyId}" columns="10" readOnly="true"/>
    </contents>
    </labeledFieldLayout>
    <labeledFieldLayout>
    <contents>
    <textInput model="${uix.current.Asset.Description}" columns="10" readOnly="true"/>
    </contents>
    </labeledFieldLayout>
    <labeledFieldLayout>
    <contents>
    <textInput model="${uix.current.Asset.Image}" columns="10" readOnly="true"/>
    </contents>
    </labeledFieldLayout>
    <labeledFieldLayout>
    <contents>
    <textInput model="${uix.current.Asset.ShortDescription}" columns="10" readOnly="true"/>
    </contents>
    </labeledFieldLayout>
    </contents>
    </flowLayout>
    </contents>
    </hideShow>
    <handlers>
    <event name="hide show">
    <set target="${uix.pageState}" property="${param.source}" value="${param.event}" />
    </event>
    </handlers>
    Thanks in advance.

    Use detailDisclosure. It handles (almost) everything for you.
    The LinkageError is not caused by the detailDisclosure.
    In your table:
                    <table model="${bindings.AppointmentInformationView1}"
                           detailDisclosure="${uix.eventResult.detailData}"
                           alternateText="${uix.data.nlsMed.NoRecordsFound_LABEL}">
                      <contents>
                        <column>
                        </column>
                      </contents>
                      <detail>
                        <rowLayout width="100%" vAlign="top">
                          <contents>
                              PUT YOUR DETAIL COMPONENTS HERE!
                          </contents>
                        </rowLayout>
                      </detail>
                      <tableSelection>
                      </tableSelection>
                    </table>You are telling the table that the information about which rows are to be expanded can be found in the event result in detailData.
    Now you need an event handler in that page:
        <event name="show hide">
          <!-- show the table details -->
          <method class="foo.bar.UixHelper" method="doHideShowEvent"/>
        </event>The show/hide events will go to a class (that you will provide) and the static method doHideShowEvent() will be called. That method must return the EventResult containing detailData.
    Simple so far: You tell the table that the hide/show information comes in the EventResult object. You route the show/hide events to your class so that you can create the detailData and the EventResult object.
    The next step takes a bit of coding. In your doHideShowEvent() method you must create the detailData object and return it wrapped in an EventResult.
    The code looks like this:
      public static EventResult doHideShowEvent( BajaContext context,
                                                 Page page,
                                                 PageEvent event ) {
        // "source" contains the id of the UIX table
        String dataSetName = event.getParameter( "source" );
        int tableLength = 0;
        boolean discloseAll = false;
        PageEventFlattenedDataSet tableRows = new PageEventFlattenedDataSet( event,
            dataSetName );
        tableLength = tableRows.getLength( );    // the number of displayed table rows per
                                                 // page (not the complete number of rows)
        // Remember the selected row for single selection tables (-1 means no selection)
        // Number of row in displayed page (independent from range)
        int selectedRowIndexOld = SelectionUtils.getSelectedIndex( tableRows );
        int selectedRowIndexNew;
        // Check if special row or show all
        String value = event.getParameter( UIConstants.VALUE_PARAM );
        int disclosureRowIndex;
        if( value.equals( UIConstants.VALUE_SHOW_ALL ) ) {
          disclosureRowIndex = tableLength;
          discloseAll = true;
        } else {
          // this is the row that must be (un)disclosed:
          disclosureRowIndex = Integer.parseInt( value );
        // decide whether we want to disclose or undisclose depending on the name
        // of the event (hide or show)
        boolean disclose = UIConstants.SHOW_EVENT.equals( event.getName( ) );
        if( discloseAll ) {
          // if all rows shall be processed, keep previous selected
          selectedRowIndexNew = selectedRowIndexOld;
        } else {
          if( disclose ) {
            // set the selected row automatically on the row where show event was issued by
            // the user.
            selectedRowIndexNew = disclosureRowIndex;
          } else {
            // If the user pressed "hide" the selection is only changed if no row is selected
            // not changed
            selectedRowIndexNew = disclosureRowIndex;
        DataObjectList detailData = new TableDetailData( tableRows, disclosureRowIndex,
            disclose, discloseAll );
        EventResult result = new EventResult( page );
        result.setProperty( "detailData", detailData );
        result.setProperty( "selectedRowIndex", new Integer( selectedRowIndexNew ) );
        return result;
      }    // end method doHideShowEventSascha

  • Adding a Multiple Selection to a Table Dynamically on Process Request

    Dear All
    I am trying to get a selected row in a Table in an Oracle Seeded page. I have tried Row reference but was not successful.Hence I an trying to add the Multiple selection to the same table . Please help.
    The code I tried is
    OATableBean tabObj=(OATableBean) webBean.findChildRecursive("partCompanyVO1");
    if(tabObj!=null)
    System.out.println(" Not Null ");
    tabObj.setSelectionDisabledBindingAttr("Disabled");
    tabObj.setSelectionDisplayed(true);
    tabObj.setControlBarDisplayed(false);
    tabObj.prepareForRendering(pageContext);
    OAWebBeanTable tableSelectionBean = (OAWebBeanTable)tabObj.getTableSelection();
    System.out.println(" tableSelectionBean "+tableSelectionBean);
    OASingleSelectionBean tabSingleSelObj=(OASingleSelectionBean)tabObj.getTableSelection() ;
    System.out.println(" tabSingleSelObj "+tabSingleSelObj);
    if(tabSingleSelObj!=null)
    tabSingleSelObj.setText("Select Object");
    System.out.println(" Selection is Enabled ");
    }

    Antony,
    You will be able to get all the selected rows using
    Row[] selectRows = VO.getFilteredRows("Flag","Y") ;
    Regards,
    Gyan
    www.gyanoracleapps.blogspot.com
    www.querenttech.com

Maybe you are looking for

  • HELP! Form-Report integration problem!

    Hi all, I have a problem in integrating report in dev10i. I used to use Dev6i and have no problem in using run_report_object in 6i. I have posted this in Report for few days but haven't got response. I got the REP-0503 You did not specify the name of

  • 5300 RAM showing up as 3200 in Quad, any experience with this problem?

    Hello, just received a 2 gig kit for my G5 Quad (2 - 1 gig sticks from Crucial). System Profiler shows it's speed at 3200, lower than the original 512 RAM which is 4200. Crucial says it will only reach 4200, but why is the new RAM showing up at 3200?

  • Not writing the file second time

    hi Experts can anybody tell me after executing this code on windows the value is not written second time to file the code goes like this import java.util.*; import java.io.*; import java.net.*; public class Agent      public static void main(String a

  • Config "look-alike" desktop for testing purposes... small problem...

    my experiment requires me to make AWN resemble the Win7 menu bar.  My problem is that I can't seem to find the right clock/calendar applet (or configuration of such) to sincerely mimic the one from Win7... could someone shed some light on how I can p

  • Seaching  a keyword in Text Area

    Hi Yesterday I had posted a topic about searching a keyword in a TextArea..and then I got an answer (search link is ---->javascript+text+highlighting)..to search a keyword using java script..the code was working throughout the web page..but it was no