dynamic hierarchical list
HelloHow can I implement the following using the 'dynamic' list in the APEX?
https://github.com/wesnolte/jOrgChart#Readme
Thank you.
Okay, that was pretty close.
I think that the #1 problem was that the jquery.jOrgChart.js seem to have been downloaded form a Web page and he saved the HTML tags and other things. So I deleted and re-uploaded version purified upward.
While you have the id = "org" in your SQL for the div I proposed was not necessary.
I moved the $("#org").jOrgChart (); to "Run when the Page loads" as suggested earlier.
Oh and added and extra color style so that the text is readable.
You should be able to take it from here. :)
-Jorge
Tags: Database
Similar Questions
-
Getting a hierarchical list expanding to stay open
Hi all..
Thus, APEX 4.2 I have a hierarchical list developed as my menu... its based on a static list and his page on zero... A couple of things that Ive noticed a lot of people have asked over time on discussion forums... But so far, Ive not seen a definitive answer to these, and I can't get different suggestions to work
(1) how can I keep expanded when I select a child menu item and move the page for this menu item.
(2) how can I select text as well as the + image to expand the menu.
for 1) I saw someone suggest using a #DRILL_DOWN # substitution string, but I'm not sure where to put it and it doesn't seem to do anything...
For 2) so far, I have tried various things, including changing the model with a function onClick... i.e. the addition of onclick = "htmldb_ToggleWithImage (this, 'L4965828638013084') in the model. However, she does not... (my assumption is that because he doesn't have a target for the parent, it is not invoke it.. (although the page appears to make a sort of submit, even with "no target" on a menu item.)
Ive implemented a test on https://apex.oracle.com/pls/apex/f?p=291:1:2096655252098 menu
username [email protected] vrs workspace / vrs password
any help, as always, would be very much appreciated...
Kind regards
Richard
Hi Richard,
I changed your test application with the following:
- added a static region on page 0 id to the menu area.
- Add dynamic action to fill the element of page P0_SELECTED
Now, it should work.
Kind regards
Erik-jan
-
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.
-
BB10 - problems w / dynamic populating list of images with the data of WebSQL
Hi all
So I'm having a few problems with the definition of the element's onclick attribute when dynamic filling an image list.
function listAllRooms() {}
...
DB.transaction (function (tx) {}
tx.executeSql ("SELECT * FROM ROOMS, [], {}, function (tx, results)")for (i = 0; i< len;="">
elName var = results.rows.item (i) .name,
elID = results.rows.item (i) user.user;Item = document.createElement('div');
item.setAttribute('data-bb-type','item');
item.setAttribute ("data-bb-title', elName");
item.innerHTML = 'Description here.';
item.setAttribute ('data-bb-img', ' foo.png');Item.onclick = function() {bb.pushScreen ('showRoom.html', 'Show-Room', {id: elID}) ;};}
Items.push (Item);
}document.getElementById('rooms-list').refresh (items);
(}, null);});
}My problem is the bold red line. What happens is that each item links to the last point (last row of the table). I know it has something to do with the callbacks and synchronization but cannot for the life of understand me.
My apologies for the ugly code and thanks in advance for the help.
Karel
In fact, I managed to make it work this way:
item = document.createElement('div'); item.setAttribute('data-bb-type','item'); item.setAttribute('data-bb-title', elName); item.setAttribute('data-id', elID); item.innerHTML = "Description here."; item.setAttribute('data-bb-img','img/icons/item-dark.png'); item.setAttribute('onclick', "bb.pushScreen('show.html', 'show', {type: 'item', id: " + elID + "})");
Thanks for all your help!
-
APEX 5 dynamic navigation list
I created a list based on a SQL query. I want to replace the list of navigation 5 APEX. How do I do that? When I go to the navigation menu or navigation bar list I see Create or copy, I don't see the option to use my list.
Hello
1 - create a navigation list
go to your application components shared-> browsing-> Menu of Navigation
Create a new list from scratch of dynamic type, and then click SQL QUERY as the source of your query type
Enter your query which should have the following columns 'level', 'label', 'target', 'is_current', 'image '.
example:
Select LEVEL 'level. "
PRV_NAME 'label. "
Decode (connect_by_isleaf, 0, ",'f? p = & APP_ID.) :'|| To_char (PRV_APEX_PAGE) |': &. session:') "target."
"YES'"is_current. "
Decode (NVL (PRV_ICON_IMG, 'A'), 'A', ", PRV_ICON_IMG) 'the image.
of ADMN_PRIVILEGES
start with "PRV_ID_PRNT" = 10000
connect prior "PRV_ID" = "PRV_ID_PRNT."
siblings arrested by PRV_NAME desc
then select do not create list of regions.
2 - in your designer of the page go to the Navigation Menu->override level of User Interface
and Yes, change
the next option is enabled
LIST, select the navigation created in step 1
then
Position in the LIST: side
Model LIST: your model
Hope this will help you
Salim
-
Hi all
I want to collect information about a feature, but according to the value of an attribute from entity level - I want to make the selection of the value of the attr - dynamic level entity.
i.e.
Study the following
-So if I add x 2 instance childEntity: the children Relationship: the child Entity-Attr: the child's name Entity-Attr: the child's gender Entity-Attr: the child's toy
While:Child Instance #1: "Tom", "Male", I would require his drop down list for a toy to be like "Action Man", "Spider Man" on the screen for the user to select
Hope that makes senseChild Instance #2: "Jenny", "Female", her drop down list for the child's toy would consist of: "Barbie", "Justin Bieber CD's"
See you soon
Published by: user9015745 on August 23, 2011 03:00You would not be able to ask sex and toy preferred on the same screen without a 'submit', unless you use javascript. Assuming that it is acceptable to ask the names of all the children and women on a screen (i.e. in collecting entities) and continue to ask questions about the favorite toy of each child on a separate screen, you can take advantage of the screen definitions and screen flow to achieve this without any programming.
Basically, you need to set the following:
-an entity collect the screen for children that you collect the name and gender of each child
-a 'male_toys' screen requesting favorite toy to the child and who uses a choice list that contains only the 'male' toys
-a 'female_toys' screen that asks favorite childhood toy and that specifies the list "female toys."
-define a global screen flow that has first collects 'children' is evolving into the "flow of child", then ends.
-define the workflow of the child to begin with a decision point based on the sex of the child which is progressing towards the male sex toys to screen if = 'male' or the female toys screen if = "female".
-Add the overall flow to the summary screen of the evaluation so that an interview is initiated by starting the overall throughput (you want to force a stream of screen to use to undertake the interview to make you progress in automatic screen based on the pursuit of a goal)
-Also to note: you probably want to shoot left alternative in the child_toy_male and child_toy_female so that it is clear what child screen wonders about the screens. -
dynamic category list link to the product list page does not
I have a list of dynamic category which is filled from a mySQL database
<? PHP {? >}
< li > < a href = "product - list.php? CatID = <? PHP echo $row_Recordset1 ['CatID'];? > "> <?" PHP echo $row_Recordset1 ["productGroupGUID'];? > < /a > < /li >
<? PHP} while ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));? >
im not sure if the aboive is correct?
I need to link to the product page and just show all products in this category
list of php code is
$var1_Recordset1 = "-1";
If (isset($_GET['CatID'])) {}
$var1_Recordset1 = $_GET ['CatID'];
}
@mysql_select_db ($database_lotties, $lotties);
$query_Recordset1 = sprintf ("" SELECT * FROM lottieProducts, lottieCat WHERE lottieCat.CatID = lottieProducts.CatID AND lottieCat.CatID = %s ", GetSQLValueString ($var1_Recordset1,"int")");
$Recordset1 = mysql_query ($query_Recordset1, $lotties) or die (mysql_error ());
$row_Recordset1 = mysql_fetch_assoc ($Recordset1);
$totalRows_Recordset1 = mysql_num_rows ($Recordset1);
Thanks in advance
He made
$varCat_rsProductData = '0 '.
If (isset($_GET["cat"])) {}
$varCat_rsProductData = $_GET ["cat"];
}
@mysql_select_db ($database_lotties, $lotties);
$query_rsProductData = sprintf ("" SELECT * FROM lottieProducts WHERE lottieProducts.CatID = %s ", GetSQLValueString ($varCat_rsProductData,"int")");
$rsProductData = mysql_query ($query_rsProductData, $lotties) or die (mysql_error ());
$row_rsProductData = mysql_fetch_assoc ($rsProductData);
$totalRows_rsProductData = mysql_num_rows ($rsProductData);
link to the chat list
-
Dynamic selection list: link to another page
Hello
Following the list of dynamic selection at the bottom of page "product.php" (www.dolls.com.sg)
< div id = "selectcat" >
< select name = "Catégories" >
<? PHP
{}
? >
< option value = "<?" PHP echo $row_rsCategories ["categoryName"]? > "<?" PHP if (!) () strcmp ($row_rsCategories ["categoryName"], $row_rsCategories ["categoryName"]))) {echo "selected = \"selected\"" ;}? "} > > <? PHP echo $row_rsCategories ["categoryName"]? > < / option >
<? PHP
} While ($row_rsCategories = mysql_fetch_assoc ($rsCategories));
$rows = mysql_num_rows ($rsCategories);
If ($rows > 0) {}
mysql_data_seek ($rsCategories, 0);
$row_rsCategories = mysql_fetch_assoc ($rsCategories);
}
? >
< / select >
My goal is, whenever a visitor clicks on a category in the drop down menu, it is transmitted to the respective page "categories.php".
How can I do?
Thank you
Helmut
Change your code to this:
In categories.php, use $_GET ['categories'] to filter the Recordset.
-
Problem of navigation with dynamic variable list
Hi all
I'm a bit in stock with a small question (maybe). I am looking for a way to put the variable to a list of navigation in the same page. Can it is where my navigation list is pointed: f? p = & APP_ID.:20: & SESSION. : & DEBUG. : P20_3, P20_1, P20_2: #État #, #Année accountant #, #Période accountant #:.
I need to inherit the value (#État #, #Année accountant #, #Période accountant # :) a SQL in the main region (list are in a subregion).)
Could help me with this please?
Thanks in advance!
Eric844999,
You will have to wait until 4.1 Apex
It is one of the new features 'dynamic lists '.
However, you can replicate such a list, if you create a report model that looks the same in a list and then create a report with this list.
Kind regards
Richard -
need help on filling data dynamically from list of choice while the page is loading
Hi all
I need to dynamically fill data in the picklist (drop-down list on the component) during the loading of the page itself, can you please a little help on this. I mean for the values of the component < f: selectItems > < af:selectOneChoice > must be filled dynamically, so that loading page. I will be grateful if you can provide examples of code.
Thanks in advance
Concerning
Ashok EHello
the problem with your code is that it is not af:selectItem but f: selectItems
*
Frank
-
Problems with dynamic selection lists in IE7
I have another problem related to the last one I posted here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=217 & threadid = 1385428
I have a list of dynamic selection populated by a SQL Server database.
I want to select all the items in the list if you have selected a particular item. The code I wrote works fine in Firefox, and I'm assuming that other browsers as well. It does everything not in IE and the specific test does not not in IE7.
I can't use the fix suggested for my last question, because this time I want all of the selected options and selectedIndex applies only to a single option.
Any ideas on what I can do to make it work in IE7?
Here is the code I use:
I have provided a solution to this question in another forum:
http://www.Tek-Tips.com/viewthread.cfm?QID=1495671&page=1
Thank you
Jesse -
dynamic selection list hangs with php
Hi all
I can't get a list of dynamic selection of work in dreamweaver. It completely crashes whenever I try to add to my page. I found someone else in the forum who had the same problem, but no one ever answered. I've tried several things, including putting just the dynamic record and select on its own page with no other code in this regard. He always breaks DW. I also tried this coding myself by making a listmenu and change it so that the value of the option equals a value PHP echo. It crashed too much here. Does anyone have a piece of code with a selection list dynamic work that uses a recordset that I could look at? This way I can see where I am going wrong. All I'm trying to do is to get a simple drop-down menu select list of employee names, so anyone can choose their name for advice. This is a table, a set of records 2 fields (first and last name).
Using DW CS3, php & MySQL, windows XP Pro
Any help would be really appreciated!
That's all! Thanks a lot for your help!
-
Hello
I need to create a list of members of a dynamic entity based on defcurrency. When I add a new entity, I want it to appear automatically on the list for the default currecy to which it belongs. So in HFM I see 'Entities USD', "EUR entities", etc...
Someone at - it a script that might help?
I intend later using the UD1 to create another list. The same logic would apply?
Thank you!Here is your code:
Void EnumMemberLists()
Dim aEntityLists (3)
If HS. Dimension = "Entity" Then
aEntityLists (1) = "USD_Entities".
aEntityLists (2) = "EUR_Entities".
aEntityLists (3) = "CAD_Entities".
HS. SetMemberLists aEntityLists
End IfEnd Sub
Void EnumMembersInList()
If HS. Dimension = "Entity" ThenSelect HS case. MemberListID
Case 1
HS = SG. Entity.List ("", "")
For i = Lbound (iLi) to UBound (iLi)
If (HS. Entity.DefCurrency (iLi (i)) = '$') then
HS. AddEntityToList ' ', iLi (i)
End If
Next
Case 2
HS = SG. Entity.List ("", "")
For i = Lbound (iLi) to UBound (iLi)
If (HS. Entity.DefCurrency (iLi (i)) = 'EUR') then
HS. AddEntityToList ' ', iLi (i)
End If
Next
Case 3
HS = SG. Entity.List ("", "")
For i = Lbound (iLi) to UBound (iLi)
If (HS. Entity.DefCurrency (iLi (i)) = "CAD") then
HS. AddEntityToList ' ', iLi (i)
End If
Next
Select end
End If
End SubHowever, you should notice that it is dynamically filled with entities as soon as the new features are created, but this is not dynamic currency. If a new currency is created, you need to add the code for the new currency, including a new list.
The same logic can be applied to the properties defined by the user of the entities.
Kostas
-
The old Firefox offers a bookmark on the left screen with an inverted tree structure. for example
Finance
CNBC.com finance.yahoo.com BBC glossary of business terms Fidelity Investments
Search
yahoo.com ZIP code finder google maps Chase personal banking www.amazon.com
Film
imdb.com Turner Classic Movies
Weather
Astronomy
Science
Science Times periodic table Schrodinger wave equation
Geology
It's like the structure of computer file/subfolder(or file). Some folders may remain closed until that necessary, e.g. weather, but others remain extended until closing, and each visible bookmark can be clicked immediately (without opening another list).
Hi joelgibson,
Are you talking about the bookmarks bar? Try hitting CTRL + b. -What are you talking about? You can also create a navigation bar icon to allow this side bar if you do not want to use the keyboard shortcut. Take a look at article in the Knowledge Base controls, buttons, and Toolbars Customize Firefox for details.
Hope this helps!
-
Dynamically update list of Val, based on another selection list?
4.2.1
Hello world
We have two LOVs. Both were static values. LOV1 has values static 1,2,3,4. LOV2 has values static 10,20,30,40 and some texts. Now when the user selects 2 and 4 of LOV1, then LOV2 should display only 10 and 20.
I know there are waterfall LOV in 4.0 from, but I think that works very well for the table based LOV query? You are not sure if they can be used for static ones? Any help or suggestions on how to do it?
Thank you
Ryan
ryansun wrote:
4.2.1
Hello world
We have two LOVs. Both were static values. LOV1 has values static 1,2,3,4. LOV2 has values static 10,20,30,40 and some texts. Now when the user selects 2 and 4 of LOV1, then LOV2 should display only 10 and 20.
I know there are waterfall LOV in 4.0 from, but I think that works very well for the table based LOV query? You are not sure if they can be used for static ones? Any help or suggestions on how to do it?
Use the built-in support in cascade LOV by converting the static LOVs for dynamic queries, including the relevant restrictions in the WHERE clause in LOV2:
LOV1
select '1' lov_label, '1' lov_value from dual union all select '2', '2' from dual union all select '3', '3' from dual union all select '4', '4' from dual
LOV2
select '10' lov_label, '10' lov_value from dual union all select '20', '20' from dual union all select '30', '30' from dual where :p1_lov1 not in ('2', '4') union all select '40', '40' from dual where :p1_lov1 not in ('2', '4')
Maybe you are looking for
-
How to remove photos from my ipad doubles?
How can I delete photos from my ipad duplicate?
-
I keep a journal to record my data running (as in, jogging). A column is the duration of a race. I had no chance to find how to format data in numbers so that I can summarize the total number of hours, minutes, and seconds in another cell for a tot
-
dc5800 SFF: HP dc5800 SFF: firmware Install with new processor Q9400
I have a HP dc5800 SFF with a core 2 duo dual core cpu. Checking the list of caught CPU supported, I installed a cpu Q9400 supported. Started the machine and got an error in the microcode. Research and found that I needed to download the firmware fil
-
driver chipset download code 80070490 error using Windows updates
original title: try to download intelr 829456 chipset family code 80070490 error, microsoft has tried to adapt it still download of may not run solutions Hi, I keep getting a notice from windows update down load an update of the family of chipsets in
-
Cannot get the notification if the client has been disconnected and then become online
Hello I use notification service Pap BB and I have send a notification to the customer of BB and he got the notification correctly while it is online. But if I send a notification, while the mobile was disconnected , then again online , no notificati