Retain last value in text box

Hi all,
I created a html page to the content server. In that page I created a popup. When I call the popup I can write some text in the textbox to do a search on my database. Then, the results are displayed in the popup. However, if I want to do a new search I have to write again in the text box. My question is: How can I retain the last thing that I wrote in text box? (only when the popup is open)
Like the content server does when we click on Quick Search. It shows the results and retain the value on the search box.
Thanks in advance,
Edited by: RRS on 27/Mai/2009 8:12

Hey RSS,
Yes correct, you have to change <input type="text" id="designation" name="designation" value="">
so your line will look like this:
<input type="text" id="designation" name="designation" value="javascript:document.getElementById('designation');">
My javascript is a bit rusty so if that doesn't work try: value="javascript:document.getElementById('designation').value;
(adding a .value at the end)
Another way of doing it can be by modifying your line <form name="Entities" method="POST" action="<$HttpCgiPath$>"> and say:
<form name="Entities" method="POST" onclick="document.getElementById('designation').value=
document.getElementById('designation').value" action="<$HttpCgiPath$>">
NOTE: for this last one to work u need to have that inside javascript tags, or add "avascript:" at the begining like I did for the input value above.
Cheers,

Similar Messages

  • How to get peoplepicker multiple value in text box?

    Hi All,
    How to get multiple selection people-picker value into text box while using InfoPath?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you wanted to get peoplepicker multiple value in text box.
    You can set the default value of the text box to:
    eval(eval(Person, 'concat(pc:DisplayName, "; ")'), "..")
    Or change XPath (advanced) to
    xdMath:Eval(xdMath:Eval(../my:group/pc:Person, 'concat(pc:DisplayName, "; ")'), "..")
    More information:
    Use Person/Group Picker in Infopath form to send multiple contacts to a SharePoint Workflow
    InfoPath Forms – Show Person/Group Picker Values in Text Box
    InfoPath Reference to Undeclared Namespace Prefix: ‘PC’
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Infopath - Show All values in Text box From PeoplePicker control (Display Name)

    I have One People Picker Control and one Text box.I set Value of Text box to "Display Name" and problem is that it show only First Value.so is there a way to show all values of "Display Name" in Text box ?
    Thanks

    Thanks
    the link that you provied , didnt help me but i dig into "http://www.infopathdev.com/forums/t/19623.aspx" and found solution.
    here is my solution :
    1- Create one Picker control (i changed name of control to Member ) and one Text Box
    2- Set Value of Text box to xdMath:Eval(xdMath:Eval(../my:Member/pc:Person, 'concat(pc:AccountId, ";")'), "..")
    3- if you changed name's picker control just Replace "../my:Member/pc:Person" with name's People Picker control on your Form.
    Edit 1 : I found out Why the formula in that Blog didn't work.it Because of copy/Paste
    Dont Copy/Paste Formula because maybe you get Error . how ? here :
    if you copy this formula :
    xdMath:Eval(xdMath:Eval(../my:Member/pc:Person, 'concat(pc:AccountId,
    result will be in Field :
    xdMath:Eval(xdMath:Eval(../my:Member/pc:Person, ‘concat(pc:AccountId,
    Look carefully, you see “..” instead ".." , this why you get Error Because of “
    Edit 2 : if you want to show only Display name you can Replace
    "pc:AccountId" to "pc:DisplayName".Here is Formula
    xdMath:Eval(xdMath:Eval(../my:Member/pc:Person, 'concat(pc:DisplayName, ";")'), "..")

  • How to populate a default value in Text box depending on Poplist selection

    We have a requirement to populate a default value in a Text Box when user chooses a value from poplist (of type MessageChoice adjacent to the Text Box). This page is a Oracle Seeded Page. I understand that this is not possible using personalization. Can please someone guide me as to how should we proceed for this.

    Can I add PPR event to the standard page?
    YesAlso Can I change the Controller code of the standard page to catch the PPR event?
    You need not change the controller, you can extend the controller!Although Oracle discourages extension of controller, but as of now there is no other alternative! These controller extensions will mostly survive upgrades, as Oracle won't be removing all base controller classes.Is it allowed to make changes in standard XML page and import it once again?
    No, standard UIXML should not be changed. But y would u need that, you cando the Ui changes with personlization and if needed programitically in process request method of controller, by takeing control on that particular bean!
    I hope i have resolved your queries.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Assigning Value to text box which is in another form

    i have got created on form with link buttons, on click of these link buttons it will take me to another page which has got matrix, on double click of this matrix the value should be assigned to a text box in previous page, can any one tell me how to do it. it's very urgent.
    Thanks & Regards,
    Jayanth

    Hi Jayanath,
    I am putting a code that I am using to put values between different forms.
    You will need to Change the String "FormID" with your own ID that u assigned to the form while creating. Also change "TxtControl"  with your textbox ID. This might not be the exact solution to your problem but by manipulating it a little you will be able to do it.
    Dim MatrixValue as String
    oTextBox = CType(SBO_Application.Forms.Item("FormID").Items.Item("TxtControl").Specific, SAPbouiCOM.EditText)
    oTextBox2 = (SAPbouiCom.EditText)oMatrix.Columns.Item("ColumnID").Cells.Item(SelectedRowNo).Specific
    OTextBox.Value = OTextBox2.Value
    Hope it Helps
    Regards
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan
    Message was edited by:
            Rizwan Hafeez

  • How to show Append Changes previous value in text box during edit

    Hi,
    I am using multi text column with append mode, all feature of append mode is working fine,but when any other field has been changed on that time append text box take blank value.
    when using same list with ssrs ,report shows the current data,but after approved by manager current item change in blank and current data come in history.
    is any way to do ,if any body change the any item same data appear during edit time in same column.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hi  Hasan,
    According to your description, my understanding is that the multi text column with append mode is not working fine in your SharePoint 2010.
    For reproducing your scenario, I created a new custom list , turned on its version  feature and added a multi text column with append mode. But it was working fine when I change the values of both the
     multi text column and other columns.
    For your issue, could you create a new list to verify the multi text column with append mode  works correctly.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to pupup the calendar value into text box ?

    Hi
    I want to use the calendar for my text field .
    The calendar will popup when I click a button /image. This image will appear next to text box . when click the calendar. The values should come to into text box.
    Please give me any idea how to write a code in jsp for handling the value from calendar.
    Thanks
    Merlin Roshina

    I am assuming u have popupcalendar.js and stylesheets.
    Include the javascript in your jsp.
    <script type="text/javascript" src="scripts/popcalendar.js"/>
    and call the method popUpCalendar on some event like onclick as shown below.
    <img border="1" src="images/calendaricon.jpg" title="Open calendar" onClick="popUpCalendar(this,<object to be populated>,'mm/dd/yyyy')" alt="Calendar"/>
    <object to be populated> u can give it like this for your text box. U can define an id attribute for your text box and call document.getElementById("<id name>")
    and rest the javascript will take care.

  • Simulation Capture Problem CP4 - last character in text box cut off.

    This is somewhat difficult for me to explain, but here is what we are experience. The issue we are having is when capturing a demonstration or simulation of our Windows based form in Captivate 4, occasionally the last character of text in a text box field appears to be cut off unless an extra space is added after the character. However, after advancing to the next field in the capture, the complete text does appear in the previous field. So it is actually capturing the text but for some reason it is not showing on the previous slide capture when that text box is active. We are capturing at a resolution of 1024x768.
    Has anyone experienced this behavior? If so what was the solution?
    Thank you.
    Kyle

    Hi Kyle,
    Yes, I have seen this one numerous times. Sometimes I find that pressing the Print Screen key after I have finished typing can help ensure that all the  characters are captured correcty. Pressing the PrntScn enables you to capture manually and is something that many Captivate users prefer to do rather than rely on Captivate's automatic capture engine.
    To be fair, if you own Adobe Captivate 4, then you might find that the new Capture interim screenshot feature (located in the Preferences dialog) might capture all the text for you automatically. Though I have to say that I still prefer to press PrtScn just to be on the safe side.
    HTH
    Best - Mark

  • How to get jsp value in text box

    hi..i want to put jsp expression value in html text box tag "value" option..so how can i do??
    here is my code
    <input type="text" name="fname" value="<%= e_vector.elementAt(1).toString()" class="Content1" disabled="disabled"> is this right ?? because it gives me error...."unexpected end of file in core tag"
    thanks in advance
    regards
    Chintan

    You forgot the closing %>
    <input type="text" name="fname" value="<%= e_vector.elementAt(1).toString()%>" class="Content1" disabled="disabled">

  • Reset value of text box and still have user input as well.

    Hi,
    I currently have a PDF form that helps users print of labels depending what is entered into the first page and one of the boxes has an 'Additional Info' box that puts unto 10 characters onto one of the labels.
    This was made because a customer wanted something defining on the boxes so I included it on the box label now I have found another use for it.
    If a customer asks we can make a custom size curtain but only so many can fit in a box as we show on the label how many fits in the box depending on the size via icons and I have decided to use this extra info to define how many are in this box if the customer asks for a custom size and I have managed to be able to have a dialogue box that the user enters how many will be in the box and it will enter that into the extra info box but I have found no way of clearing it when we start using standard size again except from event.value = " " unfortunately this stops the user from being able to edit anything within the box as it clears as any calculation is run through again.
    I have tried using
    if (this.getField("SizeDrop").value == 'BE'){
    event.value = this.getField("csn").value + " IN A BOX"
    } else {
    event.value.defaultValue;
    but it will not clear the box but allows the user to clear it and be able to put any other information in it if required.
    is there anyway of having the box cleared after "SizeDrop" is changed from 'BE'?
    Thanks,
    Bruce

    Hi - Thanks for your time; I was trying to make it work without using the operator pattern MATCH within the prompt definition; i dont want to show the answers report to the user with the words like contains any, pattern match so i was trying to use the operator equal to/is in within the prompt definition which does not work
    thanks for your time

  • Display Currency Value of User POV for Entity & Value in Text Box (Header)

    I am looking for a function in Financial Reporting Studio that operates the same as the HsCurrency function in Smart View. This would allow batch reports displaying the currency value of the User POV for Entity based on the User POV for Value. Right now I have to have Member Lists for separate reports and different currencies as I am only able to display the Value dimension in the heading of a given report. Users will not be certain of the currency if the Value dimension is <Entity Curr Total>.
    I tried the HFMCurrency text function, however the entity is not defined in a Row / Column / Page reference as the entity is determined by the User's Point of View.
    Is there a way to display the currency value of a User's Point of View for Entity based on the User's Point of View for Value?
    Reference from Oracle Hyperion Smart View for Office, Fusion Edition, User's Guide:
    HsCurrency
    Data sources: Financial Management, Hyperion Enterprise
    HsCurrency retrieves the currency value of the specified dimension member. Entity and Value are the only valid members for the HsCurrency function.
    Syntax
    HsCurrency (“Connection,Entity;Value”)
    Example
    In this example, HsCurrency retrieves the entity currency where the currency for the East Sales entity is USD, and the currency for the UKSales entity is GBR. The EastSales entity displays USD, and UKSales displays GBR.
    HsCurrency(“Comma”,”Entity#EastRegion.EastSales;Value#<Entity Currency>.”)
    HsCurrency(“Comma”,”Entity#EastRegion.UKSales;Value#<Entity Currency>.”)

    Question answered in My Oracle Support Community - Hyperion Reporting Products:
    communities.oracle.com

  • How to display itab values in text boxes?

    hi friends,
    i am filling ITAB with some fields, now i have to get one by one field and i have to display this field values in textboxes in BSP layout page.
    for exaple my ITAB contains 2 fields,
    ID, NAME.
    In layout there are two Input boxes.
    now i have to display ITAB fields ID and NAME fields in layout inputboxes.
    plz Any helps with some example code.......
    Regards,
    Shankar.

    hi shankar,
    try this code Oninputprocessing event,
    DATA: event type ref to cl_htmlb_event,
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    if event->id = 'btn'.
    wa-id = '123'.
    wa-name = 'abcd'.
    append wa to itab.
    if itab is not initial.
    loop at itab into wa.
    i_id = wa-id.
    i_name = wa-name.
    endloop.
    endif.
    endif.
    Page attributes
    i_id type string
    i_name type string
    Regards,
    sri

  • How can i set the values to text box by selecting from drop down list.

    hi ,
    i am using struts and jsps. i have a dropdown list of names(getting the values of names from database), i want to get address and phone number of that selected one.how can i get that?

    Hi swarupa,
    Well My advice in this senario wud Be
    Either U can make Use of XmlHttp Object through javascript(AJAX way).
    Or U need to Maintain the State of the entire form and then refresh the page to get those results....
    just for U r reference i am attaching a link which was programmed using ASP @ server side and which made use of XmlHttp Object.....
    http://www.w3schools.com/ajax/ajax_database.asp
    Just try to simulate the samething in your own way....
    REGARDS,
    RAHUL

  • How to set up rules/conditions on a drop down box to ensure its been filled if a value in a text box is selected.

    Hi, I am in midst of creating a form in infopath. I have a text box field in which the user will enter the number of issues he has. if the user has entered the number of issues he has, then he will need to select the type of issues from a multi selection
    box. Thus i need to know how to set up rules/conditions to ensure that the user has to complete the multi selection box if he enters a value in text box for the number of issues. 

    I assume what you are asking is to make multi selection box as mandatory. If not please explain with a example
    Try below:
    http://webcache.googleusercontent.com/search?q=cache:ItIYeZ8K2gEJ:sharepointkings.blogspot.com/2013/06/make-multi-select-list-box-required-in.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-beta
    If this helped you resolve your issue, please mark it Answered

  • Retaining of values in JSP while using JSTL

    Dear All,
    I have an application using the struts framework, wherein I am facing a problem.
    Here goes the problem " In my JSP's I have multiselect, the JSTL tags works fine when all the server side validations are done. But I get a problem when an error(server side validation error) occurs, I have to retain all the multiple values selected in the Multiselect box.
    Can anyone suggest me best way to retain the multiple values.
    E.g. My multiselect populates 5 values
    A
    B
    C
    D
    E
    As a end user I select "B, C,E", and a server side validation error occurs I have to keep the values "B, C, E" selected in the above list of 5 values using JSTL
    Thanking you in anticipation.
    regards,
    Mohan.

    Dear Friend,
    The control I am placing(multi select) has the data type in the form as String[],
    The validation error(server side) I was talking about is: I have 5 fields in JSP, in one of the 5 fields I have a title, which is unique in the database, if the end user enters an already existing title, then all the values previously (entered, selected) for rest of the controls should be retained and an error message from application resources is populated about the title duplication.
    Here I will show the entered values in text box and also the multi-selects, so using JSTL, I want a way out to retain the previously selected values....
    In my JSP for the control I say <input type="select" property="propertyname" multiple="true">
    of struts...
    Thank you
    Mohan.

Maybe you are looking for