Am I root or child?
I must be brain dead right now. How can I test if my AS3 code is executing from root or from a child mc that has been imported into a larger project via the loader class?
Details:
I’ve got a tutorial that is published both as a standalone projector (exe) and as an swf imported at runtime into a larger project. If the tutorial is running by itself as a standalone projector it needs to execute a few fscommands and perform some other housekeeping chores. If the tutorial is running as a child of the larger project these chores must be skipped. I can’t test Capabilities.playerType because the parent can also run as a standalone projector.
It's simple, but here's what I had before I realized the parent might also be standalone:
var gRunMode:String = Capabilities.playerType;
function initFrame():void {
<snip> blah, blah, blah...</snip>
if (gRunMode == "StandAlone") {
var myMask:projectorMask = new projectorMask();
this.addChild(myMask);
this.mask = myMask;
fscommand("fullscreen","true");
fscommand("showmenu","false");
gotoAndPlay("mcStart");
<snip> blah, blah, blah...</snip>
Thanks
This works, I must be tired:
if (this.parent == this.stage) { }
this.parent = stage object when I'm root
this.parent = loader object when I'm loaded into the larger project
Similar Messages
-
Arbitration mailboxes exist in root and child domains, which to delete?
Hi,
I discovered a problem with my Arbitration Mailboxes when setting up a Moderated Distribution group. The moderator wasn't receiving an email from Exchange advising that there was a message that needed to be approved or declined. A bit of digging in Message
Tracking and the Event log (IDs 9214 & 9217) revealed that the email address for the MS Exchange Approval Assistant exists twice, in both our root and child domains.
The question is which to delete, the account in root or child? All of the users are in the child domain so presumably it's the account in root which I should delete, but I'm not 100% sure.
Any pointers very welcome.
Cheers.Hi,
Agree with Andy. The arbitration accounts are in the root domain by default. You should delete the account in child domain. Then you can use the Get-Mailbox -Arbitration | fl displayname command to check if you can get this system mailbox in child domain.
If you can't get this system mailbox in the child domain, you need to run the following command, so that the scope of the search is changed to the forest level.
Set-ADServerSettings –ViewEntireForest $true
Best regards,
Belinda
Belinda Ma
TechNet Community Support -
Root-Node + Child -Node +Line-Node
How can I implement with alv-tree the following requirement:
Root-Node -> Customer-Nr
Child -Node -> Range
Line-Node -> Datas
Regards
Ilhanrefer Tcode DWDM
or
refer link
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
reward if useful. -
Representating Hierarchical (Parent-Child) relation graphically using Swing
Hi,
I have to represent a hierarchical data which is having Parent-Child relation using Swing. I am not able to upload the image overhere, so I am represnting the data in such a way so that one can understand this problem. If anyone knows how to upload image on Sun forum, please let me know it will be great help for me.
Parent Root - A
Child of A - B, C, D
Child of C - E, F, G
Child of F - H
Child of D - J, K
The data needs to be represented in two formats-
1. Tabular Format
I am able to represent data in this format using combination of JTree and JTable. The data is getting represented in tabular format and I am able to expand and collapse the parent nodes to see the childs. The tabular data will look like below structure,
A
I_B
I
I_C
I I_E
I I
I I_F
| I |_H
| I
I I_G
I
I_D
I
I_J
I
I_K
2. Graphical Format
This is the other way in which I need to represent the data. The above shown tabular data needs to represented in graphical form. The end result should look like,
I A I
____________________I__________________________
___I___ __I__ __I__
I B I I C I I D I
____________________I____________ ______I________
___I___ __I__ __I__ __I__ ___I__
I E I I F I I G I I J I I K I
__I___
I H I
Each box representing alphabates will be a component (like JPanel) which will have details about the item to be displayed. The parent and child should be connected with each other using line. This representation should be created at runtime using the hierarchical data. Also the parent and child relations should be expandable/collapsible as they are in JTree.
I am not able to find any component or any solution in Swing which can provide me this graphical representation. It will be great help if anyone can help me out in this.
Thanks in advance.Sorry for inconvinience for the data representaion in graphical form. I don't know how this get jumblled. Please try to figure out the tabular/graphical representation using pen and paper as forum is not providing any help to upload an image.
Sorry again for inconvinience.
Thanks
Manoj Rai -
Cl_gui_alv_tree no child nodes after registering event
Hey guys,
I have an uncommon problem with cl_gui_alv_tree.
My tree has 2 layers, Root and child. Both of them have layout-class cl_gui_column_tree=>item_class_checkbox.
Everithing works fine! (without_events.jpg)
But if I register event "checkbox_change" with method SET_REGISTERED_EVENTS the childnodes disapear! (with_events.jpg)
Does anyone know a solution?
here's some code:
data; gr_alv_0200 type ref to cl_gui_alv_tree.
METHOD init_dynpro_0200.
DATA: ls_hierarchy_header TYPE treev_hhdr.
IF gr_cont_0200 IS INITIAL.
CREATE OBJECT gr_cont_0200
EXPORTING
container_name = 'CC200'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
IF gr_alv_0200 IS INITIAL.
CREATE OBJECT gr_alv_0200
EXPORTING
* lifetime =
parent = gr_cont_0200
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
item_selection = 'X'
no_toolbar = 'X'
no_html_header = 'X'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7
OTHERS = 8.
CHECK sy-subrc EQ 0.
ls_hierarchy_header-heading = 'Hierarchy Header'. "#EC NOTEXT
ls_hierarchy_header-tooltip =
'This is the Hierarchy Header !'. "#EC NOTEXT
ls_hierarchy_header-width = 100.
ls_hierarchy_header-width_pix = ''.
tree_create_fcat( ).
CALL METHOD gr_alv_0200->set_table_for_first_display
EXPORTING
is_hierarchy_header = ls_hierarchy_header
i_background_id = 'ALV_BACKGROUND'
CHANGING
it_outtab = gt_treenodes
it_fieldcatalog = gt_fcat_0200.
DATA: lt_events TYPE cntl_simple_events,
ls_event LIKE LINE OF lt_events.
ls_event-eventid = cl_gui_column_tree=>eventid_checkbox_change.
APPEND ls_event TO lt_events.
CALL METHOD gr_alv_0200->set_registered_events
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
SET HANDLER me->on_tree_checkbox_change FOR gr_alv_0200.
ENDIF.
ENDMETHOD.
METHOD tree_add_node.
DATA: ls_node_text TYPE lvc_value.
* set item-layout
DATA: lt_item_layout TYPE lvc_t_layi,
ls_item_layout TYPE lvc_s_layi.
ls_item_layout-fieldname = gr_alv_0200->c_hierarchy_column_name.
ls_item_layout-style = cl_gui_column_tree=>style_intensifd_critical.
ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
ls_item_layout-editable = 'X'.
APPEND ls_item_layout TO lt_item_layout.
* add node
ls_node_text = is_data-name.
DATA: ls_node TYPE lvc_s_layn.
ls_node-n_image = space.
ls_node-exp_image = space.
CALL METHOD gr_alv_0200->add_node
EXPORTING
i_relat_node_key = iv_parent
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = ls_node_text
is_outtab_line = is_data
is_node_layout = ls_node
it_item_layout = lt_item_layout
IMPORTING
e_new_node_key = ev_node_id.
ENDMETHOD.
in my current class I've method on_tree_checkbox_change to handle the event. If the event is registered, the method gets called.Solved by my own:
I had to implement method get_registered_events( ), append the new event to the table and call set_registered_events( ).
The table from get_registered_events( ) is already filled with events. -
Child list as a table doesn't show data until window is resized.
Hi,
I am trying to develop a page made up of a list of objects. Each object has some properties that I want to display as a form and then a child list of objects. This child list of objects, i am displaying as a table. I have the following page and backing bean. Normally, to display a list of objects each of which has a sublist of objects, I can use a "nested iterator". But I am not able to refer to the child iterator as a part of the parent iterator.
The page is as follows:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" binding="#{backingBeanScope.backing_frmBuilder9.d1}">
<af:messages binding="#{backingBeanScope.backing_frmBuilder9.m1}"
id="m1"/>
<af:form id="f1" binding="#{backingBeanScope.backing_frmBuilder9.f1}">
<af:table value="#{bindings.frms.collectionModel}" var="row"
rows="#{bindings.frms.rangeSize}"
emptyText="#{bindings.frms.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.frms.rangeSize}" rowBandingInterval="0"
binding="#{backingBeanScope.backing_frmBuilder9.t1}" id="t1"
columnStretching="none" horizontalGridVisible="false"
verticalGridVisible="false">
<af:column sortProperty="name" sortable="false" id="c3"
width="500">
<af:panelFormLayout id="pfl2">
<af:inputText value="#{row.bindings.name.inputValue}" label="Name"
required="#{bindings.frms.hints.name.mandatory}"
columns="#{bindings.frms.hints.name.displayWidth}"
maximumLength="#{bindings.frms.hints.name.precision}"
shortDesc="#{bindings.frms.hints.name.tooltip}"
id="it1">
<f:validator binding="#{row.bindings.name.validator}"/>
</af:inputText>
<af:inputText value="#{row.bindings.comment.inputValue}"
label="#{bindings.frms.hints.comment.label}"
required="#{bindings.frms.hints.comment.mandatory}"
columns="#{bindings.frms.hints.comment.displayWidth}"
maximumLength="#{bindings.frms.hints.comment.precision}"
shortDesc="#{bindings.frms.hints.comment.tooltip}"
id="it3">
<f:validator binding="#{row.bindings.comment.validator}"/>
</af:inputText>
<af:inputText value="#{row.bindings.logFile.inputValue}"
label="#{bindings.frms.hints.logFile.label}"
required="#{bindings.frms.hints.logFile.mandatory}"
columns="#{bindings.frms.hints.logFile.displayWidth}"
maximumLength="#{bindings.frms.hints.logFile.precision}"
shortDesc="#{bindings.frms.hints.logFile.tooltip}"
id="it2">
<f:validator binding="#{row.bindings.logFile.validator}"/>
</af:inputText>
<af:inputText value="#{row.bindings.id.inputValue}"
label="#{bindings.frms.hints.id.label}"
required="#{bindings.frms.hints.id.mandatory}"
columns="#{bindings.frms.hints.id.displayWidth}"
maximumLength="#{bindings.frms.hints.id.precision}"
shortDesc="#{bindings.frms.hints.id.tooltip}"
id="it4">
<f:validator binding="#{row.bindings.id.validator}"/>
</af:inputText>
</af:panelFormLayout>
<af:table value="#{backingBeanScope.backing_frmBuilder9.childData}"
var="row1" rows="#{bindings.formulas.rangeSize}"
emptyText="#{bindings.formulas.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.formulas.rangeSize}"
rowBandingInterval="0" id="t2"
inlineStyle="width:200px; height:100.0px;" width="400">
<af:column sortProperty="rhs" sortable="false"
headerText="#{bindings.formulas.hints.rhs.label}"
id="c8">
<af:inputText value="#{row1.rhs}"
label="#{bindings.formulas.hints.rhs.label}"
required="#{bindings.formulas.hints.rhs.mandatory}"
columns="#{bindings.formulas.hints.rhs.displayWidth}"
maximumLength="#{bindings.formulas.hints.rhs.precision}"
shortDesc="#{bindings.formulas.hints.rhs.tooltip}"
id="it6"/>
</af:column>
<af:column sortProperty="lhs" sortable="false"
headerText="#{bindings.formulas.hints.lhs.label}"
id="c6">
<af:inputText value="#{row1.lhs}"
label="#{bindings.formulas.hints.lhs.label}"
required="#{bindings.formulas.hints.lhs.mandatory}"
columns="#{bindings.formulas.hints.lhs.displayWidth}"
maximumLength="#{bindings.formulas.hints.lhs.precision}"
shortDesc="#{bindings.formulas.hints.lhs.tooltip}"
id="it5"/>
</af:column>
<af:column sortProperty="lineComment" sortable="false"
headerText="#{bindings.formulas.hints.lineComment.label}"
id="c7">
<af:inputText value="#{row1.lineComment}"
label="#{bindings.formulas.hints.lineComment.label}"
required="#{bindings.formulas.hints.lineComment.mandatory}"
columns="#{bindings.formulas.hints.lineComment.displayWidth}"
maximumLength="#{bindings.formulas.hints.lineComment.precision}"
shortDesc="#{bindings.formulas.hints.lineComment.tooltip}"
id="it7"/>
</af:column>
</af:table>
</af:column>
<af:column sortProperty="comment" sortable="false"
headerText="#{bindings.frms.hints.comment.label}" id="c2"
rendered="false"/>
<af:column sortProperty="logFile" sortable="false"
headerText="#{bindings.frms.hints.logFile.label}" id="c4"
rendered="false"/>
<af:column sortProperty="id" sortable="false"
headerText="#{bindings.frms.hints.id.label}" id="c1"
rendered="false"/>
<af:column id="c9" headerText="Save" rendered="false">
<af:commandButton actionListener="#{bindings.save.execute}"
text="save" disabled="#{!bindings.save.enabled}"
binding="#{backingBeanScope.backing_frmBuilder9.cb1}"
id="cb1" rendered="true"/>
</af:column>
<af:column id="c5" headerText="Formulas" rendered="false"/>
</af:table>
<af:table var="row" rowBandingInterval="0"
binding="#{backingBeanScope.backing_frmBuilder9.t3}" id="t3"
rendered="false">
<af:column sortable="false" headerText="col1" id="c10" width="400">
<af:panelFormLayout id="pfl1">
<f:facet name="footer"/>
<af:inputText value="#{row.bindings.name.inputValue}"
label="#{bindings.frms.hints.name.label}"
required="#{bindings.frms.hints.name.mandatory}"
columns="#{bindings.frms.hints.name.displayWidth}"
maximumLength="#{bindings.frms.hints.name.precision}"
shortDesc="#{bindings.frms.hints.name.tooltip}"
id="inputText1">
<f:validator binding="#{row.bindings.name.validator}"/>
</af:inputText>
<af:inputText value="#{row.bindings.comment.inputValue}"
label="#{bindings.frms.hints.comment.label}"
required="#{bindings.frms.hints.comment.mandatory}"
columns="#{bindings.frms.hints.comment.displayWidth}"
maximumLength="#{bindings.frms.hints.comment.precision}"
shortDesc="#{bindings.frms.hints.comment.tooltip}"
id="inputText2">
<f:validator binding="#{row.bindings.comment.validator}"/>
</af:inputText>
</af:panelFormLayout>
<af:table value="#{backingBeanScope.backing_frmBuilder9.childData}"
var="row1" rows="#{bindings.formulas.rangeSize}"
emptyText="#{bindings.formulas.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.formulas.rangeSize}"
rowBandingInterval="0" id="table1">
<af:column sortProperty="rhs" sortable="false"
headerText="#{bindings.formulas.hints.rhs.label}"
id="column1">
<af:inputText value="#{row1.rhs}"
label="#{bindings.formulas.hints.rhs.label}"
required="#{bindings.formulas.hints.rhs.mandatory}"
columns="#{bindings.formulas.hints.rhs.displayWidth}"
maximumLength="#{bindings.formulas.hints.rhs.precision}"
shortDesc="#{bindings.formulas.hints.rhs.tooltip}"
id="inputText3"/>
</af:column>
<af:column sortProperty="lhs" sortable="false"
headerText="#{bindings.formulas.hints.lhs.label}"
id="column2">
<af:inputText value="#{row1.lhs}"
label="#{bindings.formulas.hints.lhs.label}"
required="#{bindings.formulas.hints.lhs.mandatory}"
columns="#{bindings.formulas.hints.lhs.displayWidth}"
maximumLength="#{bindings.formulas.hints.lhs.precision}"
shortDesc="#{bindings.formulas.hints.lhs.tooltip}"
id="inputText4"/>
</af:column>
<af:column sortProperty="lineComment" sortable="false"
headerText="#{bindings.formulas.hints.lineComment.label}"
id="column3">
<af:inputText value="#{row1.lineComment}"
label="#{bindings.formulas.hints.lineComment.label}"
required="#{bindings.formulas.hints.lineComment.mandatory}"
columns="#{bindings.formulas.hints.lineComment.displayWidth}"
maximumLength="#{bindings.formulas.hints.lineComment.precision}"
shortDesc="#{bindings.formulas.hints.lineComment.tooltip}"
id="inputText5"/>
</af:column>
</af:table>
</af:column>
</af:table>
</af:form>
</af:document>
</f:view>
</jsp:root>
The child list i am getting onto the page via the backing bean. *"#{backingBeanScope.backing_frmBuilder9.childData}"*
The problem I am facing here is, the first time the page loads I am not able to see the child data in the table. If I resize the page, then I am able to see the data in the child table. Anybody faced this issue before ? And any way to overcome this problem ? Please let know.
Thanks,
pawan.There is no check box for Advanced Options as they're already there when editing. Except for the partition options, which obviously aren't.
This was mentioned time ago and I'm pretty sure they have an enhancement planned for this. Might be a looong time until you get it though. Better request this officially on the SQL Developer Exchange, so other users can vote on the request and add weight for sooner implementation.
Regards,
K. -
Drag Child node to make it a Parent Node
Hello All
I have implemented Drag -Drop functionality in my tree. Which
consists of root and child nodes. I hide the Root node of the tree now
is there any way to make a child node as a parent node because when I
drag the child node in backward( <--) direction at the level of parent
node no drop method calls in this case then how can I make this child
node a parent node ????? I will be very thankful to your for your kind
suggestion
Regards
Sunny KhanAh
I think it is actually an Apple App switcher thing.
So if the finder window does noy cover the After Effects Project window, it works, but if you have to use the app switcher, sometimes it works and sometimes it doesn't.
I don't think it is a file type issue, so much as a live application issue, or maybe GPU related.
It's a weird thing, not that important, but it does limit where you can and can't drag from.
Tris -
Hi guys,
for example, in this .as file, what is root? And "this" is a reference to the class?
ps. This .as is connected with a .fla
package {
import flash.display.MovieClip;
import flash.events.Event;
public class FlashVars extends MovieClip {
public function FlashVars() {
carregarFlashVars ();
private function carregarFlashVars (): void {
this.root.loaderInfo.addEventListener (Event.COMPLETE, mostrarValor);
private function mostrarValor (e: Event): void {
texto_txt.text = e.target.parameters.nome;"But if the SWF is loaded into another SWF, root becomes the hosting SWF."
This is not true. root is the same for the same swf and doesn't change even when it is loaded into another swf.
Here are three classes that will demonstrate it. Just compile them into the same directory with respective names. When GrandParent swf is run the following traces are displayed:
[object GrandParent] root = [object GrandParent]
[object Parent] root = [object Parent]
[object Child] root = [object Child]
Which, again, shows that root did not change.
package
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
public class GrandParent extends Sprite
public function GrandParent()
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
private function init(e:Event = null):void
removeEventListener(Event.ADDED_TO_STAGE, init);
trace(this, "root =", root);
var loader:Loader = new Loader();
loader.load(new URLRequest("parent.swf"));
addChild(loader);
package
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
public class Parent extends Sprite
public function Parent()
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
private function init(e:Event = null):void
removeEventListener(Event.ADDED_TO_STAGE, init);
trace(this, "root =", root);
var loader:Loader = new Loader();
loader.load(new URLRequest("child.swf"));
addChild(loader);
package
import flash.display.Sprite;
import flash.events.Event;
public class Child extends Sprite
public function Child()
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
private function init(e:Event = null):void
removeEventListener(Event.ADDED_TO_STAGE, init);
trace(this, "root =", root); -
RH10 Parent/Child Directory Structure
I know that you cannot embed a child project within a child project. When the parent displays in the browser, Child Project 1 is on the TOC, but Child Project 2 simply isn't in the Child Project 1 book.
Now I have a situation where I am trying to restructure my help system to display child projects in multiple different ways for different audiences. We've already had the discussion about why I don't combine 40,000 topics, video files and PDFs into one project and use categories to sort them - the project is too big. Robohelp only handles 2 gigs of files in one project before it crashes. So that is not an option.
What I did was create multiple parent projects, and publish each child project to multiple destinations using multiple single source layouts. Each parent displays only the child projects that audience needs to see. That part works fine.
However, now I have a problem on the server that reminds me of embedding child projects into child projects, and I'm wondering if I can even do this.
A parent project apparently needs to be on the root of the server, or its child projects don't display. In other words, you CANNOT put a parent project into a folder. That means you cannot separate the parents from one another because they all need to be in the same location. So, you cannot have multiple parent projects on one server - you actually need a separate server for each one.
Am I correct about this? That's what I found out when I tested the scenario. I just want to verify this with someone before I send my progress report.
ThanksThanks but he only covers the design aspect that I already have up and running - I've already created the multiple parents and generated multiple outputs for the various child projects. Phil says he has different "output folders" but these would have to be on the C:\ drive - that part works.
The rest of what he describes is what I'd envisioned for the project structure, but in actual fact it doesn't work. The instant I publish a parent project into a folder on the webserver, one level down from the directory root, the child projects do not display on the Table of Contents. They only display at folder Level 2, never at Level 3 , which is where they would be if you embed a child project into another child project - Parent Level 1> Child Level 2 > Child Level 3 - or Level 4, which is where they are in a mergedProjects folder.
Let's call the webserver "S". Your published output must be to S:\ - the "root," or "Level 1" -with your start file as S:\index.htm and the project files at that same level (except for a few folders, like SSL).
If you publish to S:\Parent1\index.htm, and publish all its child projects to S:\Parent1\mergedProjects\Child1\index.htm, the child project files are at Level 4 and don't display. Only the parent displays, without any children ot its Table of Contents.
My problem is that child projects don't display on the server because the parents apparently all need to be published to the root directory - Level 1. Phil doesn't say how he managed this. If he actually did this successfully, I'd be interested in knowing how because I'm out of ideas.
If I publish all parents to the same directory root, only the first one in alphabetical order displays, and the rest of the parents are lost. So it appears that you need multiple servers with multiple roots to pull this off.
My question is : Do parent projects HAVE to be at the root of the webserver directory structure in order to display child projects? My testing says "Yes." I'm just looking for someone to confirm that Robohelp isn't coded for the design Phil and I had envisioned so I can go to the executive team with that information.
Or, if Phil actually successfully did this, can he please tell us how? What were his target paths to the webserver, and how did he structure the folders and output on that webserver? -
Move a distribution list from the forest root to a sub domain.
Hello,
I am looking for the best way to migrate a distribution list I have in the AD forest root to a subdomain. Is there a way to do this without rebuilding it from scratch? We have Windows 2012 R2 domain controllers with a Windows 2008 R2 functional
level.
Thanks!
ShawnHi Shawn,
We can try using intraforest migration with ADMT. With the lateste updated ADMT v3.2, it supports Windows Server 2012 and 2012 R2, and we can download it from Microsoft Connect.
Microsoft Connect
http://go.microsoft.com/fwlink/?LinkId=401534
Regarding ADMT and how to install it, the following article can be referred to for more information.
ADMT Guide: Migrating and Restructuring Active Directory Domains
http://technet.microsoft.com/en-us/library/cc974332(v=WS.10).aspx
Installing ADMT in the Target Domain
http://technet.microsoft.com/en-us/library/cc974370(v=WS.10).aspx
Besides, regarding this topic, the following thread foucsed on the similiar question and can be worth taking a look.
Moving Distribution List From Root to Child DC
http://social.technet.microsoft.com/Forums/en-US/1edf8eee-66d1-496a-b51d-48e1f2124eeb/moving-distribution-list-from-root-to-child-dc?forum=winserverDS
TechNet Subscriber Support
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Hope it helps.
Best regards,
Frank Shen -
How can I use onLeadSelect to load child nodes in a TreeByNestingTableColum
Hello,
Right now a have the mastercolumns onLoadChildren action source mapped to load the children.
Can I use the tables onLeadSelect method to load the children instead? If so, how?
The reason I'm trying to do this is because, when the application is launched I'm trying to load the first set of nodes immediately under the root node. The if the user clicks the table lead on one of the root nodes child node, then i want it to load its child nodes. If I dont do it this way, then the child element will be null until the user actually triggers the onLoadChildren method in the masterColumn.
Please suggest or help how I can achieve this.
Marshall.Solved
-
Create user account in Child Domain
Dear all.
Kindly, i have Forest contain two domain Root domain, child domain.
in the child domain i can create a user account using the root domain.
i want to stop this. i want the IT Department there create users for there domain only?
thanks
Ashraf HilalHi Ashraf,
Your query is not clear. Do you want to restrict enterprise administrators from creating user accounts in child domain?
By default, Enterprise Admins group is part of Builtin Administrators group in the child domain.
When child domain is introduced, by default Enterprise Admins group is added to Child Domain\Administrators group (Builtin local Security group).
How to Restrict Enterprise Admins From Child Domain
http://social.technet.microsoft.com/wiki/contents/articles/16919.how-to-restrict-enterprise-admins-from-child-domain.aspx
http://social.technet.microsoft.com/Forums/windowsserver/en-US/a72dc036-3375-4124-9ef7-d30af104451a/enterprise-administrator-and-child-domain?forum=winserverDS
Regards,
Rafic
If you found this post helpful, please give it a "Helpful" vote.
If it answered your question, remember to mark it as an "Answer".
This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing! -
Exchange Migration from One domain to another domain on same forest
Team,
we are in the process of migrating exchange infrastructure from one child domain to another child domain within same forest.
root domain - root.com
child domains - US.root.com and EMEA.root.com
EMEA and US Domains setup are different from each other. Like EMEA has different email address policy , Email Flow than US , connectors etc.
Now we need to migrate all emea users under US Domain. based on the geographical locations, we are building a new dc, mailbox , cas servers on EMEA location , but these servers will be part of US Domain.
for CAS Servers - we are planing to register respective sites ( site affinity), so all the local requests will be handled by new cas server which is built under US Domain.
Mailbox Servers - we would be creating new db's and the limits on new mbx server and going to replicate as its on EMEA Mailbox server.
can some one please let us know what are the precautions , recommendation, sequence which we need to follow to perform smoother migration. as of now , I can think of below topics.
Mailbox Migration -I Have a script , which
will take care of mailbox movement once the objects are being moved.
Contacts Migration - Willard Martin blog helped me to perform migration
DL Migration - I believe there is no mechanism to migrate DL. only option is to recreate.
Email address Policy:we would be creating a new address policy and apply to OU's
DB Consistency check – do we have to perform the health checks on source mailbox server to see , the servers are free from errors /corruption.
Check outlook configuration - After the migration, we need to check and see , the exchange server/ auto discover works and identify the new exchange servers.
Internal /External Email flow.-
Active Sybc , OWA
Public folder Migration -
Offline Address Book
Certificates
any help or suggestions would be great.
Srinivasa KHi Srinivasa,
According to your description, I think you have done all the preparation.
For DL migration, the following article may give your some hints:
How to Migrate Distribution Groups Across a Forest
Good Luck!
Niko Cheng
TechNet Community Support -
Compiles in Java 5.0 but not 6.0
I did my homework on my school computer (in eclipse) and compiled in in 6.0 and everything worked. Then I saved it to a usb drive
and brought it home. I tried to run it on my computer (in eclipse) in 6.0 and it gave me this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)when I tried to run it. The weird thing is, if I change eclipse's preferences to compile in 5.0 everything works fine. I just don't understand
why it compiled in 6.0 at school but won't work on my home computer in 6.0? I'm worried that my teacher might grade the assignment in
6.0 because if he does I'll get a 0 even though everything works 100% in 5.0.
I was just wondering if anyone could shed some light on this for me. Thanks in advance!
Here is my assignment (just giving this so you know what the program is suppose to do):
http://www2.ics.hawaii.edu/~esb/2008spring.ics211/hw9.html
It basically reads from a file and adds items in the file to a PriorityQueue using a heap as the data structure. It keeps track of levels
traversed to re-establish the heap property. How long add/poll take in realTime. And when add/poll occurs in simulatedTime.
Here's my program:
import java.io.*;
import java.util.*;
public class KinseyAnthony9<T> {
private static String name = "";
private static long deadline;
private static long duration;
private static int time;
private static int simulatedTime = 0;
private static boolean add;
public static void ProcessLine(Scanner line){
if(line.next().equalsIgnoreCase("schedule")){
add = true;
if(line.hasNext()){
name = line.next();
if(line.hasNext()){
deadline = Long.parseLong(line.next());
if(line.hasNext()){
duration = Long.parseLong(line.next());
else {
System.out.print("There is a format error in the supplied file");
System.exit(1);
return;
else {
add = false;
if(line.hasNext()){
time = Integer.parseInt(line.next());
else {
System.out.print("There is a format error in the supplied file");
System.exit(1);
public static void main(String[] param) {
Comparator<MyProc> procCompare = new ProcComparator();
MyPQueue<MyProc> myQueue = new MyPQueue<MyProc>(procCompare);
// PriorityQueue<MyProc> myQueue = new PriorityQueue<MyProc>(1000, procCompare);
if(param.length == 1) {
try {
File readMe = new File(param[0]);
Scanner readFile = new Scanner(readMe);
String line = "";
while(readFile.hasNextLine()) {
line = readFile.nextLine();
Scanner readLine = new Scanner(line);
ProcessLine(readLine);
if(add) {
System.out.println(simulatedTime + ": adding " + name + " with deadline " + deadline + " and duration " + duration + ".");
myQueue.add(new MyProc(name, deadline, duration));
else if(!add) {
String procName = "";
long procDeadline = 0;
long procDuration = 0;
while(simulatedTime != time) {
Scanner procScan = null;
int queueSize = myQueue.size();
if(queueSize <= 0) {
simulatedTime = time;
break;
if(queueSize > 0) {
procScan = new Scanner(myQueue.peek().toString());
procName = procScan.next();
procDeadline = Long.parseLong(procScan.next());
procDuration = Long.parseLong(procScan.next());
System.out.println(simulatedTime + ": performing " + procName + " with deadline " + procDeadline + " and duration " + procDuration + ".");
myQueue.poll();
simulatedTime += procDuration;
if(simulatedTime > time) {
System.out.println((simulatedTime-procDuration) + ": adding " + procName + " with deadline " + procDeadline + " and duration " + (simulatedTime-time) + ".");
myQueue.add(new MyProc(name, deadline, (simulatedTime-time)));
simulatedTime = time;
break;
else if(simulatedTime <= time) {
if(procDeadline < simulatedTime) {
System.out.println(simulatedTime + ": done performing " + procName + " (late).");
else {
System.out.println(simulatedTime + ": done performing " + procName + ".");
//catch any exception that might occur
catch(Exception e){
System.out.println(e); //print out the error
System.exit(1); //exit
//Check if more than one or less than one parameter is entered
else {
//if so give an error
System.out.println("Error with parameter.");
System.exit(1); //exit
class ProcComparator implements Comparator<MyProc>{
public int compare(MyProc x, MyProc y){
long result = x.getDeadline() - y.getDeadline();
if(result < 0)
return -1;
else if(result > 0)
return 1;
else
return 0;
class MyPQueue<T>{
public MyHeap<T> theHeap;
public MyPQueue(Comparator<T> comp) {
theHeap = new MyHeap<T>(comp);
public boolean add(T item){
if(theHeap.add(item)) return true;
else return false;
public T peek(){
return theHeap.peek();
public int size(){
return theHeap.numItems();
public T poll(){
T result = null;
if(theHeap.numItems() == 0) return result;
try{
result = theHeap.remove();
catch(Exception e){
System.out.println(e);
System.exit(1);
return result;
public String toString(){
return theHeap.toString();
@SuppressWarnings("unchecked")
class MyHeap<T>{
private Comparator<T> heapComparator = null;
private final int MAX_SIZE = 1000;
private T heap[];
private int rTraverseCount = 0;
private int aTraverseCount = 0;
public MyHeap(Comparator<T> comp){
heapComparator = comp;
heap = (T[])new Object[MAX_SIZE];
public int numItems() {
int numItems = 0;
for(int i = 0; heap[i] != null; i++) {
numItems++;
return numItems;
public T peek() {
if(numItems() == 0) return null;
return heap[0];
public boolean add(T item) {
long start = System.nanoTime();
long time;
int numItems = numItems();
if(numItems == 0) {
heap[numItems] = item;
System.out.println("--> " + aTraverseCount +" levels were traversed to re-heapify the tree.");
time = System.nanoTime() - start;
System.out.println("--> It took " + time + "ns to complete the add operation.");
return true;
else if(numItems > 0) {
heap[numItems] = item;
siftUp(0, numItems);
if(aTraverseCount == 1)
System.out.println("--> " + aTraverseCount +" level was traversed to re-heapify the tree.");
else
System.out.println("--> " + aTraverseCount +" levels were traversed to re-heapify the tree.");
aTraverseCount = 0;
time = System.nanoTime() - start;
System.out.println("--> It took " + time + "ns to complete the add operation.");
return true;
return false;
public T remove() throws Exception{
long start = System.nanoTime();
long time;
int numItems = numItems();
T result = heap[0];
if(numItems == 0){
throw new Exception("NoSuchElementException");
if(numItems == 1){
heap[0] = null;
time = System.nanoTime() - start;
System.out.println("--> It took " + time + "ns to complete the remove operation.");
System.out.println("--> " + rTraverseCount +" levels were traversed to re-heapify the tree.");
return result;
else {
heap[0] = heap[numItems - 1];
heap[numItems - 1] = null;
removalswap(0);
if(rTraverseCount-1 == 1)
System.out.println("--> " + (rTraverseCount-1) +" level was traversed to re-heapify the tree.");
else
System.out.println("--> " + (rTraverseCount-1) +" levels were traversed to re-heapify the tree.");
rTraverseCount = 0;
time = System.nanoTime() - start;
System.out.println("--> It took " + time + "ns to complete the remove operation.");
return result;
public void removalswap(int root) {
rTraverseCount++;
T valueHolder = heap[root];
int left = (2*root) + 1;
int right = (2*root) + 2;
if(heap[right] != null && heap[left] != null){ //make sure left and right children aren't null
if(heapComparator.compare(heap[root],heap[left]) <= 0 && //if root is less than or equal
heapComparator.compare(heap[root],heap[right]) <= 0) return; //to its children return
if(heapComparator.compare(heap[root],heap[left]) > 0){ //if root is greater than left
if(heapComparator.compare(heap[left], heap[right]) > 0){ //compare left and right
heap[root] = heap[right]; //and swap with the smaller of the two
heap[right] = valueHolder;//in this case right is smaller so swap with right
removalswap(right);
else { //in this case left is smaller so swap with left
heap[root] = heap[left];
heap[left] = valueHolder;
removalswap(left);
else if(heapComparator.compare(heap[root],heap[right]) > 0){ //root can be greater than left
heap[root] = heap[right]; //but smaller than right. In this case just swap with the
heap[right] = valueHolder; //right child.
removalswap(right);
else if(heap[right] == null && heap[left] != null){ //the right child can be null while the left child
if(heapComparator.compare(heap[root],heap[left]) <= 0) return;//is not, but the left child will never
else { //be null if the right child isn't. If this is the case see if the root is greater than the
heap[root] = heap[left]; //left child and swap if so.
heap[left] = valueHolder;
removalswap(left);
public void siftUp(int root, int end) {
int child = end;
int parent = (child-1)/2;
while(child > root){
parent = (child-1)/2;
if(heapComparator.compare(heap[parent], heap[child]) > 0) {
swap(parent,child);
child = parent;
else{
return;
public void swap(int parent, int child){
aTraverseCount++;
T holdValue = heap[parent];
heap[parent] = heap[child];
heap[child] = holdValue;
public String toString(){
int i = 0;
String heapPrint = "";
while(heap[i] != null){
heapPrint += heap;
i++;
return heapPrint;
class MyProc {
private String name;
private long deadline;
private long duration;
public MyProc(String n, long dl, long dur) {
name = n;
deadline = dl;
duration = dur;
//Acessors
public String getName() {
return name;
public long getDeadline() {
return deadline;
public long getDuration() {
return duration;
//Mutators
public void setName(String n) {
name = n;
public void setDeadline(long dl) {
deadline = dl;
public void setDuration(long dur) {
duration = dur;
public String toString(){
return name + " " + deadline + " " + duration;
But if I run that in terminal I get this:
anthony-computer:~ anthonyjk$ java -version
java version "1.5.0_13"Yes - commandline/Terminal, that's what I meant.
So long as the program doesn't use any 1.6-only features, then will it will compile OK both at school (using1.6) and at home (using 1.5). Eclipse can be told to produce .class files that are compatible with a particular runtime. In your case the school compiler was producing 1.6 class files that are no good when you take them home. Hence the need to recompile, telling Eclipse you want 1.5 compatible .class files.
Or - as I mentioned - download and install the most recent JDK for use at home. There'll be less confusion that way -
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl
location="AvalonWebService.wsdl"
packageName="com.package.stubs "/>
</configuration>
C:\jwsdp-2.0\jaxrpc\bin\wscompile.bat -gen:client -keep -verbose -classpath build config.xml
import javax.xml.rpc.Stub;
import com.package.stubs.AnnwynServicePortType;
import com.package.stubs.AnnwynService_Impl;
import com.package.stubs.ProcessResponseSync;
public class Ws
public String getResponsePayload(String username,String password,String headerXML,String payloadXML,String path)
String p="";
try
AnnwynServicePortType port=null;
ProcessResponseSync res=null;
String endpointAddress = path+"/biocap/ws/AnnwynServicePort/AnnwynServicePort";
try
javax.xml.rpc.Stub stub = (Stub) (new AnnwynService_Impl().getAnnwynServicePort());
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,endpointAddress);
port = (AnnwynServicePortType)stub;
stub._setProperty(Stub.USERNAME_PROPERTY,username);
stub._setProperty(Stub.PASSWORD_PROPERTY,password);
catch(Exception ex)
System.out.println("Authentication error in Ws.java : "+ex.toString());
res=port.processSync(headerXML,payloadXML);
p=res.getPayloadXML();
catch(Exception e)
System.out.println("Error in Ws.java : "+e.toString());
return p;
--------------------------------------for parsing xml file------------------------------------------------
import java.io.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.xml.sax.SAXException;
import java.util.Hashtable;
public class XMLParse
Document dom;
NodeList nl;
Hashtable countries=new Hashtable();
//int key=0;
public Hashtable getNames(String payloadXML,String attrib,String id)
//public Hashtable getNames(byte bb[])
try
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
byte bb[]=payloadXML.getBytes();
//java.io.ByteArrayInputStream bais=new java.io.ByteArrayInputStream(bb);
java.io.InputStream is=new java.io.ByteArrayInputStream(bb);
dom = db.parse(is);
Element docEle = dom.getDocumentElement();
nl=docEle.getElementsByTagName("Messages");
for ( int k = 0; k <nl.getLength(); k++ )
NodeList childNodeList = nl.item(k).getChildNodes();
for(int i=0;i<(childNodeList.getLength())-1;i++)
i=i+1;
Node childNode = childNodeList.item(i);
String CountryName=((Element)childNodeList.item(i)).getAttribute(attrib);
String idValue=((Element)childNodeList.item(i)).getAttribute(id);
countries.put(idValue,CountryName);
//key++;
catch(Exception e)
{System.out.println("Exception in initParser:------>"+e);}
return countries;
// public static void main(String args[]) throws Exception
// try
// FileInputStream fis=new FileInputStream("D:/Jagadeesan/Jagadeesan_Examples/JavaApplication6/src/parser/out.xml");
// int length=fis.available();
// byte b[]=new byte[length];
// int len;
// while((len=fis.read(b)) >= 0)
// Hashtable h=new XMLParse().getNames(b);
// System.out.println("----Countries----\n");
// for(int i=0;i<h.size();i++)
// System.out.println(" "+h.get(new Integer(i)));
// System.out.println("\n-----------------");
// catch(Exception e)
// e.printStackTrace();
----------------------------for creating xml fie------------------------------------------------
import org.w3c.dom.*;
import org.apache.xerces.dom.DocumentImpl;
import org.apache.xerces.dom.DOMImplementationImpl;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.Serializer;
import org.apache.xml.serialize.SerializerFactory;
import org.apache.xml.serialize.XMLSerializer;
import java.io.*;
import org.w3c.dom.Attr;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.ProcessingInstruction;
import java.util.*;
public class payloadXML
public String getpayloadXML(Hashtable request_HT) throws Exception
Document document= new DocumentImpl();
Element root = document.createElement("Root");
// add child element
Node Messages_Node = create_Messages_Node(document,request_HT);
root.appendChild(Messages_Node);
// create attribute
Attr xmlns_xsd_Attribute = document.createAttribute("xmlns:xsd");
xmlns_xsd_Attribute.setValue("http://www.w3.org/2001/XMLSchema");
// append attribute to root element
root.setAttributeNode(xmlns_xsd_Attribute);
// create attribute
Attr xmlns_xsi_Attribute = document.createAttribute("xmlns:xsi");
xmlns_xsi_Attribute.setValue("http://www.w3.org/2001/XMLSchema-instance");
// append attribute to root element
root.setAttributeNode(xmlns_xsi_Attribute);
// create attribute
Attr localizationId_Attribute = document.createAttribute("localizationId");
localizationId_Attribute.setValue("en-GB");
// append attribute to root element
root.setAttributeNode(localizationId_Attribute);
// create attribute
Attr xmlns_Attribute = document.createAttribute("xmlns");
xmlns_Attribute.setValue("http://www.avalonbiometrics.com/biocap/Messages");
// append attribute to root element
root.setAttributeNode(xmlns_Attribute);
document.appendChild( root );
OutputFormat format = new OutputFormat( document ); //Serialize DOM
StringWriter stringOut = new StringWriter(); //Writer will be a String
XMLSerializer serial = new XMLSerializer( stringOut, format );
serial.asDOMSerializer(); // As a DOM Serializer
serial.serialize( document.getDocumentElement() );
//System.out.println( "STRXML = " + stringOut.toString()); //Spit out DOM as a String
return stringOut.toString();
public Node create_Messages_Node(Document document,Hashtable request_HT)
// create Msg:Messages element
Element Messages = document.createElement("Messages");
for(Enumeration key = request_HT.keys(); key.hasMoreElements();)
Object keyName=key.nextElement();
// create attribute
Attr Attribute_Name = document.createAttribute(keyName.toString());
Attribute_Name.setValue((request_HT.get(keyName).toString()));
// append attribute to Msg:Messages element
Messages.setAttributeNode(Attribute_Name);
return Messages;
----------------------for xml parsing---------------------------------------
import java.io.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.xml.sax.SAXException;
import java.util.Hashtable;
public class XMLParseSeqNo
Document dom;
NodeList nl;
String seqNumber="";
public String getNames(String payloadXML)
try
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
byte bb[]=payloadXML.getBytes();
java.io.InputStream is=new java.io.ByteArrayInputStream(bb);
dom = db.parse(is);
Element docEle = dom.getDocumentElement();
nl=docEle.getElementsByTagName("Messages");
for ( int k = 0; k <nl.getLength(); k++ )
Element el = (Element)nl.item(k);
seqNumber= el.getAttribute("seqNumber");
catch(Exception e)
System.out.println("Exception in initParser:------>"+e);
return seqNumber;
}null
Maybe you are looking for
-
PHP icon not showing in design view
I just ordered Studio 8 and currently working on the demo version of Dreamweaver 8. I had been using FrontPage for many years and I finally hit it's limitations. I am creating new pages from scratch and not importing any of my older FrontPage web pag
-
Question about controlling both handles or one at a time
I am using a trial version of Illustrator CS5 on Windows 7. I know how to select an anchor or its handle(s). But I do not know why I sometimes am controlling both of an anchors handles when I move one of them, or when I am moving only one at a time.
-
Purchase Order for Leased Asset
Hello, I want to create an Purchase order for leased asset and want to make the payment for that. It will be helpfull for me if you can tell the config setting required for that and the sequence of Transactions for completing the cycle for the same.
-
Officejet 6600 "The print carriage cannot move"
Ran through the published problem solving steps, however, I still receive message of Carriage Jam. Have checked cartiages and everything appears okay there. Please help with any comments. Thank you.
-
Can you create a radio station from a playlist
I can't find a way to do it withiut adding the tracks manually. But it would be a nice feature if it doesn't exist.