dynamic list of values
HelloI need to create dynamic lov which must concatenate column name as first name and last name, but I am getting following error
Select first_name. ' '|| last_name, 'name '.
of oehr_Employees
where name =: P8_FIRST_NAME
order by 1
error:
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 you please help me?
Try
Select first_name. ' '|| display of last_name, first_name. ' '|| last_name return
of oehr_Employees
where name =: P8_FIRST_NAME
order by 1
Tags: Database
Similar Questions
-
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
-
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
-
Dynamic lists of values - 2 different SQL query
Hello
I use dynamic values lists as mentioned below. This will return 2 different results depending on the conditions.
This does not work, when I run the page, it gives a blank page to Popup when I click on the shortcut menu, it gives me error... * HTP 404 error *... web page not found
P1_ITEM1 elements is of type - Popup LOV key (description of the poster, returns the key value)
No idea why it does not workif :P1_ITEM1 = 'ABC' then return 'select ename d, empno r from emp'; else return 'select dname d, deptno r from dept'; end if;
Thank you
Deepak
Published by: Deepak_J on January 27, 2010 19:31
Published by: Deepak_J on January 27, 2010 19:32
Published by: Deepak_J on January 27, 2010 19:32Hello
I don't know why it does not work.
But you can use this query LOV solution in this case
SELECT ename d, empno r FROM emp WHERE :P1_ITEM1 = 'ABC' UNION SELECT dname d, deptno r FROM dept WHERE :P1_ITEM1 <> 'ABC' OR :P1_ITEM1 IS NULL
BR, Jari
-
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
-
I created a page in a table with 3 elements. I wanted one of the items in a value list.
Under the shared components, I created a dynamic list of value. I wanted now to fix the LOV on this element. For the page in question, I went to Page rendering-> items, but can not see all items created for this slot table form. Where did I select the item so that I can join the list of values.
I read the day 2 + Application Express Developer's Guide and followed the example here.
Thank youHello
On your page go to 'regions' and before the name you have given to this area, you can see a link that says "Report" click there and you can see all the items in the form of tables.
-
Dynamic selection of dynamic list
Hello
Please, help me to below scenario.
I created the drop-down list called 'Country' and created a drop down for State. How to create the dynamic filter based on selection of the country. Need to filter according to the selected country.
Thank you
Vivek
Take a look at this thread: https://community.oracle.com/thread/3779373
Note that the drop-down list must be a list of values. See slide 27 of the bridge for an example of what it looks like at design time and the duration-features and benefits: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf (example is very similar to yours - pick a State, then on that basis choose a particular city state)
More details in the thread mentioned above.
See you soon,.
Jasmine
-
I hope someone can help me with this request.
I am developing an Apex application but I am learning as I go along by examples of Google search and read the tutorials, etc. I am trying to create a slideshow based on a dynamic list of Image names. First, I created an apex_collection in a header containing the names of the image process, I need (view/column APEX_COLLECTIONS. C001) I then created a Page called P81_IMAGE_NAME element. I'm trying to loop through the collection and display the pictures in a slide show. I have a HTML Page with the following code in the Source of the region (found the code in an example online)... Please can someone tell me where I can add the following PL/SQL code so that #WORKSPACE_IMAGES # nom_image may contain the names of images dynamically recoveries rather then hard-coded image names as in the < div Section of the Source region - Code I want to add somewhere, don't know where it add or even if it will work
Declare cursor c1 is
Select c001
of apex_collections
where collection_name = "CO_IMAGES";
Start
A1 to c1 loop
: P81_IMAGE_NAME: = c1. C001;
< img src = "#WORKSPACE_IMAGES & P81_IMAGE_NAME" alt = "Slideshow Image" / >
end loop;
end;
-End
-The code which displays images, I found (Harcoded in the < div section)
< script type = "text/javascript" >
function slideSwitch() {}
var $active = $("#slideshow IMG.active");
If ($active.length == 0) $active = $("#slideshow IMG:last");
This allows to take images in their order of appearance in the tag
var $next = $active.next () .length? $active.next)
: $('#slideshow IMG:first');
Uncomment the 3 lines below to shoot images in random order
var $sibs = $active.siblings ();
var rndNum = Math.floor (Math.random () * $sibs.length);
var $next = $($sibs [rndNum]);
$active.addClass('last-active');
$next.css ({opacity: 0.0})
.addClass ('active')
. Animate ({opacity: 1.0}, 3000, function() {})
$active.removeClass ('active last active');
});
}
{$(function()}
setInterval ('slideSwitch()', 3000);
});
< /script >
< style type = "text/css" >
/ * the value width and height to match your images * /.
{#slideshow}
position: relative;
height: 400px;
}
#slideshow IMG {}
position: absolute;
top: 0;
Left: 0;
z index: 8;
opacity: 0.0;
}
{IMG.active #slideshow
z-index: 10;
opacity: 1.0;
}
{IMG.last - active #slideshow
z index: 9;
}
< / style >
< div id = "slideshow" >
< img src = "" #WORKSPACE_IMAGES #Logo.png "alt =" slideshow Image 2 "/ >" "
< img src = "" #WORKSPACE_IMAGES #Logo1.png "alt =" slideshow Image 1 "/ >" "
< img src = "' #WORKSPACE_IMAGES #2_Burg - 1.png" alt = "Slideshow Image 2" / > "
< img src = "" #WORKSPACE_IMAGES #Car11.jpg "alt =" slideshow Image 3 "/ >" "
< img src = "" #WORKSPACE_IMAGES #Screen1.png "alt =" slideshow Image 4 "/ >" "
< / div >
< / div >
user8016921 wrote:
Please update your profile of the forum with a recognizable user name: Video tutorial how to change username available
Always include the information described in these guidelines when you post a question: How to get the answers from the forum
I am developing an Apex application but I am learning as I go along by examples of Google search and read the tutorials, etc. I am trying to create a slideshow based on a dynamic list of Image names. First, I created an apex_collection in a header containing the names of the image process, I need (view/column APEX_COLLECTIONS. C001) I then created a Page called P81_IMAGE_NAME element. I'm trying to loop through the collection and display the pictures in a slide show. I have a HTML Page with the following code in the Source of the region (found the code in an example online)... Please can someone tell me where I can add the following PL/SQL code so that #WORKSPACE_IMAGES # nom_image may contain the names of images dynamically recoveries rather then hard-coded image names as in the
Depends on the number of images. How are they involved?
With a small number (e.g. 10-20), you can simply use a page element to register the handset
img
reference items and she as a substitution string in the region existing HTML. For more information, it would be preferable to use a report.On the approach of page element:
1. create the point P81_IMAGES of the page as an element of the display only. The value of the Condition Never element so it is not included in the rendered page and the security attribute point escape special characters No.
2. create a page process before header (sequenced to run once the collection created if that is done at this point in the process):
begin :p81_images := null; for img in ( select c001 src from apex_collections where collection_name = 'CO_IMAGES') loop :p81_images := :p81_images || ' ' end loop; end;
3 refer to the value of the element in the HTML source of the region
&P81_IMAGES.
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.
Thank you
Try switching to a comma-separated string that contains the list of Userid you captured in the previous human task in this human task.
As you set to hear it at the same time, you want to generate the list of participants using the names and expressions. Specify that you want what he defined by user and by name and use the string separated by commas as the value.
Dan
Dynamic list - is current issue
I created a dynamic list. This works except for the IS_CURRENT parameter.List : dyn wizard page 11
Template: Wizard Progress List, Horizontal Train
Query Source Type: Function Returning SQL Query
Query
case
when :APP_PAGE_ID = '11' THEN
RETURN
'SELECT null, progress_name label, '||
'case WHEN NVL(:APPL_TAB_NAME,''PROJECT'')=CURRENT_TAB_NAME THEN ''Y'' else ''N'' end
is_current_list_entry,'||
'null,null,id ' ||
'FROM csrsr_req_wizard_nav '||
'WHERE form_number_id = 3 ORDER BY 6';
when :APP_PAGE_ID = '8' THEN
RETURN
'SELECT null, current_tab_name label '||
'FROM csrsr_req_wizard_nav '||
'WHERE form_number_id = 1 ORDER BY 1';
when :APP_PAGE_ID = '10' THEN
RETURN
'SELECT null, current_tab_name label '||
'FROM csrsr_req_wizard_nav '||
'WHERE form_number_id = 2 ORDER BY 1';
else
RETURN
'SELECT null, current_tab_name label '||
'FROM csrsr_req_wizard_nav '||
'WHERE form_number_id = 4 ORDER BY 1';
END CASE;
The page I access the dynamic list is on Page 11.Can someone please?
Robert
http://apexjscss.blogspot.com
Applications of dynamic list you generate missing a column. Your questions have 6 columns:
SELECT
null
, progress_name label
, case
WHEN NVL(:APPL_TAB_NAME,'PROJECT') = CURRENT_TAB_NAME THEN 'YES'
else 'NO'
end is_current
,null
,null
,id
FROM
csrsr_req_wizard_nav
WHERE
form_number_id = 3
ORDER BY
6
The examples in the list wizard have 7:
SELECT null,
ENAME label,
null target,
'YES' is_current,
'#APP_IMAGES#del.gif' image,
'width="20" height="20"' image_attrib,
ENAME image_alt
FROM emp
ORDER BY ename
Although the target column is not used in a list of courses standard Wizard because it is not clickable, the column must always be included or the values of the column will be compensated. APEX sees your is_current as the target value column and your null image is_currentcolumn. It is advisable to include all columns and alias them:
select
null level
, progress_name label
, null target
, case
nvl(:appl_tab_name, 'PROJECT') = current_tab_name then 'YES'
else 'NO'
end is_current
, null image
, null image_attrib
, null image_alt
from
csrsr_req_wizard_nav
where
form_number_id = 3
order by
6
Also note that there are no application APPL_TAB_NAME element in this application, which will have an impact on the results of this query: nvl (: appl_tab_name, 'PROJECT') assess so always at the "PROJECT".
Attribute substitution does not not in the models of dynamic lists
Hi allDynamic lists were introduced at the APEX 4.1 and they can be used for drop-down menus. I try to use attribute substitution #A01 #... #A10 # in models without success.
Here's a select sample
< pre >
SELECT the level,
short_title label,
' f ? p = myapp:1:0:MYAPP_ID :'|| target ID,
'NO' is_current
NO picture,
'm'|| Attribute1 to_char (ID)
FROM MyTable
START WITH parent_id =: MYAPP_ROOT_ID
CONNECT BY PRIOR ID = parent_id
Brothers and SŒURS of ORDER BY seq_in_parent
< / pre >
and here is a snippet of the model
Model list associated
& lt; class li = & quot; dhtmlMenuItem & quot; & gt; & lt; an id = & quot; #A01 #& quot; href = & quot; #LINK #& quot; & gt; # TEXT #& lt; /a & gt; & lt; /Li & gt;
The substitution is not made. It looks like a bug, but maybe I'm missing something.
Any help would be greatly appreciated.
Regards Garry
Hi Garry,
Given the query you provided, it looks like you're missing two parameters in your query (marked as missing below):
SELECT level,
short_title label,
'f?p=myapp:1:0::::MYAPP_ID:'||id target,
'NO' is_current,
NULL image,
NULL image_attribute, <----------- MISSING
NULL image_alt_attribute, <----------- MISSING
'm'||TO_CHAR(id) attribute1
FROM mytable
START WITH parent_id = :MYAPP_ROOT_ID
CONNECT BY PRIOR id = parent_id
ORDER SIBLINGS BY seq_in_parent
Once you update your application, then if all goes well, you should see the correct replacement of the occurrences of #A01 # in the model of your list with the value returned by the query to youe.
Kind regards
Hilary
Is it possible a static list of values?
HelloI need to display 2 different lists of values in a list field select, according to the value of the element Parent LOV.
These are simple static lists of values:
STATIC2: sold out; Exhausted, reserved; Reserved
or
STATIC2:call on the agenda; Call to order, in waiting, waiting
The idea is to change the list of values displayed in the field, depending on the value selected in the field (parent) precedent.
Is it possible these values list, please?
Use a dynamic rather than a static LOV?
select
val lov_label
, val lov_val
from
(select
'X' parent_lov_val
, 'Sold out' val
from
dual
union all
select
'X'
, 'Reserved'
from
dual
union all
select
'Y'
, 'Call to order'
from
dual
union all
select
'Y'
, 'On hold'
from
dual)
where
parent_lov_val = :P1_PARENT_LOV
$insertSQL = sprintf ("VALUES INSERT IN PEEROWNSTEEN (PEEREDU_ID, TEEN_ID, ASOF_DATE) (%s, %s, %s)',
GetSQLValueString ($_SESSION ['MM_UserGroup'], "int").
GetSQLValueString ($teenid, "int"),
GetSQLValueString (insertpeerownsteen.asofdate, 'date'));
and
<? PHP foreach ($_POST ['teenselect'] as $teenid)
{
echo "< p > Teen:". "." $teenid. "< /p > ';
@mysql_select_db ($database_cnPeer_Outreach, $cnPeer_Outreach);
$Result1 = mysql_query ($insertSQL, $cnPeer_Outreach) or die (mysql_error ());
}
? >
When I run this code, I get a null value for $teenid. How to refer to this field in the insert statement?
TIA
No,
I solved this problem myself. I had to leave the GetSQLValueString evaluated for each iteration.
< %
var recordset2_cmd = Server.CreateObject ("ADODB.Command");
recordset2_cmd. ActiveConnection = MM_SEEALL_STRING;
recordset2_cmd.CommandText = "SELECT DISTINCT photodate photodate Dates ORDER BY DESC";
recordset2_cmd. Prepared = true;
var recordset2 is recordset2_cmd. Execute();
var recordset2_numRows = 0;
% >
With the code following selection:
< select name = "select" size = "20" title = "< % = DoDateTime ((recordset2." Fields.Item ("photodate"). (Value), 2, 2057) % > ">"
< %
While (! recordset2.) EOF) {}
% > < option value = "< % = (recordset2." Fields.Item ("photodate"). (% De la valeur) > "< %=((recordset2.) Fields.Item ("photodate"). Value is (recordset2. Fields.Item ("photodate"). Value))? "Selected=\"selected\"":"")% > > < % = (recordset2. Fields.Item ("photodate"). % Value) > < / option >
< %
Recordset2. MoveNext();
}
If (recordset2. CursorType > 0) {}
If (! recordset2.) Recordset2 BOF). MoveFirst();
} else {}
Recordset2. Requery();
}
% >
< / select >
Operating (on my test server) (properly ordered and distinct) dates are all displayed in the form "17/01/2000" instead of 17/01/2000.
Can someone tell me why?
Howard Walker
March 19, 2007, in macromedia.dreamweaver.appdev, whatalotofrubbish
wrote:
> When executed (on my test server) dates (properly ordered and)
(> separate) are all displayed in the form "17/01/2000" instead of
> 17/01/2000.
>
> Can someone tell me why?
Because the products of Microsoft, by default, assume that you are in the United States?
You must set a location ID (LCID) (2057 for the United Kingdom, which should give you
the date formatting you want):
<% @LANGUAGE=VBSCRIPT %>
<% Session.LCID = 2057 %>
--
Joe Makowiec
http://Makowiec.NET/
E-mail: http://makowiec.net/email.php
Maybe you are looking for
-
Satellite Pro C660-v10 does not start: pxe - e61 media test failure
Hello laptop was dropped accidentally, worked very well at the beginning but now does not.Press f12 for the boot menu, the screen says, PXE - e61 media test failure - check the cable.PXE - m0f too; outputPXE rom operating system not found. Please can
-
Problems after installing the new disk in the Satellite M70 151
I have a Satellite M70-151 the hard drive gave up and was unreadable, before that I was using with my desktop via a router, that it worked very well. I had no option but to install a new hard drive now in System Manager, I get of the yellow question
-
printer Officejet 6600 failure
I get the same error and cannot find a way to solve the problem. Unplug/turn off does not help. I have recently replaced my ink cartridges, or empty ink cartridge slots in the printer, so I do not know is not the problem.
-
Missing file of sludge activated when installing XP
Recently, I reformatted the hard drive on my computer and tried to reinstall Windows XP. I get half way through installation and getting a message says that the asms file is missing and gives me the possibility to locate the file on the computer. How
-
c:\windows\system32\ntoskrnl.exe is currupt
Hi gurus, I am running vista professional. When starting my computer, I get system32\ntoskrnl.exe - cannot verify the signature I then insert the disc and choose repair A system recovery screen opens with Windows Vista (recovered) - load drivers or n