Problem with Bind Variable not updatable.

Hi all,
I'm using Jdev 11.1.2.3.0. In my VO, I created a Bind Variable and set it NOT UPDATABLE. Then I created a View Criteria with some other Bind Variables.
I use this View Criteria in a search page, but at runtime I see also an inpunt text for the variable that is set NOT UPDATABLE and I can change its value.
Of course if I try to change the value and I do the search, I get an error.
This is the VO source:
<Variable
Name="UlssVar"
Kind="where"
Type="java.lang.String"
IsUpdateable="false">
<TransientExpression><![CDATA[adf.context.current.sessionScope.get('ulss')]]></TransientExpression>
</Variable>
Is it a ADF bug?
Thank in advance.

Hi,
try selecting the bind variable and open the Property Inspector, under UI Hints, set the "Display Hint" to hide. This should hide it (No bug for this reason)
Frank

Similar Messages

  • Problem with Bind Variable in 11.2

    Hi
    I have a slow statement with bind Variables. With literals it works fine. Is there a way to replace the bind by literal in advanced ? I use Release 11.2.0.2.3
    Thank you

    904062 wrote:
    I have a slow statement with bind Variables. With literals it works fine. Is there a way to replace the bind by literal in advanced ? I use Release 11.2.0.2.3This specific scenario is very much an exception to the rule - and you need to back your statement up with execution plans of the SQL with bind variables and with literals, and run stats that show the difference between these two execution plans.
    See the {message:id=9360003} from the {forum:id=75} forum's FAQ for details on how to post a SQL performance tuning question.

  • A problem with bind variables in a shuttle

    Hi
    After days of research I cannot come up with a solution to this problem which I hope will be easy to describe.
    I'm working on an apex.oracle.com workspace (4.02).
    I have a page with
    a) a region with tree which works well populated by a list of roles and users
    b) a region with a shuttle with the following sql
    List of values
    select SOB_DISPNAME, SOB_ID
    from VIEW_SYSTEMOBJECT
    order by SOB_DISPNAME
    Source
    SELECT SOB_ID FROM VIEW_OBJECTSECURITY_GRANTED WHERE U_ID = :P19_SELECTED_ID
    :P19_SELECTED_ID is a hidden textbox with the currently selected users id.
    The above works very well - I select a user from the tree and the shuttle lhs populates with unselected object names and the rhs with objects selected for the user. A submit button drives a page process which clears out and then inserts the selection into a the table (objectsecurity)
    So far so good.
    I added a list box to the shuttle region (:P19_SOB_TYPE_LIST) so that the data being worked on could be filtered by type, its driven by a LOV that produces a value or 'PAGE', 'REPORT' ... etc.
    I updated the above SQL to be
    List of Values
    select SOB_DISPNAME, SOB_ID
    from VIEW_SYSTEMOBJECT WHERE SOB_TYPE = :P19_SOB_TYPE_LIST
    order by SOB_DISPNAME
    and the source
    SELECT SOB_ID FROM VIEW_OBJECTSECURITY_GRANTED WHERE U_ID = :P19_SELECTED_ID AND SOB_TYPE = :P19_SOB_TYPE_LIST
    So now I would expect that if 'PAGE' is selected in the list box then only objects that are pages will be seen.
    However nothing at all appears.
    If I substitute the bind variable :P19_SOB_TYPE_LIST for 'PAGE' ... WHERE SOB_TYPE = 'PAGE' it works perfectly. So why does :P19_SELECTED_ID do it's job but not P19_SOB_TYPE_LIST ?
    I am probably making some ridiculously simple mistake but I just cannot spot it; is my syntax wrong?.
    The session state is persisting so that I can see the value of :P19_SOB_TYPE_LIST being set to PAGE
    Any help with this would be very much appreciated.

    Hi Dirk
    Thanks for that which looked promising!
    I added P19_SOB_TYPE_LIST as the Cascading LOV Parent Item and removed it from the where clauses of both SQL's and the result was that all types are shown; corresponding to my original position.
    I then added the where clause back to the LOV SQL and both shuttle boxes are blank again
    I added back to the source SQL and again both boxes empty
    Finally I removed the where clause from the LOV SQL (the only other combination) and again lhs box populated with all rows (not filtered) and rhs box blank.
    So unfortunately that doesn't seem to have fixed it.
    Many thanks for the help and any more will be greatly appreciated.
    Regards
    Charles

  • Problem with bind variable in subselect

    Using the Oracle 9i JDBC Driver and a query of the form:
    select * from atable a where a.thing = ? and a.id in (select id from btable where b.something = ?)
    via a PreparedStatement, the second parameter is not being set correctly. The query executes but does not return the expected results. If I hard code the param value into the query it works fine. I think the second parameter is being set to an empty string (hence the query executes OK but no results returned). This seems to be peculiar to bind variables in sub-selects.
    Has anyone else encountered this problem?

    ps.setLong(1, along);
    ps.setString(2, astring);
    I've checked this against different driver versions. It's OK with the 10.2 driver but fails with the 10.1. So I've moved to the 10.2.

  • I have a problem with the iPhoto not updating after the hard drive recall.

    The iPhoto with not update after doing the Hard Drive Recall. It keeps saying I don't have the right ID. I have tried resetting all my passwords and no change. What do I need to do to fix this problem?

    Which OS version did you have when you acquired iPhoto and was it on a DVD (iLife) or did you download it from the app store initially?
    And, last question, did you skip Mavericks? Mavericks owners were given the opportunity to update iPhoto to an app store version free of charge; if you skipped it and do not have a backup or the installer DVD or purchased a new computer recently, then you'll need to purchase it.

  • Problems with transformation; infoobject not updated in DSO.

    Hi all,
    We are having some problems with one of our transformations between PSA and DSO.
    Suddenly some of the fields are not filled in the DSO. The mapping for field Sales order number worked fine, and then I added an infoObject in the DSO to hold the info for Sales order item. I also replaced the infoobject that was supposed to hold the sales order number. After this, none of the two fields has any data in DSO. I checked the PSA, and the data is available here. I tested the rule in ‘Rule details’ and for sales order number it gives the correct result, but for sales order item it gives a runtime error; assertion failed. I checked on SAP Notes, and found 929934. But the corrections are already added in our system.
    Has anyone got any ideas on what to do?
    BR,
    Linda

    Hi,
    There are a number of problems in Transformation when either a source field or target field is changed.
    This can lead to inconsistent transformation.
    You can raise a message to SAP or best thing is if possible delete the Transformation and create a new one.
    Regards,
    Nitin

  • Problem with bind variable

    Hi,
    I need to get bind variables on SIEBEL to test the performance of query and my problem is on BIND :3 because it's impossible to interprete this.
    NAME     POSITION     LAST_CAPTURED     VALUE_STRING
    :1     1,00     02/17/2010 11:54:25     1-15BVYY
    :2     2,00     02/17/2010 11:54:25     
    :3     3,00     02/17/2010 11:54:25     W1B 1AH%
    :1     1,00     02/17/2010 12:48:04     1-15BVYY
    :2     2,00     02/17/2010 12:48:04     
    :3     3,00     02/17/2010 12:48:04     TQ3 3BJ%
    Thanks for your help

    I have no erros.
    I just want to get the real value of bind variable to run my query, but the problem is on bind 2.
    When i run this
    select name,position,last_captured,value_string
    from DBA_HIST_SQLBIND
    where sql_id='&SQLID'
    i obtain this
    NAME     POSITION     LAST_CAPTURED     VALUE_STRING
    :1     1,00     02/17/2010 11:54:25     1-15BVYY
    :2     2,00     02/17/2010 11:54:25     
    :3     3,00     02/17/2010 11:54:25     W1B 1AH%
    :1     1,00     02/17/2010 12:48:04     1-15BVYY
    :2     2,00     02/17/2010 12:48:04     
    :3     3,00     02/17/2010 12:48:04     TQ3 3BJ%
    What is the value of bind :2
    Thanks

  • Problem with bind variable in a procedure

    Hi Experts,
    I'm migrating forms from 5 to 6i. And in most of the forms I'm getting the error in the procedure "G$_KEY_OPT_MENU".
    This is the most common error I'm getting in almost like 30 forms.
    The error is:
    Error 49 at line 21, column 3
    bad bind variable "SELECT_ITEM"
    Error 49 at line 22, column 3
    bad bind variable "SELECT_ITEM"
    Error 49 at line 21, column 3
    bad bind variable "OPT_SEL"
    Error 49 at line 21, column 3
    bad bind variable "OPT_SEL"
    Error 49 at line 50, column 3
    bad bind variable "SELECT_ITEM"
    PROCEDURE G$_KEY_OPT_MENU (ITEM_NAME_IN IN CHAR,
                               SEL_A_DESC IN CHAR,SEL_A_KEY IN CHAR,
                               SEL_B_DESC IN CHAR,SEL_B_KEY IN CHAR,
                               SEL_C_DESC IN CHAR,SEL_C_KEY IN CHAR,
                               SEL_D_DESC IN CHAR,SEL_D_KEY IN CHAR) IS
         ITM          VARCHAR2(1);
         DESC_VAR     VARCHAR2(36);
         KEY_VAR      VARCHAR2(30);
         ITEM_ID      ITEM;
    BEGIN
      ITEM_ID := FIND_ITEM(NAME_IN('SYSTEM.CURSOR_BLOCK')||
                   SUBSTR(NAME_IN('SYSTEM.TRIGGER_ITEM'),
                   INSTR(NAME_IN('SYSTEM.TRIGGER_ITEM'),'.'),
                   INSTR(NAME_IN('SYSTEM.TRIGGER_ITEM'),'_LBT')-1 -
                   INSTR(NAME_IN('SYSTEM.TRIGGER_ITEM'),'.')+1));
      IF ID_NULL(ITEM_ID) THEN
         IF G$_DISPLAY_ALERT('','The Button you pressed is outside the current block') IS NOT NULL
            THEN RAISE FORM_TRIGGER_FAILURE;
         END IF;
      END IF;
      :SELECT_ITEM := '';
      :OPT_SEL := '';
      For Loop and some conditions, setting properties.
      GO_ITEM('G$_OPT_BLOCK.OPT_SEL');
      :SELECT_ITEM := ITEM_NAME_IN;
    END;Edited by: user12290512 on Mar 14, 2011 2:16 PM

    FRM-18108: Failed to load the following objects.Source Module:GOQOLIB
    Source Object: G$_WARNING_ALERT
    Source Module:GOQOLIB
    Source Object: G$_OPT_BLOCK
    Source Module:GOQOLIB
    Source Object: G$_OPT_CANVAS
    Source Module:COQOLIB
    Source Object: CTRDETC_CHG_LOV
    Source Module:GOQOLIB
    Source Object: GUROPTM_LOV
    Source Module:COQOLIB
    Source Object: CTRDETC_PMT_LOV
    Source Module:COQOLIB
    Source Object: CBBDACC_ACCOUNT_ID_LOV
    Source Module:COQOLIB
    Source Object: CBBDACC_ACCOUNT_ID_RG
    Source Module:COQOLIB
    Source Object: CTRDETC_PMT_RG
    Source Module:COQOLIB
    Source Object: CTRDETC_CHG_RG
    Source Module:GOQOLIB
    Source Object: GUROPTM_RG
    Source Module:GOQOLIB
    Source Object: G$_NVA_LOV
    Source Module:GOQOLIB
    Source Object: G$_NVA_BUTTON_ITEM
    Source Module:GOQOLIB
    Source Object: G$_NVA_TEXT_ITEM
    Source Module:GOQOLIB
    Source Object: G$_OPT_WINDOW
    And all the source objects listed above are in GOQOLIB form. >
    This is "KEY" piece of information that should have been included in your original post. As you are fairly new to the Oracle Forums, you might want to take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    These threads will help you ask more thorough questions! The more information you can provide about the issue you are having the better able we (the community) are to give you a solution. ;-)
    Craig B-)
    Edited by: CraigB on Mar 15, 2011 9:27 AM

  • Problem with arrays - variable not been inicializes

    I've declared my array ;
    int[] array ;
    int intefer;
    BufferedReader stdin = new BufferedReader(new InputStreamReader( System.in ));
    intefer = stdin.readLine();
    array[0] = intefer; --> variable array might not have been initialized.
    Can you please help me ? Why is the error occuring ?

    array[0] = intefer; --> variable array might not have been initialized.
    Can you please help me ? Why is the error occuring ?An array is an object; all object should be instantiated by use of the 'new'
    operator. You never instantiated such an object and therefore never
    initialized your 'array' variable.
    kind regards,
    Jos

  • Has anyone had a problem with fcp x not playing back a project since installing 10.0.9 update?

    Has anyone had a problem with fcp x not playing back a project since installing 10.0.9 update?

    Not here;  updated three systems without issues.
    Can you provide more details on your system specs, the projects you're referring to, and what kind of behavior you're encountering?
    Russ

  • Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    First, confirm that ActiveX Filtering is configured to allow Flash content:
    https://forums.adobe.com/thread/867968
    Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
    You can try to work around these issues by using Compatibility View:
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    If that is too inconvenient, using Google Chrome may be a preferable alternative.

  • Hello, I have a problem with iPhone 5c softhware update ( The iPhone "iPhone" could not be restored. An unknown error occurred (27))

    Hello, I have a problem with iPhone 5c softhware update ( The iPhone "iPhone" could not be restored. An unknown error occurred (27))

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    The" may need service' meand there is a hardware problem. In that case make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • HT1338 has anyone else had problems with their mail not loading properly and the multi gestures stopped working on their mac pro after new updates?

    has anyone else had problems with their mail not loading properly and the multi gestures stopped working on their mac pro after new updates?

    Have you tried calling Apple tech support?
    http://www.apple.com/contact/

  • Detail view with bind variable. TreeTable not showing all detail result.

    I’m having trouble with treeTable using detail view with bind variables and where clause defined in VO definition.
    Both, master and detail view objects, base on the same entity and have the same condition in where clause. The view objects also have bind variables, which are set in prepareRowSetForQuery() method.
    Again, these are two different views, that get different result, based on value of one of the bind variable.
    When I show results in two different tables on jsf page, where master table has "RowSelection" set on "single", all results are displayed in detail table.
    But when I use treeTable, only the first result of the detail is shown.

    I tested it in applicationModule and it works, but i think that's the same as two tables on a jsf page.
    This is the order in which overridden methods are called in ADF BC or two tables on jsf page
    when clicking on row in master table.
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;  -> print of the object2[] parameter in executeQueryForCollection
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035313 -> viewLink parameter value
    getEstimatedRowCount_Detail
    count: 2
    getEstimatedRowCount_Detail
    count: 2 And when i click on "expand node" in tree table:
    getEstimatedRowCount_Root
    count: 2
    PrepareRowSetForQuery_Detail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035321
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035313
    getEstimatedRowCount_Root
    count: 2
    getEstimatedRowCount_Root
    count: 2
    getEstimatedRowCount_Root
    count: 2
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035313
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035321
    getEstimatedRowCount_Root
    count: 2
    getEstimatedRowCount_Root
    count: 2Values of user parameters are OK. Is there another method that i should override?
    I also noticed, that if detail view doesn't have user bind variables, the tree works fine and is shown even in ADF BC (aplication module).
    I guess we loose a tree, when using bind variables in detail view object.
    Is there a way around it?

  • Bind variable not declared - please help

    Hello,
    I have wrote a PL/SQL script to update some order_id's in a table. I have declared all my variables but get an error -- bind variable not declared. Can anyone tell me what the problem might be?
    DECLARE
             last_ship      DATE ;
             last_order     NUMBER;
             last_cust      NUMBER;
    VARIABLE curr_item      NUMBER;
    VARIABLE curr_order     NUMBER;
             aorder_id      CHAR(6);
             aitem_id       CHAR(2);
             acust_id       NUMBER(6);
             aship_date     DATE;
    CURSOR c1 IS
          SELECT 
                  order_id,
                  item_id,
                  ship_date,
                  cust_id
          FROM
                  test_sales
          ORDER BY
                  1,2,3,4,5;
    BEGIN
          SELECT
                  MAX(order_id)
          INTO
                   curr_order
          FROM
                   sales_order;
    OPEN c1;
         LOOP
             FETCH c1 INTO aorder_id, aitem_id, aship_date, acust_id;
             EXIT WHEN c1%NOTFOUND;
               last_cust      := c1.cust_id;          -- Saves the last values to check if processing same order
               last_order     := c1.aorder_id;        --
               last_ship      := c1.aship_date;       --
               IF c1.aorder_id = last_order AND c1.cust_id = last_cust AND c1.ship_date = last_ship THEN
                  curr_item   := curr_item  +1;
                  UPDATE test_sales SET c1.aorder_id = :curr_order;
                  UPDATE test_sales SET c1.aitem_id  = :curr_item;
               ELSE
                  curr_order := curr_order + 1;
                  curr_item  := 1;
                  UPDATE test_sales SET c1.aorder_id =  :curr_order;
                  UPDATE test_sales SET c1.aitem_id  = :curr_item;
               END IF; 
        END LOOP;
    CLOSE c1;
    END;
    /Cheers
    Mike

    check yours code you are direct accesing cusrsor named directly which is not allowed
      1  DECLARE
      2  vemp  emp.empno%TYPE;
      3  vemp1 emp.empno%TYPE;
      4  CURSOR c1 IS SELECT empno FROM emp;
      5  BEGIN
      6   OPEN c1;
      7    LOOP
      8     FETCH c1 INTO vemp;
      9     EXIT WHEN c1%NOTFOUND;
    10     vemp1:=c1.empno;
    11    END LOOP;
    12   CLOSE c1;
    13* END;
    SQL> /
       vemp1:=c1.empno;
    ERROR at line 10:
    ORA-06550: line 10, column 14:
    PLS-00225: subprogram or cursor 'C1' reference is out of scope
    ORA-06550: line 10, column 4:
    PL/SQL: Statement ignored
    SQL> DECLARE
      2  vemp emp.empno%TYPE;
      3  CURSOR c1 IS SELECT empno FROM emp;
      4  BEGIN
      5   OPEN c1;
      6    LOOP
      7     FETCH c1 INTO vemp;
      8     EXIT WHEN c1%NOTFOUND;
      9    END LOOP;
    10   CLOSE c1;
    11  END;
    12  .
    SQL> /
    PL/SQL procedure successfully completed.Yours code
    OPEN c1;
    LOOP
    FETCH c1 INTO aorder_id, aitem_id, aship_date, acust_id;
    EXIT WHEN c1%NOTFOUND;
    last_cust:= c1.cust_id;
    last_order:= c1.aorder_id;
    END LOOP;
    CLOSE c1;
    END;You sholud move it c1.cust_id within fetch statment or
    bind the cursor name with another local cursor variable
    then fetch into this local bind variable and use cursor
    via this variable
    e.g
    DECLARE
    CUSRSOR c1 IS SELECT cust_id,aorderid
        FROM <TABLE>;
    c2      c1%ROWTYPE;
    OPEN c1;
    LOOP
    FETCH c1 INTO c2;
    aorder_id:=c2.aorderid;
    last_cust:= c1.cust_id;
    last_order:= c1.aorder_id;
    END LOOP;
    CLOSE c1;
    END;Khurram

Maybe you are looking for

  • I can't upgrade itunes 10.5 to 11.7, it says it can't find 'itunes.msi'

    I can't upgrade itunes 10.5 to 11.7, it says it can't find 'itunes.msi'

  • Too much email GB usage

    I have an iPhone 5 with iOS 7.0.6 recently updated. I'm getting messages that I'm running out of memory. When I check the "usage" in the General section, I find that I have a a huge GB usage (2.2 GB of 11.4 GB used) in email despite the fact that I r

  • Insert object (pdf) in excel getting error. need help

    When we try to insert a PDF file as an object we get the error. could not load object. This is what we are doing insert - object - create from file - display as icon. We select the file and get the error. We are on a windows 7 64-bit system with Offi

  • Re: EBuynow Complaint

    I wonder is Ebuynow in receivership or bankrupt, as it appears to be impossible to get any response from them. I ordered a Freetalk Desk Phone in mid October. It did not arrive and I was assured that it would be delivered sometime in December. Eventu

  • Extract schema/metadata - names for all tables and attributes

    Hi, I am quite new to Oracle DB (only been doing dev mostly with sqlserver before). Is there a way to extract schema (names for all tables and attributes) for 10g and 11g in application code (either java or .net) or pl/sql? Thank you, -Tony