Analyzer 6, selecting parent and children
Hello I'm trying to use a combo box to select members and it's children.There is also a grid that the combo is connected to. Selection ofa single item in combo box results that the selected member andits children apear in the grid's page section. The problem is thatthe parent member is located below it's children on pages list.There was a "select parent first" option in Wired Analyzer 4 so the parent member apeared properly - over the children members. Has anyone idea how to set it up in the Analyzer 6.1?thanksGrzesiek
According to the Readme Document, Parent first is not supported in Analyzer 6.1, and this is a known issue. I was able to add a combo box from the Design Report option (instead of Pages) and Also Select Children, and the parent does display first that way. That may be an option.
Similar Messages
-
How to create Parent and Children is a tree table / trigger sequence number
How to create Parent and Children is a tree table when the primary key of the parent is generated via a trigger and a sequence number in the database?
My problem is when I create a parent and then right away a children. The parent still not have a primary key until the transaction get to the database. I get a error when trying the create the children, cannot insert null in the foreign key field of the children.
Please help.
StephaneYou should have the parent key be marked as a DBSequence type.
Then you should have the association between the master and detail defined as composite association to make sure that the posting order to the database is correct.
http://download.oracle.com/docs/cd/E24382_01/web.1112/e16182/bcentities.htm#BABFECDJ -
How to create a graph representing a big tree(parents and children are know
How to create a graph representing a big tree(parents and children are known)?
Thank you so much!
Also, I need to write the graph into a jpg/gif file or display the graph in the web browser.
I got a code from JGraph and can create the graph I want, although unextendable. However, JGraph define the graph as class Gscene instead of Img or BufferedImg or RenderedImg. Therefore, I couldn't use ImageIO.write(image, ext, file) to write the graph into a jpg file.aiGrace wrote:
How to create a graph representing a big tree(parents and children are known)?Hierarchical data structures are covered here all the time. Please search before you post. This topic has been covered over and over.
Thank you so much!
Also, I need to write the graph into a jpg/gif file or display the graph in the web browser. I got a code from JGraph and can create the graph I want, although unextendable. However, JGraph define the graph as class Gscene instead of Img or BufferedImg or RenderedImg. Therefore, I couldn't use ImageIO.write(image, ext, file) to write the graph into a jpg file.Did you read the JGraph API? I'm guessing it exposes a method to get the image data somehow. -
How to list selected parent and child rows with values from ADF TreeTable
I created one tree table having three levels using DepartmentsVO, EmployeesVO and
JobHistoryVO where these tables contains parent and child relationship on database.
Then i added one more column to the tree table which displays selectBooleanCheckBox. This
check box is available for parent and child rows in that column.
My first concern is i
want to list out all the parentids and its child ids from three levels where the check
box is selected.
second concern is
if i select the check box for a parent row, then the remaining check boxes for child rows also select automatically which are comes under the parent row.
Thanks in advance.
jkhi Frank,
Thanks for the quick reply...
As I mentioned before I am able to get the children using JUCtrlHierNodeBinding. but wanted to change the value of child row which have specific data.
Is it possible through JUCtrlHierNodeBinding to update data of child and parent?? If so then can you please post the code snippet for the same???
Viral -
Security class access to parents and children
Dear Experts,
If I give "All" access to a parent entity to a user, does it give also access to the children of the parent entity?
Many thanks.
Regards,
BenoitHi Benoit,
If you give "All" access to a parent entity it means that the user will be able to read/write/promote an entity. If in the application properties "Node security" attribute, you have selected "Entity" the access will be available only for the specific entity. If you have selected "Parent" then the specific access will be available for all the children of that entity.
Check the admin manual page 90.
Regards,
Thanos
One Truth about...: ..calculation options -
Recursive query for finding parents and children against two tables
Hi I have two tables where the data is stored hierarchially.
I have found using connect_by, level and other oracle functions doing its job when the data is in one table.
Can I traverse against two tables by using the same oracle functions.
My Table A can go 2 levels deep in my hierarchy and level 3 and so forth has to be done against a different table.
Appreciate your insight..
Thanks in advanceThe number of levels that I can traverse in the first table is dynamic (sometimes 2 levels and sometimes 3 levels and actually no level limit) and then has to dynamically start looking at second table for finding any more levels in the other table.
I was able to implement them seperately and union them.
I was more looking for a comprehensive solution to reduce the number of lines that I have to maintain...
Thanks in advance
Edited by: user566193 on Jan 15, 2010 1:58 PM -
Copy Parent and its children records
Hello:
I have a requirement to implement the "deep copy" functionality i.e. copy Opportunity and its children records including Contact, Opportunity Product Revenue etc. Can this be accomplished with the weblink, web services or any other options? I have went over the Oracle web services Guide doc, but I am still not sure what steps need to take in order to implement this "deep copy" functionality. Could you direct me to any reference docs to implement this?
Thanks in advance!
-AJBriefly, it looks like this.
"Deep copy", as you describe it, can be just a programmatic manipulation of data via WebServices. So your program would go through these steps:
- login to WS (or use stateless sessions)
- use Query method on Opportunity object Web Service to retrieve all fields from the record, and all child records
- create new Opportunity record, by calling Insert method
- create child records of all types you need, also by calling Insert method (in WS 1.0 you will use InsertChild)
Exact details depend on your programming language.
You may need to use both 1.0 and 2.0, or select which version to use, because these two interface support different child objects.
In any case, there is no way to create both parent and children in one call - you create Opportunity record, and then reference its ID in new child objects.
Hope it helps. -
This is very urgent..Please HELP!!!
Iam in a project which is planning to store the entire XML file in the database in a XML datatype column. The XML has multiple parents AND multiple children for each of those parents. My problem is how to read/store the data for each of the parent and associate the parent to the child elements. The child elements does not have a parentID in its column. Here is an example- Parent table - SHIPMENT. Child Table - SHIPMENTUNITS. ShipmentNBr is the business key in both these tables. This column comes in the SHIPMENT node but does not come in the SHIPMENTUNITS node. When I try the OPENXML, all the data just gets stored..how do I link the child to the parent?
<SHIPMENT xmlns="">
<SHIPMENTNBR>US1011<SHIPMENTNBR />
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT>
<SHIPMENT xmlns="">
<SHIPMENTNBR>IN2052<SHIPMENTNBR />
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT>I don't quite understand what you want to achieve.
If you store the data in an XML data type then you get the XML as is and all the children are associated with their parents.
If you want to decompose them into relational tables using OpenXML, then you either use the id values provided in the data and use the parent axis, or if no such id values are present look at the so called meta properties @mp:id and @mp:parentid. In your case you have the shipment number and unit number that you could use. The first approach you can do with the nodes() method too (but the meta properties are OpenXML only).
In the following example I show you both. In your case you don't need the @mp: parts. Also, since OpenXML needs a complete document I added a single root node.
declare @i int;
exec sp_xml_preparedocument @i output,
N'<doc><SHIPMENT xmlns="">
<SHIPMENTNBR>US1011</SHIPMENTNBR>
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT>
<SHIPMENT xmlns="">
<SHIPMENTNBR>IN2052</SHIPMENTNBR>
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT></doc>'
select *
from OpenXML(@i, '/doc/SHIPMENT')
with (
id int '@mp:id'
, nbr varchar(40) 'SHIPMENTNBR'
select *
from OpenXML(@i, '/doc/SHIPMENT/SHIPMENTUNITS')
with (
id int '@mp:id'
, ship_id int '@mp:parentid'
, ship_nbr varchar(40) '../SHIPMENTNBR'
, nbr varchar(40) 'UNITNBR'
exec sp_xml_removedocument @i
Best regards
Michael -
Sharing resources between parent FDO and children PDO
Hello,
I 'm developping a WDM driver for a FPGA that embeds several uarts and a CAN controler in one PCI slot.
I use the DDK Toaster sample as a basis.
Has someone already shared resources between parent FDO and children PDO ?
One way will be to export a direct-call interface between tha parent and the children. Is there something better to get the interrupt trigger in the child and the memory as a direct access ?
Thanks
MarcoHi Doron,
here is the full debug output................
ADDITIONAL_DEBUG_TEXT:
You can run '.symfix; .reload' to try to fix the symbol path and load symbols.
MODULE_NAME: Nitin
FAULTING_MODULE: fffff8000324a000 nt
DEBUG_FLR_IMAGE_TIMESTAMP: 549ced55
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
FAULTING_IP:
+501cfc0
00000000`00000000 ?? ???
EXCEPTION_RECORD: fffff88003b9a9c8 -- (.exr 0xfffff88003b9a9c8)
ExceptionAddress: 0000000000000000
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000008
Parameter[1]: 0000000000000000
Attempt to execute non-executable address 0000000000000000
CONTEXT: fffff88003b9a220 -- (.cxr 0xfffff88003b9a220;r)
rax=fffffa8022124c40 rbx=0000000000000000 rcx=0000000000000000
rdx=fffff88003b9ac58 rsi=fffff88000fc60c0 rdi=fffff88003b9acf8
rip=0000000000000000 rsp=fffff88003b9ac08 rbp=000000000000000c
r8=0000000000000065 r9=0000000000000003 r10=4679726575516f64
r11=000000000000000c r12=fffff88000fc92c0 r13=0000000000000312
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up ei ng nz na pe nc
cs=0010 ss=0018 ds=002b es=002b fs=0053 gs=002b efl=00010282
00000000`00000000 ?? ???
Last set context:
rax=fffffa8022124c40 rbx=0000000000000000 rcx=0000000000000000
rdx=fffff88003b9ac58 rsi=fffff88000fc60c0 rdi=fffff88003b9acf8
rip=0000000000000000 rsp=fffff88003b9ac08 rbp=000000000000000c
r8=0000000000000065 r9=0000000000000003 r10=4679726575516f64
r11=000000000000000c r12=fffff88000fc92c0 r13=0000000000000312
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up ei ng nz na pe nc
cs=0010 ss=0018 ds=002b es=002b fs=0053 gs=002b efl=00010282
00000000`00000000 ?? ???
Resetting default scope
CUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: WIN7_DRIVER_FAULT
BUGCHECK_STR: 0x7E
CURRENT_IRQL: 0
ANALYSIS_VERSION: 6.3.9600.17029 (debuggers(dbg).140219-1702) amd64fre
LAST_CONTROL_TRANSFER: from fffff8800b9eb091 to 0000000000000000
STACK_TEXT:
fffff880`03b9ac08 fffff880`0b9eb091 : fffff880`0b9ec9a0 00000000`00000001 00000000`00000000 fffff880`009cf180 : 0x0
fffff880`03b9ac10 fffff880`0b9ec9a0 : 00000000`00000001 00000000`00000000 fffff880`009cf180 00000000`00000001 : Nitin+0x4091
fffff880`03b9ac18 00000000`00000001 : 00000000`00000000 fffff880`009cf180 00000000`00000001 00000000`00000000 : Nitin+0x59a0
fffff880`03b9ac20 00000000`00000000 : fffff880`009cf180 00000000`00000001 00000000`00000000 00000000`03060001 : 0x1
FOLLOWUP_IP:
Nitin+4091
fffff880`0b9eb091 ?? ???
SYMBOL_STACK_INDEX: 1
SYMBOL_NAME: Nitin+4091
FOLLOWUP_NAME: MachineOwner
IMAGE_NAME: Nitin.sys
STACK_COMMAND: .cxr 0xfffff88003b9a220 ; kb
BUCKET_ID: WRONG_SYMBOLS
FAILURE_BUCKET_ID: WRONG_SYMBOLS
ANALYSIS_SOURCE: KM
FAILURE_ID_HASH_STRING: km:wrong_symbols
FAILURE_ID_HASH: {70b057e8-2462-896f-28e7-ac72d4d365f8}
Followup: MachineOwner -
I have this code:
if (s == "file")
file = false;
for (int i = 0; i < treeViewMS1.SelectedNodes.Count; i++)
DeleteFile(treeViewMS1.SelectedNode.FullPath, file);
I know it's a file and it is working if it's a single file.
On the treeView i click on a file right click in the menu i select delete and it's doing the line:
DeleteFile(treeViewMS1.SelectedNode.FullPath, file);
And it's working no problems.
But i want to do that if i selected some files togeather multiple selection then to delete each file.
So i added the FOR loop but then how do i delete from the SelectedNodes each node ?
The treeView SelectedNodes dosen't have FullPath like SelectedNode also doing SelectedNodes[i] dosen't have the FullPath property.
Same as for if i want to delete a single directory or multiple selected directories:
This is the continue of the code if it"s not a "file" (else) it's null i know it's a directory and doing:
else
file = true;
RemoveDirectoriesRecursive(treeViewMS1.SelectedNode, treeViewMS1.SelectedNode.FullPath);
Also here i'm using SelectedNode but if i marked multiple directories then i how do i loop over the SelectedNodes and send each SelectedNode to the RemoveDirectoriesRecrusive method ?
My problem is how to loop over SelectedNode(multiple selection of files/directories) and send each selected file/directory to it's method like i'm doing now ?foreach (TreeNode n in treeViewMS1.SelectedNodes)
// Remove everything associated with TreeNode n here
I don't think it's any harder than that, is it?
If you can multi-select both an item and one of its descendents in the tree, then you'll have the situation that you may have deleted the parent folder and all of its children by the time you get around to deleting the descendent. But that's not such
a big deal. A file can get deleted externally to your program too - so you'll just have to deal with it having been deleted already (or externally) when you get around to deleting it yourself. -
Parenting and child control with AS3
Hi,
I'm new to AS3 and although I can see some good practice and functionality I'm constantly getting stucked and can't yet make things that I would do so easily with AS2 - I almost need to relearn it from scratch!. Still I would appreciate some help and guidance on this...
I made a class that creates a "kind" of menu with data from a XML file and basically what it does when it is called is create a emptyMC (a container), add a childMC (a square) and add another child (a text label). When I create the container I'm trying to add a MouseEvent that can act on each the container instances but all I can get is a MouseEvent on object containing all the added MCs. The code follows.
Can anyone enlight me with this issue or explain what am I doing wrong.
I can't understand well the dynamic parenting with AS3 and the lack of using instance names and dot parenting doesn't help.
Thanks in advance.
Note to Adobe: Previous versions of Flash Help Files and AS reference were by far more helpful than in CS4!
In the timeline:
import assets.myDynMenu;
var theMenu:myDynMenu = new myDynMenu("menu.xml");
stage.addChild(theMenu)
stop();
In the class:
package assets
import flash.display.*;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.net.*;
public class myDynMenu extends Sprite {
// INIT EXTERNAL DATA LOAD
public function myDynMenu(theData) {
// LOADS THE MENU DATA FROM PREFORMATTED XML
var loader:URLLoader = new URLLoader();
var url:URLRequest = new URLRequest(theData);
loader.addEventListener(Event.COMPLETE, buildTheMenu);
loader.load(url);
// XML MENU DATA LOAD CHECK - ON COMPLETE BUILD OBJECT AND CHILDREN
public function buildTheMenu(event:Event):void {
var xml:XML = new XML(event.target.data);
for (var i=0; i<xml.menuData.menuItem.length(); i++) {
// ADDS A CONTAINER
var itemContainer:MovieClip = new MovieClip();
itemContainer.name = "menu" + i;
// THE NEXT LINE DOESN'T ACT AS I WISHED?!
// IN THE FUNCTION CALLED I NEED TO CONTROL THIS ITEM AND ITS CHILDREN
itemContainer.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
itemContainer.x = 100 * i;
itemContainer.y = 0;
itemContainer.mouseEnabled = true;
itemContainer.mouseChildren = false;
addChild(itemContainer);
// ADDS A CHILD TO CONTAINER (a square)
var itemBase:MovieClip = new MovieClip();
itemBase.graphics.beginFill(xml.menuData.mConfig.mainItemColor);
itemBase.graphics.drawRect(0,0,xml.menuData.mConfig.mainItemW,xml.menuData.mConfig.mainIt emH);
itemBase.graphics.endFill();
itemBase.name = "base" + i;
itemBase.mouseEnabled = false;
itemBase.mouseChildren = false;
itemContainer.addChild(itemBase);
// ADDS ANOTHER CHILD TO CONTAINER (a text label)
var theLabel:TextField = new TextField();
theLabel.x = 5;
theLabel.y = 5;
theLabel.selectable = false;
theLabel.mouseEnabled = false;
theLabel.border = true;
theLabel.text = xml.menuData.menuItem[i].mName;
itemContainer.addChild(theLabel);
// THIS IS THE MOUSE OVER THAT I NEED TO ACT ON EACH itemContainer (AND CHILDREN)
private function onMouseOver(event:MouseEvent):void {
event.stopPropagation();
trace("You are over " + this.name );use:
package assets
import flash.display.*;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.net.*;
public class myDynMenu extends Sprite {
// INIT EXTERNAL DATA LOAD
public function myDynMenu(theData) {
// LOADS THE MENU DATA FROM PREFORMATTED XML
var loader:URLLoader = new URLLoader();
var url:URLRequest = new URLRequest(theData);
loader.addEventListener(Event.COMPLETE, buildTheMenu);
loader.load(url);
// XML MENU DATA LOAD CHECK - ON COMPLETE BUILD OBJECT AND CHILDREN
public function buildTheMenu(event:Event):void {
var xml:XML = new XML(event.target.data);
for (var i=0; i<xml.menuData.menuItem.length(); i++) {
// ADDS A CONTAINER
var itemContainer:MovieClip = new MovieClip();
itemContainer.name = "menu" + i;
// THE NEXT LINE DOESN'T ACT AS I WISHED?!
// IN THE FUNCTION CALLED I NEED TO CONTROL THIS ITEM AND ITS CHILDREN
itemContainer.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
itemContainer.x = 100 * i;
itemContainer.y = 0;
itemContainer.mouseEnabled = true;
itemContainer.mouseChildren = false;
addChild(itemContainer);
// ADDS A CHILD TO CONTAINER (a square)
var itemBase:MovieClip = new MovieClip();
itemBase.graphics.beginFill(xml.menuData.mConfig.mainItemColor);
itemBase.graphics.drawRect(0,0,xml.menuData.mConfig.mainItemW,xml.menuData.mCon fig.mainItemH);
itemBase.graphics.endFill();
itemBase.name = "base" + i;
itemBase.mouseEnabled = false;
itemBase.mouseChildren = false;
itemContainer.addChild(itemBase);
// ADDS ANOTHER CHILD TO CONTAINER (a text label)
var theLabel:TextField = new TextField();
theLabel.x = 5;
theLabel.y = 5;
theLabel.selectable = false;
theLabel.mouseEnabled = false;
theLabel.border = true;
theLabel.text = xml.menuData.menuItem[i].mName;
itemContainer.addChild(theLabel);
// THIS IS THE MOUSE OVER THAT I NEED TO ACT ON EACH itemContainer (AND CHILDREN)
private function onMouseOver(event:MouseEvent):void {
event.stopPropagation();
trace("You are over " + event.currentTarget.name ); -
Help Displaying Parent and child relationship on one page
Hello,
I have 2 tables, lets say Parent and Child, that I want to display both tables on the same page. Basically I'm looking at trying to split the page in half, the top being the Parent table and the bottom being the Child table. When the user selects a parent, I want the Child table to display that parent's child/children. I don't know if this is possible though JDeveloper but I would appreciate all the help I can get
Thanks,
MattThis is a trivial master detail task for ADF.
Basically, in the data control palette - stand on the child node that is inside the parent node - drag it over to your page and drop it as a master detail - this will get you what you want.
More information is in the ADF Tutorial:
http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/10131/index.htm -
TreeView - Expand only selected node and collapse others
Hi
How I can expand only selected node and collapse other nodes that was expanded earlier?!Ghostenigma,
switch Option Strict On. I've tried to analyze the code but it's not usable due to type ignorance.
BTW, Goto is not required here. ELSEif means it's only executed if the previous expressions are not true.
Armin
Ignore other code and give an reply for what I've asked else you are not obligated to post a reply at all!
I am not sure if you took the "type ignorance" part wrong but, Armin was only trying to give you helpful information which i would give too. Option Strict is a GOOD thing to use and the GoTo statements are not needed inside your ElseIf
statements. As far as that goes, i would not recommend using GoTo in any modern .Net programming.
Anyways, the problem is with the way you are Adding and Removing all the child nodes every time the nodes are DoubleClicked and when they are Collapsing. I just simulated your code to add the sub nodes when a main node is double clicked.
You can just use the NodeMouseDoubleClick event instead of the TreeView`s DoubleClick event to make it a little easier on yourself too.
This corrected the problem for me.
Public Class Form1
Private r As New Random ' this random class is only for my simulation of adding sub nodes (not needed)
Private expanded As TreeNode
Private Sub TreeView1_BeforeCollapse(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeCollapse
e.Node.Nodes.Clear()
End Sub
Private Sub TreeView1_BeforeExpand(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeExpand
Dim pn As TreeNode = e.Node
While pn.Parent IsNot Nothing
pn = pn.Parent
End While
If expanded IsNot Nothing And expanded IsNot pn Then expanded.Collapse()
expanded = pn
End Sub
Private Sub TreeView1_NodeMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseDoubleClick
'Added this part to collapse the prior expanded node and set the (expanded) node to the new one
If expanded IsNot Nothing And expanded IsNot e.Node Then
expanded.Collapse()
Dim pn As TreeNode = e.Node
While pn.Parent IsNot Nothing
pn = pn.Parent
End While
expanded = pn
End If
'This just simulates your code to add the new sub nodes to the main node that was double clicked
'you need to put your code here instead of this.
Dim str() As String = {"one.mp3", "Two.mp4", "Three.mvk"}
Dim s As String = str(r.Next(0, 3))
e.Node.Nodes.Add(s, s)
e.Node.Expand()
End Sub
End Class
PS - I notice you are adding more and more Images to your ImageList every time you double click on a node. If you just add the Images to it once when the app is loading then you can just use the Image Key to set the correct Image to the newly
added node.
If you say it can`t be done then i`ll try it -
Check for same parent and child combination
hi all i am using oracle 10g. can you please help me in this issue.
how do i know if the same combination of parent and child present in the table
key value and value are the values given by user.
if the user try to create a same profile with same set of key_value and value then that should be avoided
so how to achieve that.
example profile already in the table
-- PROFILE_ID,DETAIL_ID,PARENT_DETAIL_ID,KEY_VALUE, VALUE, LAST_IND
100, 1, NULL, 1, CDE, N
100, 2, 1, 2, XXX, N
100, 3, 1, 2, YYY, N
100, 4, 1, 4, NEW, Ynew profile by user -- it should throw an error saying that same profile already present
-- PROFILE_ID,DETAIL_ID,PARENT_DETAIL_ID,KEY_VALUE,VALUE,LAST_IND
101, 5, NULL, 1, CDE, N
101, 6, 5, 2, XXX, N
101, 7, 5, 2, YYY, N
101, 8, 5, 4, NEW, YEdited by: DeepakDevarapalli on Dec 9, 2009 9:48 AM
Edited by: DeepakDevarapalli on Dec 9, 2009 9:59 AMsir i have used your logic, each query works fine and displays the correct results below are the results.
SELECT SUBSTR (t.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (PARTITION BY profile_id ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail
WHERE profile_id IN (100, 101))
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) t
GROUP BY ptxtresults from query 1
profile_values
1/CDE,2/XXX,2/YYY,4/111
1/CDE,2/XXX,2/YYY,4/222
SELECT SUBSTR (s.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail1)
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) s
GROUP BY ptxtresults from query 2
profile_values
1/CDE,2/XXX,2/YYY,4/111
but when i tried to combine both and do a minus it throws me an error .
ORA-00600: internal error code, arguments: [expcmo_strdef1], [27], [27], [], [], [], [], []
-- target
SELECT SUBSTR (t.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (PARTITION BY profile_id ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail
WHERE profile_id IN (100, 101))
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) t
GROUP BY ptxt
MINUS
-- staging
SELECT SUBSTR (s.ptxt, 2, LENGTH (ptxt)) profile_values
FROM (SELECT SYS_CONNECT_BY_PATH (rtxt, ',') AS ptxt
FROM (SELECT key_value || '/' || VALUE AS rtxt,
ROW_NUMBER () OVER (ORDER BY key_value,
VALUE) AS rnum
FROM sp_profile_detail1)
WHERE CONNECT_BY_ISLEAF = 1
START WITH rnum = 1
CONNECT BY rnum = PRIOR rnum + 1) s
GROUP BY ptxt -
How do I get spouses and children on to printed labels and envelops?
I store spouses and children in the fields provided for these names. When I go to print labels, Address Book puts the primary name and one randomly selected child name on the first line. So if the person is Jane Smith, I have her spouse listed as John, and two kids listed as Jake and Janice, the label will read.
Jane Smith and Janice
142 Main St.
Nowhere, NH
Can I get the spouse name and the other kids to show up? How?
+Also, any tips on dealing with couples with two last names? That's more of a data entry question, but if anyone has ways this works for labels but also for logical address book and iPhone look up.+Turn iCloud contact syncing off and choose keep when prompted.
Maybe you are looking for
-
i am unable to sign in to my wi fi network on my ipod because the keyboard wont come up. what do i do? please help me out
-
anyway, first i thought it may be due to Adopt Flash Player...so i did install a new update of Adopt Flash Player, but it still doesnt work at all...the game doesnt load.... usually i played Farmville by using Firefox....but now i encountered that pr
-
Hello all, I am maintaining a part of our product that requires monitoring mailboxes for events. This is currently being done by using streaming connections for getting the notifications. Our solution has been successful for situations with smaller
-
Does anybody know if there is a bluetooth device for the iPod Nano (like 'BlueTrip'), where I can listen to it through my CD Player? Does anybody know if these devices can be played through any CD Players? Does anybody know if you can change the song
-
MX2004, FF1.5 A nested tabele shows fine in IE, but FF http://www.cbrc.us/Results-VFTT.html Specificly, the category headings, such as "Men <45: 16.1km" seem to wrap in FF, but looks fine FF. I recall a tech bulletin from Macromedia re. this issue, b