Problem with the use of the value of State of Session to fill a Dropdown LOV

Hi friends,

I have 2 items in an HTML area of a page of the APEX.

Item1 is of type, SELECT LIST WITH re - DIRECT

Item2 is of type, SELECT LIST to SUBMIT

I try to use the value of Item1 session state in the query LOV for Item2. I could check the session has the value of the SESSION of the developer for item1; Item2 LOV query toolbar when I'm trying to make use of the same with bind variable notation, this isn't work (LOV is not filled for Item2)

I checked and found that no information is cached.

However, I tried the same steps in apex.oracle.com and find that it works.

Can someone please suggest any control.

Basically, I'm trying to fall downwards according to the entry of a drop down beforehand. Please suggest alternatives.

Thanks in advance...

Hello
OK, in my opinion your redirection does not record your first Lov session state.
You can use in waterfall Lov (search this forum, it has been discussed many times then there is JavaScript Api and jQuery ability to the Apex)
In addition, Carl Backstrom has in its samples this:
http://Apex.Oracle.com/pls/OTN/f?p=11933:37

Using jQuery, you can get a lot more quick result.
You can see some examples here in this application: http://apex6.revion.com/pls/apex/f?p=AUTO:ETUSIVU
There are a lot of Lovs cascade, I won't go into the details yet.

I think that the best approach for you now is to change the two Lovs to select the list to submit.
Then change your after submit process to draw on the status 'request = Expression 1' and 1 Expression as your second name of Lov (ex. P1_MY_LOV2)

It's the same if you do the following: lovs are select list
(no redirect or submit).
Then put in the HTMl Form element attributes: onchange = "doSubmit ('ACTION1'); "in the first Lov and onchange ="doSubmit ('ACTION2'); "in the second Lov.
Then change your submit after process to shoot the status 'request = Expression 1' and 1 Expression be ACTION2

This means that your process will run on Lov 2 changes only.

When you use select with Submit, it does the same thing, but the request is hardcoded for the item id
by apex.

Kind regards
Oleg

Tags: Database

Similar Questions

  • SQL statement to filter with the value of State of Session

    Hello..
    I need to filter a SQL statement with an application retrieved from session state item value. I guess I could do this using a dynamic Action on a Page load event, but I don't know where to go from here. How could I add the filter to a report page existing SQL statement?

    Reference should / could be exactly like you reference page elements. I use the: variable_name format myself.

    If you are satisfied, please mark as answer.

    Best wishes,
    Howard

  • Problem with the Value property node (MacOS)

    Insofar that I tested it, the nodes of property Value (and value (signalling)) do not work under MacOS: value property is a Boolean value, the value (signaling) as a cluster (width, height).

    Even with the Boolean controls, the node does not work.

    Not such a problem in LV 8.6.

    Am I missing something? Is that some 'of use' ? Or just a bug?

    This looks like some sort of problem of indexing with the nodes property as somesort of corrupted installation.  What happens if you just delete the property node and recreate him?

    I filed a digital control and looked at the context menu of the list of the nodes property.  Below value and value (signs) are Visible (which would be a Boolean value) and Xcontrol, that when you bring through the submenus, the first choice is container bounds, a cluster of Width and Height.  If these 2 types of data which are located 2 below in the list match those you found.

    What happens if you take another node in property a few elements upwards or downwards in the context menu?  Fact is happen for other properties, and if so, are thereany properties who agree?

    Here's what look like my property for a digital nodes and I draggged the box up and down to show the natural order of the nodes property.  Notice that I have script installed, so there are a few other nodes property (and the blue box at the top) you may not have.

    PS. Verify you the signature.  Kudos button is now moved to the left since the update of the forum.

  • Problem with the value by defect of the shuttle and transfer to the following site

    Hi alltogether.

    We have a problem with a shuttle service on a page at the Apex.

    The shuttle is filled by a pl/sql in a database and then wanted the values that are already in the database for that user defined by default on the right side of the shuttle.

    For the satisfaction that we used the way mentioned in the blog here:
    http://dgielis.blogspot.com/2008/01/Apex-by-example-default-value-of.html

    It worked well.

    Now we have a problem, and somehow, we can't find a solution here in the forum, or through google.

    By clicking Next, to have passed on to the next page in the workflow the default values sort are removed.

    If I look in the Session before the transfer, I see IDS are loaded as default values, but after clicking Next, the validation gives an error (the shuttle is not allowed to be null) and then the IDS are deleted when the session...

    We don't know where it comes from and hopefully someone here might be able to help us...

    Greetings
    Chris

    P.s: Don't mind my English please is not my native language

    Chris,

    As you say NOT NULL validation fails, but the session shows the values before you hit the other, pick up a calculation process or submit before calculations and Validations that might be reset the shuttle.

    Have you tried running the page with debug and observing the execution path?

    If no aid above maybe you can do a test on apex.oracle.com case?

    Kind regards

  • Problem with the value of the checkbox and app.settings.getSetting)

    Hello everyone.

    I have a problem with is settings saved for checkbox.

    Saved settings does not apply on the value of the checkbox.

    It's strange, but it always 'true '.

    Here is piece of code:

    checkMe = 11;    //any value for the first time running
    
    
    if (app.settings.haveSetting("savea", "chck")) {                            
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                            }
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
                            }
         alert("Yes, checkMe will = "+checkMe)        
        
        
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    
    var fff = win.checkPanel.chkOne.value;  // string for alert
     alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    
    
    
    
    win.checkPanel.chkOne.onClick  = function () {
            
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              }
    
    

    win.checkPanel.chkOne.value is always true.

    Can anyone exmplain why and how to get rid of this static value?

    P.S. just in case, here's the complete code:

    function mainFun() 
    {
    
    
        this.windowRef = null;
    }
    
    
    
    
    mainFun.prototype.run = function()
    {
        
        /*----- UI -----*/
              var retval = true;
              var win = new Window("palette", "Check option", [150, 150, 460, 455]);
              this.windowRef = win;
    
    
        
              win.checkPanel = win.add("panel", [25, 150, 285, 265], "Checkbox");
              win.checkPanel.chkOne = win.checkPanel.add("checkbox", [10, 15, 125, 35], "Checkbox One");
              //win.checkPanel.chkTxtOne = win.checkPanel.add('edittext', [140, 15, 230, 35], '');
    
    
         win.quitBtn = win.add("button", [110,275,200,295], "Close");
    
    
    checkMe = 11;    //any value for the first time running
    
    
    if (app.settings.haveSetting("savea", "chck")) {                            
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                            }
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
                            }
         alert("Yes, checkMe will = "+checkMe)        
        
        
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    
    var fff = win.checkPanel.chkOne.value;  // string for alert
     alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    
    
    
    
    win.checkPanel.chkOne.onClick  = function () {
            
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              }
    
    
    
    
    
    
              win.quitBtn.onClick = function() { 
                  win.close(); 
              }
    
    
        win.center();
              win.show();
    
    
              return retval;
      
    }
    
    
    if(typeof(mainFun_unitTest) == "undefined") {
        new mainFun().run();
    }
    
    

    A quick glance, I'd say it's because when the pref that is saved as a string, so after having read it you must control if (checkMe == 'true') rather than check it out as a Boolean value.

  • Problem with the value of the temperature on the NI 9217

    Hello

    I have a thermocouple NI 9217 RTD module and I have a thermocouple Pt100 ohm (4-wire). I connect to the module and I got themperaure-240 degrees, but it should be something about 24 degrees and more. I checked all the channels that 3 those who show the same, but we show + 314 degrees. Could someone explain to me where I did mistake?

    Kind regards

    Kamil

    OK, finally I got it. I measured the resistance on the wires and I checked that is interconnected. Then I plugged those who did not have any vales set. RTD - and more RTD + must be connected with those giving about 100 ohm together (my case). Then Ex must be connected with the one who don't give not any what vales with RTD +. The reverse is with COM, that he could not give any vale with RTD-. In this way, I found where the problem was. What is odd with another system I plugged in a totally different way, but the explanation for connections is the same.

    In any case thanks for them interesting.

  • Problem with the value of the variable

    My apologies for my mistakes, I learn the pl/sql as I need to fix something at work that broke.

    I have this piece of code:
    DECLARE
        l_x_contract VARCHAR2(100);
    BEGIN
    SELECT DISTINCT wiav.text_value
           INTO l_x_contract
       FROM apps.wf_item_attribute_values wiav
          , apps.wf_item_attributes wia
          , apps.wf_items wi
          WHERE wiav.item_type = wia.item_type
        AND wi.item_type = wiav.item_type
        AND wi.item_key = wiav.item_key
        AND wiav.NAME = wia.NAME
        AND wiav.text_value IS NOT NULL
        AND wiav.item_type = 'POAPPRV'
        AND wia.NAME = 'X_CONTRACT_IN_PLACE'
        AND wi.user_key = TO_CHAR(l_this_doc_num);
    EXCEPTION
     WHEN no_data_found THEN     
         l_x_contract := 'OLD';
         INSERT INTO XX.XTMP(l_id, l_name, l_value) VALUES (APPS.XSEQ.NEXTVAL, 'l_x_contract no_data_found', l_x_contract);
         COMMIT;
    END;
     
    IF l_x_contract = 'N' THEN
         l_supplier_flagged := FALSE;
    END IF;
     
    IF l_x_contract = 'Y' THEN
         l_supplier_flagged := TRUE;             
    END IF;
     
    IF l_x_contract = 'OLD' THEN
         l_supplier_flagged := l_supplier_flagged;                  
    END IF;
     
    INSERT INTO XX.XTMP(l_id, l_name, l_value) VALUES (APPS.XSEQ.NEXTVAL, 'l_x_contract end', l_x_contract);
    COMMIT;
    When it works, and I then select * from XX. XTMP, I see this:
    l_id  | l_name                       | l_value
    -----------------------------------------------
    1     | l_x_contract no_data_found   | OLD
    2     | l_x_contract end             | 
    That means that, in the block code BÉGIN knows the value of "l_x_contract".

    Outside the block, to the point where insert the 2nd debug runs, he doesn't know the value of "l_x_contract", so not the value in the table of debugging for the 2nd insert.

    I naively tried to change the upper block to:
    DECLARE
        l_x_contract VARCHAR2(100);
    BEGIN
    SELECT DISTINCT wiav.text_value
           INTO l_x_contract
       FROM apps.wf_item_attribute_values wiav
          , apps.wf_item_attributes wia
          , apps.wf_items wi
          , po.po_headers_all pha
      WHERE wiav.item_type = wia.item_type
        AND wi.item_type = wiav.item_type
        AND wi.item_key = wiav.item_key
        AND wiav.NAME = wia.NAME
        AND wi.user_key = pha.segment1
        AND wiav.text_value IS NOT NULL
        AND wiav.item_type = 'POAPPRV'
        AND wia.NAME = 'X_CONTRACT_IN_PLACE'
        AND wi.user_key = TO_CHAR(l_this_doc_num);
        RETURN l_x_contract;
    EXCEPTION
    WHEN no_data_found THEN
        l_xccc_contract := 'OLD';
        RETURN l_x_contract;
        INSERT INTO XX.XTMP(l_id, l_name, l_value) VALUES (APPS.XSEQ.NEXTVAL, 'l_x_contract no_data_found', l_x_contract);
        COMMIT;
    END;
    But which returns this error:
    PLS-00372: In a procedure, RETURN statement cannot contain an expression
    After google, I think I need to create a function to return something, because it is not possible to include a return in my block.

    Is this fair? Is there no other way for the block to do the rest of the code to know what is the value of the l_x_contract, other than using a function? I tried to write a function, but made a total mess of it.

    All advice very much appreciated and all my apologies for being useless, lazy, stupid etc etc.

    Thank you

    As you say, this is an excerpt of a procedure in a package, I think that the procedure has a similar structure.

    PROCEDURE x
       variable declarations
    BEGIN
       some code
       DECLARE
          l_x_contract VARCHAR2(100);
       BEGIN
          SELECT text_value
       EXCEPTION
       END;
       IF l_x_contract = 'N' THEN
       . . .
       END IF;
    END IF;
    

    If my explanation is correct. Then, the l_x_contract variable is visible between the DECLARE and END after the exception block. Just move the declaration of l_x_contract to the section of the main statement of the procedure (where I have some variable declarations in the skeleton above), then lose the stated total. You can have a block of end of the exception to start anywhere without needing a declaration block.

    John

  • Problems with the restoration of a previous session

    Hello! Earlier today, I closed my window with the option "save the tabs for the next time." I then restarted my Firefox and all I got was a blank white screen. I waited for awhile and then closed the window. When starting Firefox again once, I looked at the option "recently closed windows" and it is the normal color of black, not gray. When I moved to select, it did not bring the list of my windows closed, but a very very small white box. Clicking on it did nothing. I tried to go to about: sessionrestore, but the box had no option in it at all. Nothing to click or highlight. I read a little on similar issues, and I backed up all my "sessionstore" type options in the profile folder just to be safe. I tried the method of the first name change the sessionstore.js to sessionstore.old and took the file sessionstore.bak - 20132025151332 and replacing the .js .bak. No luck. I also tried to delete the original .js file and try again the .bak to step .js. I have to do something wrong, because whenever I have restart Firefox, all I get is the start page. I activated the option "when Firefox starts, show my windows and tabs from last time '. It is said that the original .bak file is dated 11/04/2013, and I also have a file sessionstore-1 dated 6. The original .js is dated from 10. Any help is very appreciated! It is quite upsetting to lose so many important tabs. Also, my computer is running Windows XP. Thank you very much!

    If the sessionstore.js file is corrupted, then you may not be able to restore this session

    There are a few examples of how extract a sessionstore.js file links in this mozillaZine forum thread.

    In case you use "clear history of Firefox closing:

    • do not erase browsing history
  • Problems with the implementation of State machine enemies spawn

    Hi guys,.

    I am developing my own 2D shoot-em - up and using a book called "The essential guide to Flash games" as reference to create my own state machine enemies spawn where the game keep enemies spawning (game will always until the player dies). I tried to trigger each enemy spawn that occur at the level of the game with a variable called 'chance '.

    With my current attempts, the game does not an enemy and does not other or not spawning all enemies at all. I was wondering everyone here has suggestions/advice for this question, I will have?

    Here is the sample code from the book that I used:


    public void Main()
    {
    Level = 1;
    score = 0;
    chance = 0;


    enemies = new Array();
    makeEnemies();

    }

    public function makeEnemies (): void {}
    var chance: Number = Math.floor (Math.random () * 100);
    var tempEnemy:MovieClip;
    If (< 2 + level of luck)
    tempEnemy = new EnemyImage()
    tempEnemy.y = 435;
    tempEnemy.x = Math.floor (Math.random () * 515)
    addChild (tempEnemy);
    Enemies.push (tempEnemy);
    }
    function checkCollisionWithEnemies(bullet:MovieClip)
    {
    If (enemy.meter.width < 1)
    {
    Enemy.Stop ();
    swapProperies (enemy, b);
    removeChild (enemy);
    enemy = null;
    level ++;
    }

    Occurring in the book lines:

    "var chance: Number = Math.floor (Math.random () * 100);"
    "If (< 2 + level of luck).

    should create + 2 enemies according to the level of the game, but no enemies to reproduce at all. I also tried a different method with "if (level > = 1)" but that creates a single enemy.

    Anyone have any suggestions of what I'm doing wrong? Any help would be greatly appreciated.

    Thank you

    Jonesy

    > is not new spawning enemies when the former enemies are killed

    You have nothing to create new enemies in the function "checkCollisionWithEnemies()".

    > three enemies are created in the beginning instead of one

    The for () loop based on makeEnemies() is configured to run 3 times (I I = 0, 1, 2)

  • Problem with the simple Select statements

    Hi experts,

    I have with SQL Server and I'm going to hurt when I use the similar syntax in sqlplus to query an Oracle table.

    For example... my table contains column SCHID SET in the numeric form. Table has thousands of lines and the SCHID column is filled.

    Select TOP 100 AFTSCHAUXDATA SCHID;

    Get the "Word FROM key not found where expected" error

    Select DISTINCT from AFTSCHAUXDATA SCHID;

    Download "no selected lines.

    Can someone help me please?

    Thank you, John

    Can someone tell me how to find the names of the 20 largest tables (bigger which means that most of the files)?

    Once you have updated statistics on the table, you can query the DataDictionary: USER_TABLES/ALL_TABLES/DBA_TABLES.
    I'm assuming that user_tables will do:

    select *
    from ( select table_name
           ,      num_rows
           from   user_tables
           order by num_rows desc nulls last
         )
    where rownum <= 20; 
    

    You can find more explanations about the DataDictionary in the Oracle Online Documentation.
    Just do a quick and easy search
    http://www.Oracle.com/pls/db112/homepage
    or
    http://www.Oracle.com/pls/db102/homepage
    Depending on your version of the database.

  • Problem with the update CFQUERY statement

    I can't get an SQL Update statement works correctly and I am scratching my head as to why.

    The result I get is:

    Syntax error in UPDATE statement

    SQLSTATE 42000
    "SQL UPDATE businesses SET CompanyName ="Insight Data Ltd", Address1 =" 5 Boulevard", address2 =", Address3 = ", city ="Weston-super-Mare", County is"North Somerset", postal code ="BS231NN", OfficeBranch ="BR", contacttitle1 = 'Mr', contactname1 is"Andrew", contactsurname1 ="Scott", contactposition1 ="Owner", mail1 = 'Yes', TelNumber = ' 01934 123456 ', GST = 'no', number of Fax =", FPS = "no", phone =", MPS = 'no', email = '[email protected]', EPS = 'no', Adresse_web =' http://www.insightdata.co.uk', = 'Mr' contacttitle2, contactname2 is"David", contactsurname2 ="Lewis", contactposition2 =" Office Manager " mail2 = 'no', contacttitle3 = 'Mr', contactname3 = ", contactsurname3 =", contactposition3 = "Owner", mail3 = 'no', contacttitle4 = 'Mr', contactname4 = ", contactsurname4 =", contactposition4 is 'Owner', mail4 = 'no', wPVCUfab = 'Yes', wALUinst = 'yes', WHERE companyid = 33415 information
    VENDORERRORCODE-3503
    Idv6 DATA source

    I checked all the data fields are in the correct format, and I don't see why I'm getting a syntax error. Any help on this would be appreciated

    Okay, but it looks like you already have the sql code. Take the query in the error message above and run it in your database. However, I have noticed have a comma between the last column and there WHERE clause.

    wALUinst = 'Yes', WHERE the companyid = 33415 information

    For optional columns, put the first comma to avoid errors due to the leak, or too many commas

    UPDATE Table
    SET column1 = 'value '.
    , Column2 = 'another value '.
    WHERE ID = 123

    Two other points to consider: use cfqueryparam and consider to normalize your table. The names of column as to Contact1, Contact2, Contact3... usually is a sign of his time to normalize.

  • problem with the order of statements

    Hello

    I know that, in the declaration section, the cursor should be at the top of the statement and only then I can declare the internal procedures, functions etc.
    But what happens if in this slider, I need the result of the internal function said after the cursor? The cursor does not see this feature because is declared after.
    How do I write this slider, is it possible?

    Thank you!

    The SQL engine is aware of the standalone procedures and functions as well as public packet methods. He is not aware of the private methods in a package or nested procedures & functions. The PL/SQL engine always runs all PL/SQL blocks, it's just a question of which blocks exposes it PL/SQL in SQL engine.

    If you need to call a nested function or a private function declared in your package, it is normally relatively simple just call the function in an iteration on the cursor rather than in the cursor declaration itself, i.e.

    declare
      l_dname dept.dname%type;
      cursor employees is
        select *
          from emp;
      function get_dname( p_deptno in number )
        return varchar2
      is
        l_dname dept.dname%type;
      begin
        select dname
          into l_dname
          from dept
        where deptno = p_deptno;
        return l_dname;
      end;
    begin
      for i in employees
      loop
        l_dname := get_dname( i.deptno );
      end loop;
    end;
    /
    

    rather than trying to call the GET_DNAME procedure in the context of the cursor EMPLOYEES.

    Justin

  • Problem with the bulk loading IOM account to AD

    Hi all

    I'm doing a loading block account for AD in IOM. I followed all the steps in the oracle documentation.

    I entered the user in the format of CSV file data. Data in the example are given below:

    Primary data in the Table:
    UD_ADUSER_UID, UD_ADUSER_FNAME, UD_ADUSER_LNAME, UD_ADUSER_ORGNAME, UD_ADUSER_BNUMBER, UD_ADUSER_OBJECTGUID
    TWoods, Tiger, Woods, "' 22 ~ CN = Users, DC = gkidmsolutions, DC = com", B000004, 104 "
    TCruise, Tom, Cruise, "" 22 ~ CN = Users, DC = gkidmsolutions, DC = com ", B000005, 105"
    WSmith, Will, Smith, "' 22 ~ CN = Users, DC = gkidmsolutions, DC = com", B000006, d149e9add00198469b1ebef579911024 "

    Data in the Child Table:
    UD_ADUSER_UID, UD_ADUSRC_GROUPNAME
    TWoods, ' 22 ~ CN = users, CN = Users, DC = gkidmsolutions, DC = com ".
    TCruise, ' 22 ~ CN = users, CN = Users, DC = gkidmsolutions, DC = com ".
    WSmith, ' 22 ~ CN = users, CN = Users, DC = gkidmsolutions, DC = com ".

    All of these users are already available in both IOM and AD. I am trying to establish links between these users through loading bulk. I am able to load bulk account using the IOM bulk load utility. After loading bulk accounts, when I go to the tab the user resources, I see a user resource AD for the respective users with the status 'Configured'.

    However, the problem is when I try to update any user information through the process of the object resource AD shape, this not updated for AD. An exception mentioned below can be seen in newspapers. Looks like the loading block creates a map that can be seen from front end, but in fact, he is not pointing the user to the AD. Am I missing something? Help me!

    *********************************************************************************************************************************************
    "Current execution LOCKUNLOCKADADAMUSER
    Target class = com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > <>=
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: unlockADUser: the user could not unlocked >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < =.
    >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < = start the Stack Trace = >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: unlockADUser >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < String index out of range:-1 >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < Description: String index out of range:-1 >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < java.lang.StringIndexOutOfBoundsException: String index out of range:-1
    at java.lang.String.substring(String.java:1931)
    at java.lang.String.substring(String.java:1904)
    at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.unlockADUser (unknown Source)
    at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.lockADorADAMUser (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSLOCK_UNLOCKUSER. LOCKUNLOCKADADAMUSER (adpADCSLOCK_UNLOCKUSER. Java:163)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSLOCK_UNLOCKUSER.implementation(adpADCSLOCK_UNLOCKUSER.java:61)
    at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2919)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:553)
    at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
    at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostUpdate(tcOrderItemInfo.java:374)
    at com.thortech.xl.dataobj.tcDataObj.update(tcDataObj.java:664)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:508)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:710)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy341.setProcessFormDatax (Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.__WL_invoke (unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.setProcessFormDatax (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    to $Proxy178.setProcessFormDatax (Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    to $Proxy337.setProcessFormDatax (Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData (unknown Source)
    at com.thortech.xl.webclient.actions.UserDefinedFormAction.editForm(UserDefinedFormAction.java:2033)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(tcLookupDispatchAction.java:133)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(tcActionBase.java:894)
    at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:213)
    at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
    at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
    at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1914)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:463)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:78)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:122)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:108)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < = end of stack memory trace = >
    EXECUTEREMOTESCRIPT running
    Target class = com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks
    "# SessionContainer:valueUnbound: expired Session of the name of the event is: Xellerate.Session.

    Looks like a problem with the value of the UD_ADUSER_LOCKED field. Change to retry and value non-zero.

  • I am facing a problem with the beep.vi. I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound.

    I am facing a problem with the beep.vi.  I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound. Everything works fine except the sound alarm. It gives the table 1 d of type mismatch. I tried to fix this by placing it in a box structure. But it still does not work. If someone could help? Please find attached my VI. Best wishes to all visitors to the Forums of Discussion OR.

    Ihab El-Sayed

    published here: http://forums.ni.com/t5/LabVIEW/Playing-sound-based-on-exceeding-a-threshold-value-1D-array-data/m-p...

  • Problem with the format of the values in the command prompt (when you use multiple values)

    Hi all

    I have problem with the format of the values in the command prompt when you use multiple values.

    Value is year (2009) and when I use it in the drop-down list that is formatted, all right, as 2009, but when I use several values I get number as 2009,00. I put in year column format number with 0 decimal places and save by default in the year column. Year is formatted well anywhere in the query, such as 2009. Why is - what happens at the command prompt when you choose multiple values in prompt dashboard?

    Thank you

    I think the YEAR Data Type could be defined DOUBLE RPD.

    Use the CAST function in the formula (fx) and the output from test.

    CAST (INT YEAR)

    Hope, it will help you.

Maybe you are looking for