Problem with the function 'length' for table column in a table (fn)

Hello

I have a piece of javascript code that sets all the values of a column in a table:

function exemptAll (flag)
{
Alert (document.wwv_flow. F42. Length);
for (var i = 0; i < document.wwv_flow.f42.length; i ++)
{
var curr_id = document.wwv_flow.f42user.user;
If (flag == 'Y')
{
document.getElementById ("curr_id") .value = "Y";
}
on the other
{
document.getElementById (curr_id) .value = 'n';
}
}
}


It works very well to provide in the form of tables, there are multiple lines, if only one line is the "document.wwv_flow.f42.length" function returns false values - we had '2' and '3' returned to a form of the tab that contains a single row and subsequently code fails with an error "invalid argument".

Is this a recognized bug because we cannot find similar reports of what is happening on the forums. Any help would be appreciated as we have to fake a work around using an element of the page containing the number of lines in the tabular presentation.

Hello

I think that "bug" is caused by the dynamic nature of Javascript.

If there is more than one field called f42, any reference to it will return an array of fields. However, if there is only one instance of it, any reference to it will return the field itself! In the latter case, probably the length function returns the number of characters in the field.

Therefore, you must check whether what you have is an array or not. Unfortunately, there is no such function only as "isArray" in JS! If you are looking on the net for "isArray" you will find a number of alternatives well...

I hope this helps.
Luis

Tags: Database

Similar Questions

  • Kalonline-works until I get the anti-piracy icon so stop saying: there is a problem with the function of anti-hacking

    I play kalonline (RPG game), when to start the game it works up until I get the anti-piracy icon so stop saying: there is a problem with the function of anti-hacking. the program stops. I am the admin of it say kal computer run it in administrator mode and I did and I delete and reinstall the game. Solve the problem in win 7 by a right click and run as administrator, they wanted to work in win xp it all fits on how to solve this problem. These are the things, I was told to do to fix it.
    Hello

    It comes to KalOnline.

    Your error message can be corrected by following these steps:

    1. run KalOnline in Administrator Mode.

    2 uninstall KalOnline d_lete the entire Inixsoft folder, then reinstall the game.
    I did it and and it has not worked. then I was told that this was causing the problem

    Please check your computer system.

    This problem has occurred by a kind of problem of piracy.

    And if you have used a kind of memory-editing program, it could be happen too.

    So if your receipt similar to, then please remove it.
    I have none of these things on my computer. All I know is that people who have not updated windows xp can play the game and people who win 7 can play the game if they right click icon and run as administrator, that I still say side here but no way to prove it.

    Hello

    I suggest you to get in touch with the manufacturer of games and see if there are any other fix for this problem.

  • Having the problem with the function on SG300 Dhcp / 500?

    Having the problem with the function on SG300 Dhcp / 500? now I can use the dhcp server on the two model, but have a problem.

    My problem is when I create

    VLAN 1: 192.168.0.1/24 dhcp pool 192.168.0.10 - 250

    VLAN 10: 192.168.10.10 - 250 192.168.10.1/24 dhcp pool

    case 1

    I plug the pc to vlan 1 can I get ip 192.168.0.11. But when I change this pc to a new port in vlan 2 I always get the same ip address. why I can not get IP of vlan2.

    case 1

    I plug the pc to vlan 2 I can get ip 192.168.10.11. But when I change this pc to a new port in the vlan 1 I always get the same ip address. why I can not get IP of vlan1.

    but when I have access to the switch and remove the link after that that i will get correct IP.

    I think this is the bug of this firmware. Could you help this case.

    This is a known bug that is the setting of Cisco

    Sent by Cisco Support technique iPad App

  • Problems with the graphic driver for Elitebook 8460p

    Hello

    I m of the problems with the Elitebook 8460p driver display. The latest version (15.28.20.64.3347), published on 16 June 2014 have some problems on the laptop. When the laptop is running on battery screen suffers from flicker and damaged graphics, as you can see in this video:

    https://www.YouTube.com/watch?v=gQ1w0aOaF7A

    (you can see the flickering between 0:20-0:22)

    I contacted with support local hp and send me a COMPUTER technician, who has changed my motherboard and CPU, but nothing worked. I tried to contact with intel for support (the issue is present with drivers intel non - oem), but they are sending me to the OEM. I would like to have a real driver that works with the system (3347 is a driver of the year), is it possible?

    This isn´t of question at all in linux drivers, more change motherboard I totally ignore a hardware problem.

    I can provide feedback to any solution.

    Thank you!

    Another update:

    Found a solution to this thread (which I started) in the forums of intel:

    https://communities.Intel.com/thread/48327?start=0&TSTART=0

  • Problem with the function keys

    Hi a few days ago my computer did an automatic update of windows.  This combination of time keyboard shortcuts in my Microsoft Flight Simulator 2004 have changed.  For example, ctrl + any Fkey and shift-several different keys do not work.  Some commands are not options in games keyboard assignments.

    Is there a way to restore my original keyboard settings?

    Thank you...

    Are you sure that Windows Update caused this?

    Restore your computer (by using the system restore) to a previous state - before you install the updates and see if it restores the 'fn' and other features with FS 2004.

    See http://support.microsoft.com/kb/306084 (assuming you are using Windows XP, because the game is compatible with XP and legacy OS)

    If restore fixed the problem with the keys on the keyboard and FS2004, manually install the updates one: after the installation of each update, restart the computer, try to play the game and check if the problem reappears at all.

    This, until you have installed all Windows updates.

    MRI!

  • Issue of 'no networks detected. Problems with the AR5BWB222 driver for WiFi adapter. Help, please!

    Hi all

    I need your help!

    then a few days ago my wifi started playing on my acer Windows 8 V5-552 and I have decided to update the driver for the card. I did this by unistalling and re-istalling the driver for the Atheros AR5BWB222 map I downloaded from this site acer very (it turns out it's the same version), now I have no WiFi connection at all (I am currently using ethernet cable but I need to be mobile around the House!). Troubleshooting does not help and said "there could be a problem with the driver for the WiFi card" and when I click fix problem there is no NOTHING (why did even give the option?). Did a system restore and that didn't work because of my antivirus and there still nothing when I turned antivirus off the coast. Then I read a lot of forum preveous questions on this driver and no solutions helped, maybe because everything is last year.

    I really want to avoide a factory reset as I have some programs here that will be very difficult to acquire again.

    If you're still here after my speech, I am greatfull and also want your knowledge and advice about this superior! Please help me!

    What antivirus program you are wrong with turning off? I know that some may be stubborn. If the AV program refuses to turn off this feature with a selective startup in MSCONFIG, then you can try to uninstall it completely in the PANEL. Then try to restore to the previous new date

    Jack E/NJ

  • Problems with the extension manager for 2015 of CC (was: Extension Manager fails to load products)

    Can Hi anyone help me understand what could be the problem with my extensions Manager. I just installed or rather updated all my apps, including extensions through the CC Manager Manager. After updated all my applications, I think I lost all my extensions on Photoshop CC 2015. So I tried to reinstall the extensions Manager and update it, but the problem seems to be it seems to take on Photoshop, which makes it difficult for me to install new extensions. Is there something escapes me?

    Hi Didier,.

    See a related discussion on the same topic: Re: Extensions CC2015 gone

    I heard the team there are some problems with the Add-ons and the command line tool, and the team is trying to solve. I'll let you know as soon as I have an update.

    See Adobe Exchange for official communication on the extensions Manager.

    Thank you

    Preran

  • Problems with the sorting of a table with drop-down text cells

    I have 2 subjects (among a number of topics), and each section has a table.

    I followed Mr Grainge help to sort a table without an arrow and in heading 1, it does not work as expected. When I generate my WebHelp I can click on any one of my columns will sort the data. I can see the little black arrow head and black arrow head.

    I know absolutely nothing about HTML and basically followed the instructions for help and got to work.

    The second is a little different in that has 3 columns and rows about 375. The second column contains cells with the drop down text (but not all) as some have yet to be converted.

    The questions are:

    (1) a column will sort once only. So if I click on column 1, the head of black arrow appears. Subsequently, no amount of click will change the State of the data. I can sort the data on any of the 2 remaining columns, but I can never switch between ascendants and descendants of sequence on the same column.

    (2) in Design view, I see all the data in each cell. After that I generated my WebHelp, some of the cells that contain drop-down text fields are missing. Some are, and some are not. Those who are there, work perfectly when I click on the text and the text of the menu drop-down appears. Each drop-down text field has a bookmark.

    ((3) continuous on 2) above, if I use the combination of keys ctrl-w in design, some of the cells that contain text to menu drop-down are missing (probably all those lacking in the Webhelp) and oddly, some of the borders of the cells (I used light blue) are missing. However, they are there in the WebHelp. A sample is attached.

    Get my second table to work as I had hoped would be fantastic and worthwhile so far. However, I'm not quite there yet and need your help and suggestions.

    Please see the last item in the list under the Notes. I suspect this is the problem.

    See www.grainge.org for creating tips and RoboHelp

    Follow me @petergrainge

  • Problem with the timestamp in compound triggers columns

    Hello

    Information on the database:

    select * from v$version;
     
    BANNER                                                                        
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production    
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE 11.2.0.2.0 Production                                                        
    TNS for Linux: Version 11.2.0.2.0 - Production                                  
    NLSRTL Version 11.2.0.2.0 - Production
    
    
    

    Question:

    I created a trigger on the table t1 (with a timestamp column) to insert its data changes in table t2 (with another column of timestamp).

    For some reason any if t1 table has a column whose data type is timestamp, the trigger returns null for: NEW. Value of col1.

    create table t1(
    col1 timestamp(6)
    );
    /
    create table t2(
    col1 timestamp(6)
    );
    /
    create or replace trigger trg_on_t1 for insert on t1
    compound trigger
    after each row is
    begin
      insert into t2(col1) values(:NEW.col1);
    end after each row;
    end trg_on_t1;
    /
    insert into t1(col1) values(systimestamp);
    /
    select * from t2;
    /
    COL1                         
    -------------------------------
    (null) 
     
     select * from t1;
     /
    COL1                         
    -------------------------------
    27-MAY-14 10.57.29.123779000 PM
    
    

    As you see on the two latest select statements, given in table t2 appears with the value null, even if the current timestamp value is present in the t1 table.

    I have a feeling that this is a bug and want to see if there is no work around.

    Thanks for your help.

    Hello

    Ravikumar.SV wrote:

    Hello

    ... I have a feeling that this is a bug and want to see if there is no work around.

    I agree.

    I got the same results (or lack thereof) like you.  Then I added a call to dbms_output.put_line, just to make sure that the trigger is pulled, and then he started to do the INSERTION in t2.

    create or replace trigger trg_on_t1 to insert on t1

    trigger composed

    After that each row is

    Start

    dbms_output.put_line (: NEW.col1 | =: NEW.col1 in trg_on_t1');

    insert into t2 (col1) values(:NEW.col1);

    After each line.

    end trg_on_t1;

    /

    A workaround is to use a simple trigger.

  • Having a problem with the addition of dynamic table in Dreamweaver CS6 with MySQL

    Hello, I am new get here. So my question is this:

    I have sccesfully has created a MySQL user table and a register and Login Page and the Page count of the user can update his information etc etc. But my problem is this, I created another table in MySQL, which the user can add his cars (brand, model and year of manufacture) and I've linked this table to the table user with a foreign key using user name as primary key for table use and as a foreign key to the table of cars. My question is how to display the data for each user so that each user will be able to see its records in this table. Every help is appreciated.

    Thank you for your time and help!

    I think it works, simply change to the highlighted

    $colname_CarUsers = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_CarUsers = [["" UserID""]]; $row_User

    }

    @mysql_select_db ($database_MyCOnnection, $MyCOnnection);

    $query_CarUsers = sprintf ("" SELECT * FROM cars WHERE UserID = %s ORDER BY ASC CarBrand ", GetSQLValueString ($colname_CarUsers,"int")");

    $query_limit_CarUsers = sprintf ("%s LIMIT %d, %d", $query_CarUsers, $startRow_CarUsers, $maxRows_CarUsers);

    $CarUsers = mysql_query ($query_limit_CarUsers, $MyCOnnection) or die (mysql_error ());

    $row_CarUsers = mysql_fetch_assoc ($CarUsers);

  • Problems with the function document XSL Transformation on OSB

    I'm trying to use the xsl document feature in my XSLT file to perform a transformation on the Bus of Service Oracle (version 11.1.1.4), but I see the following error message when you run the sbconsole test (just to test the transformation currently).

    Execution of the XSLT error: com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Validation of XSLT Project1/xslt/iso-3-to-iso-2-lookup.xml: XSLT Project1/xslt/iso-3-to-iso-2-lookup.xml does not exist has failed

    The error indicates the file XML I'm referencing from the XSLT that does not exist in the specified folder, I confirmed that the file exists and we tried to move to other places and chaning the location of reference in the XSLT, but the error persists (with location of update). Anyone know if the XSL document function is supported for the transformations on the OSB or if there is something special that needs to be done so that the OSB can refer to the XML file properly?

    Here is the code snippet of the xslt file that launches a call using the XML file:
    ...
    < xsl: output method = "xml" encoding = "UTF-8" Indent = "Yes" omit-xml-declaration = "yes" / >
    "< xsl: Key name="ISO-3-to-ISO-2-lookup ' match = 'country' use = "iso3" / >
    "< xsl: variable name="ISO-3-to-ISO-2-Lookup "select ="document('iso-3-to-iso-2-lookup.xml')/ISO-pays"/ >
    < xsl: template match = "/ xx - xxxx:SyncSearchRequest" >
    < ns0:Search >
    ...

    Here is an extract from the XML file that I use as the lookup table:
    ...
    ? XML version = "1.0"? >
    < ISO-country >
    AF < country > < iso2 > < / iso2 > < AFG iso3 > < / iso3 > < / country >
    < country > < iso2 > AX < / iso2 > < ALA iso3 > < / iso3 > < / country >
    < country > < iso2 > AL < / iso2 > < ALB iso3 > < / iso3 > < / country >
    ...

    Thanks for any help.

    In OSB, document() function needs the path absolute XML file. So if you want to access the XML document for the search, you should place the XML file on the server itself and use the path of the XML file.

    Although it is not a good approach for the management of the OSB research. The type of Document XML resource must not be used for these use cases. What you can do is create an XQuery query that can server as a DVM.
    Here is an example on how to use DVMs in OSB:
    https://blogs.Oracle.com/christomkins/entry/domain_value_maps_in_oracle_se

    If you do not want to use XQuery and want to rely only on XSLT, then in the same document XSLT to create a separate model that can store all the data of research.

  • I can't see a message from my Union because of problems with the address changed for pop-upwindows and some other issues

    Hello
    I am from Sweden and I have problems with a Web site that has my Union. I could see messages from them before, but they changed their address and on the site, they say people that they must put the new address on the approved list of the pop-up windows. I did but it still does not. Maybe I did wrong, I don't know, but it's annoying as hell that I can't see the messages they send.

    I really need help with that.

    Best regards
    Lena

    You can control and manage permissions for all areas on the Subject: authorizations page.

    You can delete all data stored in Firefox with a specific area through "Forget this Site" from the context menu of the history entry (see the history or the history sidebar) or via the subject: permissions page.

    Using "Forget this Site" will delete all data stored in Firefox in this area as bookmarks, cookies, words of past, cache, history, and exceptions, so be careful and if you have a password or other data from this area you don't want to lose so take note of these passwords and bookmarks.
    You can't recover from which "forget" unless you have a backup of the affected files.

    It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.

  • I have a problem with the function "search".

    When I type in a file name in the search box on my WIndows 7 operating system, I started to find the info irrelevant. That is to say: I type in "To Do List" (looking for this file). Next, I get a reading of the CONTROL PANEL (1) section followed to "See the list of running gadgets" followed by a list of e-mail files.

    I started looking for a Word document and make me a bunch of info, I don't understand and no files with the appropriate words in the name of the file. Same thing happens no matter what I type in.

    Don't know when this started, he has noticed yesterday (September 18), but does not use the search function a lot so he may have been there awhile.

    In addition, what are gadgets?

    The control panel is normal; I get that too when I did the search.  Because you wanted to search for a file whose name is ' to do list', you can limit your search with the name: property.  Type:

    name: ~ = "to do list".

    Gadgets are dohickey things that appear on your desktop as something that gets information about the weather on the internet and you shows.

  • Problem with the default value for OAMessageTextInputBean to the controller layout

    Hello

    I encountered this problem when I expand a controller for the page create a work request (/ oracle/apps/eam/workrequest/webui/EAM_WR_WORK_REQUEST_DETAIL_PL). My goal is to re - fill OAMessageTextInputBean 'Additional Description' after the user clicks "Save" or "apply". When I try to change the value of another field, it works correctly, the problem persists for 'Description Addidional' more precisely. I don't know that I have the correct id (I took it from xml received by jdr_utils.printdocument). The journal does not all controllers running after the attempt to set the value.

    Compare these logs:

    [21]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, pre-added!
    [21]:EVENT:[fnd.framework.webui.OAMessageTextInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageTextInputHelper: View:null ,Attribute:EAM_WR_WORK_REQUEST_DETAIL_PL426_EamWrRqlog , Return Value without datatype conversion :4321
    [21]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, added!
    

    [Descriptive information, does not work]

    and:

    [64]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, pre-added!
    [64]:EVENT:[fnd.framework.webui.OAMessageTextInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageTextInputHelper: View:RequestDetailsVO ,Attribute:PhoneNumber , Return Value without datatype conversion :null
    [64]:EVENT:[fnd.framework.webui.OAMessageTextInputHelper]:OAF LOG: Event : Set Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageTextInputHelper: OldValue:null ,New Value:4312
    [64]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, added!
    

    [Phone number, works fine]

    Here is my code for the method of the processFormRequest controller:

    public void processFormRequest(OAPageContext pgCtx, OAWebBean wBean){
         super.processFormRequest(pgCtx, wBean);
        
         String description = pgCtx.getParameter("EamWrRqlog");
         log("Goosfraba: " + description, pgCtx);
    
         if(description != null){
              OAMessageTextInputBean additionalDescription = (OAMessageTextInputBean) wBean.findChildRecursive("EamWrRqlog");
              if(additionalDescription != null){
                   log("Goosfraba, pre-added!", pgCtx);
                   additionalDescription.setValue(pgCtx, description);
                   log("Goosfraba, added!", pgCtx);
              }
         }
    }
    

    A solution would be: -.

    1. create a transitional VO with an attribute, LongDescription.

    2 associate this attribute with the EamWrRqlog field.

    3. in the processFormRequest, set the TransientVO attribute value

  • Problems with the program monitor for 20 to 90 seconds with project started in first CC2014 using CC2015

    I'm just finishing an important project for first Pro CC2015 and it tests my patience. Whenever I do an edit simple ripple and transitions program window to view side-by-side, CC2015 PP becomes somewhat insensitive for anywhere between 20 and 90 seconds. Sometimes it does not recover at all. When I say it's a bit insensitive, I mean I can always move clips, remove clips, or manipulate the clips in any way I want on the timeline. But the program monitor just sits on that same side-by-side view. The side-by-side never displayed the images while ripple editing is performed. The source window, audio mixer and lumetri litters all stop working. But they recover before the window of the program.

    This project was launched in 2014 CC and we should never have improved while in the middle of this project, but now it's too late to go back. It does this on two PCs at work and my PC at home. I started a new project, and no problem with changes to the ripple. Although there are minor, other performance issues, more generally I'm not happy about this day with first CC 2015. I also found a CC2014 project that will not export the correct proportions using CC2015, but just, we returned to the 2014 project to continue working on it.

    Number for ripple editing, eventually everything comes back and still works, but only once so far. Only once, however, my PC completely frozen and had to be returned. I built this PC at hand and never charge anything on what I have needed for my work. This is the first time that this PC has frozen more than 3 years that I used it. Sometimes, a program crashes, but never the entire system.

    Did anyone else out there having this problem?

    MY ADVICE: Finish the projects of CC2014 on CC2014! Stick with new projects with CC2015. or just hold off on upgrading.

    Hi Lisa,

    Disable "Composite overview for Trim" in the timeline view settings and see if that helps to run.

    Your Advisor not to switch versions of the programs in the middle of a project is the RIGHT HAND RULE of THUMB of video editing. + 1 for your advice.

    Thank you

    Regalo

Maybe you are looking for