Binding a text box to a child index

I have an Hbox that contains 10 custom components (all the same component). Only 5 are displayed at a time, and I am building something similar to a thumbnail scroller that is in an endless loop.
I have a Timer that triggers every 5 seconds to "scroll" the images.
Here is my function to do that.
public function DoLoop(event:TimerEvent):void
                var imgnum:DisplayObject
                imgnum = myHbox.getChildAt(0);               
                myHbox.removeChildAt(0);
                myHbox.addChild(imgnum);
So this grabs the custom component in position 0 and adds it to the end. That works just fine.
Now my problem arises when I am inside of my custom component. I want to bind it's current index (inside the Hbox) to a label. So I started off like this.
<mx:Label id="mylbl" x="50" y="26" text="{parentDocument.myHbox.getChildIndex(this)}"/>
That displays the current index of my custom component inside of the hbox, but when the Timer function fires, it does not update the label.
So basically the label in index 0 of the hbox should always say 0...but it doesn't it changes to 1...2...3 ect everytime the timer function fires.
I added a button to my component and I call a function which does a trace(parentDocument.myHbox.getChildIndex(this)); and it always returns 0 when I click the button in the 0 position.
How can I bind my label to always show the correct position?

Are you talking about the text that appears in a TextBox?
If so, you simply need to access the Text property of the TextBox.
Assume you have a TextBox on your form named textBox1, and that the user typed "Bill" into it.
To access the content in your program, you would refer to textBox1.Text, as in:
string name = textBox1.Text;
This statement works because the Text property is a string by definition.
As Adam said, if you are asking about something else, please clarify.

Similar Messages

  • Text Box Value in the Query Bind Parameter

    Hi
    I have to use text box value in the query bind parameter
    Thanks to help...

    Hi,
    - drag Execute with params
    - use EL
    Frank

  • How to Bind a Combo Box so that it retrieves and display content corresponding to the Id in a link table and populates itself with the data in the main table?

    I am developing a desktop application in Wpf using MVVM and Entity Frameworks. I have the following tables:
    1. Party (PartyId, Name)
    2. Case (CaseId, CaseNo)
    3. Petitioner (CaseId, PartyId) ............. Link Table
    I am completely new to .Net and to begin with I download Microsoft's sample application and
    following the pattern I have been successful in creating several tabs. The problem started only when I wanted to implement many-to-many relationship. The sample application has not covered the scenario where there can be a any-to-many relationship. However
    with the help of MSDN forum I came to know about a link table and managed to solve entity framework issues pertaining to many-to-many relationship. Here is the screenshot of my application to show you what I have achieved so far.
    And now the problem I want the forum to address is how to bind a combo box so that it retrieves Party.Name for the corresponding PartyId in the Link Table and also I want to populate it with Party.Name so that
    users can choose one from the dropdown list to add or edit the petitioner.

    Hello Barry,
    Thanks a lot for responding to my query. As I am completely new to .Net and following the pattern of Microsoft's Employee Tracker sample it seems difficult to clearly understand the concept and implement it in a scenario which is different than what is in
    the sample available at the link you supplied.
    To get the idea of the thing here is my code behind of a view vBoxPetitioner:
    <UserControl x:Class="CCIS.View.Case.vBoxPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:v="clr-namespace:CCIS.View.Case"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    d:DesignWidth="300"
    d:DesignHeight="200">
    <UserControl.Resources>
    <DataTemplate DataType="{x:Type vm:vmPetitioner}">
    <v:vPetitioner Margin="0,2,0,0" />
    </DataTemplate>
    </UserControl.Resources>
    <Grid>
    <HeaderedContentControl>
    <HeaderedContentControl.Header>
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
    <TextBlock Margin="2">
    <Hyperlink Command="{Binding Path=AddPetitionerCommand}">Add Petitioner</Hyperlink>
    | <Hyperlink Command="{Binding Path=DeletePetitionerCommand}">Delete</Hyperlink>
    </TextBlock>
    </StackPanel>
    </HeaderedContentControl.Header>
    <ListBox BorderThickness="0" SelectedItem="{Binding Path=CurrentPetitioner, Mode=TwoWay}" ItemsSource="{Binding Path=tblParties}" />
    </HeaderedContentControl>
    </Grid>
    </UserControl>
    This part is working fine as it loads another view that is vPetioner perfectly in the manner I want it to be.
    Here is the code of vmPetitioner, a ViewModel:
    Imports Microsoft.VisualBasic
    Imports System.Collections.ObjectModel
    Imports System
    Imports CCIS.Model.Party
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' ViewModel of an individual Email
    ''' </summary>
    Public Class vmPetitioner
    Inherits vmParty
    ''' <summary>
    ''' The Email object backing this ViewModel
    ''' </summary>
    Private petitioner As tblParty
    ''' <summary>
    ''' Initializes a new instance of the EmailViewModel class.
    ''' </summary>
    ''' <param name="detail">The underlying Email this ViewModel is to be based on</param>
    Public Sub New(ByVal detail As tblParty)
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Me.petitioner = detail
    End Sub
    ''' <summary>
    ''' Gets the underlying Email this ViewModel is based on
    ''' </summary>
    Public Overrides ReadOnly Property Model() As tblParty
    Get
    Return Me.petitioner
    End Get
    End Property
    ''' <summary>
    ''' Gets or sets the actual email address
    ''' </summary>
    Public Property fldPartyId() As String
    Get
    Return Me.petitioner.fldPartyId
    End Get
    Set(ByVal value As String)
    Me.petitioner.fldPartyId = value
    Me.OnPropertyChanged("fldPartyId")
    End Set
    End Property
    End Class
    End Namespace
    And below is the ViewMode vmParty which vmPetitioner Inherits:
    Imports Microsoft.VisualBasic
    Imports System
    Imports System.Collections.Generic
    Imports CCIS.Model.Case
    Imports CCIS.Model.Party
    Imports CCIS.ViewModel.Helpers
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' Common functionality for ViewModels of an individual ContactDetail
    ''' </summary>
    Public MustInherit Class vmParty
    Inherits ViewModelBase
    ''' <summary>
    ''' Gets the underlying ContactDetail this ViewModel is based on
    ''' </summary>
    Public MustOverride ReadOnly Property Model() As tblParty
    '''' <summary>
    '''' Gets the underlying ContactDetail this ViewModel is based on
    '''' </summary>
    'Public MustOverride ReadOnly Property Model() As tblAdvocate
    ''' <summary>
    ''' Gets or sets the name of this department
    ''' </summary>
    Public Property fldName() As String
    Get
    Return Me.Model.fldName
    End Get
    Set(ByVal value As String)
    Me.Model.fldName = value
    Me.OnPropertyChanged("fldName")
    End Set
    End Property
    ''' <summary>
    ''' Constructs a view model to represent the supplied ContactDetail
    ''' </summary>
    ''' <param name="detail">The detail to build a ViewModel for</param>
    ''' <returns>The constructed ViewModel, null if one can't be built</returns>
    Public Shared Function BuildViewModel(ByVal detail As tblParty) As vmParty
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Dim e As tblParty = TryCast(detail, tblParty)
    If e IsNot Nothing Then
    Return New vmPetitioner(e)
    End If
    Return Nothing
    End Function
    End Class
    End Namespace
    And final the code behind of the view vPetitioner:
    <UserControl x:Class="CCIS.View.Case.vPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    Width="300">
    <UserControl.Resources>
    <ResourceDictionary Source=".\CompactFormStyles.xaml" />
    </UserControl.Resources>
    <Grid>
    <Border Style="{StaticResource DetailBorder}">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBlock Grid.Column="0" Text="Petitioner:" />
    <ComboBox Grid.Column="1" Width="240" SelectedValuePath="." SelectedItem="{Binding Path=tblParty}" ItemsSource="{Binding Path=PetitionerLookup}" DisplayMemberPath="fldName" />
    </Grid>
    </Border>
    </Grid>
    </UserControl>
    The problem, presumably, seems to be is that the binding path "PetitionerLookup" of the ItemSource of the Combo box in the view vPetitioner exists in a different ViewModel vmCase which serves as an ObservableCollection for MainViewModel. Therefore,
    what I need to Know is how to route the binding path if it exists in a different ViewModel?
    Sir, I look forward to your early reply bringing a workable solution to the problem I face. 
    Warm Regards,
    Arun

  • Expanding Text Boxes

    I don't know if this question is buried in some other place on the Muse site but I can't seem to find the answer to this.
    I am creating a site for a class I'm teaching and I would like to create a series of text boxes on a Master page, each one separated by headers or images.  However, each one of the child pages created from this Master will have different amounts of text in any given text box. For instance, Lesson #1 would have sections for Lesson, Homework, Handouts and the like, each one separated by a graphic or header for that section.  Another page -- let's say,  Lesson #2 -- would have the same sections and identical separating graphic, but different amounts of text in each of the text boxes.  The same for Lesson #3, Lesson #4, etc.
    Unless I'm missing something, it seems like there is no way to make a text box which varies in size from child page to child page.  If I need to create most of the elements on the page from scratch for each child page, what is the value of the Master page, aside from a very few repeatable elements?
    Is there something I'm missing here?
    Norman

    A colleague of mine pointed out to me that if a user fills out the form using Apple's Preview application, if the form is then viewed in Acrobat/Reader you will get the behaviors you describe of not seeing the entered text unless the field is selected and of the text boxes printing blank.
    This behavior may be true for other none Acrobat/Reader pdf clients as well.
    -Jeff Canepa

  • How to center Text Box on Web Page? -- Web dev with Word 2013

    I'm trying to assist a user who wants to use Word 2013 for simple web page development.
    There are many tools but they want to use Word 2013.
    Actually have it working by saving the Word 2013 files as web pages... like index.htm, about.htm, etc.
    The problem is when we use the "Insert" tab in Word to create a "Text Box" or a "Shape" ...
    And align it centered on the page... it looks fine in Word but when we open it with a web browser the "Text Box" or "shape" are no longeer centered.
    We thought we had it fixed by making the "Text Box" Layout Options "In Line with Text" but again... looks fine in Word but not in a web browser.
    The question: How can we get a "Text Box" in Word 2013 to appear centered on a web page?
    thanks for any help.

    Hi:
    For webpage design, I would suggest customized form under develop tab on the Ribbon over insert object directly. I tested from my side, using customized form will lock the object position on the
    page.

  • Hebrew fonts from drop-down box not displaying in text box.

    I am using InDesign CS 5.5 on a Mac 10.8.4.
    When in ID, the fonts I am seeing on the Font dropdown menu when I try to use in a text box are not displaying correctly. They only display as boxes. The fonts are in the Hebrew language. They are properly installed in the FontBook.
    Please help!! Thank you.

    Reema,
    I followed most of your steps. I have a question reg. step 3 ie populating data in node 1.
    Here is my code:
    method WDDOINIT .
    types: begin of zs,
    zktokd type kna1-ktokd,
    end of zs.
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zs.
    handle1 = wd_context->get_child_node( name = 'NODE1' ).
    *select ktokd into corresponding fields of zstruct from kna1.
    *append zstruct to zitab.
    *endselect.
    zstruct-zktokd = 'Sold-to party'.
    append zstruct to zitab.
    zstruct-zktokd = 'Goods recipient'.
    append zstruct to zitab.
    zstruct-zktokd = 'Payer'.
    append zstruct to zitab.
    zstruct-zktokd = 'Bill-to party'.
    append zstruct to zitab.
    zstruct-zktokd = 'Prospective Customer'.
    append zstruct to zitab.
    zstruct-zktokd = 'Competitor'.
    append zstruct to zitab.
    zstruct-zktokd = 'Sales partners'.
    append zstruct to zitab.
    zstruct-zktokd = 'Hierarchy Node'.
    append zstruct to zitab.
    zstruct-zktokd = 'Named List of Accounts'.
    append zstruct to zitab.
    zstruct-zktokd = 'Distribution center'.
    append zstruct to zitab.
    zstruct-zktokd = 'Payer'.
    append zstruct to zitab.
    handle1->bind_table( new_items = zitab ).
    endmethod.
    Please let me know if this is the best way to populate the node and then bind the table values from the node to the drop down box.
    Thanks and Regards.

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    EXCEPTIONS
       id_illegal_name = 1
                OTHERS = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • Help needed in getting values from the dynamically created text boxes

    Hello,
    I am developing one jsp page using struts. In the page i m
    dynamically adding some rows with two text boxes in each row. and after entering data into
    those textboxes , user clicks on save button and page is submitted.
    I want to capture all this data of dynamically added
    rows so that i can enter those rows into DB.
    how can i acheive this using struts?.
    Have anyone had tried doing it?. Please help.
    Thanx in advance
    Deepali Naik

    Hi,
    1. If you give these textBoxes the same name, then in your action you can call request.getParameterValues(paramName) - it returns String[ ] of values.
    2. You can give form textBox names like "name"+index or something like this in <logic:iterate> tag
    Good luck!

  • How do you create the 'cream pop-up info text boxes' that appear when you hover mouse over?

    Hi people,
    I really need to know how you create the 'cream pop-up info text boxes' that appear when you hover your mouse over an object on a webpage (and often in any program e.g. Photoshop) for more than a second. I need to know because the logo on my website is the navigation tool used to return to the homepage. It is always found in the top left so the user can always click it to return.
    The only problem is im the only one who knows that when you click my logo, you return to the homepage. I need one of these 'cream info boxes' (forgive my lack of knowledge) to appear so the user will figure it out.
    Thanks for taking the time to read my question...

    Using your code it should look like this where title attribute is in red:
    <div id="apDiv2"><a href="index.html"><img src="divs_dw/jtgd_logo_trans.png" alt="jtgd_logo" title="your description goes here" width="176" height="163" /></a></div>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How do I get rid of the white background in text boxes in Dreamweaver?

    I use a lot of reversed text on my site, and not being able to see the text in the split view means I have to edit in the code view slows me down no end… I've tried changing the obvious view options, but can never seem to find the one that makes the boxes transparent. Is there an easy fix to this???anx if you can help
    Many thanx if you can help. (;

    Here's a screengrab of the problem.
    This page uses no text nav; instead uses z-index' similar to layers in photoshop, where image maps on overhangs from the pictures/pages underneath, to navigate to other pages.
    But when working on it in Dreamweaver, it's a nightmare, because of the white boxes, which often almost completely obscure the layered divs underneath.
    Is there no easy way 4 DW to just make these boxes transparent in the View. Switching off Style Rendering doesn't really help.
    But thanx all for your help so far.

  • Need a text box  -- similar to what this forum provides

    I have users that complain that entering text messages on a
    web site is a pain because there isn't any of the editing
    capability like in Word. So .... being able to offer a text area
    just like the one I'm typing in would be great (mainly the ability
    to add bullets, bold, underline, etc.). It's on Adobe's Forum so I
    can only hope (?) it's available somehow to use in DW, if even as
    an extension.
    Anyone have suggestions?

    > Ya know, I have been learning the adobe lifecycye
    designer program for creating
    > pdf fillable, my word, documents. It would be excellent
    if we could go to a
    > library such as is available in lifecycle designer,
    choose a data base, text
    > field, form field, or other library items and then
    program them from withing
    > dreamweaver. If you have never tried lifecycle designer
    then you may not have a
    > clue.
    Not a clue :)
    > For example, The enter text field, in lifecycle designer
    you would click on
    > the Formfield text box drag it on to you page.
    I DW you place you cursor in your table/div where you have
    inserted
    your form and then you select insert - form - textfield.
    Postiion it, use the object and
    > lay out options to say...limit the amount of characters,
    binding and the
    > caption....
    In DW you have the properties inspector
    You can simply type just about what ever you want, place it
    on top,
    > to the left, right or bottom all in the various layout
    options.
    IN DW you do that with CSS
    No coding
    > required.
    No coding required here either. But... DW is not a wysiwyg
    editor. You
    have to have some understanding of html and css... otherwise
    you wont
    have a clue :)
    Unless you want to connect it to a data base or have the
    form fields
    > perform functions. Then you would need to lean Java...
    Well... DW has some built in facilities in php or asp coding
    and even
    for jsp I think.
    This is where I am
    > today. I need programmable forms... I was hoping the
    dreamweaver software had
    > such capabilites.
    Search this forum for "formmailer" and I'm sure you'll be
    fine. I think
    there is a Alan that gives a great explanation on how to
    configure the
    formmailer.
    I guess that is why they call it dream??? weaver.
    >
    >
    Kim
    http://www.geekministry.com

  • How to populate multiple text boxes by selecting a value from drop down

    I apologize in advance if this is redundant, but I have searched this forum relentlessly to no avail. I have a form  connected to an MS Access database. The database is linked to another datadase on an Advantage server. This is dynamic data that has an ODBC driver allowing to link access tables to the Advantage data. Macros on access updates the table being used on this form. The livecycle form connects to the access data via a DSN on a machine that uses acrobat (not reader). This is a physician office, this form should expedite ordering radiology tests on patients. The plan is to use a drop down to select a chart number that will trigger several text boxes to populate dynamically with the corresponding demographic values like name, age, insurance etc.
    Using a data drop down I am able to select the chart number. When I used the example from the office supplies database, so that a button will trigger the event with the following code:
    if (Len(Ltrim(Rtrim(SelectField.rawValue))) > 0) then
    $sourceSet.DataConnection.#command.query.commandType = "text"
    $sourceSet.DataConnection.#command.query.select.nodes. 
    item(0).value = Concat("Select * from OfficeSupplies Where ID = ", Ltrim(Rtrim(SelectField.rawValue)) ,"") 
    I recieve a syntax error, despite adjusting quotation since I am using text rather than numeric fields.
    My question is the following:
    Is there a simple javascript that I can use to populate these text boxes (which may be read only but would be better if it allows user input)? Or does anyone recommend an alternative method? I would be happy with a link that solves this problem if someone can provide. I am somewhat familiar with js but open to any suggesstion.
    Thanks
    PS this form could also be linked to a Sequel database if that offers an advantage.

    The View object API has a setQurery() method that you can use to set the query as needed before executing it via executeQuery(). You can do this in a custom Application Module method exposed to its client interface and bound to the binding layer. You can call this method from your backing bean on a value change listener.

  • I have a requirement with select and text boxes. JSP / JDBC

    I have a Combo Box which iswritten by a JSP by connecting to DB!
    When i click on a <option> corresponding the other two text boxes must be loaded with data!
    if i have list of EmpID in <select>, in one text box i should get his CITY and other Occupation !
    What i thought is .... getting all the data from database. select empid from emp and write a combo and select city,occupation from emp, intp ARRAYLISTs!
    function updatData(){
    var index=document.projalloc.associateid.selectedIndex;
    }if i onSelect=updateData(), (i will get index of empid,as it is a combobox) using which i have to retrieve the values of city and occupation !!
    BUT HOW !
    I am gettin the index of empid but how to get the data into textbox !!!!

    well there are many ways of doing this.
    1).Render all the data corresponding to each employee at a time.By making a javascript arrays and try to get back the data from there.
    2).Save the ArrayList of DTO beans in the scope of session.Use AJAX call a CGI(Servlet/JSP action) fetch the values from the session render the response as XML now parse the XML data using javascript DOM and then update the consecutive textboxes.
    Just as an example checkout my answer in the below post.It was an example given for a dependent drop downs.however, we can definately use the same concept to update textboxes too.
    http://forum.java.sun.com/thread.jspa?threadID=5209661&messageID=9844137#9844137
    Hope that might help :)
    REGARDS,
    RaHuL

  • Two column text box with header

    I have a text box that is set to flow as two columns. The beginning of the text box has a header then a list of bulleted items. My problem is that when the text flows to the second column, it is set at the top (in-line with the header). What I would like is to do something like set a top margin just for the second column so it will line up with the body text from the first column. Is there an easy way to do this or should I just use two text boxes and position the second box where I want it?

    Simplest is to use two text boxes.
    Dave Saunders has a script (http://pdsassoc.com/index.php?Nav=downs&Ban=Downloads&Info=downloads.html) that can do it with one text box by putting your head in a one-column table that intrudes into the second column. I've never used his script, and I see his website says CS and CS2, so I'm not sure if it would work with your version.
    You could probably achieve what you want (because I see you don't actually need the head to straddle, just the texts to top align with each other) by forcing a huge leading on one character in a frame that's set to First Baseline Offset by Leading.
    Ken

  • How do i change the color of text boxes and the texts that i enter in them?

    I recently changed my system's color settings and now the text boxes in Firefox are dark grey. This is fine when the text happens to show up as white, but when it shows up as black, I can't read what I'm typing. (I'm not clear on what makes the difference. The box I'm typing this in now happens to be dark grey with white text.) I've tried playing around with settings within Firefox preferences and in my OS' (Kubuntu) system settings, and haven't yet been able to identify what settings exactly might change this specific aspect.

    Two possible ways are available
    Set the text with and html text string like "<html><font color-red>" + text + "</font></html>"
    or get the cellrenderer, cast to the DefaultCellRenderer and call setForeground or background or implement or your own cellrenderer to do the custom coloring (this could maybe depend on indexes)
    ICE

Maybe you are looking for

  • Stucked in one background job

    Dear all, I am trying to change one HR workflow for travel request, ii's having two level of approval, I am trying to execute the workflow,  it's working fine till all the approvals but after all approvals there is one activity to create attandance o

  • What does this 'delegate no longer defined' message mean?

    I'm getting a certain yellow warning when I build our app with SDK 3.0 GM that I wasn't getting before: /Users/admin/Desktop/myapps/AppName/MainView.xib:36: warning: The 'delegate' outlet of 'Toolbar' is connected to 'Bar Button Item (Save)' but 'del

  • The certificate is not valid and cannot be used to verify the identity of this website

    Question posted in Stack Overflow too: java - How to solve "The certificate is not valid and cannot be used to verify the identity of this website" error? - St- The question is, How to solve "The certificate is not valid and cannot be used to verify

  • IPhone / iPad syncing issues.

    What I'm using: iPhone 4S 32GB - iOS 6 iPad 3rd Gen 16GB - iOS 6 MacBook Pro 2011 i7 (OS 10.8.2)  --- iTunes 10.7 When i plug either the iPhone or the iPad in to my computer to sync them both, the iPad/iPhone will vibrate off and on, thinking its plu

  • Bug report: Invalid tree select statement

    Hi, there seem to be two issues with tree regions. 1) The SQL statement of the tree region isn't validated as it is done for example for LOV statements when the user apply the changes in the builder. 2) If a tree SQL statement is invalid and you run