Bind variable problem in cascading LOVs

Hi,
after upgrade from APEX 3.0 to 3.1 all my cascading LOVs stopped working correctly. First level LOV is OK, but the second level LOV, which contains a bind variable in its SQL code, fails. Debugging shows that the bind variable referrencing to the value of the first level LOV is empty. It has worked without problems in 3.0. The bind variable format is traditional :ITEM
This is an example of the LOV SQL:
SELECT PSKUP_CZ display_value, ID return_value
FROM PSKUP
WHERE sk_id = :P1_SKUP
ORDER BY 1
Where :P1_SKUP refers to the vaule of the top level LOV.
In Oracle® Database Application Express Release Notes Release 3.1 in chapter "3 Open Bugs and Known Issues", I've only found a short remark called "Problems with Queries Containing a Bind Variable and a String with Two Dashes". The recommended solution here was to use v('P18_X') instead of :P18_X
I tried that but with no effect on my problem.
Anybody has similar experience? Any workarounds?
Thanks in advance,
Zdenek

Hi Zdenek,
DV, NV, V are an optional component of the ApexLib framework. Actually they don't have anything to do with the framework itself.
Because of the nature of this functions they have to have a hard coded reference to the FLOWS_XXX schema, but which causes problems if APEX is upgraded to a new version and the functions are not altered.
I will probably removed them from the installation instructions or add a big remark that they have to be altered after an upgrade, because this kind of threads are re-occurring after each new released APEX version.
Thanks
Patrick
My APEX Blog: http://inside-apex.blogspot.com/
The APEX Builder Plugin: http://builderplugin.oracleapex.info/ New
The ApexLib Framework: http://apexlib.sourceforge.net/

Similar Messages

  • Bad Bind Variable Problem

    Hi
    I am trying to create a trigger and facing Bad Bind Variable problem.
    Plz let me know, what's the problem in this trigger.
    CREATE OR REPLACE TRIGGER Tender_tax_update AFTER
    INSERT
    OR UPDATE
    OR DELETE OF ITEM_QTY,ITEM_RATE,TENDER_ACC_QTY ON TENDER_ENQUIRY_ITEM_D REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    Declare
         v_amt TENDER_VENDOR_TAX_D.TAX_AMOUNT%TYPE;
         v_tax_ty TENDER_VENDOR_TAX_D.TAX_TYPE%TYPE;
         v_tax_cd TENDER_VENDOR_TAX_D.TAX_CODE%TYPE;
         v_ven_cd TENDER_VENDOR_TAX_D.VENDOR_CODE%TYPE;     
         v_item_cd TENDER_VENDOR_TAX_D.item_cd%TYPE;     
         v_tenno TENDER_VENDOR_TAX_D.tender_enquiry_no%TYPE;
    Begin
         if inserting then
              v_tax_ty:=:new.TAX_TYPE;
              v_tax_cd:=:new.TAX_CODE;
              v_ven_cd:=:new.vendor_code;
              v_item_cd:=:new.item_cd;
              v_tenno:=:new.tender_enquiry_no;
    select TAX_AMOUNT into v_amt from TENDER_TAX_DETAILS where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
    update TENDER_VENDOR_TAX_D set TAX_AMOUNT=v_amt where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
         end if;
    End Tender_tax_update;
    Database deails are as follows:
    TENDER_VENDOR_TAX_D
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE NOT NULL VARCHAR2(4)
    TAX_CODE NOT NULL VARCHAR2(4)
    PERCENTAGE NUMBER(5,2)
    TAX_AMOUNT NUMBER(15,2)
    ITEM_CD NOT NULL VARCHAR2(10)
    TAX_FLAG VARCHAR2(1)
    TAX_TYPE CHAR(3)
    TENDER_TAX_DETAILS
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE VARCHAR2(4)
    ITEM_CD VARCHAR2(10)
    TAX_CODE NOT NULL VARCHAR2(4)
    TAX_TYPE CHAR(3)
    TAX_AMOUNT NUMBER
    Message was edited by:
    user648065

    facing Band Bind Variable problem.Doesn't the error message tell you which bind variable is the problem?

  • Need help in Bind variable in AF Query LOV

    Hi,
    i have one problem with bind variable, if i use bind variable in the LOV VO Query then my result is not coming, if there is not bind variable it's working fine and if i use the bind variable in the LOV search option then it's working fine but if i hide the bind variable and set the value in AM prepareSesstion method the LOV is not returning any value. I try to return the values also all values are also coming but those values are not setting to AF Query Attribute.
    Query is:
    select substr(d.description,0,40) description
    from cm_system_users a,
    cm_user_responsibilities b,
    cm_responsibility_processes c,
    cm_processes d
    where a.nt_login =:B_NT_LOGIN
    and a.user_id = b.user_id
    and trunc(sysdate) between b.eff_date and nvl(b.exp_date,sysdate + 1)
    and b.RESPONSIBILITY_ID = c.RESPONSIBILITY_ID
    and c.process_type = d.process_type
    and d.enabled_flag = 'Y' order by d.arguments_flag
    AM Method:
    CmProcessViewImpl vo = getCmProcessView();
    String nt_login = getUserPrincipalName();
    vo.setNamedWhereClauseParam("B_NT_LOGIN", nt_login.toUpperCase());
    vo.executeQuery();
    Can any one help me in this. it's urgent for me.

    This is a little underdescribed. IIUC, the view object in question is being used as a target for a view accessor, correct? (Otherwise you'll have to be more explicit about what you mean by "Query LOV".
    If I'm right, there are two possibilities:
    1) You are using a VO instance in a shared application module instance. If so, make sure your code is in the prepareSession() for that application module class if it's session dependent (as it seems to be below), you need to make sure the application module instance is shared at session scope.
    2) You've based the view accessor directly on the VO definition. This basically creates an anonymous VO instance; I don't think there's any way to use prepareSession() to set a bind variable on such an instance (which won't be created until the accessor is first used). You might be able to get by with putting similar code into the view object class' create() method, but I haven't tested this.
    If your code is in your primary application module class (as opposed to the class for a shared AM instance), the problem here is that getCmProcessView() returns the VO instance from that application module instance's design-time data model, which is never used by view accessors.
    By the way, why do you need to do this in prepareSession() instead of at the view accessor level? I believe you can get the logged in user name (for the view accessor) in with the groovy expression
    viewObject.DBTransaction.session.userPrincipalName
    or possibly just
    DBTransaction.session.userPrincipalName
    (despite this involving DBTransaction, it returns the web app user name, not the DB username).
    That's a 100% declarative solution, if you don't count the Groovy expression as non-declarative.
    If you're afraid of a user executing the LOV (somehow) before the bind variable value gets set, just ensure that the bind variable is marked "required".

  • Bind Variable Problem

    Hi Guys
    PLease i am really stuck
    i have a LOV which has a complex query...
    in that query there are multiple bind variables that are assigned... ie :1 , :2 and so forth
    here is the query for the LOV
    SELECT a.kri_description, a.kri_id
    FROM xx_key_result_indicators a, xx_kri_positions b
    WHERE TO_DATE (:1, 'DD-MON-YYYY') BETWEEN a.effective_from_date
    AND a.effective_to_date
    AND TO_DATE (:2, 'DD-MON-YYYY') BETWEEN b.effective_from_date
    AND b.effective_to_date
    AND a.kra_id = :3
    AND a.kri_id IN (
    SELECT c.kri_id
    FROM xx_kri_positions c
    WHERE TO_DATE (:4, 'DD-MON-YYYY')
    BETWEEN c.effective_from_date
    AND c.effective_to_date
    AND c.position_id = :5
    AND c.enable_flag = 'Y')
    AND b.position_id = :6
    AND a.enable_flag = 'Y'
    AND b.enable_flag = 'Y'
    AND a.kri_id NOT IN (SELECT NVL (g.kri_id, 1)
    FROM xx_perf_kri g
    WHERE g.perf_kra_id = :7)
    UNION
    SELECT f.kri_description, f.kri_id
    FROM xx_key_result_indicators f
    WHERE TO_DATE (:8, 'DD-MON-YYYY') BETWEEN f.effective_from_date
    AND f.effective_to_date
    AND f.kra_id = :9
    AND f.kri_id NOT IN (SELECT e.kri_id
    FROM xx_kri_positions e)
    AND f.enable_flag = 'Y'
    AND f.kri_id NOT IN (SELECT NVL (d.kri_id, 1)
    FROM xx_perf_kri d
    WHERE d.perf_kra_id = :10)
    so in theroy when i push the tourch icon next to my text field i set these bind variables...
    so in theroy that should work,,, but becuase i have a lov the framework will automatically assign extra where clause params for the filter.... and the query will look as follows
    SELECT *
    FROM (SELECT a.kri_description, a.kri_id
    FROM xx_key_result_indicators a, xx_kri_positions b
    WHERE TO_DATE (:1, 'DD-MON-YYYY') BETWEEN a.effective_from_date
    AND a.effective_to_date
    AND TO_DATE (:2, 'DD-MON-YYYY') BETWEEN b.effective_from_date
    AND b.effective_to_date
    AND a.kra_id = :3
    AND a.kri_id IN (
    SELECT c.kri_id
    FROM xx_kri_positions c
    WHERE TO_DATE (:4, 'DD-MON-YYYY')
    BETWEEN c.effective_from_date
    AND c.effective_to_date
    AND c.position_id = :5
    AND c.enable_flag = 'Y')
    AND b.position_id = :6
    AND a.enable_flag = 'Y'
    AND b.enable_flag = 'Y'
    AND a.kri_id NOT IN (SELECT NVL (g.kri_id, 1)
    FROM xx_perf_kri g
    WHERE g.perf_kra_id = :7)
    UNION
    SELECT f.kri_description, f.kri_id
    FROM xx_key_result_indicators f
    WHERE TO_DATE (:8, 'DD-MON-YYYY') BETWEEN f.effective_from_date
    AND f.effective_to_date
    AND f.kra_id = :9
    AND f.kri_id NOT IN (SELECT e.kri_id
    FROM xx_kri_positions e)
    AND f.enable_flag = 'Y'
    AND f.kri_id NOT IN (SELECT NVL (d.kri_id, 1)
    FROM xx_perf_kri d
    WHERE d.perf_kra_id = :10)) qrslt
    WHERE (( UPPER (kri_description) LIKE :1
    AND ( kri_description LIKE :2
    OR kri_description LIKE :3
    OR kri_description LIKE :4
    OR kri_description LIKE :5
    not that now there are bind variable 1 through to 10 and then 1 through to 5...
    the error i am getting is not all variables bound exception..
    please if anyone could help....
    Thanks

    I am new to OA Fwk, but I am Expert of java, J2EE.
    My solution will work fine in pure java.
    I am sure same should work in OA also.
    But I never experimented it. Give it a try
    Lets take a select query:
    select my_col from my_table where clo1 = :1 and col2 = :1
    In this query there is only one bind varible ":1" in the world of PL/SQL.
    But for there are two bind varibales you need to set them two times.
    in java you will do
    stmt.setString(1, myval);
    stmt.setString(2, myval);
    Now coming to your query.
    It has 10 +5 total 15 bind variables and you need to set 15 but not 10.
    For all practicle purposes assume that :1 or :2 or :3 is equivalent to ?
    Thus your select query is equivalent to
    SELECT *
    FROM (SELECT a.kri_description, a.kri_id
    FROM xx_key_result_indicators a, xx_kri_positions b
    WHERE TO_DATE (?, 'DD-MON-YYYY') BETWEEN a.effective_from_date
    AND a.effective_to_date
    AND TO_DATE (?, 'DD-MON-YYYY') BETWEEN b.effective_from_date
    AND b.effective_to_date
    AND a.kra_id = ?
    AND a.kri_id IN (
    SELECT c.kri_id
    FROM xx_kri_positions c
    WHERE TO_DATE (?, 'DD-MON-YYYY')
    BETWEEN c.effective_from_date
    AND c.effective_to_date
    AND c.position_id = ?
    AND c.enable_flag = 'Y')
    AND b.position_id = ?
    AND a.enable_flag = 'Y'
    AND b.enable_flag = 'Y'
    AND a.kri_id NOT IN (SELECT NVL (g.kri_id, 1)
    FROM xx_perf_kri g
    WHERE g.perf_kra_id = ?)
    UNION
    SELECT f.kri_description, f.kri_id
    FROM xx_key_result_indicators f
    WHERE TO_DATE (?, 'DD-MON-YYYY') BETWEEN f.effective_from_date
    AND f.effective_to_date
    AND f.kra_id = ?
    AND f.kri_id NOT IN (SELECT e.kri_id
    FROM xx_kri_positions e)
    AND f.enable_flag = 'Y'
    AND f.kri_id NOT IN (SELECT NVL (d.kri_id, 1)
    FROM xx_perf_kri d
    WHERE d.perf_kra_id = ?)) qrslt
    WHERE (( UPPER (kri_description) LIKE ?
    AND ( kri_description LIKE ?
    OR kri_description LIKE ?
    OR kri_description LIKE ?
    OR kri_description LIKE ?)))
    you need to set the values in the order in which bind varibale appear in select query

  • Query Bind Variables problem

    I have a ViewObject with bindvariable GroupnameItemname.
    In JHeadstart AppDef this item is not bound to model, but included in Quick Search and Advanced Serach, as in "7.2.5. Using Query Bind Variables in Quick or Advanced Search"
    First I get an error saying GroupnameItemname*Var* is not found on ViewObject, so I changed the bindvariables to GroupnameItemnameVar
    Is something changed here? We are using JHeadstart 10.1.3.3.75 / JDeveloper 10.1.3.4.0
    After changing the bindvariablename I have another problem:
    I get an error in JhsApplicationModuleImpl.advancedSearch on these lines:
    boolean isBindParam = !viewCriterium.isAttributeBased();
    AttributeDef ad = isBindParam ? null : vo.findAttributeDef(attribute);
    The first line returns false for my bindvariable, so the second line raises an error like "JBO-25058: Definition <attr> of type Attribute not found in <VO>".
    In QueryCondition:
    public boolean isAttributeBased()
    return def!=null; //but def is not null here, it is an instance of DCVariableImpl
    This used to work in previous versions of JHeadstart...
    Please help,
    Greetings HJH

    In my MyApplicationModuleImpl (which extends JhsApplicationModuleImpl) I did override advancedSearch.
    Copied the code from JhsApplicationModuleImpl and changed a few lines:
    After
    sLog.debug("executing advancedSearch for " + viewObjectUsage);
    ViewObject vo = getViewObject(viewObjectUsage);
    I added:
    //clear bindParams:
    String[] attrNames =
    vo.getNamedWhereClauseParams().getAttributeNames();
    for (int i = 0; i < attrNames.length; i++) {
    vo.setNamedWhereClauseParam(attrNames\[i\], null);
    sLog.debug("bindParam leeggemaakt: " + attrNames\[i\]);
    And a bit later in the method I made a changed as follows:
    // boolean isBindParam = !viewCriterium.isAttributeBased();
    boolean isBindParam = viewCriterium.getName().endsWith("Var");
    A bit crude, but worked for me...
    Cheerio,
    HJH
    Edited by: HJHorst on Mar 19, 2009 1:56 PM (had to escape square brackets...)

  • Bind variable problem when renaming page items?

    APEX 2.1 on IE6.
    I'm having trouble with bind variables. I cannot reproduce this regularly, but I notice it from time to time. Basically, certain page items will simply refuse to hold their contents, even though the debug output says :
    0.03: Saving g_arg_names=P9_XYLOPHONE_XYLOPHONE and g_arg_values=hello
    0.03: ...Session State: Save "P9_XYLOPHONE_XYLOPHONE" - saving same value: "hello"
    Whenever I reference the variable (using :, V(), NV(), or &.) I get NULL. None of the output indicates that it was changed elsewhere. I've noticed that changing the name of page item influences this. Shorted names tend to cause fewer problems.
    I can't be more specific, as I can't figure out the pattern. Has anyone else noticed this?
    Cheers.

    hi dccase
    couldnt get what the documentation says with APP_SESSION to work.
    http://aae18331:8089/apex/f?p=102:3:$APP_SESSION.::3:MY_ITEM:315
    However the following which i guess assumes the default session worked
    =====================================================
    http://aae18331:8089/apex/f?p=102:3::::3:MY_ITEM:315
    cheers
    shaunak

  • Bind variable problem in a procedure

    Hi,
    Is there any way I can pass a parameter in a procedure as we do in sql plus (for example where date = &date).
    I have a procedure that is somewhat similar to this...
    select (field 1, field2...
    from table1, table 2....
    where ....
    and ..
    and v_fiscal_year (here I want the bind variable)
    UNION
    select (field 1, field2...
    from table1, table 2....
    where .....
    and ..
    and ..
    and v_fiscal_year (here I want the bind variable)
    I need to register this procedure in oracle apps as a concurrent program where a user should be able to provide value for fiscal_year and then write the file out in a text file.
    Thanks
    A/A

    What you've shown isn't a procedure, but is a query.
    I assume your "field1", "field2" within the query means that you are expecting to be able to create a dynamic SQL from parameters passed into a procedure.
    For that you will need to use DBMS_SQL package to create and execute a dynamic query or use the EXECUTE IMMEDIATE statemetn to execute a query built up in a string. Note however, that dynamic SQL is inherently bad practice and should only ever be used as a last resort. What exactly are you trying to achieve as there are likely to be better ways of doing it?

  • User Report data bind variable problems

    Hello,
    I am trying to build a simple report in SQLDeveloper, using a DATE bind variable. But it fails with the error message:
    Inconsistent datatype, expected DATE got NUMBER
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = trunc(:TARGET_DATE)
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    Running this query in SQLDeveloper worksheet executes properly after a dialog box pops up and I enter: current_date - 1
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = trunc(&TARGET_DATE)
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    I've searched but no clear solutions present themselves. If you have one it would be most appreciated.
    Thanks

    You'll have to convert the input to date yourself:
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = TO_DATE(:TARGET_DATE, 'DD/MM/YYYY')
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    Have fun,
    K.

  • Bind variables problem, very urgent

    hi,
    Oracle gurus,
    In my current project while executing the following ststement i am getting the run time error"ORA-01008: not all variables bound".
    This statement is used inside of a procedure and some bind arguments have values and some arguments have NULL values.
    EXECUTE IMMEDIATE ' insert into trn_billtask
    (area_id,
    asn_no,
    batch_no,
    cases_per_pallet,
    color_zone,
    comp_id,
    cube,
    currdate,
    eachs_per_case,
    ebiz_sku_no,
    ebiz_user_no,
    footage,
    hazmat_flag,
    home_zone,
    intf_conf_flag,
    line_no,
    location,
    lp,
    merge_flag,
    no_of_cases,
    no_of_units,
    packcode,
    po_line_no,
    po_no,
    putaway_strategy,
    qty
    ,rcv_type,
    site_id,
    sku,
    skudesc1,
    skufam,
    skugroup,
    sku_status,
    status_flag,
    task_date,
    task_desc,
    task_type,
    type_stor_equip,
    uom_id,
    wght)
    select null,
    rh.rec_no,
    p.lot,
    pr.each_qty,
    sl.color_zone,
    ''MR'',
    pr.unit_cube*(nvl(p.qty,0)/nvl(pr.each_qty,1)),
    sysdate,
    pr1.each_qty,
    p.prod_no,
    1,
    nvl(sl.wdth,0) * nvl(sl.dpth,0),
    decode(s.haz_mat_class,null,''N'',''Y''),
    sl.home_zone,
    ''N'',
    r.line_no,
    p.end_loc,
    p.lp,
    nvl(p.access_aisle,''N''),
    round(nvl(p.qty,0)/nvl(pr.each_qty,1)),
    1,
    p.pkg_no,
    r.p_line_no,
    rh.po_no,
    r.putaway_strategy,
    p.qty,
    rh.rec_type,
    ''HW'',
    s.sku,
    s.sku_desc1_35,
    s.prod_fam,
    s.prod_cat,
    p.prod_stat,
    2,
    sysdate,
    ''Handling'',
    bt.task_type,
    nvl(sl.type_stor_equip,''100''),
    p.uom,
    pr.unit_wght*(nvl(p.qty,0)/nvl(pr.each_qty,1))
         from [email protected] s,mast_abbtype bt,mast_company bc,[email protected] pr,[email protected] sl,
         [email protected] r,[email protected] rh,[email protected] p,[email protected] pr1
         where p.end_time is not null
              and decode(bt.comp_id,null,:p_comp_id,bt.comp_id)= :p_comp_id
              and decode(bt.site_id,null,:p_site_id,bt.site_id)=:p_site_id
              and bt.task_type = :p_task_type
              and bc.comp_id = :p_comp_id
              and p.proc_cntrl_no =r.rec_cntrl_no
              and bc.ebiz_appown_no= 40
              and bt.delete_flag=''N''
              and r.rec_cntrl_no = rh.rec_cntrl_no
              and p.proc_cntrl_no = nvl(:p_po_no,p.proc_cntrl_no)
              and p.prod_no = nvl(:p_ebiz_sku_no, p.prod_no)
              and nvl(p.prod_stat, ''~'') =nvl(:p_sku_status, nvl(p.prod_stat, ''~''))
              and p.lp = nvl(:p_lp, p.lp)
              and nvl(p.lot, ''~'') = nvl(:p_batch_no, nvl(p.lot, ''~''))
              and r.lp = p.lp
              and p.prod_no = s.prod_no
              and p.prod_no = pr.prod_no
              and p.pkg_no = pr.pkg_no
              and pr.logical_case_flg = ''Y''
              and p.end_loc = sl.loc
              and nvl(p.sku_key3,''A'') != ''1''
              and decode(''COMP'',''BYID'',s.buyer_id,s.comp_code) = bc.comp_id
              and bc.comp_id =:p_comp_id
              and r.cart_lp is null
              and trunc(p.date_time_created) between trunc(nvl(SYSDATE-10000,p.date_time_created))
              and trunc(nvl(SYSDATE,p.date_time_created))
              and trunc(p.date_time_created) >= trunc(bc.effective_date)
              and pr.prod_no = pr1.prod_no and pr.pkg_no = pr1.pkg_no and pr1.logical_plt_flg = ''Y'' '
         using p_comp_id,p_site_id,p_task_type,p_po_no,p_ebiz_sku_no,p_sku_status,p_lp,p_batch_no;
    ur suggestions r most welcome
    thanks
    RR

    Placeholders (:name) are bound by position in EXECUTE IMMEDIATE SQL statement. Hence Oracle does not consider multiple :p_comp_id in your statement to be the same thing. You would need to repeatedly bind them for each occurrence, or use an approach (DBMS_SQL.BIND_VARIABLE or EXECUTE IMMEDIATE PL/SQL block) which binds by name or position / name.
    In the case of the above example you would have a USING clause similar to the below (Note that I am unable to test this).
    EXECUTE IMMEDIATE sql_statement
       USING p_comp_id, p_comp_id, p_site_id,
          p_site_id, p_task_type, p_comp_id,
          p_po_no, p_ebiz_sku_no, p_sku_status,
          p_lp, p_batch_no, p_comp_id;

  • LOV from filtered VO (with bind variable)

    Greetings experts,
    I would really appreciate any help about this topic. I am using JDev version: 11.1.2.3.0.
    Ok, the problem is this: i have a VO, based on an EO, which have a field (type: BigDecimal). I wanted to represent this field using a LOV, which takes it's value from another VO which is query based.
    Now, if i use this field as a simple input text field everything works fine (of course). But this is not suitable from the user point of view so i wanted to use this LOV, but doing this it keeps saying the same error message while i press the createInsert button: "You must make at least one selection".
    I've come across this link during my research: ADF BUGS FACTS &amp;amp; Workarounds: Invalid values in choice lists
    So i switched in using the other type of lists mentioned in the link, but none of them works. In fact when i press the createInsert button, not just that one field, but every other field in that form (the fields from the first VO) dissapear, as they get disabled (weird). Am i missing something? If there is in fact a bug on filtered choice lists, why the other types doesn't work?
    I am not typing any code here cause i really don't understand what is the problem, so if you require it, just tell me and i'll comment back
    Thank you for your time.

    Hi,
    to initializing the bind variables used for an LOV query check this: Decompiling ADF Binaries: Initializing the bind variables used for an LOV query
    Habib

  • How to catch possible bind variable performance impact during development?

    Since producing load is a problem on development environment and the technics provided with Oracle can capture a parsing problem caused by a bind variable problem only after execution we are looking for pro-active solution like 10g compile time warnings stuff.
    Using binds can have impact on indexed skewed data columns and paritioned tables, so lets just think about a typical oltp environment with always same access path results for similar queries using bind variables.
    Using v$ views or even better dba_hist after 10g or 10046 trace are considered as re-active approaches since they can only be examined on a pre-production loaded environment.
    Is there any tool or approach you are using or may suggest?
    Thank you, best regards.
    Tonguc

    Are you using PL/SQL only?
    If so, I'd look at all the EXECUTE IMMEDIATE's and DBMS_SQL calls throughout the code and determine one by one if they pose a threat. They should be rare, so a simple search against the USER_SOURCE could be sufficient.
    Other programming languages will have different statements to watch out for.
    I am not aware of any tool that does this for you.
    Hope this helps.
    Regards,
    Rob.

  • Is there a problem using popup LOVs in a portal form with a bind variable?

    I have a portal form with 2 LOVs. The second LOV is a dependent LOV whose bind variable can be NULL. I have read Note 263923.1, "How To Create Dependent Lovs In Forms", and my form works as long as I use combo boxes to display the LOVs. I need to use popups so the user can search the LOVs as they are quite lengthy. Plus I want to be able to pick a value from my second LOV without selecting a value from the first LOV -- hence, my bind variable can be null and that is where my problem lies. As long as I select a value from the first LOV, the second LOV popup will work. If I click on the icon to display the second LOV without pre-selected a value from the first LOV, I get the following error:
    POPUP LOV ERROR:
    LOV: "9A17692880B6B8509F514F5B9CA9EC808DD403218B3CF19A33C04CD1FAB0ADE17ADC33E6B67998A933357CE5264D204E"
    Parse Message: Parse as pre-set global: "TORE".
    Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
    Query: "SELECT ...."
    wwv_bind.prepare_bind: ORA-01403: no data found
    My form is based on a table with a custom layout. The sql for the second LOV is similar to: SELECT ENAME, EMPNO FROM SCOTT.EMP WHERE (DEPTNO = :DEPT AND :DEPT IS NOT NULL) OR :DEPT IS NULL.
    Thanks in advance for any help,
    Carol

    Don't use EPS any more! It does not support transparency nor color management.
    If you save vector files from Illustrator, use AI with PDF compatiblity.
    If you save image files from Photoshop, use PSD.
    If you save image files combined with vector forms and/or text from Photoshop, use PDP which is a Photoshop PDF.
    For vectors from Illustrator use CMYK files.
    For images use RGB, conversion to CMYK should never done before PDF export, better, if the printer allows it, is to export a PDF with live transparency as it is PDF/X-4
    If the printer requires a PDF with CMYK only export a PDF/X-1a.

  • 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

  • BUG ? :  ADF creating extra VO instance using bind variables in a LOV query

    ADF 11.1.1.1.0
    After "playing around" with bind variables Setting bind variables in view objects for LOV I've come across something strange that I've reproduce using the HR schema and tables Employees and Departments. Its a bit long but here goes :
    Using the HR schema tables departments and employeesI'm trying to create a LOV (selectOneChoice) for the
    employee department, the LOV having a bind variable that limits the values returned in this case returning only DepartmentId = 50
    I've create a VO lovDepartment (not based on an EO) with the following query :
    SELECT Departments.DEPARTMENT_ID,
           Departments.DEPARTMENT_NAME,
           Departments.MANAGER_ID,
           Departments.LOCATION_ID
    FROM DEPARTMENTS Departments
    where DEPARTMENT_ID  = :pDeptIdA LOV has been defined on the DepartmentId attribute of the EmployeesView.
    The lovDepartmentImpl overrides the executeQueryForCollection to set the bind variable value.
        @Override
        protected void executeQueryForCollection(Object object, Object[] object2,
                                                 int i) {
            setNamedWhereClauseParam("pDeptId", "50");       
            super.executeQueryForCollection(object, object2, i);
        }When using an ADF form to create a new employee the DepartmentId lov is empty.
    Enabling SQL tracing shows the following :
    [370] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.doSetWhereClause(-1, pDeptId, null)
    [371] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.execute caused params to be "un"changed
    [372] Column count: 4
    [373] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.doSetWhereClause(-1, pDeptId, null)
    [374] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1 ViewRowSetImpl.setNamedWhereClauseParam(pDeptId, 50)
    [375] ViewObject: _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1 Created new QUERY statement
    [376] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1>#q computed SQLStmtBufLen: 235, actual=195, storing=225
    [377] SELECT Departments.DEPARTMENT_ID,
           Departments.DEPARTMENT_NAME,
           Departments.MANAGER_ID,
           Departments.LOCATION_ID
    FROM DEPARTMENTS Departments
    where DEPARTMENT_ID  = :pDeptId
    [378] Bind params for ViewObject: _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1
    [379] For RowSet : _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0
    [380] Binding null of type 12 for "pDeptId"
    [381] No Resource Bundle found but null value id:LOV_DepartmentId_LOVUIHints_NullValueId is defined in an ListBinding Definition.It would seem that 2 lovDepartment instances are used one at line 370 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1_0
    and one at line 374 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1
    The one at line 374 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1 gets the variable bound at line 374
    however LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1_0 gets a null value and would explain the empty LOV
    Can anybody explain what is happening here ? (and how to use bind variables in LOV queries)
    Regards
    Paul
    (bump)
    Edited by: Paul (MITsa) on Jul 14, 2009 10:46 AM
    I've now tried all types of LOV from ChoiceList to Radio groupe by testing the application module - none of them work.....
    Edited by: Paul (MITsa) on 14-Jul-2009 22:52

    when you rinvoke executeQueryForCollection the bind variables are allready set and they exist in Object[] object2 method parameters.
    in order to change them you need something like:
    private void changeGenericBindVariable(Object[] params, String paramName, Object paramValue) {
    for (int i = 0; i < params.length; i++) {
    if (paramName.equals(((Object[])params)[0].toString()))
    ((Object[])params[i])[1] = paramValue;
    * executeQueryForCollection - overridden for custom java data source support.
    protected void executeQueryForCollection(Object qc, Object[] params,
    int noUserParams) {
    changeGenericBindVariable(params, "pDeptId", "50")
    super.executeQueryForCollection(object, object2, i);
    But its better to set bind variables before you executeQueryForCollection. like when you invoke LOV.
    For cascading LOVs and the problems i have check:
    [http://adfbugs.blogspot.com/2009/07/jdeveloper-11-r1-cascading-lov-bugs.html]

  • ADFBC: LOV with bind variable inside Table

    Hi,
    I can't seem to find information on how to use bind variables on LOV's that are inside an af:table.
    Please help.
    Thank you.
    Links that didn't work :
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcquerying.htm#ADFFD345
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
    http://groundside.com/blog/DuncanMills.php?title=executewithparams_my_new_best_buddy&more=1&c=1&tb=1&pb=1

    You are not really specific about the actual problem. What are you trying to do?
    Show some peaces of code. Got any errors?
    Timo

Maybe you are looking for

  • HELP: Import my own class in JSP ???

    Hi, all! I read many previous topics in this forum but no one works for me! Please someone help me! I'm using Tomcat 4.1.12 and my JSP scripts work just fine, but I need to import my own .class file. I just don't know where to put it so Tomcat can fi

  • 5700 Express Music Huge Problem

    So I've had my phone for liek half a year now and other than the fact that I couldn't view my pictures or movies that I took with the phone (although they were there as I could download them to my PC), as if they were hidden or sth it was working OK.

  • How can I get iPhoto to see the edited iPhone 4s photo?

    I have a new iPhone 4s.  I take a picture. I edit it and save it to the iPhone.  Then, I sync my phone with my Mac, open iPhoto.  Only the original photos appear, not the one I edited and saved.  Yet, if I e-mail the photo to myself, I can see the ed

  • Concatinating multiline by using UDF

    Hi all, In my scenario , I am having the condition , If that condition is true then we have to concatenate the multiple note into one value. Here I written UDFby selecting the option as Context value, In this case it is returing void. How can I add t

  • Buttons moving on top of panorama

    Hi, I have a panorama which I've coded to move back and forth horizontally when I press the arrow keys. I'm trying to get some buttons to sit at designated points across the panorama. I'm having trouble getting them to stick at the right places, thou