To get a datatable object in javascript

How do i get a datatable object in javascript?
<html:dataTable id="tabData"/>
i use document.getElementById("tabdata"); to get the data table object in javascript I get an error..
How do I do this?

You have to put the complete path to the datatable.
ex:
If you have a form then the datatable:
document.getElementById('form1:dataTable');

Similar Messages

  • Problem in getting the TextBox object to Javascript....

    Hi All,
    Below is the code which i'm using to calculate the percentage and amount(vice versa).
    <script language="JavaScript" type="text/JavaScript">
    function fillAmt(obj) {
    alert(obj.name);
    var mks_Val = document.billingCycleDistribution.mks0.value;
    var obj_Name = obj.name;
    var obj_Val = obj.value;
    obj_Name = obj_Name.substr(7);
    var disp_Amt = (mks_Val * obj_Val) / 100;
    var txt = "amount"+obj_Name;
    alert("TXT "+txt);
    document.billingCycleDistribution.txt.value = disp_Amt;
    //alert(obj_Name);
    //alert(document.billingCycleDistribution.mks0.value);
    //alert(document.billingCycleDistribution.mks1.value);
    //document.billingCycleDistribution.mks0.value
    </script>
    <%
    Calendar cal = Calendar.getInstance();
    int max_Days = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
    for(int rowCount=1; rowCount <= max_Days; rowCount++)
    { %>
    <tr>
                                  <td width="57" height="27" align="center" class="ms-formlabel" style="border-style: solid; border-width: 1">
                                  <p align="center"><input type="checkbox" name= "C1" value=<%=rowCount%>> <%=rowCount%></td>
                                  <%
                                  for(int txt_box = 0; txt_box < marketSegList.size(); txt_box++) {
                                  %>
                                       <td width="153" height="27" align="center" style="border-style: solid; border-width: 1">
                                  <div id= <%="percentdiv"+rowCount%> style="display:block"><p align="center">
                                       <input type="text" name=<%="percent"+rowCount+txt_box%> size="15" onblur="fillAmt(this)">
                                       </div>
                                       </td>
    <td width="153" height="27" align="center" style="border-style: solid; border-width: 1">
                                  <div id= <%="amountdiv"+rowCount%> style="display:block"><p align="center">
                                       <input type="text" name=<%="amount"+rowCount+txt_box%> size="15" onblur="fillPer(this)">
                                       </div>
                                       </td>
                                  <%
                                  %>
    When i try to set the value in amount if a percentage is entered, it gives me an error.
    The problem is since both the text fields are named dynamically @ runtime I'm unable to get them in the Javascript function.
    Kindly help me out in this.
    Thanks
    ss

    Hi Annie,
    Thanks for your reply. I found a method which can be used to set the values.
    It is eval(). Here is the code.
    Working Code:
    eval("document.billingCycleDistribution."+txt+".value = disp_Amt;");
    Not Working Code:
    document.billingCycleDistribution."+txt+".value = disp_Amt;
    Cheers
    Srini

  • How to I get access to the Captivate object in javascript within an HTML file?

    I'm still struggling with this and would really appreciate any help/guidance you can .
    here's what I've got right now:
    var g_bIsInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
    document.write("<P><H1> g_bIsInternetExplorer=" + g_bIsInternetExplorer + "</H1></P>");
    document.write("<P><H1> setting objCP....</H1></P>");
    var objCp = g_bIsInternetExplorer ? Captivate : document.Captivate;
    document.write("<P><H1> set objCP....</H1></P>");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    document.write("<P><H1> description=" + description + "</H1></P>");
    I've published the captivate project.. I then launch it and then launch the html file that has this code in it
    It does everyting up thru and including line 3
    But it seems to fail on line 4..
    Any ideas /suggestions?
    Thanks in advance.

    Hey Jim - thank you thank you thank you
    Here's what was up with my code:
    This worked:
    alert("about to set objCP...");
    var objCp = document.Captivate;
    alert("completed setting of objCP, about to set get cpInfoDescription...");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    alert("description=" + description);
    This did NOT work:
    document.write("<P><H1> AT BEGINNING </H1></P>");
    alert("about to set objCP...");
    var objCp = document.Captivate;
    alert("completed setting of objCP, about to set get cpInfoDescription...");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    alert("description=" + description);
    ====
    I'm guessing the 2nd didn't work because i tried to get the captivate object AFTER the script wrote something to an HTML file.  I'm ultimately trying to get Captivate to generate a report for the user to report out what they did in response to the various quiz questions in the course (in HTML in table).   I've posted a query on how to do this here: http://forums.adobe.com/message/5120417#5120417
    Any chance you could take a look at this posting and let me know your thoughts on how best to do this .. It seems like this would be a fairly common thing to do .. It comes stock in Articulate Storyline (through their 'Report.HTML') but I haven't found a comparable one in Captivate.
    Thanks again!
    tom.

  • Passing complex object from JavaScript to Flex

    Is it possible to call a Flex function (defined with ExternalInterface.addCallback) and pass a complex object from Javascript?  The properties of the object are all simple types, but the object itself is an array of objects.  For example:
    <script type="text/javascript">
    var arrayOfObj = [ { one: "one", two: 2, three: "blah" }, { one: "xyz", two: "abc", three: 3.141 } ];
    callSomeFunctionInFlex(arrayOfObj);
    </script>
    What would I do on the Flex side to make this happen?

    Complex object passing works as expected in Blazeds. 
    There are certain cases where you need to write custom bean proxy classes to marshall an object, but your case is very simple and will not require it.
    Make sure that you set the full java package and class name in your remote alias statement on your client value object.  The class has to be fully qualified.  The AS value object also needs the correct import of the nested value object or you will get a compile error.
    Make sure that the blazeds server has the full class path set to your java objects.
    To debug, you can turn on Blazeds logging in the services-config.xml file like this:
       <logging>
            <!-- You may also use flex.messaging.log.ServletLogTarget -->
            <target class="flex.messaging.log.ConsoleTarget" level="DEBUG">
                <properties>
                    <prefix>[BlazeDS]</prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>true</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
            </target>
        </logging>

  • Access PL/SQL Objects from JavaScript

    I have following Problem:
    I want to have access to a pl/sql object from javascript.
    for example:
    i have a procedure with a parameter called test from Type Test.
    PROCEDURE toTest (
    test Test)
    IS
    BEGIN
    htp.script('here i want the value of test', 'javascript');
    would be really great if somebody can help me fast.
    thanks a lot
    holger

    I think it might have something to do with htmldb_Get
    Hope that clue gets you somewhere. I would love to see a working example of this for 4.02 if anyone actually has one.
    Regarding dynamic actions there's a severe limit on the number of them I believe.29? Which is one reason I avoid them and
    just do things in javascript. Personally I think javascript is actually easier to understand because one does not have to
    divide an actiivity up into several pieces. But that might just be specific to my brain, I don't know.

  • Access Java object from Javascript

    Hi
    I'm trying to invoke a Java object from Javascript (scriptengine and all that).
    I want to add scripting features to a GeneXus Java generated app... and I have very basic skills on java too. Sorry for that ;o).
    This is the java code to pass "params" to the scriptengine:
    engine.put("remoteHandle",remoteHandle);
    engine.put("context", context); The remoteHandle (int) and context (com.genexus.ModelContext) pass trough all the gx-java generated programs.
    This javascript works fine:
    importClass(Packages.uftestjs);
    new uftestjs(remoteHandle).execute( ) ;The remoteHandle conversion is ok (javascript-number to int). The context is optional.
    But if I want to pass context:
    importClass(Packages.uftestjs);
    new uftestjs(remoteHandle, context).execute( ) ;Fails with this:
    "javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Java constructor for 'uftestjs' with arguments 'number,javax.script.SimpleScriptContext' not found."
    Obviously, no conversion is possible with context (javax.script.SimpleScriptContext to com.genexus.ModelContext).
    There is some way to reference de original context, by the object Id??? or something like that???
    Thanks in advance for any replies!!!
    Greetings from Chile. (I hope you can understand my english!)

    Hi
    Well, since this topic is about java programming I think the place is right here.
    (I use some tricks to embed java statements in genexus objects...)
    I will try to get some help at Artech (GX) on how to build something... to get the conversion needed.
    But they are not focussed on support this kind of questions.
    Anyway, I want to know: do I can to reference an object by the objId?
    I want to code something like this:
    com.genexus.ModelContext context =
                     (com.genexus.ModelContex)getTheObjectFromTheJVM(theObjectId);(powered by google translator, ha!)

  • Creating a COM object in JavaScript

    Hello
    I have created a component in C++ using COM. I need to use this component in javascript. But I am getting an error message as shown below:
    Error:
    Automation Server cannot create object
    Code Snapshot
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
    <title></title>
    <STYLE TYPE ="text/css">
    </STYLE>
    <script language="javascript">
    function function1()
    var myObj = new ActiveXObject("ToolBand.ToolBandObj");
    myObj.OnNag("fg"); // Component's Function
    </script>
    </head>
    <body bgcolor="#FFD7OO" text="#8OOO8O" id="theBody">
    <button name="i" onclick = "function1();">Hello</button>
    </body>
    </html>
    Here "ToolBand.ToolBandObj" is a C++ COM Object.
    Please kindly let me know how to create an instance of COM object in JavaScript
    Regards
    Senthil

    Please let me know under which section I need to post
    thisNot in any section on these fora.
    Try googling for javascript forum.

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • How can I get the underlying object from the ObjectReference

    Dear friends,
    I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
    I would like to get the underlying object for which the ObjectReference is
    a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
    Thank you so much for any input!
    SunnyDay

    I'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
    If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
    function getParentDoc(testObj) {
        //Get object for current page
        try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
        catch(er) {return;}
        //Step backwards to first page in document
        var prevPage = curPage.PagePrev;
        while (prevPage.ObjectValid())
            curPage = prevPage;
            prevPage = prevPage.PagePrev;
        //Compare with first pages of open documents
        var testDoc = app.FirstOpenDoc;
        while (testDoc.ObjectValid())
            if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
            testDoc = testDoc.NextOpenDocInSession;    
        return;
    To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions.

  • How to get an ArrayList Object in servlet from JSP?

    How to get an ArrayList Object in servlet from JSP?
    hi all
    please give the solution for this without using session and application...
    In test1.jsp file
    i am setting values for my setter methods using <jsp:usebean> <jsp:setproperty> tags as shown below.
    After that i am adding the usebean object to array list, then using request.setAttribute("arraylist object")
    ---------Code----------
    <jsp:useBean id="payment" class="com.common.PaymentHandler" scope="request" />
    <jsp:setProperty name="payment" property="strCreditCardNo" param="creditCardNumber" />
    <%-- <jsp:setProperty name="payment" property="iCsc" param="securityCode" /> --%>
    <jsp:setProperty name="payment" property="strDate" param="expirationDate" />
    <jsp:setProperty name="payment" property="strCardType" param="creditCardType" />
    <%--<jsp:setProperty name="payment" property="cDeactivate" param="deactivateBox" />
    <jsp:setProperty name="payment" property="fAmount" param="depositAmt" />
    <jsp:setProperty name="payment" property="fAmount" param="totalAmtDue" /> --%>
    <jsp:useBean id="lis" class="java.util.ArrayList" scope="request">
    <%
    lis.add(payment);
    %>
    </jsp:useBean>
    <%
    request.setAttribute("lis1",lis);
    %>
    -----------Code in JSP-----------------
    In testServlet.java
    i tried to get the arraylist object in servlet using request.getAttribute
    But I unable to get that arrayObject in servlet.....
    So if any one help me out in this, it will be very helpfull to me..
    Thanks in Advance
    Edward

    Hi,
    Im also facing the similar problen
    pls anybody help..
    thax in advance....
    Litty

  • How to get the UserTransaction object in  stateless session bean

    Hi, I am using jboss server and jdk5 version and using EJB.
    My Application flow :
    JSP à Action(Struts) à Service Locator à Session bean à Entity Bean(cmp) à DB.
    I tried to get the UserTransaction object in my Action. Its my code.
    InitialContext ctx = new InitialContext();
    UserTransaction uTrans = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
    After used uTrans.begin(),uTrans.commit() and uTrans. rollback () also.
    Its working fine .
    But, I used the the same code inside in my session bean its not working.
    Stateless Session Manager Bean code :
    public class SampleManagerBean implements SessionBean {
    public void ejbCreate() throws CreateException {  }
    public void ejbRemove() {  }
    public void ejbActivate() {   }
    public void ejbPassivate() {   }
    public void setSessionContext(SessionContext sessionContext) {
    this.sessionContext = sessionContext;
         public void createSample() throws EJBException
         try{
                   InitialContext ctx = new InitialContext();
                   UserTransaction ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
              }catch(Exception e) {
              System.out.println(“ Exception === > “+e)
    Its throws the error ie: javax.naming.NameNotFoundException: UserTransaction not bound
    How to get the UserTransaction object in my session bean. Kindly give solution the above errors.
    - Thendral

    first of all, you could just use sessionContext.getUserTransaction(). however, that would only work if your bean is using bean-managed transactions. the default is container-managed transaction, in which case you cannot get a UserTransaction object. if you want to manage transactions, you need to add the TransactionManagementType.BEAN annotation to your ejb.

  • Is there inbuild Handler in weblogic using which i can get the MessageContext object

    HI,
    I need MessageContext object in my application but i dont want to use the Handler,As
    there is AxisEngine in axis soap engine,is there any similar implementation in
    weblogic.
    AxisEngine.getCurrentMessageContext() we can get the MessageContext what about
    in weblogic..any body any idea???
    Regards,
    Akhil Nagpal

    HI,
    yeah i had to make use of Handler to get the MessageContext object and play with
    that.
    Thanks & Regards
    Akhil Nagpal
    "manoj cheenath" <[email protected]> wrote:
    You can get to MessageContext from a handler. Check out an example of
    handler
    to see how you can get Message out of MessageContext.
    -manoj
    "Akhil Nagpal" <[email protected]> wrote in message
    news:[email protected]..
    HI manoj,
    Thanks for your reply.otherwise i thought that i wont get any morehelp
    on this
    forum :-) ...
    anyway its good that we will have such thing in next version,duringthe
    development
    i feel that more functioanlity should be in build in appserver. Likeone
    more
    thing i could not find out is how we can get the "message" object inweblogic
    like we can in axis using its MessageContext class's static method.if it
    is there
    can you please let me knwo about that.
    The other problem i had to make use of handler and my appl is workingas of
    now :-)
    Regards
    Akhil Nagpal
    "manoj cheenath" <[email protected]> wrote:
    You can not do this in WLS 7.0. The next major release (WLS 8.1) will
    fix
    this problem.
    -manoj
    "Akhil Nagpal" <[email protected]> wrote in message
    news:[email protected]..
    HI,
    I need MessageContext object in my application but i dont want
    to
    use
    the Handler,As
    there is AxisEngine in axis soap engine,is there any similarimplementation in
    weblogic.
    AxisEngine.getCurrentMessageContext() we can get the MessageContextwhat
    about
    in weblogic..any body any idea???
    Regards,
    Akhil Nagpal

  • How do I get an activeX object reference from a LabVIEW ActiveXContainer ref?

    How do I get an activeX object reference from a LabVIEW ActiveXContainer ref?
    I'm trying to control an ActiveX object (a Web Browser) from another VI and need to get the object reference programmatically. I can get the LabVIEW ActiveXContainer reference, but am lost on how to get the reference for the object _inside_ the container.

    Hi Lee,
    The reference to the container is actually also accessing the object inside the container. Use the Property Node and Invoke Node to access properties and launch methods for the object. I've attached a small example that passes the reference to a SubVI and invokes a method inside the SubVI.
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    WebContainer.zip ‏21 KB

  • How to get the view Object in UserDefined Action

    Hi  All,
       Any body tell me how to get the view object , like the view object avilable in the wdDoModifyView() method as parameter.
    I have requirement like, i want to change the , no of rows displaying in the table should be changed at the runtime based onthe no of rows  selected in the dropdown box.
    The action which i created will be assigned to that dropdown box, on select of the available option, i will get the view object and change the properties of the "maxrows" of the table .
    so for getting the view object in the  the Action methods tell me what is the procedure for getting the current view object.

    Hello Vishal,
    Simply create a value attribute (say rowCount) of type 'integer' and bind it to the 'visibleRowCount' property of your table. Then, in the actionHandler get the value from the UI element (in your case, I guess it is drop down) and set it to the attribute 'rowCount' like this.
    wdContext.currentContextElement.setRowCount(
        wdContext.current<nodeElement>.set<AttributeBound toDropDown>);
    Bala

  • Unable to get the admin object for the CsContainerAdmin service

    Hi,
    On AIX, we deployed XIR2 SP2 --> XIR2 SP3 --> SP3 Productivity Pack.
    The Conection server does show up on the server list in the CMC, but on trying to access this server, it throws an error" Unable to get the admin object for the CsContainerAdmin service"
    Tried to manually create another Connection server, same result.
    Is this an issue that is addressed by a later FP?
    Thanks in advance
    Rajesh Jayakumar

    Hi Rajesh,
    Were you able to resolve this issue? I am facing the same issue with almost every BOE 11.5 SP3 server on Windows.
    For example, the Input file server says this -
    "Unable to get the admin object for the FileServerAdmin service for server Input.BOCMSMSGT1.fileserver".
    Getting the same error on WebI Report Server as well -
    There was an error while retrieving data from the server: Unable to get the admin object for the WebiServerAdmin service for server BOPROCENG1.Web_IntelligenceReportServer.webiserver
    Thanks,
    Sarang
    Edited by: Sarang Deshpande on Sep 26, 2008 3:08 PM

Maybe you are looking for

  • Projects are seen in workspace but not getting displayed

    I have some Web dynpro, JEEE, Dictonary DCs and projects in workspace, but it is not getting displayed when I open NWDS. I have given the correct workspace path but still the Project explorer is blank Please help. (P.S. NWDS was shut down improperly.

  • Mount vhdx file from Windows Server Backup 2012

    We have a 2012 server with a network share that other servers backup to using Windows Server Backup.  To view the files from a windows 2008 r2 backup .vhd file all I have to do is open it in windows explorer and it mounts as a drive and opens.  When

  • To open a window & html page at a time on a single button, in JSP.

    Hello! I want to open 1 window as well as i want to open 1 html page on a single button click at a same time, in JSP. on button's "action" event i am opening the html page and button's "onclick" event i am opening the window, but it is not showing th

  • Can I find the number of times the recorded meeting has been viewed?

    In Adobe Connect is it possible to find the number of views after a recorded meeting is made public? Under meeting dashboard it keeps track of these views for 30 days but I can not seem to find anywhere under the reports where this information is loc

  • To create a new file in application server and transfer data to ti

    i am doing the following where i have to create a new file in application server and transfer data to tht file from an internal table.but its saying file cant be opened.the path i am giving to parameter p_prefil is /tmp/prachi.txt. wats the prob..can