Javascript concat not working in function.

Hello,
I have three items on a page: item_name, item_name_opt1, and item_name_opt2
I'm trying to use the following function so that if item_name (checkbox) is clicked the other items with be dis/enabled accordingly. However, when I pass in (this) and then reference it in the disableItems function, it's not working. Can someone tell me what I'm doing wrong?
function toggleDisable(pValue)
var lTest = html_GetElement(pValue).checked == false;
html_disableItems(lTest,pValue + '_opt1',pValue + '_opt2');
}

Carl,
Thanks for taking a look. I didn't see any errors, I checked the error console too - nothing. I'll give some more details.
I started with a specific function which worked but was not generic enough:
function toggleDisable(pValue)
var lTest = html_GetElement('item_name').checked == false;
html_disableItems(lTest,'item_name_opt1','item_name_opt2');
Next I tested to see if I could use pValue in the html_GetElement function which worked:
function toggleDisable(pValue)
var lTest = html_GetElement(pValue).checked == false;
html_disableItems(lTest,'item_name_opt1','item_name_opt2');
Then I thought if it worked there it should work in the html_diableItems function so I tried just one of the two options:
function toggleDisable(pValue)
var lTest = html_GetElement(pValue).checked == false;
html_disableItems(lTest,pValue + '_opt1','item_name_opt2');
When I checked the page, only the opt2 was toggleing. The opt1 was not.

Similar Messages

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Javascript is not working in JSP

    Hi everybody,
    My javascript is not working in JSP.I m not able to fix this problem.Please tell where the problem in code.
    thx in advance.
    <%@page import="javax.servlet.http.*" %>
    <%@page import="java.sql.*" %>
    <html>
    <head>
    <script type="text/javascript" >
    funtion checkentries()
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)
    alert("Please fill all entries")
    else
    document.LForm.submit()
    </script>
    </head>
    <body>
    <table width=100% height=100% valign="center" align="center" border=0>
    <tr height=10% ><td>
    <%@ include file="Header.jsp" %>
    <hr>
    </td></tr>
    <tr height=1% width=100%>
    <td align=right>Register
    <hr>
    </td>
    </tr>
    <tr height=77% width=100% ><td>
    <table>
    <tr><td width=65%>
    </td>
    <td bgcolor="black" width="1" ></td>
    <td align="right" valign="top" >
    <form method="POST" action="/EIS/Home.do" name="LForm">
    User Name: <input type="text" align=right name="uname"><br>
    Password: &nbsp&nbsp&nbsp<input type="password" name="upassword"><br>
    <input type="submit" name="submit" value="Submit" onclick="checkentries()">
    </td>
    </tr>
    </table>
    </td></tr>
    <tr height=10% ><td>
    <hr>
    <%@ include file="Footer.jsp" %>
    </td></tr>
    </table>
    </body>
    </html>

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Using osx javascript is not working in firefox, ebay

    I am using osx mac, javascript is not working, even though it is enabled in Firefox preferences.
    == URL of affected sites ==
    http://ebay

    Problem still exists in Firefox 5.0 and OSX 10.6.8
    It was a fresh install of Firefox 5.0 so no extensions. And Javascript IS enabled in preferences.
    Sites work fine in Safari.

  • Printing an iframe with pdf using javascript is not working in IE8 and above

    I have a problem with printing and Iframe with PDF in IE 8 and above
    Following is my javascript:
    var urlValue="";//Path of the file to be printed
    var div = document.getElementById("printerDiv");
    div.innerHTML = '<iframe src="' + urlValue + '" id="frame" name="frame" style="width:100%;height:100%;"></iframe>';
    frame.focus();
    frame.print();
    This same thing is working fine in other browser but for IE is just not invoking the print dialog.
    Also I tried to get the frame.print(); on load of the frame but even that is not working exactly as that way it print the parent window in output.
    Few things I tried like:
    1) div.innerHTML = '<iframe src="' + urlValue + '"
    onload="this.contentWindow.print();"></iframe>';
    2) frame.contentWindow.focus();
    frame.contentWindow.print();
    3) window.document.getElementsByTagName('iframe')['frame'].onload = (function () {
    frame.focus();
    frame.print();
    I need to get the print of only the content which is in Iframe which I am binding in "printerDiv" by javascript.
    Any perfect/different solution from which I have tried then please post here?
    Thanks.

    PDF documents are hosted in an ActiveX or netscape plugin control which have their own printing functions.
    Start>Adobe Reader>Edit>Preferences - to adjust what functionality the PDF document viewer addon displays (menus etc).
    Tools>Manage Addons>Show all addons
    make sure you have both the x86 and x64 versions of your PDF reader Active X control installed and enabled. I would recommend also that you update to the latest version of the vendors' (Adobe?) plugin.
    Possibly you have disabled scripting of ActiveX controls in the IE security zone that your parent page maps to. Also there is an IE security zone feature that prevents navigation to a domain in a zone of lower integrity.
    Tools>Internet Options>Security tab, click "Reset all zones to default".
    when asking developer related questions it is helpful if you can include a link to your website.
    Rob^_^

  • Javascript does not work in Adobe 9 Reader

    I have created a Parent PDF Index with attachments. Next to each document name, I have 3 icons (PDF, Print and Email icons). The PDF Icon has a basic link: "Go to page in another document" The Print Icon has the "Go to page in another document" link and a javascript: app.execMenuItem("Print"); -When someone clicks the Print Icon, the attached document opens and the Print Box opens to print the attached document. The Email icon has the "Go to page in another document" link and a javascript: app.execMenuItem("AcroSendMail:SendMail"); -When someone clicks the Email Icon, the attached document opens and is automatically attached to a blank email. These links and javascripts worked perfectly in Adobe 8 Professional, Adobe 7 Reader and Adobe 8 Reader. However, the Print and Email functions are not working correctly in Adobe 9 Reader. The Print Icon is clicked and the Print Box opens first and the document opens last (therefore, it is printing the Index not the attached document). Same thing with the Email Icon...it is emailing the Index not the attached document. Is there anything I can do to fix this issue? Thank you in advance for your help!

    Security restrictions changed for execMenuItem(). Here's what the documentation says about it:
    "(Acrobat 8.0) The execution of  menu items through execMenuItem method  is restricted to a short list of safe menus. The execMenuItem method will silently fail if a named menu  item is executed that is not on the safe menu list. Menu items may be removed in future releases, or their behavior may change.
    To see the list of safe  menus, create a form button, and in the Button Properties dialog box,  select the Actions tab. From the Select Action list, select “Execute  a menu item”. Finally, click the Add button to see the Menu Item dialog  box with the list of safe menus.
    The app.execMenuItem method may be executed, without  restriction, in a privileged context, such as in the console or in a  batch sequence. For folder JavaScript, app.execMenuItem can be executed, again, without restriction,  through a trusted function with raised privilege. See Example 4, below.
    Another approach to  executing app.execMenuItem without  restriction is through Sign & Certify. When the document author  signs and certifies the document, privileged methods can be executed  from a non-privileged context provided the document consumer lists the  author’s certificate in the list of trusted identities and the consumer  trusts the author for execution of embedded high privilege JavaScript."
    See here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.131.html#1995136

  • Javascript is not working correctly in the jsp

    Hello experts,
    i have problem with javascript. Actually i am written a javascript function isInteger(s) for checking wether
    the entered string is numberic or not. But its not wroking(can't display alert message). Means it not calling the function. If i try this javascript in different html page its work but in jsp pages its not calling the javascript function.
    This jsp page require some settings or anything, then help me.
    Edited by: andy_surya on May 4, 2009 11:04 AM

    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script language="javascript">
    function isInteger(s)
        var i;
         s = s.toString();
         var o;
         o=s.length;
             for (i = 0; i < o; i++)
                  var c = s.charAt(i);
                     if (isNaN(c))
                        alert("Given value is not a number.\n Remove It. \nAnd Try Again.");
                        return false;
             return true;
    </script>
    </head>
    <body>
    <input type="text" name="txtbx1" size="25" onkeyup="isInteger(this.value)" />
    </body>
    </html>

  • Javascript is not working in Safari on my iPad, version 6.1.3. Anyone know why?

    I have an iPad with os version 6.1.3.  Javascript on websites is not working in Safari. Does anyone know why? How can I correct this situation?

    It is jquery libraries that are not functioning properly and some of the html.  I have Javascript turned on.  The website was working in Safari.  I tested it in Safari and I viewed it many times using Safari and it worked.  I went on to it on 5/8/13 and the javascript/jquery portion and parts of the html are not working.  It had been tested about 4 or 5 months ago in several diffierent versions of IE, Chrome, Mozilla and Safari. 
    Thanks for responding to my question

  • Javascript is not working in the published file

    Hi ,
    I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
    I called the function in the button and I written the script in the slide.
    Please let us know how to proceed..
    Thanks
    Sathish BC

    This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
    var objCP = document.Captivate;
    function valText()
    var a  = objCP.cpEIGetValue('A');
    var b  = objCP.cpEIGetValue('B');
    if (b>=5)
    objCP.cpEISetValue('B',0);
    GetAryVal(b);
    objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
    function GetAryVal(e)
    var a1  = objCP.cpEIGetValue('Txt');
    var b1 = a1.split("#");
    var c1 = b1[e-1].split("$");
    objCP.cpEISetValue('C', c1[0]);
    objCP.cpEISetValue('D', c1[1]);
    valText();

  • When i insert the menu.js file the validations(javascript) is not works

    i write the following code into "menu.js" file ie. for menu bar its work finely. I write one jsp file in that i write the code for insert record with the validatations eg. check whether its number or not/ integer or not.
    In this jsp file i include the .js file ie. menu.js.
    ============== In jsp file ===================
    <table align=center width=100%>
         <tr>
              <td>
                        <script type='text/javascript' src='menu/menu.js'></script>
              </td>
         </tr>
    </table>
    =================================
    But problem is this when i insert the above 5 or 6 lines into jsp file at run time validation script is not working and when i remove the
    above code then validation script is works.
    So experts i want works both means the menu and the validation script.

    andy_surya wrote:
    i write the following code into "menu.js" file ie. for menu bar its work finely. I write one jsp file in that i write the code for insert record with the validatations eg. check whether its number or not/ integer or not.
    In this jsp file i include the .js file ie. menu.js.
    ============== In jsp file ===================
    <table align=center width=100%>
         <tr>
              <td>
                        <script type='text/javascript' src='menu/menu.js'></script>
              </td>
         </tr>
    </table>
    =================================
    But problem is this when i insert the above 5 or 6 lines into jsp file at run time validation script is not working and when i remove the
    above code then validation script is works.
    So experts i want works both means the menu and the validation script.Despite the confusion there seems to be in many threads (which is scary to me somehow) this forum is not about JavaScript.
    You need to debug your JavaScript problem. I suggest starting by using Firefox and then using Tools->Error Console and see what's up. By your description you have two different JavaScripts with conflicting functions or something.

  • Captivate 8 - Javascript does not work in runtime

    Hello,
    I have been playing with using javascript within Captivate, testing both Captivate 7 and 8.  Using simple code attached to a smart shape button - three alert statements - , I proceeded to test the javascript in both the preview and run time mode.  here are my results :
    Captivate 7
         HTML5 (preview) - only the last alert statement executes    
         HTML5 (published, runtime) - only the last alert statement executes   
         SWF (preview) - all three statements execute      : )
         SWF (published, runtime) - none of the three execute  
    Captivate 8
         HTML5 (preview) - only the last alert statement executes 
         HTML5 (published, runtime) - only the last alert statement executes
         SWF (preview) -none of the three execute
         SWF (published, runtime) - none of the three execute
    Can someone help me out with this?  I would like to my javascript to work in the published versions of both SWF and HTML5 for at least Captivate 8....
    Thank you!

    Hi Rscharfer,
    As the alert dialog box for HTML5 captivate is not modal, the javascript will not pause after executing the first alert, hence what is happening in your case is that all the three alerts are printed one by one over each other and you are just able to see the last one. when you click on the last one the click goes to all the alerts and closes them all.
    try this one, put this script on javascript execute action on a button.
    setTimeout(function(){alert('Hello')},300);
    setTimeout(function(){alert('Shriyansh')},10000);
    setTimeout(function(){alert('Agnihotri')},30000);
    The above script will prove you that all the three are executed and you will get all the 3 alert boxes one after other with intervals as 300ms,10secs and 30 secs.
    Let me know if there are queries on this.
    Thanks and Regards
    Shriyansh
    Adobe Engineering Team.

  • Javascript does not work in web browser

    Hello friends.
    I have a problem with javascript in my Captivate project.
    This script only works in preview in Captivate, but does not work in web browser (IE 9, Mozilla, Chrome).
    Anybody knows why?
    Thank you for your answers.

    Common JS interface
    That is the official documentation for JS in Captivate 8. For more information, have a look at Jim Leichliter's website: CaptivateDev.com - eLearning Development with Adobe Captivate

  • JavaScript button not working in StageWebView

    Hi,
    Does anybody have an idea why the Google+ "Invite your friends!" button is not working in a StageWebView window?
    Button:
    - https://developers.google.com/+/web/share/interactive#button_design
    It's working within the Flash IDE but not on mobile.
    I'm using Air 3.6 and Flash CS6.
    Thanks for any input!

    Make sure that you do not block [[JavaScript]]
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Updated Acrobat and now Javascript calculations not working in new forms.

    I had created forms for my work that allowed me to calculate back dates from a given date to instruct the form users when components of a project were due. Below is the script I used- I am NOT a programmer and this was taken from another forum. It has worked successfully for 2 years in both Acrobat 9 & 10 and in various forms I have made.
    var strStart = this.getField("0VendorArtApproved-2wk").value;
    if(strStart.length)
      var dateStart = util.scand("mmm d, yyyy",strStart);
      var oneDay = 24 * 60 * 60 * 1000;
      var dueMillis = dateStart.getTime() - 21 * oneDay;
      var dueDate = new Date(dueMillis);
      event.value = util.printd("mmm d, yyyy",dueDate);
    else
      event.value = "NA";
    "0VendorArtApproved-2wk" is the field the previous date was taken from- this and the amount of days "- 21" changes from field to field. This form has 3 levels that it calulates dates from- which starts with a single initial date entered into a text box by the user. This allowed the user to see when different elements of a project were due. Sorry if this seems basic to all the Javascript masters but I am really very clueless on prgramming speak and only know what I have read from forums.
    The last version of the form that worked successfully was in Oct 13', I went to create a new form and copied these formula boxes to a new form and now half of them do no work.
    I have rechecked my formulas and formatting and cannot find and issue. They are exactly the same. One works and one does not. The only thing I can see different from the 2 forms is that I am certain there were 1 or 2 updates to the Acrobat software itself that could possibly have caused an issue.
    So I have 2 documents- 1 created in October 13' that works and one created today Jan 14' that does not work. They have the same formulas.
    Anyone aware of changes to Acrobat or errors in my formula that could have caused this? I am in version 10.1.9

    Applied this fix. There was an error in the NEW document. I redid the formulas in the NEW document and that did not work. Still had the same problem. 
    SO I went back and redid the formulas in the fields in the OLD document to the revision I needed and that worked. All I was trying to do was tweak the number of days between one element and the next in this area and there were a bunch of other revisions to the form so I figured it was easier to start fresh.  I will just make all the revisions to the OLD document- which will be a lot of work, but at least my formulas are working. Not an ideal fix but something must have been glitchy in the new document and I now have a workable form.
    I believe some kind of odd interaction happened when I copy and pasted the fields from document to another.
    Thank you so much for your help! I am days away from maternity leave so I had to get this figured out fast!

  • SQL Statement not works using functions or subqueries-MAXDB

    Hello All,
    I created an ABAP program to select information about country(table: T005) with the country names (Table: T005T). I tried to create a sql query with a sql subquery to select everything but for some reason that I don't know it doesn't work. Please find the query below.
    DATA:
    resu        TYPE REF TO cl_sql_result_set ,
    stmt         TYPE REF TO cl_sql_statement ,
    qury        TYPE string .
               qury  = `SELECT land1, spras, `
               &&       `(SELECT landx `
               &&         `FROM SAPNSP.T005T `
               &&         `WHERE mandt = '` && sy-mandt && `' `
               &&           `AND spras = 'EN' `
               &&           `AND land1 = ? ), `
               &&       `(SELECT natio `
               &&         `FROM SAPNSP.T005T `
               &&         `WHERE mandt = '` && sy-mandt && `' `
               &&           `AND spras = 'EN' `
               &&           `AND land1 = ? ) `
               &&        `FROM SAPNSP.T005 `
               &&        `WHERE mandt = '` && sy-mandt && `' `
               &&          `AND land1 = ? `
               &&        `GROUP BY land1, spras` .
    resu = stmt->execute_query( qury ) .
    Well, the query above works but the fields LANDX and NATIO are in blank in ALL THE CASES, even with information registred in table T005T.
    So, exploring the SDN forum and after read some documents regarding ADBC, I create a function to handle this sql select and get the correctly the missing informations, but, still don't work. Please find the function below:
    CREATE FUNCTION select_landx (land1 CHAR(3)) RETURNS CHAR(15)
    AS
      VAR landx CHAR(15);
      DECLARE functionresult CURSOR FOR
      SELECT spras, land1, landx
         FROM SAPNSP.t005t
         WHERE spras = 'EN'
             AND land1 = :land1;
         IF $count IS NULL THEN <- | $count is always 0, my SELECT
           BEGIN                                 it's not work but I don't know why
             CLOSE functionresult;
             RETURN NULL;
           END
         ELSE
           SET $rc = 0;
           WHILE $rc = 0 DO
           BEGIN
             FETCH functionresult INTO :landx;
           END;
         CLOSE functionresult;
         RETURN landx;
    Calling the function in a SQL statement:
    DATA:
    resu        TYPE REF TO cl_sql_result_set ,
    stmt         TYPE REF TO cl_sql_statement ,
    qury        TYPE string .
               qury  = `SELECT land1, spras, select_landx(?) landx `
               &&        `FROM SAPNSP.T005 `
               &&        `WHERE mandt = '` && sy-mandt && `' `
               &&          `AND land1 = ? `
               &&        `GROUP BY land1, spras` .
    resu = stmt->execute_query( qury ) .
    Any comments ?
    Best regards,
    Arthur Silva

    Hello,
    Thank's a lot, it works. It's funny because the given solution works using only abap codes.
    It may be happens because the abap interpretor send the sql statement to the db interface that handle the code in the another way.
    Thanks again, it was driving me crazy.
    Best regards,
    Arthur Silva

Maybe you are looking for

  • Veriface: cannot add a new user, and i forgot my password?

    Hello I just got a yoga 2 13 and the veriface program did not get a good picture of me or my wife.  I deleted the accounts, but i cannot see an option to add my user back.  It scans my face and puts my name in then asks for a password which i cannot

  • HT202157 my apple tv device is flashing or has a blinking light??

    my apple tv device is flashing or has a blinking light..... what do I do??

  • Windows live, or skype with video for mac?

    Ok, i didn't know where to post this, but i just bought my macbook pro laptop and i was trying to find a version of msn that worked with webcam, but i couldn't find, i've found the old versions and some other fake without cam versions, i've also trie

  • Team work in JDeveloper

    Hi, Is there any team-work mechanism with a repository that is available with JDeveloper? Karthik

  • User Function -JAVA

    HI Group, I am new to JAVA can any body help me in writting the JAVA user defined function to concatenate file with DDMMYY HHMMSS (eg:File_DDMMYY_HHMMSS).I assigned the File for one node ,Please suggest how to get DDMMYY(current date) HHMMSS(Current