How to use "document.getElementById()" using MVC and  bsp:call

I follow the tutorial from saptechnical .com about F4 in BSP and it works.
But my problem, is that is not working in my BSP I get javascript error "document.getElementById() is null" the popup appear I select the value but when I press the button to close the popup and pass the value nothing appears.
I think that is because im Using MVC and Views that call a controller (like view inside views).
I have in my main.htm this:
<htmlb:form id     = "search"
               method = "get" >
        <bsp:call url     = "search.do"
                  comp_id = "search" >
        </bsp:call>
</htmlb:form>
The code with the help values is in the search.htm(this the page associated with controller search.do)
So Im thinking that my problem is because the form isnt in the SAME page than my inputField  and that is why im getting that error.  Can be this true ?
And if it is,  how can I solve it?, I have several pieces of page with controllers and If I try to put the form tag in each "piece" I get an error that a button was left without a parent form tag, and I there isnt any button tag without form tag. So I think that another element tray, tabstrip or something require form tag also.
I hope that I could explain my problem and someone can give me a hand.
Can It be that this js statement
document.getElementById("i_VKORG_low").value = fval;
only works only if the form tag is in the same htm page, and cause I have teh form tag declared in the main.htm and the fieldtext i_VKORH_low in search.htm it doesnt works ?
Thx
EDIT: I cant post my javascript source code...dont know why I get an error from the forum that the post is not supported

Hello,
If I remember well, the MVC framework adds the comp_id of the bsp_call to all elements in the subcontroller.
Try using:
document.getElementById("search_i_VKORG_low");
Regards,
Tanguy

Similar Messages

  • How to Search document by using Long text description contents in SAPEasy DMS

    Hi,
    How to Search document by using Long text description contents in SAPEasy DMS
    Regards,
    Shrikant Shinde

    Hi Alfredo,
    Thanks for reply..Will you please explain in brief what are the  OCR program and workflow.
    Will you please send me any docs on [email protected]
    Thanks
    shiv.

  • How to use documents MS-Word-Excel and Pdf on iPhone 4S

    Before I bought the iPhone I was using Sony Ericson X1 Xperia. On this phone I could easily read & write  on documents MS-word/excel and transferred them from and to my PC with Windows 7.
    Till now I cannot find an easy way to transfer these documents onto my iPhone to edit, create or read. Have already installed iTunes, iCloud and one app numbers. Sofar no success to have it on my iPhone.
    I there sombody who could help me out.
    Thnks, Cor

    http://itunes.apple.com/us/app/quickoffice-pro/id310723177?mt=8

  • Using document.getElementById to change an element size works in iWeb but not when site published

    I am trying to use an HTML snippet to construct a "popup" to show explanatory text on iWeb windows. This is the code:
    <div id="divName"></div>
    <style type="text/css">
    /*<![CDATA[*/
    #divName {
         border:solid 0px #000;
         text-align:left;
    /*//]]>*/
    </style>
    <script type="text/javascript">
    //<![CDATA[
    function mouseOver()
        var el=document.getElementById("divName");
                       el.style.width=400+"px";
                       el.style.height= 200+"px";
                       el.style.margin="auto";
                           el.style.backgroundColor="#ffffff";             
              el.innerHTML="this is a bit of text, and this is some more";
    function mouseOut()
        var el=document.getElementById("divName");
                       el.style.width=80+"px";
                       el.style.height= 20+"px";
                       el.style.margin="auto";
              el.innerHTML=" ";
                           el.style.backgroundColor="";             
    window.onload=mouseOut;
    window.onmouseover=mouseOver;
    window.onmouseout=mouseOut;
    //]]>
    </script>
    This works o.k. when tested inside iWeb. When the mouse is rolled over the element it is enlarged, the background colour changed and the text displayed. However, when I publish the site the background colour changes and the text is displayed BUT the size of the element remains set to the size set in the "mouseOut" function. On one occasion after publishing it did actually work, but mostly it doesn't!
    What am I doing wrong?
    Incidentally, when testing under iWeb, the mouseOut function sometimes doesn't shrink the element back to its original size. Mostly it does, but when it doesn't the background has still been made transparent and the text removed. It only appears to be the height and width functions that are failing!

    Here's how I started :
    http://www.wyodor.net/Ajax/Ajax.html
    But to avoid having to edit the page after editing the iWeb page, i figured out a way to do it with a JavaScript :
    http://www.wyodor.net/mfi/Maaskant/How_To.html
    The magic word is : unique word. Then replace it with your own code.
    Then I advanced it a bit to this :
    http://www.wyodor.net/_Demo/Fancy/Dynamic_Text.html
    And here's an explanation what the HTML Snippet does :
    http://www.wyodor.net/blog/archives/2009/07/entry_213.html
    You may have to learn HTML/CSS/JavaScript/DOM/AJAX and how iWeb creates its pages.

  • html:text styleid problem while using document.getElementById -very urgent

    Hi all,
    I am using the following struts code in my jsp.
    Each time when I click the checkbox corresponding to each record, I want the screencode to be displayed using the javascript alert.
    But always I am getting the same screencode (only the first screencode).
    What I should do to get the screencode for the corresponding selection of the checkbox
    <logic:iterate id="slist" name="scrlist" scope="session" >
    <html:text property="screencode" name="slist" styleId="sc" indexed="true"/>
    <bean:write name="slist" property="screen"/>
    <html:checkbox property="readchk" alt="Select to enable read right" onclick="javascript:alert(document.getElementById('sc').value)"/>
    </logic:iterate>
    Could anybody help me to fix this problem as soon as possible
    parvathy

    The tricky thing about Ajax is that it's asynchronous. That's the point...
    What you need to do is return a success or fail status from your servlet (or whatever ServiceAuth is...), let's say a 1 or 0. (0 bad, 1 good). You could even get real fancy and return 0 for username doesn't exist, 1 for password doesn't match user name or 2 for success.
    Then have your javascript update the page based on the response received. On a fail response call some javascript method that displays your related Uh-oh message, and on a successresponse call some method that updates the document.location of the page.
    HTH.

  • HOW to download documents (power point, word and excel) format in my iphone5?, HOW to download documents (power point, word and excel) format in my iphone5?

    I have an application downloaded lately called "docs to go" but the problem is i have no idea how to used said application. Can anybody show me how to download docs in powerpoint,excel and word format be downloaded to my iphone 5? does it applicable?

    My guess is it is done like this.  Connect you phone to computer, select phone from the left column, click on apps tab on the right in iTunes. Then scroll down to the app called Docs to go in file sharing list, select the app in that list then click on add

  • How to find document attached to user and Company code?

    Hi all,
    Requirement: Select a list of Business documents ( Sales order/PO....) created or changed by <b>specific users</b> which belong to a <b>Specific Company code</b>.
    ie,To develop a report which lists the Documents created/updated/changed based on specified date and users.
    I think we can find from CDHDR & CDPOS  tables.  But i need to filter these documents or pick documents based on a Specific Company code.
    ie.,from the list of records obtained from CDHDR table....how to filter these documents based on Company code......
    valuable inputs needed.
    Thanks,
    Subba

    Hi
    Most of the application document Heade tables(VBAK,EKKO etc ) will have the field CRETAED by  like ERNAM. and all these tables will have BUKRS field also in them
    So compnay code wise User created documents list you will get.
    Only problem is the Changed/Modified list by user with related Company code.
    Anyhow you will get the User who changed the documents from CDPOS table.
    But for linkthem to Company code I feel You need the
    help of HR related Tables .
    with the UNAME which you get from CDPOS table go to PA0105 infotype and get the PERNR linked with that user.
    And get the attached BUKRS Company code from PA0001 infotype.
    Hope this will solve your problem.
    reward points if useful
    regards
    Anji

  • How do InDesign documents compare on retina and non-retina screens?

    I've heard that InDesign looks bad on retina screens, but I don't live near a mac dealer and I can't see any photos anywhere to judge for myself.
    Does anyone have any photos which could show how it compares to a non-retina mac?

    Hi Anubha,
    I do not understand what you said below.
    I am running Adobe Acrobat Pro Version 9.5.5. I do not remember whether it came with Photoshop or InDesign.
    When I open Photoshop, it opens without my having to follow any instructions to activate the software. As a matter of fact, I cannot find my Photoshop serial number anywhere in the Photoshop program itself. I do know it from my profile at Adobe.com. Are you suggesting I deactivate Photoshop on the new computer and then reactivate it using my serial number? Will it reactivate?
    When you say
    "/Library/Application Support/Adobe" at the root level of the startup disk (not the Library folder inside a user's Home folder)
    what do you mean? I do not have a startup disk. I have the original installation disk but that version of Photoshop has been updated a few times.
    After staring at your instructions for a while, I realized that you might be talking about the Library/Application Support folders resident on my Macintosh HD, although why you called it a startup disk is unclear to me. IAC, I went into those folders and duly moved the three folders into a new folder I called “Acrob1” and restarted Adobe Acrobat 9 and got the following error message: “AMT Subsystem Failure  The licensing subsystem has failed catastrophically. You must reinstall of call customer support.” with a small (6).
    By undoing my actions I am back to the staus quo ante.
    Now what?
    Regards, Robert

  • Error adding buffer entry when using Asynchronous mode of JRA and JCO call

    Enviroment: XMII 12.1.4 / CE EhP1 SP03
    When I using SAP JRA Function Call or SAP JCO Funciton Call in transaction, it works well when I choose 'Process Type' as 'Synchronous processing' in 'Data Buffering Configuration' tab. But when I use 'Asynchronouse processing' it doesn't work.
    I check the Netweaver logs, there some logs like following:
    Error adding buffer entry (com.sap.xmii.dataqueue.DataBufferManager)
    Couldn't add buffer entry (com.sap.xmii.dataqueue.DataBufferManager)
    ManagedConnectionImpl.dissociateConnections(), dissociation of a non-cci transaction, H1, C1(com.sap.mw.jco.jra)
    how could I solve this problem?

    Solved after deploy 12.1 SP05 (xMII 12.1.5 build 91)

  • How to get Document type , number , part and version from mm01

    Hi ,
    Can you help me out so that i can able to get the document type , number , part ,version from mm01. Iam using exit EXIT_SAPLMGMU_001 but i was not able to get those details inside the parameters . I not able to get any values inside wmara parameter. ?
    Regards,
    Sivaganesh

    Hello Siva,
    Try with the below 2 BADI's
    BADI_MM_MATNR
    BADI_MATERIAL_CHECK
    Regards,
    TP

  • How to detect end of FLV Video - and then call another web page?

    I'm using Flash CS3 v9 on a PC to...
    - use File > Import an AVI video and convert it to an FLV video.
    - use File > publish to publish it.
    - Then upload the four files...
    .. MyVideo.flv
    .. MyPage.html,
    .. MyPage swf
    .. AC_RunActiveContent.js
    to my website.
    Works Great!
    My Question:
    Since Javascript seems to run the .swf file which pays the .flv video... (or some such)
    Can I use Javascript (or html) to tell when the FLV Video has finished playing...
    And then automatically call another webpage...
    If so would someone be kind enough to share a code sample with me to get me quick started.
    Thanks for any help.

    I'm using the defaults in Flash CS3 ver9.
    I'm not creating any action script myself.
    I open Flash and select from the Flash menuio options...
    "Create New Flash File (Action Script 3.0)"
    I then File | Import my AVI video to convert it to an FLV video...
    and choose the player options for controls, etc
    and then punch through the menu's until Flash finally imports the video.
    I then "Publish" the project to the the 4 files mentioned in my initial posting.
    So, I think the answer to your question is...
    Yes, I'm using the default Flash playback component to play the flv
    and yes, I'm letting Flash default to CS3 even though I'm not writing the code... Flash is.
    Thanks for the help.

  • How to use dynamic id of text box document.getElementById in JQuery

    Dear Sir,
    I am having code in ajax
    I am bringing id from ajax
    code is for text box id='textbox1"+i+"'
    here id name I am giving textbox and i is my increamented value and appending with textbox
    the id is dynamically generating it is like textbox0 on next textbox2
    But
    how I ll use the same dynamically generated id in on of my jquery function using document.getElementbyid
    I am not good in jquery.
    please help
    regards sanat

    That is a JQuery question, i.e. a JavaScript question, and this is a Java forum. Locking.

  • How to add a file in Document Set using ECMA script?

    Hi,
    I want to upload a particular file into Document set using ECMA script.
    I can do it easily through C# but unable to achieve the same using ECMA Script.
    Any pointers or piece of code will be helpful.
    Thanx in advance :)
    "The Only Way To Get Smarter Is By Playing A Smarter Opponent"

    The following blog post provides a way to create a document set using ECMA:
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    The following blog post provides a way to upload files into a document set using CSOM:
    http://www.c-sharpcorner.com/Blogs/12139/how-to-create-document-set-using-csom-in-sharepoint-2013.aspx
    See if you can follow the logic in the CSOM example to apply it to ECMA. Let me know if you have specific problems with it.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • My iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!

    my iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!
    yours sincerly
    jackfromsurrey

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • Using Document Library with Baseline

    Hi there,
    I have a specific need with Sharepoint. I have a document library and I want to be able to mark with a tag or generate a baseline for my folders.
    I've already searched on the web, and there is someone doing it just coping and pasting every single file. Is that the better way to get this?
    Thanks,
    Tiago

    Hi Tiago,
    What did you mean "Using Document Library with Baseline" and "generate a baseline for my folders"?
    Did you mean that navigate the document library folders in treeview?
    Did you mean that search or filter multiple folders documents with the same tag (managed metadata column)?
    You may be able to use the "Navigation Hierarchies and Key Filters" for that specified SharePoint 2010 library, here is an article about metadata navigation settings you can check below,
    http://www.sharepointboost.com/blog/understand-and-configure-metadata-avigation-and-filtering/
    Thanks
    Daniel Yang
    TechNet Community Support

Maybe you are looking for