Retrieving dynamic textfield values

hi all,
i have a frame that contains a button.On clicking the button i create a textfield.Since i am creating it dynamically, i cannot get the value entered into it using "txtfieldobj.getText()" method.Is there any other way to get the value in the textfield.Please help me to solve this problem.Its very urgent.
Thanks in advance
Regards

you are mixing pure java with mark-up language syntax.
for that to execute i would think you have your for statment inside:
<% %> tags or you have it inside a servlet..
either way...your line should be:
String ca1 = request.getParameter("ca1_" + i );
when you get this working you should look into preparedstatements when doing repetative sql.
gl, hope that helps.

Similar Messages

  • How to retrieve dynamic filter value submitted from control query to .....

    How to retrieve dynamic filter value submitted from control query to broadcast query.....
    I'm trying to change the hierarchy version determined by a userexit variable in the broadcast query.
    The Hierarchy Version should be dependent on the input filter delivered by the bursting query.
    But how do I catch the dynamic filter value which has been submitted by the bursting query,
    with other words:  where does the bursting query store it's out put while sequentially starting the broadcast query value by value?
    BTW: the filter value from the bursting query appears under "dynamic filter values" in the information of the broadcast query...
    Any thoughts are welcome!
    Edited by: Heinrich Krupp on Jun 24, 2009 1:25 PM

    Further information,
    Report is used via webi only, not Xcelsius or Dashboard.
    Report is consuming BI Web Services.
    Although we can pass in prompt values to BI Services, I couldn't find if we could pass a variable or dimension object into this field. Anyone knows?

  • Unsure how to save to database dynamic Textfield values

    I'm trying to create a list to record student grades into the database. I'm able to pull out the names from the database and create a table with textfields in it to input the data into.
    This is the code i'm using
    for(int i = 0; rst2.next(); i++){
    <th scope="col"><input name="ca1_<%=i%>" type="text" id="exam1" size="7" /></th>
    I'm using jsp and mysql
    My database fields are exam1, exam2, exam3, exam4
    Thank you so much for your help.

    you are mixing pure java with mark-up language syntax.
    for that to execute i would think you have your for statment inside:
    <% %> tags or you have it inside a servlet..
    either way...your line should be:
    String ca1 = request.getParameter("ca1_" + i );
    when you get this working you should look into preparedstatements when doing repetative sql.
    gl, hope that helps.

  • Retrieving old column values from a after delete trigger dynamically

    I have a single audit table for deletions
    and the table structure has the following columns
    1: table_name
    2: column_name
    3: column_value
    I am writing a trigger on tables for which i want to have delete audits and i am dynamicaly
    retrieving the column names but i am unable to retrieve the column value dynamically;
    I tried to use the following statement but doesn't return the column value
    sql_stmt:= 'select :1 from dual';
    execute immediate sql_stmt into col_value using
    ':old.'| |v_col_name;
    where v_col_name is the name of the column which i retrieve dynamically using the
    dbms_sql.describe_columns procedure.
    Is their any way if i can retrieve the old column values in the trigger dynamically if i already
    have the column names in variables..
    Thanks in advance.
    null

    I don't know if Kevin's tip Help Mr. Sameer, but it did help me gain access to pre-deleted row column values.
    I did discover, however, that if the columns from the about-to-be-deleted row are used as inserts into another table, Oracle serves up a nasty-gram informing the user that values from the about-to-be-deleted table are unreliable.
    I was able to circumvent this constraint by assigning the about-to-be-deleted column values to local PL/SQL varables, then perform the insert using the variable values.
    -Bill McNamee
    NHDOT
    [email protected]

  • To Retrieve dynamic radio button values using jsp & javascript

    Hi All,
    How can i retrive the dynamically created radio button values and also want to get the clicked radio button values.I am using JSP and JAVA beans to retrive the values from the form. I dont have any probs to retrieve combo box values, text box values only problem showing with radio button values. If any data which is entered wrong in the form all the fields should prefills with the old value.Except radio button values all others fields such as combo box, text box values are prefilled with the old values.
    I have given the code for radios.
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes   ');
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
    document.write('<input type="hidden" name="fcidis" value="">')
    <form method="POST" action="Update.jsp" name="sampleReq" >
    <tr>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
    <input type="hidden" name="requester1" value=""/>
    </td>
    </tr>
    Advanced Thanks for help
    Regards
    Sona

    Hi,
    If you have this code
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes ');
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
    document.write('<input type="hidden" name="fcidis" value="">')
    <form method="POST" action="Update.jsp" name="sampleReq" >
    <tr>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
    <input type="hidden" name="requester1" value=""/>
    </td>
    </tr>
    this field distradio will not be able Update.jsp.
    You will need to insert these field into the form definition.
    Now, to get a valeu from a radio button, you need only to do request.getAttribute("fieldName").
    To generate dinamically all radio button values, i need to know where are these information? In database? If yes, you need to read the resultset na in value attribute you need to do somethink like this <input type=radio name=fieldName value="<%out.println(resultset.getString("FieldName"));%>">
    If you have more question, only send me a email,
    best regards
    Edney Imme
    [email protected]

  • Dynamically retrieving a sequence value for your stylesheet.

    Is it possible to do the following withing a stylesheet: dynamiccally retrieve the next value of a sequence and use it within a style sheet as it is processing a XML document?
    Thanks for the help.

    I do not have an XSQL page.
    I am using the XMLLoader utility from Steve Muench's book. All I have is my XML input document, and my XSL stylesheet document.
    If you are familiar with the XMLLoader utility, where would the XSQL page you referred to fit in?
    <xsql:set-stylesheet-param name="parametername">
    SELECT sequence_name.NEXTVAL
    FROM YOURTABLE
    </xsql:set-stylesheet-param>That will be set in your XSQL page. Then you'll read that in on your XSL page with the following:
    <xsl:param name="parametername"/>You'll reference that variable in your XSL and increment accordingly adding whatever value to $parametername in the <xsl:value-of select="$parametername + 1"> or whatever you want your increment value to be. Hell, it could be <xsl:value-of select="$parametername + position()"> if you're looping through repeated XML elements.
    Hope that helps.
    Malik Graves-Pryor<HR></BLOCKQUOTE>
    null

  • How to create a condition based on a select that retrieve dynamically a LOV

    Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
    So, the condition have to be:
    inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
    I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
    and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
    and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
    These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
    I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
    Anybody has inplemented something similar ??
    Thanks in advance
    Alex

    Hi alex,
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
    But again your trying to select in the second query where you want "General_faults_iptv"
    SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
    I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    Regards,
    Kranthi.

  • Get textfield value and put it session  JSP

    Hi all .
    I have issuse with Session . this the code . file name (order.jsp)
    %>
    <p>Compute</p>
    <table width="354" border="1">
    <tr>
    <td width="36" scope="col"> </td>
    <td width="148" scope="col">Computer Type</td>
    <td width="148" scope="col">Price</td>
    </tr>
    <%
    while (rset.next ()) {
    %>
    <tr>
    <td><input type="text" name="compno" value="<% out.print (rset.getString ("COMPUTERID"));%>"</td>
    <td><input type="text" name="compty" value="<% out.print (rset.getString (2));%>"</td>
    <td><input type="text" name="comppr" value="<% out.print (rset.getString (3));%>"</td>     
    *<td width="61"><a href= "detailorder.jsp?<% session.setAttribute("comp", request.getParameter("compno"));*
    *     String str=(String)session.getAttribute("comp");     *
    *     System.out.println("file name is"+str);%>=">Add <%=str%></a></td>* </tr>
    <%
    rset.close();
    pstmt.close();
    %>
    my problems is that I would to get "COMPUTERID" value and put it in "comp" and save it as session .
    please help
    raid
    Edited by: raid200 on Apr 23, 2008 12:40 PM
    Edited by: raid200 on Apr 23, 2008 12:41 PM

    Copied from a newly opened topic:
    raid200 wrote:
    Hi
    Thanks for your help . I can take one textfield value and send it to another jsp file
    BUT I would to take all textfield in the row that I would use it .
    Code .
    <p>Compute</p>
    <table width="354" border="1">
    <tr>
    <td width="36" scope="col"> </td>
    <td width="148" scope="col">Computer Type</td>
    <td width="148" scope="col">Price</td>
    </tr>
    <%
    while (rset.next ()) {
    %>
    <tr>
    <td><input type="text" name="compno" value="<% out.print (rset.getString ("COMPUTERID"));%>"</td>
    <td><input type="text" name="compty" value="<% out.print (rset.getString (2));%>"</td>
    <td><input type="text" name="comppr" value="<% out.print (rset.getString (3));%>"</td>     
    <td width="61"><a href=" "detailorder.jsp?compno=<%= rset.getString("COMPUTERID")%">>                               <%session.setAttribute("compna",rset.getString(2));
                                  session.setAttribute("comppr",rset.getString(3)); %>"> BUY ME! </a></td>
    </tr>
    In the detailorder.jsp::::::
    String selectedCompId = request.getParameter("compno");
         session.setAttribute("comp", selectedCompId);
    String computerid=(String) session.getAttribute("comp");
    String computername=(String) session.getAttribute("compna");
    String computerprice=(String) session.getAttribute("comppr");
    in the detailorder.jsp ("""""the compna and comppr give the last record in formation""""""")
    Please Help.
    Raid</a>
    You question shows that you still don't understand how JSPs work.
    Try reading [this article|http://www.javaranch.com/journal/200510/Journal200510.jsp#a1].
    You seem to think that the session.setAttribute call is done when you click the link. This is definitely NOT the case.
    All of the java code runs (including all of those session.setAttribute) calls, and produces HTML. So it will store each element into session, overwriting the previous one.
    To get information from one jsp to another you either pass parameters or use session attributes.
    I showed you how to pass the selected id as a parameter, that you could retrieve in the next JSP.
    So you can get the compid.
    You could pass the other values as parameters as well - thats one approach.
    Alternatively you could use the id to look up the data from the database again.
    Alternatively you could store the +entire list+ of computers in the session, se the selected id to determine which one of those was selected, and get the answers like that.
    The full solution to my mind would be to write a bean method that executes the query, and generates a List of java Objects representing your information.
    You can then put that list in the session, and use it to both generate this JSP and get the information once the user selects one line.
    Hope this helps,
    evnafets

  • How to get textfield values from a tableRowGroup

    I have textfield in a table.
    my problem is
    How to get textfield values from a tablerowgroup1.

    I have created getQuantity and setQuantity properties in my session bean and mapped text property of tabletextbox to session bean quantity.
    also used map to set and reatrieve quantity values.
    I am getting error for bean type quantity.

  • How to preserve special characters in dynamic textfield for text comparison?

    The problem is as follows:
    Since I mostly develop for multiple languages I am forced to have dynamic textfields in my buttons which contain three lines (to account for the differnt text.lengths in different languages).
    I then populate the textfields with strings out of an array or xml and use the textfields contents later in my button class to execute different code depending on the textfields content.
    This works fine as long as I don`t use any special characters, like for example "\n".
    var labels:Array = ["\nLABEL1","LABEL\n\n2"];
    switch (e.currentTarget.txt.text)
                    case labels[0]:
                        doSomething();
                        break;
                    case labels[1]:
                        doSomethingElse();
                        break;
    shows the right thing in the button label (breaks the text were I want it)
    but stops to work
    (with htmlText &  <br> its the same)
    my workaround for the moment is to use filler spaces,
    var labels:Array = ["                   LABEL1","LABEL                                                                        2"];
    but that`s obviously ugly to setUp and requires a lot of trial/error to get it right for all languages.
    Any ideas how to bypass that?

    Bad habits die hard ;-)
    Weird enough spelling the problem out and getting this response from you cleared my head and  I finally got an easy solution.
    I simply attach a dynamic property to the movieclip, copy the array contents into them and instead of using the text-property for comparison I compare the MovieClips fresh created spectext property.
    Voila: Now I can be lazy without too much of a bad conscience.

  • Dynamically assign value to a column in ALV LIST Display

    Hi all,
    How can I dynamically assign value to a column in ALV LIST Display without using classes and methods?
    Thanks,
    Ridhima

    Hi Vikranth,
    I am displaying one ALV list say with columns A and B.
    I have value in A but not in B. Now at runtime user selects one row, clicks on push button in application toolbar, then i have to display value in column B in the already displayed list.
    I searched and came to know it can be done with oops concept. but i am not using classes and methods.
    so how can i do this?
    Thanks,
    Ridhima.

  • How to retrieve a property value from an iview in the back-end?

    Hi,
    I am looking for a back-end function module or any other way to retrieve the property value of an iview in the portal.
    Is this possible?
    thanks,
    Bert Caryn

    Hi,
    Look at the following threads,
    For programmatically getting the iview properties,
    Programmatically getting iView Properties
    Also,
    Get Properties of IView Programmatically
    Permanent change of iView property programmatically
    Hope these threads help u.
    Regards
    Srinivasan T

  • Reading Dynamic Table Values in interactive form (web Dynpro ABAP)

    Hi All,
    I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
    I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
    In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
    How can I resolve this problem.
    Thanks and Regards,
    Boopathi M

    that means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
    probably addNew() mathos may be useful to you.
    it appends a new record to the record set.
    xfa.sourceSet.dataConnectionName.addNew()
    also when on the exit event of the table field, do the following:
    var i = xfa.parent.index
    $record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
    xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname)

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • Retrieve xml attribute value of nth xml node using xpath query

    I have an xml with following stucture...
    <xml>
    <header>
     <DocumentReference OrderId="order001">
     <DocumentReference OrderId="order002">
     <DocumentReference OrderId="order003">
    I have to loop through this xml and retrieve the orderId values inside Biztalk orchestration.
    In the expression shape, I get the count of 'DocumentReference' nodes using an xpath query and then
    Added a loopshape to make sure it loops thru all nodes
    Loop condition:   n<=nodeCount     (where n is an integer variable, n=0 to begin with, incremented by 1 thru each loop, nodeCount is # of DocumentReference nodes)
     I try retrieve to the orderId in the following expression shape using the below xpath query
      xpathQuery = System.String.Format("//*[local-name()='OrderReference'][{0}]/@orderID)",n);
      sOrderId = xpath(MsgSingleInvoice,xpathQuery);
    And I get the following exception:
    Inner exception: '//*[local-name()='OrderReference'][1]/@orderID)' has an invalid token.
    Exception type: XPathException
    Appreciate any help!   thanks!

    Thanks for the quick response. I got rid of it.
    And I see a different error:
    Inner exception: Specified cast is not valid. Exception type: InvalidCastException
    Source: Microsoft.XLANGs.Engine  
    Target Site: System.Object XPathLoad(Microsoft.XLANGs.Core.Part, System.String, System.Type)
    Since variable 'n' is of integer type, I suspected it and changed it to n.ToString() and tested again and still see the same error.

Maybe you are looking for

  • How Can you get your hot mail.

    How can I use mail on my Mac to get my hot mail like i did with outlook on my PC.? Mac Minni   Mac OS X (10.4.7)  

  • Regarding Performance tool

    Hi Everyone, I want to check the performance of my weblogic , which tool is good for performnce checking. I need open free software tool , can u guide to me ,which is good tool and there documentation . Thanks Rocky

  • External LDAP port in Azure machine

    Hi all, I have two machines. One is used as an Active Directory domain controller machine. One is for web server. I want to capture LDAP queries by network package analysis tool but don't know if Azure machine uses different port rather than standard

  • Merging the output of two queries in to one

    Dear experts, There are two reports generated with sap queries. I want some of the fields of first query to be displayed in to second. Is there any option for merging two queries. Where is the request of the query saved. How to do the changes in the

  • JDE worldsoft 9.1 Facing the problem of extending cost is calculating wrong

    IN JDE worldsoft 9.1 we are facing the problem of extending cost is calculating wrongly. at the time of shipment confirmation in table F42119 it is calculated with 100 that means with decimals if the extended cost i( Qunatity 1 * cost 100 = Extended