Creating Tree Menu with each node referring to a different page
Hi,
I've got a Tree with I would like to refer to a different page to each single leaf.
Tree is the following :
select "ID_MENU" id,
"MENU_UNDER" pid,
"MENU_NAME" name,
'f?p=&APP_ID.:&app_page_id.:&SESSION.::NO::FSP_AFTER_LOGIN_URL:'||"ID_MENU" link,
null a1,
null a2
from "#OWNER#"."MENU"
How is possible to refer each single page, stored into the MENU table (wihich contain the menu) to a different node leaf ?
MENU Table is the following :
create table MENU
ID_MENU NUMBER not null,
MENU_NAME VARCHAR2(500),
MENU_UNDER VARCHAR2(500),
PAGE_LINK VARCHAR2(500)
Thanks,
Ivan
Is your MENU table a hierarchical table or just flat. It looks flat, because it doesn't seem to have a foreign key to it's parent menu. Do you just have two levels?
BTW, you normally would use PAGE_LINK in your link column.
Why not create a hierarchical table as follows:
create table MENU
ID_MENU NUMBER not null,
MENU_NAME VARCHAR2(500),
PARENT_ID_MENU NUMBER,
PAGE_ID NUMBER
);PARENT_ID_MENU would contain the ID_MENU of the parent menu, for the root menus it would be NULL.
Then your query would look as follow:
select ID_MENU AS id,
, PARENT_ID_MENU AS pid
, MENU_NAME AS name
, CASE
WHEN PAGE_ID IS NOT NULL THEN 'f?p=&APP_ID.:'||PAGE_ID||':'||:SESSION
ELSE NULL
END AS link
, null AS a1
, null AS a2
from "#OWNER#".MENUPatrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/
Similar Messages
-
Do someone knows how to create a cluster with two nodes on oracle VM Ware
dear members,
can someone guide us through creating a cluster with two nodes on oracle VM. it will be nice if we can virtualiza RAC, atleast for education purposes.
Thank you all in advanceHere is an excellent article that explains how to do this:
http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/ -
Help!!! How to create simple menu with buttons.
I basically need help on how to create a menu with Up, Left, Next and Back buttons.
Then it must have a submenus like Telephone, Lights, Fans and Television.
and more sub sub menus of On and Off buttons.
Ive jut started to learn Labview and a newbie at it.
It could be really nice if someone could make an example.
Would appreciate it if it could work like Ipod interface.
Thanksssss! Pls help!Duplicate post.
-
I have an I pad2, an iMac desktop(2012) and an I phone 5, how do I get them all to be able to face time with each other, do I need different email addresses, use the phone number, or the sim number in the iPad ? Any help gratefully received !!
Graham,
For the iPad, iMac you need to create verifyible e-mail addresses created with one of the providers such as Yahoo, Gmail,etc. For the iphone you should use it's phone number, but an e-mail could be used for it too. If you want to associate these e-mail addresses with a single ID, I'm including a link to give you info about how you can do that. Read it carefully, as it can be a bit confusing.
http://support.apple.com/kb/HE68 -
Creating TREE REPORT with CHECKBOX against each row
Hi Friends,
I need to create a <b>TREE REPORT with CHECK BOX</b> against each row. when the user selects a row and clicks on a custom button then those should get populated into an internal table. <b>This is HIGH priority</b> one and I have tried my best but couldnt find any solution. Please advise me some sol.
thanks in advance for your valuable time and help.
Regards
srithan
Message edited by me for easyness
ReddyHi
Following code is to add checkboxes in ALV tree:
FORM add_root_request USING pls_data_ TYPE csg_gs_outtab_p_key__l_is_sub_node_ TYPE c
CHANGING pl_carrid_key._node = nodes->add_node( related_node = p_key
relationship = cl_gui_column_tree=>relat_last_child ).
... §0.2 if information should be displayed at
the hierarchy column set the carrid as text for this node
text = p_ls_data-object.
node->set_text( text ).
... §0.3 set the data for the nes node
node->set_data_row( p_ls_data ).
item = node->get_hierarchy_item( ).
item = node->get_item( 'FCHECKBOX' ). "FCHECKBOX is my radio button field in internal table which I am using to populate the ALV
item->set_type( if_salv_c_item_type=>checkbox ).
pl_carrid_key = node->get_key( )._
CATCH cx_salv_msg.
ENDFORM_._Following code is for handling checbox_change event
PERFORM application_action_events.
FORM application_action_events .
data: lr_events type ref to cl_salv_events_tree.
*data gr_events type ref to lcl_handle_events.
lr_events = gr_tree->get_event( ).
create object gr_events.
set handler gr_events->check for lr_events.
set handler gr_events->on_link_click for lr_events.
set handler gr_events->on_before_user_command for lr_events.
set handler gr_events->on_after_user_command for lr_events.
set handler gr_events->on_keypress for lr_events.
endform. " application_action_events----
CLASS lcl_handle_events DEFINITION.
PUBLIC SECTION.
METHODS:
check FOR EVENT checkbox_change OF cl_salv_events_tree IMPORTING node_key columnname checked. "Here node_key is the row number
ENDCLASS. "lcl_handle_events DEFINITION
CLASS lcl_handle_events IMPLEMENTATION
§4.2 implement the events for handling the events of cl_salv_table
CLASS lcl_handle_events IMPLEMENTATION_._
METHOD check_._
WRITE 'hello'_._
DATA lwa_modify_check_ TYPE REF TO csg_gs_outtab.
node_key = node_key - 1_._
READ TABLE csg_gt_list INDEX node_key REFERENCE INTO lwa_modify_check._
if columnname = 'FCHECKBOX'_._
IF checked = 'X'_._
If the value in internal table is set to X, then it is deselct
lwa_modify_check->fcheckbox =_ ' '_._
ELSE_._
lwa_modify_check->fcheckbox =_ 'X'_._
ENDIF_._
ENDIF_._
if columnname = 'CHECKBOX_READ'_._
IF checked = 'X'_._
If the value in internal table is set to X, then it is deselct
lwa_modify_check->checkbox_read =_ ' '_._
ELSE_._
lwa_modify_check->checkbox_read =_ 'X'_._
ENDIF_._
ENDIF_._
*MODIFY TABLE csg_gt_list from l_wa_modify_check.
flag_test = flag_test + 1_._
ENDMETHOD_._ "check
ENDCLASS_._ "lcl_handle_events IMPLEMENTATION
Please give me reward points -
Creating Context Menu for JTree Node
Hi to all,
I need to create Context Menu, when i right click on any Tree Node.
Context Menu should contain selected node information.
if you click on one tree node named as "AAAA"
Context Menu Format is as follows
AAAA
Create New
Delete
If any one knows, please help meHere is something for you to start
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=538065
Denis Krukovsky
http://dotuseful.sourceforge.net/ -
Premiere 9: Create DVD menu with several movies
I want to put several movies which I created on one DVD. How do I do this? I found a way to put ONE movie in the menu with its scene selection (although I can't get that to work, which is a separate issue), but I haven't found a way of pullling in the FOUR movies.
You can look at the Duration of each Project's Timeline and jot down the total runtime for each. Add those together to get the full runtime/Duration of the multiple Projects. If you have already Exported/Shared to a DV-AVI, you can get that Duration for each with G-Spot, or another similar utility. If you have already Imported those DV-AVI's into the new, combined Project, just look at the Duration on the Timeline Ruler.
Good luck,
Hunt
PS - When working with TimeCode (00;00;00;00 - Hours; Minutes; Seconds; Frames), I really like the free WFT Timecode Calculator. It also allows one to choose the FPS of the base.
PPS - One can also play the resultant DV-AVI's in WMP, VLC, MediaPlayer Classic HC, or other players, and see what the Duration of each is. -
How to create a menu with pages linked as sub menu in ADF?
Hi Experts,
I'm new to ADF and trying to create a menu like below in ADF.
Actions Menu
|
|
Option 1 -- A page with some static text and links.
Option 2 - A different page with some static text and links.
Have evaluated options like panelGroupLayout and menu components, requesting experts opinion on the best way to do it.
Thanks in advance..Thanks AP.
Not like outlook. Here's some more details on what I'm looking for.
Create a menu bar.
Create a menu called "Actions"
Create two items under it called "Option1" and "Option2".
When I move the mouse over "Option1", I want a page to be shown on the right (just like how a sub menu will be displayed usually).
When I move the mouse over "Option2", I want to show a different page on the right (just like how a sub menu will be displayed usually).
Thanks in advance.
Edited by: Muruhanantham C on Dec 28, 2012 12:51 PM -
Hi, I'm trying to create a tree menu, When user click the links on left hand side, the content will be displayed on the right side of the page.
I'm new to html db. Can anyone have some suggestion about this? Is there a how'to doc. or sample application for reference?
Much appreciate your instruct.Sorry . .. I just read your other posting regarding menu trees
tree menu
and I think I started leading you down a path that is far more complicated than you are looking for. It looks like Jeff has answered you question regarding how to add a tree. The link that I gave you was for creating a dynamic drop down/out menu based on the Suckerfish dropdown menu.
http://www.alistapart.com/articles/dropdowns/
David -
How to create the query with multiple node types
Hi,
I am having an issue in creating a query to search multiple node types.
The requirement is to query documents/pages of the type dam:Asset and cq:Page present under a path.
I tried the following code snippet with no luck .
path=/content
1_type=cq:Page
2_type=dam:Asset
property=jcr:content/metadata/@cq:tags
property.1_value=<tag Name>
I was able to write a query with single type. However i could not find any documents/ materials with multipe types as shown above.
Thanks in advance.
Regards
SudhiI don't think multiple type is possible. Instead use super type like nt:base that will cover both page and asset.
Yogesh
www.wemblog.com -
Dynamic Tree menu with checkbox
Dear Boss
Now I am in a problem for some task. But I have not ever done these. Please help me if you possible for you. I need a tree menu in java which has the following attributes:
v This check box will implement on Oracle form
v Checkbox Event tracking
v On check event data will save in database
v On check event text item of form will be re-query
I am looking for your reply
Aktar ChowdhuryPlay around with it, it is simpler than you think! Add a spry menu to a page with a css menu on it, see how it is structured, then make the changes to get the results you want. A Spry menu uses a UL/LI structure very similar to that generated by css_menu, you just need to add a class to the LI.
//CSS Dynamic Menus required file
require_once('includes/cssmenus2/gwb_Menu2.inc.php');
//Begin Menu1
$Menu1 = new MX_Menu2('MenuBar1');
$Menu1->setQuery($rs_Menu1);
$Menu1->setPK("MenuID");
$Menu1->setFK("ParentID");
$Menu1->setNameField("MenuLabel");
$Menu1->setTitleField("Tip");
//URL parameters
$Menu1->setLinkField("Link");
$Menu1->setTargetField("");
// Layout
$Menu1->setLevel(-1);
$Menu1->setSkin("MenuBarVertical"); <---------
//End Menu1
body
<?php // Dynamic CSS Menu
echo $Menu1->render();
?>
css_menu2.inc.php
foreach($this->DBItems[$id] as $key=>$val){
$li_class = ' class="MenuBarItemSubmenu"'; <-----
//the efective row -
Need to create a menu with subitems similar to OTN main page bar menu
Hi,
Using Jdev 11.1.1.5
I need to create a menu bar with simple sub-items (set of links to other sites or pages) similar to what OTN main page uses.
The menuBar with subitems shown in the ADF demo site is close but doesn't look like as OTN i.e. set of tab/boxes.
Link to the ADF demo with menuBar:
http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx?_afrRedirect=3119879384215420#%2Fcomponents%2FmenuBar%2Felectronics.jspx%40%3FAdf-Window-Id%3Dw0
Not sure which ADF component to use?
ThanksThanks Shay. I think skinning would be simpler and will make use of the provided components in ADF, but I haven't done any work with skinning but did use CSS so not sure how simple to figure this out.
Most of the commercial web site uses tabs/boxes as I am trying to do. It will be nice to have ADF component or simple solution.
Thanks -
How can I create tree menu (like windows explorer) in Portlet
On my page I need a portlet which will be a tree menu (expandable and collapsable).Items in the menu are just URLs.
EG: Main menu
SubMenu1
-Item11
-Item12
-Item13
Submenu2
-Item21
-Item22
-Item23
I crated a menu portlet in 9iAS portal R2, But it is not able to expand or collaps inside the same region.
When I clik on Submenu1 it open a new window and Items are dispayed on window. I do not want that, I need to see all items in a submenu at the portal region itself, then when I clik on that Item(URL) I wiil get that new page/file as per the URL.
On the menu portel design/layout screen of Oracle9iAS portal, it looks good (with exand/collaps), I want the exact same functionality for the menu on my page region.
Please give me a quick answerHi,
This is not possible with Portal right now. You can run the menu as a tree by clicking on the frame view icon at runtime of the menu in the full page mode. This is not possible on the page.
Thanks,
Sharmila -
How can I create a form with a button that adds a new page of fields to fill out?
Hi,
I have a one-page form created in Acrobat Pro 9 that contains five fields for a user to complete. I'd like to give the user the option of adding a page with the same five fields to fill out. The user finishes those fields, presses an "Add a Page" button, and then gets another page to fill out, and so on. When finished, their PDF form might be 10 pages long, at which point the user can save it as a single PDF file. Is this possible to do in Acrobat Pro 9 or 10, and if so, how?
Thanks,
AndrewWhen I created a new template like you told me, I wasn't given the option to rename the fields. See screenshot below. I'm just given the option to add a new template. Changing it refers to changing the template to a different page.
If you can show me how to have the fields renamed automatically or use the rename parameter, I think that should fix it.
Under Tools>JavaScript>Document JavaScripts, I've added a Script named "PackagingArtwork".
// Here is the code
function PackagingArtwork()
{this.createTemplate({cName: "PackagingArtwork", nPage: 5});
// Here the code that spawns the template
var PackagingArtworkArray = this.templates;
var PackagingArtwork = PackagingArtworkArray[0];
PackagingArtwork.spawn(this.numPages, false, false);
This is what the JS debugger said.
Acrobat EScript Built-in Functions Version 10.0
Acrobat SOAP 10.0
var t1 = createTemplate("t1", 0);
var oXO = t1.spawn({nPage: numPages, bOverlay: false});
while (numPages < 50) {
t1.spawn({nPage: numPages, bOverlay: false, oXObject: oXO});
undefined
[object CosObj=<<Stream>>]
TypeError: PackagingArtworkArray is null
2:Field:Mouse Up
TypeError: PackagingArtworkArray is null
2:Field:Mouse Up
TypeError: PackagingArtworkArray is null
2:Field:Mouse Up
TypeError: PackagingArtworkArray is null
2:AcroForm:Duplicate Packaging Artwork:Annot1:MouseUp:Action1
TypeError: PackagingArtworkArray is null
2:Field:Mouse Up
TypeError: PackagingArtworkArray is null
2:Field:Mouse Up
TypeError: PackagingArtworkArray is null
2:Field:Mouse Up
TypeError: PackagingArtworkArray is null
2:AcroForm:Duplicate Packaging Artwork:Annot1:MouseUp:Action1
TypeError: PackagingArtworkArray is null
2:AcroForm:Duplicate Packaging Artwork:Annot1:MouseUp:Action1
TypeError: PackagingArtworkArray is null
2:AcroForm:Duplicate Packaging Artwork:Annot1:MouseUp:Action1 -
Adding Print Button With Java Script to Print of Different Pages Differently
Hi,
I am in the process of making a form and most of it is done and now I want to be able to print off two of the pages but to different printers, I have one that needs to be printed off on a regular A4 printer and another that needs to go to a label printer. I have both of the names for the printers and I have tried something but it just doesnt do anything at all (this is suggested by adobe I think?)
var pp = this.getPRintParam();
var printamount = this.getValue("Quantity_Boxes");
pp.printerName = "Zebra Technologies ZTC GK420t";
pp.firstPage = 3;
pp.lastPage = 3;
pp.NumCopies = 2*printamount;
this.print();
I tried it without the first and last page and nothing happens, I am useing a shared printer which works when I do cmd + P which the full printer name is Zebra Technologies ZTC GK420t @ User's iMac. (I have also tried putting the full name in aswell)
This is just to test one page so far but is there any way that one button will be able to print off 2 different pages to 2 different printers?
If someone knows how this would be a great help!
Thanks,
BruceThanks for that, I have it working now but it shows the dialog box with no settings changed should i use:
pp.interactive = pp.constants.interactionLevel.automatic ?
Thanks,
Bruce
EDIT:
It printed but only the first page but it printed on the right amount quantity was 2*3 wich was the result of the Quantity_Box value
I want it to print page 3 through the Zebra Printer and have page 2 printed to a different printer, is this possible through one button?
Maybe you are looking for
-
I have a budget spreadsheet with a couple recurring tables. As months go by, I sometimes make changes to these tables and would like those changes to be synced across the different sheets in the spreadsheet. Is there a way to sync content across mult
-
Issue with Customizing Condition-Dependent Document Output
Hello gurus! When we print a Bid Invitation on SRM menubar web "Output Control", Sap creates three new spool orders. The first contains the output format of our SmartForm ZBBP_BID INVITATION. The second contains the format of a external mail. And the
-
Hello, I want to be able to create 'drill-down' links in my SWING applications, I have seen these in many apps written in Visual Basic where you can click in a label and it acts like a button. Can anyone tell me how this is done or where I might find
-
Echec to install Oracle database 11gr2 in OEL5.6, OEL 5.5 and RHEL 5.6
I try to install Oracle 11gr2 in Linux with the traditionnal installation but after several installation test i am disappointed. i make test on several distribution of Linux 64bits (OEL 5.6, OEL 5.5, RHEL 5.6) and SAME result : The installation of Or
-
Fusion Drive help, Keep getting errors.
I just installed a SSD in my MBP 2009. I want to turn it into a fusion drive. I'm following the directions on the internet, and this is what I get... "-bash-3.2# diskutil list /dev/disk0 #: TYPE NAME SIZE