Javascript access to submit in TileView

Here is a working example of doing a submit on a javascript action in the ViewBean page:
document.RequestListPage.action='../main/RequestListPage?RequestListPage.hiddenButton=&jato.pageSession='
document.RequestListPage.submit();
What would the code be to do the same thing for a submit in the TileView in the ViewBean page?
Thanks for the help

For more clarity, I have a Tile View with static text fields and a checkbox. When users select the checkbox I want it to submit and update the database. The code I posted is what I use for instances where a combobox, checkbox, etc needs to submit but the code only works if it is items in the viewbean page. I haven't tried to create a javascript submit action to do this inside a tileview. When I run this now it doesn't seem to know about the hiddenSubmit button I have defined in the tileview so I assumed I would need to tell it in the javascript that it is a button in the tileview. Hope this makes sense.

Similar Messages

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • JAVASCRIPT:  Accessing the sessionbean - how ??? can it be done?

    Hi,
    I need to access the sessionBean from javawscript. I have trawled throughj all posts and have got no satisfactory code.
    Can this be done?
    I have tried for eg alert(#{sessionBean.firstName}) and get a syntax error, i assume due to # symbol. do i need to CDATA this request?
    Any help, much appreciated.
    Regards,
    LOTI

    Your problem is trying to access server side information from the client side, so that alert is never gonna work in that simple form. If you want javascript access to a sessionbean variable, that variable will have to be present in the final rendered page....meaning bring it into your page as either a visible or inviisble field and then using javascript to read that. Thats one solution?

  • Javascript access to htmlb textEdit

    Hi,
    Since the htmlb object textEdit does not support javascript access through the jsObjectNeeded option I tried another approach.
    This approach is mentioned several times on SDN but it does not perform as excepted.
    <% String compID = null; %>
    <hbj:textEdit
    id="reaction"
         text=""
         wrapping="SOFT"
         rows="5"
         cols="50">
         <%compID = myContext.getParamIdForComponent(reaction);%>
    </hbj:textEdit>
    <%=compID%>               (<-- test to write ID to html page)
    This code retrieves the ID of the htmlb component. It works fine as I can write the htmlb ID to the html page.
    However I need this ID in my javascript during a validation. The problem is that the ID is empty in the javascript.
    Please help.
    Raymond

    Hi Raymond,
    Try out the following piece of code (the code is tested and is working):
    <hbj:textEdit      id="addComments"
                        wrapping="SOFT"
                        text=""
                        rows="2"
                       cols="100" >
         <% addComments.setJsObjectNeeded(true); %>
    </hbj:textEdit>
    Then through javascript you can access the id of the text edit in the similar fashion.
    var txtAdCom= eval(func("addComments"));
    var value =txtAdCom.getValue();
    var length = txtAdCom.getValue().length;
    Please do reward with points if the solution is helpful.
    Thanks
    Ritushree

  • Can JavaScript access JSP variable?

    Could we do this? Or, how could we have JavaScript access JSP variable?
    <%
    String fooBar = request.getParameter(......
    %>
    <script language="JavaScript">
    <!--
    if (fooBar  == ...) {
    -->
    </script>

    To access the variable in Javascript you'll have to
    write it out from the JSP. You'll need to do something
    like:
    <%
    String fooBar = request.getParameter(......
    %>
    <script language="JavaScript">
    <!--
    var fooBar = '<%=encodeQuotes(fooBar)%>';
    if (fooBar  == ...) {
    -->
    </script>You'll need to either make sure fooBar doesn't contain
    any quotes or write a function to replace each ' with
    \'.Thanks!
    That works perfectly, without encodeQuote() method in my current case.
    Thanks again. You ar a saviour.

  • Javascript access to images in a PDF

    Hello,
    i'm a newbie to javascripting adobe apps, so i hope you'll excuse me if the question is just too stupid...
    I need to open in photoshop all the images in a pdf document. The pdf doc is singlepaged, usually with a single image (it's a adverting page in a magazine). When I have to do a quick retouch on a image, i choose Touchup Object, select the image, right click and choose Modify Image (actually I am using Acrobat in Italian: i hope the traslation makes sense) and Photoshop pops up. I modify the image and save it.
    Is it possible to script this process?
    My basic question actually is: how do i have access to the image in the pdf document? Exploring the contents of the pdf I see the image is in a XObject: can i get to it via javascript?
    any help is really appreciated! thanks
    Mauroo

    What you're trying to do requires a plug-in written in C/C++.  It cannot be accomplished with Acrobat JavaScript.

  • Javascript Access Denied in WebDynpro Application SP11

    Hi all,
    I'm developing a WebDynpro application that is published in EP as a WebDynpro IView.
    Deploying the application and running as standalone (out of EP) this works fine but when I access that by EP I get JavaScript errors in DropDowns.
    I know that this error is know as an bug of SP11 but I want to know if someone obtain some answer from SAP or do anything to solve this problem.
    I already install another server with EP and WEBAS from the last SAP WEBAS installer downloaded from SAP website but the problem already persists.
    Server: WEBAS 6.40 SP11
    IDE: Version: 2.0.11
    Build id: 200503080124
    Thanks,
    Manoel

    Hi
      Refer to OSS Note no : 779659. But even in that case if you are using your own themes there are some display problems in SP11.
    In SP10 we had our own theme and we followed the OSS Note. It worked fine. When we applied the Same theme to SP11 it did not work.
    There is also another note which says that custom themes are not supported properly. I will try to give you the note number. Maybe that is a problem.
    I would advice you to try and use standard themes for your Webdynpro apps. Even if you apply the note you are not going to get proper display in case of SP11. Maybe the problem gets solved in SP12.
    regards
    ravi

  • Flash/Javascript access of USER Variables

    Hi all,
    I've searched online many many times and have made many attempts in Flash and in Captivate 4, but to no avail, and I'm wracking my brain over it. By now I've almost given up on Captivate, since what has wasted so much time could have been done in a day or so using Flash to make the entire thing. I would like to avoid that though, since this is a University project, not a personal project.
    I need to access USER created variables, both in Flash animations AND in Javascript (i.e. in the execute Javascript field under multiple actions). They need to be accessed this way since there's no default way to multiply variables or append strings of text to variables (things which as an experienced AS2 user I know should be very simple to do). Also, I want to be able to copy the contents of one (user) variable to another (system) variable later on (for LMS).
    So say I have a user defined Captivate variable called 'userPath', and on a certain slide I want to multiply it by 5 in Flash or in Javascript (just an example).
    How could I access it from Flash with AS2? (I've tried _root.userPath, _root.movie.userPath, no luck).
    How could I access it from the Javascript? (I am comfortable with programming, but don't really use Javascript, so I may be having a problem with the notation).
    Any help would be greatly appreciated, since I need to get this work done soon. Many thanks.

    Lboro SB,
    How familliar are you with AS3?  I would recommend altering the CaptivateMaintimeline.as file typically located at C:\Program Files\Adobe\Adobe Captivate 4\ActionScript 3.0.  You can write your custom functions in AS3 to do your multiplication or whatever and it will use this file to compile your Cp4 project.  Just make sure you're publishing your Cp4 project in AS3 in the project properties.  You could also add your function to the list of ExternalInterface.addCallback(... so that your function could be accessible from JavaScript.  Here's my custom function I've put in the CaptivateMaintimeline.as file:
    /JBL: For External Interface setting any type of value
            public function jim_cpSetValue(variable:String, val):void
            //myTrace("cpSetValue variable1 " + variable + " ; val  " + val);
            var arr:Array = variable.split(".");
            var ref = this;
            for(var i=0; i < arr.length -1; i++)
                ref = ref[arr[i]];
            ref[ arr[arr.length -1] ] = val; // This works fine for numbers, booleans and strings
    // JBL: adding callback to set variables in cp via JavaScript
    ExternalInterface.addCallback("jim_cpSetValue", jim_cpSetValue);
    If you want to do this in JavaScript, you need to get a reference to the Captivate main movie.  I do it like so:
        // Set objCaptivate in IE
        CaptivateObj = document.Captivate;
    Then you can call your custom function
        //JBL:  Custom Function to set Captivate Vars via Javascript
        function setCaptivateVariable(myVariable, myValue)
            CaptivateObj.jim_cpSetValue(myVariable, myValue);
        //JBL:  Shortcut function for Getting values from Captivate SWF
        function getCaptivateUserVariable(n)
            return CaptivateObj.cpGetValue(n);
    I also HIGHLY recommend a lightweight .js file by Philip Hutchison that can do much more located here.
    Good Luck,
    Jim Leichliter

  • Call javascript function after submit process

    Hi,
    How can I call javascript function after my submit process ?
    Thanks.

    Hi Carl,
    You say that I must have an Item or region that contains my js with conditionnal display. With this method I can execute my js with specific request value.
    My problem is that I tried to integrate the "save large value workaround" in my application with the APEX wysiwyg (fckeditor). To do that I have to call the javascript function clob_submit on the save button. This function save the value of my field but if I want to save other item value, how can I do that ?
    If I use your method, I will submit the page, save the other field and after that, I will branch on the same page. At this moment, I will execute my javascript file.
    Is it what did you said ?
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • html-el and javascript access

    Hi, I suppose this is a bit of a newbie question but I'm trying to fix a bug on code I've inherited. Basically the <html-el> tag defines the following and works fine
    <html-el:form action="saveConsumer" styleId="consumerForm" disabled="${consumerForm.formDisabled == 'true'}">
    However, there are a couple of fields on the form that call a javascript function to independently enable/disable the fields depending on which user is logged in, so I'm trying to access the value of the consumerForm.formDisabled boolean within javascript but can't seem to do so, I've tried whats below but it won't work - any help would be much appreciated!
    Thanks.
    Ray.
    <script type="text/javascript">
         function connectionPolicyToggle() {
              var element = document.getElementById('connectionPolicy');
              if (element.value == 'ALWAYS') {
                   document.getElementById('connectionThreshold').disabled='true';
                   document.getElementById('connectionFrequency').disabled='true';
              } else {
                   document.getElementById('connectionThreshold').disabled='document.consumerForm.formDisabled.value';
                   document.getElementById('connectionFrequency').disabled='document.consumerForm.formDisabled.value';
         }

    Thanks for that
    Just in case anyone else needs a simple version:
    var SlideNumber = 4;
    if(typeof window.cp === 'undefined'){
        if(SlideNumber != '') {
    document.getElementById('Captivate').cpEISetValue('m_VarHandle.cpCmndGotoSlideAndResume', SlideNumber  -1);
    }else
        if(SlideNumber != '') {
                window.cpCmndGotoSlideAndResume = SlideNumber-1;
    Thanks
    Luke

  • Javascript access to dataconnection

    Hi all,
    I have designed a dynamic form with a dataconnection that points to an XML file.
    The fields in my form are displaying the correct values from the XML file. That all goes well.
    But now, I want to set the color of some textfields depending on the value of a certain element in the XML file.
    How can I access an element from the dataconnection using javascript?
    Any ideas on the syntax I shoul use?
    regards,
    Peter Vermeule
    Belgium

    Hi,
    a (hopefully) last question:
    I have a table on my dynamic form. The binding of a textfield inside my table is as follows:
    $.element1.element2[*].element3
    The result of this is that for each element2 under element1, the value of element3 is shown in the table as a separate row.
    So far, so good.
    But now, inside the javascript attached to the textfield, I want to know the value of an attribute on element3 that is shown in the current textfield. Is this possible?
    I tried a syntax like this:
    fa.resolveNode("$record.element1.element2[*].element3.name_of_my_attribute").value
    Without success!
    thanks again for your help,
    Peter

  • Javascript - Access sub-properties of lists

    I've got a very basic problem: I want to assign a color to a
    line inside a field.
    Basically, this is all that's needed for doing this in Lingo:
    member.line [ i ] .color=color(255.128.128);
    However, a requirement for my studies is that I have to do it
    in Javascript and the dot notation doesn't work there... instead
    you use setProp... so by normal JS standards this should work:
    member.getProp("line",i).setProp("color",color(255.128.128));
    However, for some reason that I'm 100% unable to understand
    member.getProp("line",i) doesn't return an object... instead it
    returns a string!?!
    So I need a way to access nested properties directly via
    setprop... I've tried this:
    member.setProp("line["+_mouse.mouseLine+"].color",color(255,0,0));
    In the hope that Director would parse the
    "line["+_mouse.mouseLine+"].color" bit to get to the correct
    property... but sadly it doesn't.
    Any help would be VERY welcome :)

    Found the solution: You've got to use getPropRef:
    member.getProp("line",i).setPropRef("color",color(255.128.128));
    What I find really disturbing is that this is probably the
    110th method that I've found in a few forums, but not in the
    documentation... it's simply not listed and even a fulltext search
    does only provide a single half-sane result: "Choosing between
    Javascript and Lingo Syntax", the rest are functions that have
    nothing to do with properties, they just need it for their
    examples.
    I'm sorry, but you guys really have to get your act together
    documentation-wise!

  • Javascript Access to Adobe Reader Plugin

    This is more of a developer question but I thought I would give it a shot because I have yet to find any documentation.
    Does Safari have scripting access to the Adobe Reader plugin?
    The following works in IE because printWithDialog(); function is revealed to IE javascript when a PDF is embeded.
    javascript:
    var thePdf = document.getElementById("printFrame");
    thePdf.printWithDialog();
    embed in the body of the web page:
    <embed height="400" width="370" name="printFrame" id="printFrame" src="theFile.pdf" />
    Can I do something similiar in Safari?
    Thank you,
    -jscott

    Yes it does. It works on the website I support. We do it thru a javascript popwin and it loads in all browsers.

  • [JavaScript] access to vertices of a mesh node

    Hi forum,<br /><br />is there a way to get access to the vertices of a mesh node, in particular to their x, y and z coordinates (with respect to the local coordinate system of the parent mesh node)?<br /><br />I mean something like:<br /><br /><font face=Courier><br />var meshes = scene.meshes;<br><br />for(i=0; i<meshes.count; i++){<br><br />    var mesh = meshes.getByIndex(i);<br><br />    for j=0; j<mesh.vertices.count; j++) {<br><br />        var vertex = mesh.vertices.getByIndex(j);<br><br />        x = vertex.x;<br><br />        ...<br><br />    }<br />}<br /></font><br /><br />Thanks,<br /><br />Alexander.

    Alexander,
    Sorry for the big delay. You're probably on to new things now...
    The answer is that there is not yet access to vertices. You can of course get the 4x4Matrix of a mesh and transform the mesh in that manner, but specific control or deformation of vertices is not present.

  • Javascript "Access Denied" when disabling Ctrl+N in an Iframe

    Hello Gurus,
    I have disabled the CtrlN from whole IC WebClient application, however I realized that if we focus on Email Editor (whether Disabled or Enabled) I could still get CtrlN clicked for a new window.
    I tried the usual way as it is an IFRAME but now I am getting error "Access Denied".
    It seems to be a domain relaxing issue to me & I am curious if we have pages from same server why this error is coming.
    Any ideas, thoughts would be appreciated.
    Regards,
    Ankur

    Hello Raja,
    The issue seems to be unresolved. There is no way I could get rid of this error.
    The document relaxing code is there in generated JS file. It seems when an IFRAME is in designmode it couldn't trap events or maybe something like that.
    regards,
    Ankur

Maybe you are looking for

  • XML Publisher APIs problem.

    Hi friends! I need to convert RTF files into XSL. So I'm running the following simple code: RTFProcessor rtfProcessor1 = new RTFProcessor("c:\\example.rtf"); rtfProcessor1.setOutput("c:\\example.xsl"); rtfProcessor1.process(); but i'm getting the fol

  • Dreamweaver template (.dwt) keeps reverting to old version after reopening CS3

    I work locally on all files and upload as needed.  After chaging template and applying it, I can upload all associated pages just fine.  If I close DW and reopen, the old version of the template is there without any changes -- even though I saved the

  • NAC Guest Server SMTP Authentication

    Does anyone know if you are able to set your SMTP server in the NAC Guest Server to do SMTP Authentication? Our old Exchange server just let us specify the SMTP server and send the guest accounts their Username and Password to their outside accounts.

  • I have updated my iPhone 5

    I Have updated my iPhone & now when I try to update my apps an old email address which requires the password attached to it pops up. I don't remember that password & haven't used that email as my Apple ID in years. How can I get my current email & sp

  • Is it possible to switch off all addons by default when starting firefox?

    Firefox often runs quite slowly but resetting appears to solve the problem. I tried to identify any problmatic addon but was unsuccessful