Field value on BSP Page

Hi,
      I have a requirement to show previous entered values in an input  field on BSP Page. for example suppose I enter value '0998' in an input field say 'XYZ'  and then I close or refresh the browser. again i open the page in browser and click the input field then system should suggest me the previous entered value i.e. '0998'.   does anyone have idea how we can do it?
Regards
Amit kumar
Edited by: amitku1201 on Jan 8, 2010 12:19 PM

Hi Amit,
I saw your code..
<htmlb:form id="Form1" method="POST" autoComplete = "TRUE">
<bsp:findAndReplace find = "ON" replace = "ON">
In the link I provided
<bsp findAndReplace find = "off" replace = "on">
I dont see the closing tag
</bsp:findAndReplace>
anywhere in your code.
The tag should be not used immediately after the FORM tag instaed it is used just before the tag for particular element.
Like in your case if you want to used it for the inputfield i_case , it should be done as
<bsp findAndReplace find = "off" replace = "on">
<htmlb:inputField id="i_case" value="<%=i_case%>" type="string" maxlength="12" width="100"/>
</bsp:findAndReplace>
The inputfield tag will be used between find and replace tags.
I hope this will help you solve the issue.
Regards,
Anubhav

Similar Messages

  • Assign a value from dropdownlist to input field value on BSP page

    Hi,
    I'm new to SAP and ABAP. We have a CRM project in which I have to maintain BSP pages.
    Now, coming to my problem: I have a input field with
    value = "//BTAdminH/HeaderInfo"
    This field is normally maintainable. The required function is now to set this field as not maintainable/readonly. Then, the value should be set automatically to an value, which will be selected from a dropdownListBox. After saving, the value HeaderInfo should have the same value like the selected value from the dropdownListBox.
    How can I now set the field as readonly (this should be the easier part) and
    how can I set the value for the HeaderInfo to the value of the selected value from the dropdownListBox?
    If I set it directly like this
    value = "//BTActivity/Priority"
    it is shown on the BSP page correclty, but it is not saved as HeaderInfo.
    Please help me.
    Enja

    Hello Gokul,
    test was only for test purposes! I am using as a separator the plus sign!
    But this is not the problem!
    In debugging, the local variable has the concatenated value! So, this is working!
    oncatenate ls_ddlb1-value ls_ddlb2-value ls_ddlb3-value into lv_headerinfo SEPARATED BY ' + '.
    But when I assign the value of my set_headerinfo to the local variable, then it is returning only the separator sign!!!
    if BTAdminH->GET_HEADERINFO( 'HEADERINFO' ) is initial.
        BTAdminH->SET_HEADERINFO( attribute_path = 'HEADERINFO' value = lv_headerinfo ).
      endif.
    If I declare the local variable as one of the dropdown values, then it is getting populated also for set_headerinfo
    lv_headerinfo  =ls_ddlb1-value.
    So, the assigning is also working! But it is not working, when the local variable equals more than one value! I hope that I could explained it in the right way for you!!!!
    So. why is the value for set_headerinfo not the same as the one for the local variable! The local variable has the correct value after the concatination.
    Regards
    Enja

  • Unable to capture Input field value on BSP page

    Hi
    I have copied ROS (SRM) standard application ROS_PRESCREEN3 into custom and added one input field .
    Now when user enters some value in it , i am not able to get that value in my back-hand code.
    I have treid the availble code on Fourm , its not working .
    Regards
    Raul

    Hi ,
    I am getting the input field values in my back hand using MVC .
    Regards
    Raul

  • How to pass values between BSP pages?

    Friends,
      I have used htmlb controls within my BSP page. I need to pass the value that i provide in the first page to the next BSP page and display it. I used something like
    navigation->set_parameter( name = 'val1' value = val1 ) and navigation->goto_page( 'second.htm' ).
    Now, how should i read this value in the second.htm?. I tried to bring this value using the
    data ename type string.
    ename = navigation->get_parameter( name = 'val1' )
    in the onInitialization event. But its not working.. How should i go about it?. Do i have to set anything in the Page attributes?. Is it possible to change the text of a label at runtime?.
    Expecting an early reply.. suitable answers with code snippets will be rewarded..
    Thank you,
    Saravanan.

    Here's one way:
    I have page attribute  pa_error_no of 'Error.htm'defined as
         TYPE     CHAR3     3-Byte field
    In OnInputProcessing of page1.htm
         navigation->set_parameter( name = 'pa_error_no'
                                   value = '003' ).
         application->cv_page_next = 'Error.htm'.
         navigation->goto_page( application->cv_page_next ).
    Then in 'Error.htm' (I happen to use it in the layout)  you can reference it in OnInputProcessing also
    <%
          case pa_error_no.
          when '001'.
             if not ( application->cv_bp_number is initial ).
    %>

  • Currency(Calculated) field in a BSP Page

    Dear all,
    I have a field "menge" where in i take the user input of material Quantity and another field "netwr" to display value.
    On Initialisation I have written code to take the rate of a material from customizing table and multiply with the quantity and take it into "netwr" as value.
    The problem is that when the value is displayed a space appears after the full decimal
    Eg :
    for Menge = "3.000"
    and Rate = "1.50"
    The Value should have been "4.50"
    BUt it is displayed as "4.50 "
    Please help me in this regard.
    Thanks and regards,
    Arun

    Hi Arun,
    What is the data type of the "newtr".?
    While Displaying the currrecy in BSP we can use the foll syntax.It will format the currency.
    <%=page->to_string( value = <b>itab_bp-bet01</b> format = if_bsp_page~CO_FORMAT_CURRENCY )  %>.
    Rgds,
    Jothi.
    Pl close the thread if you got the soln.

  • Check box with value in bsp page

    hi experts.
    i  m new to bsp.
    i  want to fetch one field from a ztable  with check box may be  possible field  have more than 4 values.
    checkbox1           .... value1
    checkbox2          ..... value2
    checkbox3          ..... value3
    checkbox4          ..... valule4
    but there is  not any field for checkbox in  ztable .
    now  when we select check box  depending on the selection of checkbox related values of field come into the 2nd page.
    example if i select check box 3 and 4 than values related to value 3 and value 4 come into the 2nd page .
    if any budy have  gud example of this case plz let me  know.
    points are guarented...

    PAGE ATTRIBUTE.
    itab_result     TYPE     ST_TV
    wa_result     TYPE     TY_TV
    LAYOUT.
        <% data: v_checkbox_id type string,
          sy_tabix type string.
    Loop at itab_result into wa_result.
    sy_tabix  = SY-TABIX.
    concatenate v_checkbox_id 'CHK' sy_tabix into v_checkbox_id.%>
    <td>
    <htmlb:checkbox id = "<%= v_checkbox_id %>"
            text = "<%= wa_result-stext %>"
          checked = "<%= wa_result-idx_data %>"
           />
    </td>
    <% ENDLOOP.

  • Repeat Text Field Value on Master page

    This might be a really simple question. I have a form with two master pages. The second is applied to all but the first page. On the second master page I have a text field that I populate with user entered data from a text field. I want this value to show on all pages after the first page (page 2 to n). It shows up with the value on page 2, but all the rest have a blank value. Do I need to script something to make it repeat for all pages? Any help would be appreciated.

    The simpliest method would be:
    Under the Object tab, select Binding, and change the Default Binding to Global. The TextFields you create must have the same name, and Global binding will populate all the fields.

  • How to update session state from form field values without submitting page?

    Hi,
    I am new to Oracle APEX. I am using Oracle Apex 4.2 on Oracle 11g release 2. The problem is that when I am entering data on a form, when I enter a value in one field and move to the next field, how can I use the value of first field in the validation procedure of next field? I know that when we enter data in fields, the session state is not updated with these values until we submit the page... right... but I have seen that if there is a control of List box type, then Apex gives an option "Action When List changes" where we can choose option to update corresponding session state field with the value of list box item, without submitting the page.
    Now my questions is why this option is only available for List box items? why not for other item types like Text box, Check box,... ? can someone please help me with this?
    (the issue with update of session state depending on page submitting, is that we need a complete network round trip from client to server in order for it. However if we can update session state variables without submitting page, then we can avoid this network traffic).
    Any help will be greatly appreciated. Thanks in advance.

    Create a dynamic action on change and run a PL/SQL process there with the following code:
    BEGIN
       NULL;
    END;Page items to submit > your item.
    This will set the session state without submitting the form.
    Further examples here:
    http://apex.oracle.com/pls/apex/f?p=31517:229
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Read field value from another page

    Hallo,
    I have PAGE1.HTM (with MVC) with 2 input fields (country and state). For field STATE there´s a F4-button which calls PAGE2.HTM (page with logic) and in order to display the correct information for states I need to get the value in field country.
    I cannot send the value from page1.htm because the code is client-side for F4 (specially if it changes) and I cannot use
    var = document.getElementById("country");
    in page2.htm because it´s Javascript code inside ABAP code, which is not allowed (I think).
    Does somebody have an idea on how to collect that value or if I can use Javascript code in the event OnInitialization ??
    Thanks a lot

    Hi,
    that´s something I do when the content of the view is created and works Ok. The values of that content come from the data bank. The problem is when the user enters a new value and does not saves it !! in this case, the new value is not transmited to PAGE2.HTM because now we´re on client side.
    This is the code that creates the input field:
          tag_if  = cl_htmlb_inputfield=>factory( id = s_id
                                                 value = fieldname
                                                 visible = isvisible
                                                 disabled = isdisabled
                                                 isappendunit = 'True'
                                                 showhelp = dfies-f4availabl
                                                 dovalidate = 'TRUE'
                                                 onvaluehelp = openf4code ).
    and as far as I know, input field supports no event.

  • How to send date field value from one page to another page

    Hi every one!
    In my page I have a requirement....I need to select From date and Todate....based on that data has to be displayed in the table....but in my table i dont have such type of fields.....please help me

    I used hidden variable also but it's not useful for me. If by "hidden variable" you mean a "hidden field" (ie a text-input field in the submitting form with display=none), then that's exactly what I was thinking...
    So WHY is a hidden field "not useful"? It's just that... ummm... I suspect you're doing it wrong, or maybe just not understanding how it works. So post both your JSP Pages (if they're not too big), or take the time to prepare a [Short Self-Contained Compilable (Correct) Example|http://mindprod.com/jgloss/sscce.html].
    The more information you provender, the greater your chances of getting real help.
    Cheers. Keith.

  • How to Pass fields value to detail page in report?

    Hi experts,
    I want to use report to create calls for my doctors(contact), in my report, the first column is contact, the 2nd is account, and there are some fileds from call's record type, the last column is a link called "create call", my requirement is, when I click the "create call" it naviagates to call create detail page, the account name and contact name will be auto-populate on the account field and contact filed which is the account and contact in the current row of report; can any one tell me how to do this report;
    Much appreciate your input...
    Thanks,
    Tiger

    1. New a field in the report with text or picklist type;
    2. Edit the properties -> style, check Use Custom CSS Class, and type ActionLink here.
    3. Overwrite the defualt data format with custom text format, write javascript: @[html]"<a href=\"javascript:top.location.href='/OnDemand/user/ContactCallInsert?OMCR0="@H"&OMTGT=ContactCallInsert&OMTHD=ActivityNewNav&OMCBO=Contact&ContactCallInsert.Type=Call&ContactCallInsert.Indexed Pick 4=Professionnal Call&&OMRET0=Homepage';\" target="_new">create call</a>"
    4. edit fx of this field with: Contact."Contact ID" || '&ContactCallInsert.Description=' || '拜访:' || REPLACE(REPLACE(Account."Account Name", '''', '\'''), '"', '\"') ||'&ContactCallInsert.Account+Id=' || Account."Account ID" || '&ContactCallInsert.Account+Name=' || REPLACE(REPLACE(Account."Account Name", '''', '\'''), '"', '\"')
    preview your report and test it;

  • How to set F4 help for an inputfiled of BSP page?

    hi friends,
    I have to set F4 help for a Field in my BSP page. for this i am doing like this.
    Oninitialization Event....
    tables : t001p ,pa0001 ,t554t.
    data : begin of it,
            awart like t554t-awart,
            atext like t554t-atext,
           end of it.
    data : it_t554s like it occurs 0 with header line.
    parameter : k_pernr like pa0001-pernr.
    data : werks like pa0001-werks,
           btrtl like pa0001-btrtl,
           abs_grp like t001p-moabw.
    clear it_t554s.
    refresh it_t554s.
    select single werks btrtl into (werks ,btrtl) from pa0001
                        where pernr = K_pernr.
    select single moabw into abs_grp from t001p where
                              werks eq werks and btrtl eq btrtl.
    select awart atext from t554t into corresponding fields of it_t554s
                                   where moabw eq abs_grp..
    append it_t554s.
    endselect.
    now it_t554s contails the values to display F4 help in BSP page inputfield.
    how to assign this as F4 help to inputfield....
    I saw some threads. It's getting me to confuse...
    I am new to this topic...
    plz help me.........
    Regards,
    Shankar.

    solved

  • Can't get fields values of  SRM PO at R/3 PO

    Dear all.
    I am very muddle that: <b>How to</b> transport SRM web-page PO field value [such as sourcing type, tracking NO. Item category,Vendor text  at item level] to Backend R/3 PO?
    I can see these 4 fields value on web-page SRM PO. but I can't find its on R/3 PO. others fields is okay. What must I do? How to work it?
    Use BADI? Who can tell me a good way. thanks a lot.
    Alice.

    Hi,
      You need to then explicitly pass the values for these fields in the BADi "BBP_CREATE_BE_PO_NEW"(For SRM 5.0) or "BBP_CREATE_PO_BACK "(for SRM 4.0).Some of the fields i.e. Tracking no,item category are available on both the sides i.e. R/3 as well as SRM ,so cna be mapped.
    Please refer the foll link for sample code for the BADI :
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/srmBADIRepository&
    BR,
    Disha.
    Pls reward points for useful answers.

  • How to programmatically set the value to current Page layout property?

    Hi,
    How do I set any text value to the current page layout [comment] property and save it.....here my current page is using a custom page layout called spPageLayout1
    To be very much generalized how I can set and save any value to current page property programmatically....on load event I need to set the value.
    It is a publishing page layout.

    Hi,
    According to your post, my understanding is that you want to set the value to current Page layout property.
    To get current page property, you can refer to:
    How to get current Pages details in SharePoint2010 publishing site
    Get Content Field Value in Article Page
    To get current page layout property, you can refer to:
    PublishingPage.Layout Property (Microsoft.SharePoint.Publishing)
    PageLayout.Title Property (Microsoft.SharePoint.Publishing)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to return values from a BSP page to Javascript

    Hi All,
    I want to call a BSP page which reads a single value from a table and returns that value I want the Javascript in the HTML code to get the value from the BSP page.
    Can you kindly let me know how I can return the value from the BSP page to JavaScript.
    Kindly please provide me a simple code of a BSP page and the Javascript
    Thanks
    Karen

    Hi,
    you need 3 elements to make the javascript code read the value in any field in the table: table´s name, line and column. This is how your code could look like:
    script language="javascript>
       var row = 0;
       function display(){
          row = row + 1;
          campo = 'tabla1_' + row + '_4';                 " <-- table, line, column
          valor = document.getElementById(campo).value;
    </script>
    ROW works as a counter. You have in variable valor the value of the field and can do with it what you want, perhaps display it with ALERT. I am reading the values from field 1 to n in column 4 in table TABLA1. Pay attention to the '_' in the concatenation of field´s name. The table in my BSP is very simple:
    <htmlb:tableView id                = "tabla1"
                           table             = "<%= mytable %>"
                           width             = "100%"
                           allRowsEditable   = "X"/>
    and somewhere I must call function display in my javascript code:
    <htmlb:button  id="boton" text="Texto aqui" onClientClick="display()" />
    So, give it a try.

Maybe you are looking for

  • I have windows 7 and itunes keep saying incompatibility

    hi im tring to download and use i tunes on the computer that has windows7 and i tunes keep saying incompatility

  • Numbers files does not open in OS X 10.10 Yosemite

    For some strange reason I cont open any file ( XLS or .numbers ) in Numbers, no matter where is located; Dropbox or Local.   However I can open a new file and it works with no problem. 

  • Free-rotation of an image

    Hi there, I've done some research and it seems like there isn't a way to freely rotate an image anything other than 90 degrees in MIDP 1.0. I am however using MIDP 2.0, CLDC 1.1. Is there a way that I can rotate an Image object to specific angles? Th

  • I can't install fonts in my font book

    Hi, for whatever reason, when I download fonts from any site (dafont.com or font squirrel), I can't install them in my font book. I open the font file, click to install, and it looks like it verifies but nothing happens. I have tried restarting, and

  • Help in Vendor creation

    Hi, Using Batch Input when i try to load one test data thorugh LSMW i get an error at 13th step : Create batch input session time and again ..The error goes as follows:: "TA 1,Vendor 0000000004 , Porg IT10, BLFM2 not processed, LTSNR , WERKS do not e