Problem creating list of values query
Hi all
I am facing some problem with a simple list of Apex selection list item values query which is:
RETURN 'select distinct dd_type as d, dd_type as r from portal_02.WAVE_'||:P86_WAVE_ID||' @ DATABASE_LINK1 order by 1';
And I get this error during the execution of the page:
ORA-06550: line 2, column 99: PL/SQL: ORA-00942: there is no ORA-00942 table or view: table or view is no ORA-02063: preceding the line of DATABASE_LINK1 ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00942: table or view is no ORA-02063: preceding the line of DATABASE_LINK1
I placed also p86_wave_id cascading of parent elements.
Anyone has an idea why this is happening and how can I fix this problem?
Use: Apex 4.2.6 & Database 11g.
Concerning
Nabila
I was wrong.
You are positive that a value exists in the session state for P86_WAVE_ID? For your first attempt, one might think it was empty when loading the page, when he made everything that uses the list?
Ahh, there you get this when you try to save the definition of LOV, it is probably just trying to validate the request, made with a null value.
Not sure if you can get it to analyze at run time, but you could workaround with a wave_ object definition?
Tags: Database
Similar Questions
-
Join the query in a dynamic list of values query
I have a join query in a dynamic list of values query. The value does not return a value of text, but rather the value of the ID.
Is it possible to use a join query in a dynamic list of values query?
For example... in the query below, I expect to see ename in the drop-down list, but I see class_emp_id.
Select b.ename d, a.class_emp_id r
of class_emp a, b of the emp
where a.class_cat_id =: CURR_CLASS_CAT_ID
and a.emp_id = b.emp_id
order by 1
Thank you
ReidHey Reid,
The structure of the pairings/value of the item is incorrect - it should be: item1, item2, etc.: value1, value2, etc, so:
' f ? p = & APP_ID.: 50: & SESSION. ": P50_LP_ID, P50_LP_NAME, CURR_CLASS_CAT_ID: #LP_ID #, #LP_NAME #, #CLASS_CAT_ID #"
I guess that CURR_CLASS_CAT_ID does not use the prefix P50_?
Andy
-
problem with list of value (LOV) in the BI Publisher.
I've created a report in the BI publisher with two parameters (level, accnum) and two list of value (LOV) for the menu to select from a drop-down list.
While crateing the settings I selected options: * 1) can select all and any value passed *.
but in the view when I select the option "ALL" in the list, its shows the following error message:
ORA-00933: SQL not correctly completed command.
But if I select a particular level and accnum is fine worikg.
I used the following query in the dataset;
Select ACCOUNT. ACCOUNT_NUM as ACCOUNT_NUM,
ACCOUNT. LAST_BILL_DTM as LAST_BILL_DTM,
ACCOUNT. Account_name as ACCOUNT_NAME,
ACCOUNTATTRIBUTES. DISTRICT_ID as DISTRICT_ID,
ACCOUNTATTRIBUTES. TIER as the LEVEL of
of GEN_OWNER. ACCOUNTATTRIBUTES ACCOUNTATTRIBUTES,
GEN_OWNER. ACCOUNT ACCOUNT
where to REPRESENT them. ACCOUNT_NUM = ACCOUNTATTRIBUTES. ACCOUNT_NUM
and ACCOUNTATTRIBUTES. LEVEL =: level
and ACCOUNTATTRIBUTES. ACCOUNT_NUM =: accnumand ACCOUNTATTRIBUTES.ACCOUNT_NUM in (:accnum)
use in the clause
-
Cascading list of values &; query
Hi all! ADF BC JDev 11
I use Cascading list of values in the search query pane. I build CLOV as in this example http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html.
But when I use it in the search query pane it does not work. :(((
I thik I need to put partial triger field details LOV. How can I do?
Help!
Published by: Victor_V_S on 23.11.2009 07:45Autosubmit property of first LOV attribute set to true in the panel display object of advice.
or in the second set LOV attribute depending on the LOV first attribute in the attribute view object dependencies tab
[http://blogs.oracle.com/smuenchadf/2009/11/cascading_lovs_ensuring_the_ma.html]
-
Dynamic SQL query returning (problem with list of value)
Hi, I have problems with my request. I want to do where statement based on my selectlist, but the problem is that I could not write the correct string in my where condition.
: P61_STATUS has this following display, return value
Bewerber Bewerber
PRA_Kandidat PRA_Kandidat
abgelehnt abgelehnt
angenommen angenommen
Thema-Thema
join online
Staaten Staaten
Sky sky
our our
resultDECLARE q varchar2(4000); list_betreuer htmldb_application_global.vc_arr2; list_semester htmldb_application_global.vc_arr2; list_status htmldb_application_global.vc_arr2; BEGIN -- variable to store the list list_betreuer := HTMLDB_UTIL.STRING_TO_TABLE(:P61_BETREUER); list_semester := HTMLDB_UTIL.STRING_TO_TABLE(:P61_SEMESTER); list_status := HTMLDB_UTIL.STRING_TO_TABLE(:P61_STATUS); -- Query begins q:= 'select p1.name, p1.vorname , a1.tel, a2.tel, '; q:= q||'ab.thema, ab.status, ab.typ, s.bezeichnung, p2.name '; q:= q||'from person p1, person p2, adresse a1, adresse a2, '; q:= q||'zuordnungp_a zpa1,zuordnungp_a zpa2, '; q:= q||'abschlussarbeit ab, semester s '; q:= q||'WHERE ab.SEMESTER = s.OBJECTID (+) '; q:= q||'AND ab.STUDENT = p1.OBJECTID (+) '; q:= q||'AND ab.BETREUER = p2.OBJECTID (+) '; q:= q||'and p1.objectid = zpa1.person (+) '; q:= q||'and zpa1.adresse = a1.objectid (+) '; q:= q||'and zpa1.art (+)= ''Privat'' '; q:= q||'and p1.objectid = zpa2.person (+) '; q:= q||'and zpa2.adresse = a2.objectid (+) '; q:= q||'and zpa2.art (+)= ''Geschäft'' '; -- Loop for betreuer list FOR i in 1..list_betreuer.count LOOP IF i = 1 THEN q:= q||'AND (ab.betreuer = '||list_betreuer(i); ELSE q:= q||' OR ab.betreuer = '||list_betreuer(i); END IF; END LOOP; if (list_betreuer.count>0)THEN q:= q||')'; END IF; -- Loop for semester list FOR i in 1..list_semester.count LOOP IF i = 1 THEN q:= q||'AND (ab.semester = '||list_semester(i); ELSE q:= q||'OR ab.semester = '||list_semester(i); END IF; END LOOP; if (list_semester.count>0)THEN q:= q||')'; END IF; -- Loop for status list FOR i in 1..list_status.count LOOP IF i = 1 THEN q:= q||'AND (ab.status = '||list_status(i)||''; ELSE q:= q||'OR ab.status = '||list_status(i)||''; END IF; END LOOP; if (list_status.count>0)THEN q:= q||')'; END IF; htp.p(q); return q; END;
the problem is in this summaryselect p1.name, p1.vorname , a1.tel, a2.tel, ab.thema, ab.status, ab.typ, s.bezeichnung, p2.name from person p1, person p2, adresse a1, adresse a2, zuordnungp_a zpa1,zuordnungp_a zpa2, abschlussarbeit ab, semester s WHERE ab.SEMESTER = s.OBJECTID (+) AND ab.STUDENT = p1.OBJECTID (+) AND ab.BETREUER = p2.OBJECTID (+) and p1.objectid = zpa1.person (+) and zpa1.adresse = a1.objectid (+) and zpa1.art (+)= 'Privat' and p1.objectid = zpa2.person (+) and zpa2.adresse = a2.objectid (+) and zpa2.art (+)= 'Geschäft' AND (ab.status = abgegeben)
This statement produce this following statementq:= q||'AND (ab.status = '||list_status(i)||'';
But what I need, is this statementab.status = abgegeben
How can I get this statement?ab.status = 'abgegeben';
Thank you very muchTo use double quotes:
q:= q||'AND (ab.status = '''||list_status(i)||'''';
-
Problem with list-of-values while using Oracle ATS
All by registering a fact oracle application using Oracle ATS, whenever I click on a button LOV and select a value from the list, I am being disconnected from the application. Is this a common occurrence? Let me mention here that LOV works very well, it's only when recording with the ATS that I find this question.
Could someone give me a solution to workaround with LOVs in ATS?
--
Thank you
YacoubHello
The LOV works very well in OATMEAL, I use EBS form it works fine, maybe there an installation problem. Alternatively, you can manually include LOV by action forms are trying.
Kind regards
Srinivas -
How to get the attributes from the list of values
Hello
I have two display objects, of 'Customer' and 'CustomerDetails '.
'Client' view, has the attribute 'CustomerId' I've defined as LOV with view of 'CustomerDetails '.
Like this:
I hung out in the soc on my page<ListBinding Name="LOV_CustomerId" ListVOName="CustomerDetailsView1" ListRangeSize="-1" NullValueFlag="start" NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}" MRUCount="0"> <AttrArray Name="AttrNames"> <Item Value="CustomerId"/> </AttrArray> <AttrArray Name="ListAttrNames"> <Item Value="Id"/> </AttrArray> <AttrArray Name="ListDisplayAttrNames"> <Item Value="Name"/> </AttrArray> <DisplayCriteria/> </ListBinding>
In the 'CustomerDetails' view, there is also "address" attribute.<af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}" required="#{bindings.CustomerId.hints.mandatory}" shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true"> <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/> </af:selectOneChoice>
I would like to get the address according to the ID.
How could I get through links?
or in another way.
Thank you!!Hello
You want to display the address that is present in VO from customer to customer details?
If so,.
Perform the following steps:
1 - Create a transient with string type attribute customer details VO (always updated).
2 - I hope you have an attribute customer id here attribute where you created LOV. When LOV created in create list of values jump towards the top in the list of return values assign the value of the address in the transitional attribute.If you put this attribute on the user interface you can see the customer address id value correspondent.
Thank you
Prateek -
creating a dynamic list of values
Hello
While I am trying to create a dynamic list of values on a table (table1) with h_id columns, the head_foot and the header. I gave the query to create the dynamic values as list
Select d, r header header
of g.fw_header_footer
order by 1
where d is the display value and r is the return value to get the error message
"1 error has occurred."
LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online. »
Can someone please suggest me if am wrong.
Thanks in advanceHello
I suggest that you check the permissions of your application of the analysis of schema has on your g.fw_header_footer table.
It is a mistake to mislead, but I've just reproduced the same problem trying to select from a table that I didn't have SELECT permission.
Scott
-
How to create parameters and the list of values in BI Publisher
Hello friends,
I use BI Publisher 10.1.3. I tried to create a report based on the data of a column for ex: dept_no
in the data model, I specified the name of the table to select all columns
I created the list of values taken as a query sql-type. in the query I wrote dept_no Department selection
In the settings section I gave him as an integer value, and by default as * parameter type in the menu then I chose the name list the value that I've previously specified...
now the problem is when I run the report I receive all data despite selecting the parameter I need particular data of this deptno
What could be the reason
pls let me know
Thanks and greetingsIn your main data model query, you use this parameter to limit the data for the selected service?
For example. Select dept_name of departments where dept_no =: p_dept
where: p_dept is your parameter...
Thank you!
-
Create a list of values (Lov) programmatically
I need to dynamically create the ListOfValues during execution.
For this, I found a few links, in which it is explained how to create the ViewAccesor and the ListBindingDef which defined the Lov in the model project.
Andrejus Baranovskis Blog: The ADF for BC and dynamic ADF ADF UI generator
Binary: Activation for dynamic attributes ViewObject LOVs
This kind of list of values can be rendered with the component, af:dynamicComponent, but I want to use them with the original component.
The main problem is that: a dynamic list of values attributes do not have listOfValuesModel in the exposed binding.
<af:inputListOfValues id="comunidadAutonomaId" popupTitle="Search and Select: #{bindings.ComunidadAutonoma.hints.label}" value="#{bindings.ComunidadAutonoma.inputValue}" label="#{bindings.ComunidadAutonoma.hints.label}" model="#{bindings.ComunidadAutonoma.listOfValuesModel}" required="#{bindings.ComunidadAutonoma.hints.mandatory}" columns="#{bindings.ComunidadAutonoma.hints.displayWidth}" shortDesc="#{bindings.ComunidadAutonoma.hints.tooltip}"> <f:validator binding="#{bindings.ComunidadAutonoma.validator}"/> </af:inputListOfValues>
Model = "#{Bindings.ComunidadAutonoma.listOfValuesModel}"-> This property is empty in an attribute with a dynamic lov, at the same time, it exists in a standard attribute with lovs. "
I could check bindings exposed during this attributes are different too.
<attributeValues IterBinding="ProvinciasIterator" id="ComunidadAutonoma"> <AttrNames> <Item Value="ComunidadAutonoma"/> </AttrNames> </attributeValues> <listOfValues IterBinding="ProvinciasIterator" StaticList="false" Uses="LOV_Nombre" id="Nombre"/>
To solve it, I thought that I could create the ListOfValuesModel of the ListBindingDef and the ViewAccesor dynamically exposed in a managed Bean, but I don't know how he.
public class MyBean { public MyBean() { initListOfValuesModel(); } private ListOfValuesModel listOfValuesModel; public ListOfValuesModel getListOfValuesModel() { return listOfValuesModel; } private void initListOfValuesModel() { DCBindingContainer bindings = getBindings(); JUCtrlValueBinding attrBinding = (JUCtrlValueBinding)bindings.get("myAttrib"); ViewAttributeDefImpl attr = (ViewAttributeDefImpl) attrBinding.getAttributeDef(); ViewDefImpl viewDef = attr.getViewDef(); ArrayList<ListBindingDef> listBindings = viewDef.getListBindingDefs(); ListBindingDef lbLov = null; for (ListBindingDef listBinding : listBindings) { if (listBinding.getListVOName().equals(attr.getLOVName())) { lbLov = listBinding; break; } } ... //listOfValuesModel = ; }
Another solution would be resolved in the code of the ad: dynamicComponent, because it could render the ListOfValues I programmatically add.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Code for adding programmatically to a lov
private void buildLovVO(String voName, String voPath, String sql, Set<DataBindVar> bindVars, List<String> labels) { ViewDefImpl lovDef = new ViewDefImpl(voPath); lovDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME); lovDef.setQuery(sql); lovDef.resolveDefObject(); lovDef.registerDefObject(); if (bindVars != null && bindVars.size() > 0) { VariableValueManager vvm = lovDef.ensureVariableManager(); for (DataBindVar bindVar : bindVars) { VariableImpl lovBindVar = (VariableImpl)vvm.addVariable(bindVar.getBindVarName()); lovBindVar.setJavaType(bindVar.getBindVarType()); lovBindVar.setVariableKind(VariableImpl.VAR_KIND_WHERE_CLAUSE_PARAM); lovBindVar.setProperty(AttributeHints.ATTRIBUTE_DISPLAY_HINT, AttributeHints.ATTRIBUTE_DISPLAY_HINT_HIDE); } } if (labels != null && labels.size() > 0) { ViewObjectImpl lovVO = (ViewObjectImpl)app.createViewObject(voName, lovDef); for (int i = 0; i < labels.size(); i++) { ((AttributeDefImpl)lovVO.getAttributeDefs()[i]).setProperty(AttributeHints.ATTRIBUTE_LABEL, labels.get(i)); } } } private void buildListDef(ViewDefImpl dViewDefImpl, String viewAccessorName, String lovName, String listDataSourceViewDefName, Set<DataBindVar> bindVars, List<String> attribNames, List<String> listAttribNames, List<String> listDisplayAttribNames) { ViewAccessorDef vdef = new ViewAccessorDef(); vdef.setName(viewAccessorName); vdef.setViewDefFullName(listDataSourceViewDefName); vdef.setRowLevelBinds(true); if (bindVars != null && bindVars.size() > 0) { for (DataBindVar bindVar : bindVars) { vdef.getBoundParameters().addBoundParameter(bindVar.getBindVarName(), bindVar.getBindVarValue()); } } dViewDefImpl.addViewAccessorDef(vdef); //---------PREPARAR STRING ARRAYS PARA LA FUNCION buildListBindingDef ------------// String[] strAttribNames = attribNames.toArray(new String[attribNames.size()]); String[] strListAttribNames = listAttribNames.toArray(new String[listAttribNames.size()]); String[] strListDisplayAttribNames = listDisplayAttribNames.toArray(new String[listDisplayAttribNames.size()]); ListBindingDef listBindingDef = buildListBindingDef(dViewDefImpl.getDefManager(), viewAccessorName, lovName, strAttribNames, strListAttribNames, strListDisplayAttribNames); dViewDefImpl.addListBindingDef(listBindingDef); } private static ListBindingDef buildListBindingDef(DefinitionManager defMgr, String listVOName, String listBindingName, String[] attribNames, String[] listAttribNames, String[] listDisplayAttribNames) { ListBindingDef lstbindingDef = new ListBindingDef(defMgr, DefinitionObject.DEF_SCOPE_PERS); lstbindingDef.setListVOName(listVOName); lstbindingDef.setName(listBindingName); lstbindingDef.setListRangeSize(-1); lstbindingDef.setNullValueFlag(AbstractListBinding.LIST_ADD_NULL_NOWHERE); lstbindingDef.setNullValueId(""); lstbindingDef.setAttrNames(attribNames); lstbindingDef.setListDisplayAttrNames(listDisplayAttribNames); lstbindingDef.setListAttrNames(listAttribNames); return lstbindingDef; }
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
JDeveloper 12 c (12.1.2.0.0)
You can download code for ADF Rich Client Demo application (ADF Faces Rich Client Demos ) and see what the code is behind the af:inputListOfValues example (LOV in this example is populated by managed bean).
If you need create liaison for lov programmatically, and then read this blog post: ADF practice: dynamic linking LOV
Dario
-
List of values less select query
Hello
I have a list of fixed values say (2,3,5,7,11,13,...) (97) I want less this list with a query. How can I do this in oracle 9i sql.
ex:
Select (abovelist)
less
Select the value of a number;
I don't want to create the table with the top of the list and less there.
Kind regards
Vincent
Published by: user12152459 on November 2, 2009 22:08Hello
Welcome to the forum!
If you want to treat these figures as lines in a table, without actually putting them in a table.
Here's one way:SELECT column_value FROM TABLE (sys.odcinumberlist (2,3,5,7,11,13, .. ...97)) -- MINUS -- SELECT value FROM numbers ;
-
SQL query: How to list the values in the IN operator
Hello
I'm going through a list of values to the location of < > in < list >
I don't want to use dynamic cursors (REF CURSOR). Is this possible using Oracle SQL?
Please let me know.
My program:
DECLARE
...
list_of_ids: = '10, 20, 30';
...
SELECT MAX (sal) IN the max_sal FROM Employees WHERE emp_id IN (list_of_ids);
...
END;
/
Thanks in advance,
NikoYou do not want a list separated by commas. You want to move a collection. Then
CREATE TYPE num_tbl AS TABLE OF NUMBER; DECLARE l_list_of_ids num_tbl := num_tbl( 10, 20, 30 ); BEGIN ... SELECT max(sal) INTO max_sal FROM employee WHERE emp_id IN (SELECT * FROM TABLE( l_list_of_ids )); ... END; /
Justin
-
How to create multi level (dependent) cascading list of values using ADF
Hello
In my project dependent Lov is necessary. I mean, for example, if two fields COUNTRY and STATE are there.
Requirment is like this:- The field of all countries be lov. On the other hand, all by selecting the country of country lov, any State should display corresponding to this company in the area of the STATE.
Kindly help.
Thanks in advance!
Janet,
Is not what you want?
https://blogs.Oracle.com/aramamoo/entry/how_to_create_multi_level
https://oralublog.WordPress.com/2013/08/05/ADF-tutorial-how-to-implement-dependent-list-of-values/
See you soon
AJ
-
hierarchical list of values - 3 levels
Hello
I need to create a hierarchical list of values over 3 levels
1 level: (called P13_STUFE_1)
Select d, deptno r loc
of the Department
order by 1
2 level (called P13_STUFE_2)
Select column_name column_name user_tab_columns r d
where table_name = 'EMP '.
parent LOV cascading point P13_STUFE_1
Page items to submit P13_STUFE_1
3 level (called P13_STUFE_3)
According to the results of LOV 1and 2 LOV, there should be a LOV shwing the content of the selected column and the Department as
P13_STUFE1 = 10
P13_STUFE_2 = ENAME
P13_STUFE_3 =
CLARK
KING
MILLER
RETURN ' select nvl('||:P13_STUFE_2||',job) d, nvl('||:P13_STUFE_2||',job) r emp WHERE deptno = nvl ("' |: P13_STUFE_1 |") (', deptno)';
parent LOV cascading point P13_STUFE_2
Page to submit items
Result:
http://localhost: 8080/apex/f? p = 101:13:9704449646773:
Error during rendering of the element on the page P13_STUFE_3. ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression
Technical information (only visible to developers)
- is_internal_error: true
- apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR
- ora_sqlcode :-6550
- ora_sqlerrm: ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression
- Component.type: APEX_APPLICATION_PAGE_ITEMS
- Component.ID: 2521712617507612
- Component.Name: P13_STUFE_3
- error_backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1325 ORA-06512: at"SYS." WWV_DBMS_SQL', line 1022 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN_UTIL', line 1246 ORA-06512: to the 'APEX_040200.WWV_FLOW_NATIVE_ITEM', line 1741 ORA-06512: at the "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4242 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN', line 1251 ORA-06512: to the 'APEX_040200.WWV_FLOW_FORMS', line 999 ORA-06512: at the "APEX_040200.WWV_FLOW_FORMS", line 1428
Please help me to filnd the error
Concerning
Siegwin
siegwin.port wrote:
RETURN ' select nvl('||:P13_STUFE_2||',job) d, nvl('||:P13_STUFE_2||',job) r emp WHERE deptno = nvl ("' |: P13_STUFE_1 |") (', deptno)';
parent LOV cascading point P13_STUFE_2
Page to submit items
Result:
http://localhost: 8080/apex/f? p = 101:13:9704449646773:
Error during rendering of the element on the page P13_STUFE_3. ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression
Technical information (only visible to developers)
- is_internal_error: true
- apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR
- ora_sqlcode :-6550
- ora_sqlerrm: ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression
- Component.type: APEX_APPLICATION_PAGE_ITEMS
- Component.ID: 2521712617507612
- Component.Name: P13_STUFE_3
- error_backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1325 ORA-06512: at"SYS." WWV_DBMS_SQL', line 1022 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN_UTIL', line 1246 ORA-06512: to the 'APEX_040200.WWV_FLOW_NATIVE_ITEM', line 1741 ORA-06512: at the "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4242 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN', line 1251 ORA-06512: to the 'APEX_040200.WWV_FLOW_FORMS', line 999 ORA-06512: at the "APEX_040200.WWV_FLOW_FORMS", line 1428
Please help me to filnd the error
When generating dynamic SQL statements, it is always advisable to connect the instructions generated before you run the diagnostics/debugging. Change the body of the LOV function to:
declare l_lov_sql varchar2(4000); begin l_lov_sql := 'select nvl('||:P13_STUFE_2||',job) d,nvl('||:P13_STUFE_2||',job) r from emp WHERE deptno=nvl('''||:P13_STUFE_1||''',deptno)'; apex_debug.message('P13_STUFE_2 SQL: ' || l_lov_sql); return l_lov_sql; end;
That said, the problem seems to be positioning the NVLs. When P13_STUFE_2 has no value, then the generated statement clearly causes a missing expression error:
select nvl(,job) d,nvl(,job) r from emp WHERE deptno=nvl('',dept no)
When P13_STUFE_2 is set to null, a valid column name must appear in the generated LOV query:
l_lov_sql := 'select ' || nvl(:P13_STUFE_2, 'job') || ' d, ' || nvl(:P13_STUFE_2, 'job') || ' r from emp WHERE deptno=nvl(:P13_STUFE_1, deptno)';
You must also check/clean up the value of P13_STUFE_2 to avoid the risk of alteration of the value leading to code SQL injection.
-
Dear all,
I have a list of the values on the view object and and created a table by dragging the drop to the page.
Problem is that LOV is advising no other attributes I mentioned as other attributes in the list of values. only the LOV element becomes selected ID.
The following table properties
-------------------------------------
< af:table value = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel}.
var = "row".
lines = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.rangeSize}.
emptyText = "#{bindings." XxIncidentRptInjuredPersonsEOView1.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." XxIncidentRptInjuredPersonsEOView1.rangeSize}.
rowBandingInterval = '0 '.
filterModel = "#{bindings." XxIncidentRptInjuredPersonsEOView1Query.queryDescriptor}.
queryListener = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1Query.processQuery}.
filterVisible = "true" varStatus = "vs."
selectedRowKeys = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.collectionModel.selectedRow}.
selectionListener = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel.makeCurrent}.
rowSelection = "single" id = "t1".
"partialTriggers =": cb2.
Binding = "#{CreateReportManageBean.injurdemptable} '"
Width = "100%" >
- ComboboxListOfValues - Tags
< af:inputComboboxListOfValues id = "empIdId".
popupTitle = "search and select: #{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.label}.
value = "#{row." Bindings.EmpID.inputValue}.
Model = "#{row." Bindings.EmpID.listOfValuesModel}.
required = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.mandatory}.
columns = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.displayWidth}.
shortDesc = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.tooltip}.
autoSubmit = "true" >
< f: validator binding="#{row.bindings.EmpId.validator}"/ >
< / af:inputComboboxListOfValues >
---------------------------------------------------------------
Take the af: inputComboboxListOfValues Id (for example, "empIdId") and put it in the partialTriggers of other attributes.
or
You can go to pageDef. --> select iterator table--> properties--> Advanced--> ChangeEventPolicy set for ppr
Maybe you are looking for
-
Firefox hangs the start of solange and cannot send accident report
Last night I was browsing the web and ended up having 300 + tabs open, FIrefox started to slow down a lot and no longer meets a couple of times. At the opportunity to close Firefox from the pop up window and choose to close Firefox, unfortunately whe
-
I dropped my laptop and now the screen is yellow tint
Hello Recently, I dropped my laptop and turned it on to find that the screen is tinged with yellow.Toshiba will be able to replace my screen?
-
The partition hidden Satellite A120 restore to factory settings?
HelloThe said user manual I press F8 during startup, the windows repair chose and then full recovery from a hidden partition. In fact I'm invited to restore backups, I already did on the indicated partition (data). I can't find how to restore the fac
-
latest version of iOS for 4S?
What is the latest version of IOS for the iPhone 4S?
-
Pavilion 500-449: monitor screen does not work with the new HP Pavilion 500-449
Not sure if 64-bit or 32-bit. More HP vs 19 flat screen LCD monitor or new monitor LG Flatron E2242 will appear with new HP Paviion 500-449. Both will be lit. Monitor says HP VGA No. imput and goes to sleep. LG monitor says it's to enter the mode