Missing parent object when using FXML - cannot manipulate other content

Hi,
today I was playing around with FXML and embedded it into a custom made "Dialog" class (an abstract class to provide some basic stuff, like add OK/Cancel Button, handle result type and so on programmatically).
Basically I've created an implementation which content is defined by an FXML document and contains a handler method for a password field.
After finding out how to work with the Event-API of JavaFX I know tried to enable/disable the programmatically created ok button of the dialog within the handler... But nothing happend.
Via debugging I found out, that no parent was set to the button anymore, but I checked (debugged): it was set, when I created the dialog content.
I assume that the missing parent (and who knows what else) is responsible for this behaviour.
Is this a know issue? Should I file a bug? Or submit some code for others to test/confirm?
Greetings,
Daniel

Hi Daniel,
I think I was having a correct idea about that what I've done wrong:
I was using my Dialog class as the Controller, however the controller is instantiated by the FXMLLoader seperatly and has nothing in common with the class that called the loader.
However I could have set the controller manually via .setController() or via a controller factory and there I could have set the dialog to be the controller...
This is now what I've done and this is how it works.
If you want some code samples, I could provide them - I guess my english is not good enough to fully describe all the problems I encounter ;-)
Daniel

Similar Messages

  • Missing Search Field when using 3.1 Create App Wizard ?

    Hi
    2 points which look like bugs to me;
    1 - In all previous versions whenever I used the create app wizard to build up a list of pages, reports always included the 'search across any varchar field' funtionality. This seems to have disappeared when using the Classic form of reports. It is obviously there if you use an Interactive report.
    2 - Again when using the Create App wizard, if I use the Classic form (in order to be able to also 'Generate Analysis Pages') these do get built, but not linked in any way (tab, list region, button etc) to any other pages. I can link them myself, but I am demonstrating APEX here and it doesn't look so good....
    Can someone just quickly confirm I am not going mad here ?
    Jules

    Hi Jules,
    You're not going mad! I've reviewed the behaviour of the Search field and the Analysis Pages link using releases 3.0.1 and 3.1.1, and there is a difference in behaviour between the two versions.
    Classic Reports generated via the Create Application Wizard in 3.1.1 should have a Search text field above the report region, however this field is missing. I've logged bug 7185486 for this issue. Classic Report&Forms generated via the Create Application Wizard, with the "Include Analysis Pages" option selected, are missing a link to the Analysis pages in 3.1.1. I've logged bug 7185486 for this issue. I've updated both bugs with a workaround. A fix for these issues will be available in a future release. Thanks for bringing these two issues to our attention.
    Regards,
    Hilary

  • Labview misses a read when using Ni USB 8473 can interface

    I was wondering if anybody here has had experience with this problem... I already talked to a Labview tech but i have not received an answer yet...
    This is my problem..
    I have a program that  when a button is pressed, it initializes a can interface to CAN0 for example, then it writes... then it waits about 100mills and then it reads... My computer is connected to a simulator through the USB 8473 interface (I have the problem when I connect it to the hardware I am going to use), and everytime I write, this simulator sends a response... The problem is that sometimes I don't see a response... I have made sure that the simulator responds so I know it is responding... I have changed the waiting time before the read from 1 mills to 100 mills to 1 second, and still with the same result... 
    The way I have fixed this problem is by reading multiple times (3 times)... so every time I send a request, i wait 100 mills... then I read once, wait 25 mills, then read again, wait, then read again....
    So, I wanted to know if anybody here has had to do this in order to get around this problem...???
    The reason why I was asking this is because I also have another application that has to monitor my hardware by sending requests every 100 milliseconds... so I have two loops, once that writes requests every 100 mills... and another that reads the responses every 20 mills... but sometimes it looks like eventhough i read this many times, I still miss some frames, which are caught later but still not good enough...
    I have posted a different thread about the above problem...
    If you have questions just ask please...
    Thanks

    Yes, by Labview tech i meant NI Support... sorry about that...
    I am still waiting for them on this subject...
    I'll attach a simplified version of my code (the only difference between this code and the original is that i parse all the data that i get...)
    I am attaching these if a couple replys... 
    Run the receive and respond (simulator) then run the CAN_PROBLEM vi... click on the OK button to write then read... you can tell it missed the message when the Frames to Read field is 0...
     how are you sure that you device is sending a response?
    Very sure... 100%... the original simulator lets me know when it sends the response...
    Can you run bus monitor on another port, ie another USB-CAN device?
    I did that, and the other USB-CAN gets it... the program I am running on the other computer is called CANyliser... I think that program waits until there is something in the queue (which I am not doing with mine)... I am just reading after I have wrote teh message (reading after about 100 mills I wrote)... So I am assuming that's plenty of time... i have increased this waiting time to 1 sec and still get the same behaviour...
    Attachments:
    CAN_PROBLEM.vi ‏16 KB
    ReceiveAndRespond.vi ‏17 KB
    CAN INIT.vi ‏23 KB

  • On cleanuing up COM object when using Microsoft.Office.Interop.Excel

    When using Microsoft.Office.Interop.Excel the COM objects that are created by the code must be released using System.Runtime.InteropServices.Marshal.ReleaseComObject().
    Most of the time it's pretty clear when a new COM object is created such as:
    Excel._Application excelApp = null;
    Excel._Workbook wb = null;
    Excel._Worksheet ws = null;
    Excel.Range newRange = null;
    try
    // four COM objects are created below
    excelApp = new Excel.Application();
    wb = excelApp.Workbooks.Add();
    ws = (Excel.Worksheet)wb.Worksheets.Add();
    newRange = (Excel.Range)ws.Range["A1","A30"];
    // do these line of cod create new COM object?
    newRange.Font.Bold = true;
    newRange.Borders.Color = borderColor;
    finally
    if (excelApp != null) Marshal.ReleaseComObject(excelApp)
    if (wb != null) Marshal.ReleaseComObject(wb)
    if (ws != null) Marshal.ReleaseComObject(ws)
    if (newRange != null) Marshal.ReleaseComObject(newRange)
    In the above code I create four COM objects in the first part that need to be released when I'm finished with them. But it's not clear if the other two lines of code create a new COM object or not.  If they do then my code needs to look more
    like this:
    Excel._Application excelApp = null;
    Excel._Workbook wb = null;
    Excel._Worksheet ws = null;
    Excel.Range newRange = null;
    Excel.Font fnt = null;
    Excel.Borders bds = null;
    try
    // four COM objects are created below
    excelApp = new Excel.Application();
    wb = excelApp.Workbooks.Add();
    ws = (Excel.Worksheet)wb.Worksheets.Add();
    newRange = (Excel.Range)ws.Range["A1","A30"];
    // do these line of cod create new COM object?
    fnt = newRange.Font
    fnt.Bold = true;
    bds = new newRange.Borders;
    bds.Color = borderColor;
    finally
    if (excelApp != null) Marshal.ReleaseComObject(excelApp)
    if (wb != null) Marshal.ReleaseComObject(wb)
    if (ws != null) Marshal.ReleaseComObject(ws)
    if (newRange != null) Marshal.ReleaseComObject(newRange)
    if (fnt != null) Marshal.ReleaseComObject(fnt)
    if (bds != null) Marshal.ReleaseComObject(bds)
    How can I tell if getting a property creates a new COM object or not?

    Thank you for your replay but I do understand that the font object is a COM object.  What I'm trying to figure out is if a NEW object is created each time I access the font member of a Range object and if I need to call
    Marshal.ReleaseComObject on the font object after using it.
    Most member object of an object are a single instance and each time you access the member you simply get the pointer to that instance. For example:
    using(DataTable dt = new DataTable("Some Table Name"))
    PropertyCollection ep1 = dt.ExtendedProperties;
    PropertyCollection ep2 = dt.ExtendedProperties;
    if (Object.ReferenceEquals(ep1,ep2)) Console.WriteLine("They are the same object");
    else Console.WriteLine("They are different objects");
    The output will be: They are the same object
    On the other hand this:
    Excel._Application excelApp = new Excel.Application();
    Excel._Workbook wb = excelApp.Workbooks.Add();
    Excel._Worksheet ws = (Excel.Worksheet)wb.Worksheets.Add();
    Excel.Range newRange = (Excel.Range)ws.Range["A1","A30"];
    // do these lines of code create new COM object?
    Excel.Font ef1 = newRange.Font;
    Excel.Font ef2 = newRange.Font;
    if (Object.ReferenceEquals(ef1,ef2)) Consloe.WriteLine("They are the same object");
    else Consloe.WriteLine("They are different objects");
    The output will be: They are different objects
    It looks like each time I access the font member I get a new object.  I suspect that is not the case and what I am getting is two pointers to the same object and the reference counter is incremented by one.
    So really the question is what happens to the font member object of the Range object when the range object is released.  I assume the font member will be released along with the Range object ever if the font object has a reference count greater then
    0.
    If I am correct in my assumption then I can access the font member object as much as I need to without worrying about releasing it.
    I have been reading a lot about working with COM and the need to use Marshal.ReleaseComObject and there does seem to be a lot of disagreement and even confusion on the
    mater about when and if COM objects need to be explicitly released.

  • When using "Database diff" selecting other schemas only for compare own objects are shown too!

    Hi!
    For comparing lot of objects I use a priviliged account z, which can read Schema a and b.
    In the compare dialog I set different from the Defaults following Options:
    - step 1
    - option "Maintain"
    - step 3
    - button "More"
    - select schema a
    - button "Lookup"
    - mark all objects and shuttle to the right
    - repeat for schema b
    After the diff report is finished, schema object of account z are listed too, despite I have not selected this.
    Best regards
    Torsten

    Ah, you're using user Z to select objects from A & B?
    On step 2, do you have anything selected that you have not picked an object type for using the 'shuttle' in Step 3?
    For example, if you picked, 'procedures' and then in the wizard, didn't pick ANY procedures in A or B, it will by default use ALL of the procedures in Z for the compare.

  • Problems with a Business Object when using data RAW.

    Hi,
      I've created a Z bapi with parameter tables as
        FILE_BIN like SDOKCNTBIN
    The structure SDOKCNTBIN has one RAW field.
    When I go to SWO1 and implement a new Bapi, the following error occurs:
    "Field SDOKCNTBIN -LINE is too large to be included in container"
    Does anyone knows why when I declare an structure with a field RAW, gives that error?
    Thanks in advance!

    Does this occur when using Immediate Mode?
    Here's a blurb from my ADF Toy Store paper about Batch Mode and immediate mode.
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore/readme.html#batchmode

  • No style applied when using light framework and WPC content

    Hi,
    Iu2019m facing a strange behavior, and Iu2019m almost pretty sure that is an error in the WPC, but I decided to post it here, maybe someone can confirm it. When using both, Light Framework and WPC, for some reason, the text inserted in the WPC containers, using the Web Forms, doesnu2019t appear correctly (no style/font applied), but viewing the same information, using the Default Framework Page, it works correctly.
    Any hint?
    Thanks and Regards,
    John

    Hi,
    The reason why I decide to use Light Framework, itu2019s because Iu2019m creating an EFP, and Iu2019m using the WPC to publish the content (articles, news, and link list), using the standard Web Forms.
    The problem is, after adding to a WPC Page something so simple like an article (using the Web Form Article), no Portal iView, HTMLB or other stuff included, the preview of the WPC Page using the Default Framework Page is ok, but when using the Light Framework Page, the text in the article doesnu2019t have the correct font-family. It looks like there are some styles missing in the Light Framework Page, that WPC content is expecting.
    Thanks and Regards,
    John

  • Strange LAV applications open in mass when using after effects? + other

    Hey guys, when i use after effect tones of little LAV Splitters and Decoders open;
    How do i get rid of this and what does it affect?
    OTHER: also sometimes i when i play back clips in after effect, the clips jumps 5 frames forward then 5 frames back randomly, really anoying and all compostion and clips are 29.97 fps :/ (this usally occurs after , after effects has been opened for a while and move of these LAV icons appear? coinsidence?)
    Thanks a lot for your help,
    Eggy

    - version : CS5.5 update 10.5.1.2
    - no recent updates
    - Windows 7 64bit service pack 1
    - CPU: i7-2600k, 12gb ram, Crossfired radeon HD6870, 2x 1TB internatin HDD
    - AMD CCC 13.11
    - Third party hardware: Twixtor
    - footage recorded with x264vfw - H.264 codec into .AVI file and rendered as H.264
    -N/a
    -I have been editng for around 5 hours and when i RAM preview my clips the fps jumps back and forth and very unfluid (after having told after effects that the file is 29.97fps and not 25fps) I was thinking this might occure with all the LAV things opening when using after effects..
    - yes quicktime is installed 7.6.2
    - other software running: google chrome
    -Twixtor effects installed
    - not using openGL
    -The problem only occures when i RAM preview, i tried rendering and the clips was fine, but i cant edit with constant fps jumps backwards and forwards.
    VIDEO EXAMPLE:
    in preview RAM as it goes up the stairs and around the corner it jumps a lot of frame for some reason, i also showed the orignal clip just to show that it is smooth.

  • "Object reference not set to an instance of an object" when using Sheel Shah's example

    I am attempting to use a custom add dialog as in http://blogs.msdn.com/b/lightswitch/archive/2011/07/07/creating-a-custom-add-or-edit-dialog.aspx and
    I get the error "Object reference not set to an instance of an object." when clicking my button to AddEntity().  My code to call the control is:
    User u = new User();
    userdialoghelper.AddEntity(u);
    Any ideas as to why I'm getting this error?  I "think" that I've set up the class properly?
    Scott

    I may be a couple of years late to the party here (using VS2013) but I also had some issues adapting to Yann's improvements over Sheel's code.
    Sheel's screen code as provided has the word "Old in the InitializeDataWorkspace and the created methods. this does not work when copy/pasted. ALso removed the "UI" from "InitialiseUI()"
    Following code can be used with Yann's Helper Class.
    Namespace LightSwitchApplication
    Public Class EditableCustomersGrid
    Private customersDialogHelper As ModalWindow
    Private Sub EditableCustomersGrid_InitializeDataWorkspace(saveChangesTo As System.Collections.Generic.List(Of Microsoft.LightSwitch.IDataService))
    customersDialogHelper = New ModalWindow(Me.Customers, "CustomerViewDialog")
    End Sub
    Private Sub EditableCustomersGrid_Created()
    customersDialogHelper.Initialise()
    End Sub
    Private Sub gridAddAndEditNew_CanExecute(ByRef result As Boolean)
    customersDialogHelper.CanAdd()
    End Sub
    Private Sub gridAddAndEditNew_Execute()
    customersDialogHelper.AddEntity()
    End Sub
    Private Sub gridEditSelected_CanExecute(ByRef result As Boolean)
    customersDialogHelper.CanView()
    End Sub
    Private Sub gridEditSelected_Execute()
    customersDialogHelper.ViewEntity()
    End Sub
    Private Sub EditDialogOk_Execute()
    customersDialogHelper.DialogOk()
    End Sub
    Private Sub EditDialogCancel_Execute()
    customersDialogHelper.DialogCancel()
    End Sub
    End Class
    End Namespace

  • How can I solve a "org.jvnet.mimepull.MIMEParsingException: Missing start boundary" when using "Page Attachments to Disk"?

    I have built a streaming MTOM enabled web service for downloading large files. I also built a client that uses that service (with MTOM and streaming feature). Everything works, when the client calls the web service directly.
    Then I have set up the OSB, so that I can call the service through the OSB. I have build a Business Service and a Proxy Service. For the Business Service, I use "XOP/MTOM Enabled", "Include Binary Data By Reference" and "Page Attachments to Disk" to prevent the OSB from loading the whole data into memory.
    If I do not use the "Page Attachments to Disk" option, the download works, but I assume everything is loaded into the OSB memory.
    When I use the "Page Attachments to Disk" option, I receive the following error message
    Exception in thread "main" com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Couldn't create SOAP message due to exception: org.jvnet.mimepull.MIMEParsingException: Missing start boundary Please see the server log to find more detail regarding exact cause of the failure.
        at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193)
        at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:131)
        at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:253)
        at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:203)
        at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:290)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:92)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:161)
        at com.sun.proxy.$Proxy38.fileDownload(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:87)
        at com.sun.proxy.$Proxy39.fileDownload(Unknown Source)
        at largefiletransfer_osb_client.MtomClientDownload.main(MtomClientDownload.java:59)
    Why do I get this exception and how can I solve the issue?
    Additional Infos:
    OS: Windows 7 64bit
    Tool: JDeveloper BPM Suite 12.1.3.0.0
    WebService: HTTP + SOAP + MTOM + Streaming

    I have built a streaming MTOM enabled web service for downloading large files. I also built a client that uses that service (with MTOM and streaming feature). Everything works, when the client calls the web service directly.
    Then I have set up the OSB, so that I can call the service through the OSB. I have build a Business Service and a Proxy Service. For the Business Service, I use "XOP/MTOM Enabled", "Include Binary Data By Reference" and "Page Attachments to Disk" to prevent the OSB from loading the whole data into memory.
    If I do not use the "Page Attachments to Disk" option, the download works, but I assume everything is loaded into the OSB memory.
    When I use the "Page Attachments to Disk" option, I receive the following error message
    Exception in thread "main" com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Couldn't create SOAP message due to exception: org.jvnet.mimepull.MIMEParsingException: Missing start boundary Please see the server log to find more detail regarding exact cause of the failure.
        at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193)
        at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:131)
        at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:253)
        at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:203)
        at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:290)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:92)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:161)
        at com.sun.proxy.$Proxy38.fileDownload(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:87)
        at com.sun.proxy.$Proxy39.fileDownload(Unknown Source)
        at largefiletransfer_osb_client.MtomClientDownload.main(MtomClientDownload.java:59)
    Why do I get this exception and how can I solve the issue?
    Additional Infos:
    OS: Windows 7 64bit
    Tool: JDeveloper BPM Suite 12.1.3.0.0
    WebService: HTTP + SOAP + MTOM + Streaming

  • Missing Last Step when using Wave world?

    Hi, I wanted to create motion in a still of the waves behind a ship. I imported the wave picture from photo shop, then created another solid layer. I apllied wave world to the solid layer and track matted it to fit the wave still I have. I adjusted the parameters to meet my needs in the wave world effect. I then saved the project. When I imported it into PP Pro CS5 I get the still with the wave world grid and not the final outcome. Did I miss something? Or did I do something wrong. Thanks Roman

    Wave World is a simulation system designed to be the input for other effects like displacement operations and color alterations such as Caustics and Colorama or just displacement mapping. As such, it has no effect if you must apply it on a layer and, you need to understand, as for all displacement reference layers, it must be precomposed or rendered. Otherwise it comes in as the solid to which it was applied.
    You need to switch to the rendered output in the controls for the effect and the best way to use it is to render the output movie.
    bogiesan
    Message was edited by: bogiesan

  • Missing Header Window when using despatch time "4"

    I set the despatch time to "4" for billing message type.
    When a new invoice was created in VF01, a spool was added.
    However, the top portion of the invoice spool was missing.
    When I use VF02 to preview the same invoice, I could see it.
    Can someone assist?

    Dispatch time has no relevance here whatsoever. Most likely when you are viewing "spool", it's just a plain list, but the preview looks more like a PDF. Therefore, different things may be displayed differently or not at all. If it looks OK in the printout, I wouldn't worry about the spool.
    Otherwise you'll need to look at what is assigned to the output - SAPScript, Smart Form, etc. and figure it out.

  • Missing EXIF data when using other photo apps besides "Camera"

    I have recently been trying to use the EXIF location and camera info information created with images in the iphone 3GS and noticed that the only image files that have the full EXIF data attached when imported to my computer are the images created using the iPhone native Camera app. I have numerous photo apps that take great photos which when downloaded are missing almost all the EXIF data.
    What is up? Is apple requiring third part apps to strip the data or somehow blocking them from capturing the EXIF location data for download?
    I know many of these apps are using the location data to geotag the images and link to maps.
    Thanks for any info!

    Thanks, I posted it there! Actually I have been searching for some site to officially post a bug report to Adobe, but didn't manage to find it myself...
    Regards
    Peter

  • Defining the order of objects when using Distribute?

    VERSION: Illustrator CC Mac
    So, I've always assumed that the order of the layers determined the order and position that shapes are moved in the Distribute function.
    I'm having a wierd problem today and the order seems to be defined by something I can't figure out. I'm trying to vertically distribute a set of the same shape and instead of counting the shapes in order from left to right or vise versa the distribute function seems to be randomly picking the order of the shape, not basing it on location or layer order.
    Here are a couple of examples:
    In both examples I have used a Vertical Distribute Center and both groups of shapes are ordered from left to right in the layers palette with the left most layer being the first layer and the right most shape being the last.
    What is causing the shapes to be distributed in this order? How do I specify what the order is if it isn't based on layer or position order?

    So, I've always assumed that the order of the layers determined the order and position that shapes are moved....
    Wrong assumption. Only true sometimes.
    ...instead of counting the shapes in order from left to right...
    Wrong assumption again.
    So first, let's deal with the above assumptions:
    When distributing objects, you are not usually talking about stacking order at all. You are talking about modifying initial reading order based on the initial relative X or Y positions.
    Although you want stacking order to be a factor in some cases, you wouldn't want it in every case. Nor would you want it to be the default criteria. To understand this, consider the matter of reading order in text objects:
    You open a PDF. As is often the case, it has a plethora of individual text objects. Those objects have a particular reading order which is really nothing but a perception of the viewer based on their relative positions. There is no guarantee whatsoever that the object stacking order corresponds to the reading order (creation order). For all the viewer knows, the body text may in fact have been created before the decorative headlines. The subheads, bullets, and callouts may also have been created in any unknown order.
    In fact, I have just such a real-world frequently-reccuring situation: DXFs exported from engineering drawings frequently contain columns/rows of text in which the reading order does not correspond to the object stacking order. If the DXF is opened in Illustrator and then those text objects are threaded, or if their text is copied and pasted to concatenate them into a single text object, their reading order becomes scrambled, because threading and concatenating text is indeed dependent upon object stacking order (as are Blends, Mesh patches, and Pattern Brush tiles). By the same token, if those "lines" of text are distributed for uniform spacing and if the result were determined by the object stacking order, the text reading order would be similarly ruined.
    So for this and similar situations I wrote a set of Javascripts which I use to rearrnage the stacking order of objects according to their relative positions on the page (i.e.; their reading order) first, before concatenating the text. But you wouldn't want to have to do this in every situation in which you want to distribute every and all kind(s) of objects.
    The concept of "reading order" is not limited to text. Consider a fan of playing cards in a poker player's hand. Or chess pieces on a board. Or a row of houses on a map. Fence slats. Deck boards. Bricks or stones. Holiday icons on a calendar grid. You might want to make the XY spacing of such objects uniform, but that doesn't mean you want the stacking order changed, and inversely it doesn't mean you want the XY positions to be determined by stacking order.
    So unless and until there is an "Ordered By:" control with which the user specifies "Stacking Order" or "Reading Order" (which there isn't), the feature just uses initial position values (reading order) as the first sorting criteria, and this is the most "normal" behavior.
    ...drawing a set of overlapping squares in decreasing size order, smallest on top. Drag the top square out of alignment.
    I start with a group of shapes, all repeatedly copied from the first one on the far left...Then I move up the last one up...
    On the left is before with two circles on top of each other...
    In all the above instances, note that the situation starts with multiple objects already aligned in the direction of desired distribution, and moving only one of them before performing the distribution. So think of the math:
    You have a set of horizontal position values: [0,0,0,3]. You want to "equally space" those values. How do you do that if, as explained above, stacking order is not a determinant? How do you "order" three zeros based on their numeric values? The instructions are ambiguous. In such situations, you have to use some other secondary criteria, even if it is arbitrary; even if it is random. Example:
    Understand, I'm just replying to your initial post here. I'm not saying there is no bug in the Distribute interface. There may be, and if so, the bug(s) may be version-specific. I'm not addressing what Steve is trying to explain in Post 18: But note that when you do what he describes, the Distrubute Spacing value field automatically changes to zero, even if it is initially set to Auto and you are only clicking the Horizontal Distribute Space button.  (At least in CS3; I don't have later versions in front of me right now because I'm not in the studio and I don't have CC at all because I'm not going to rent Adobe's software),
    JET

  • Missing XML Element when using asset from library

    This is not really a scripting question but I seem to be unable to find any regular ID forum and it has something to do with a scripting workflow I established for a customer.
    A script places an asset from a library onto a document and then (amongst other things) imports some XML file.
    The asset in the library consists of a number of textframes and has the structure e.g.:
    article
    box
    box
    Now the customer needs new templates (that is assets in the library) and we cannot produce them anymore. It seems that as of CS 3 5.0.4 Adobe changed the behavior of the library. Dragging e.g. two box-tagged boxes with an article parent XML into the library leads to an asset without the article element. Can someone confirm this? And more important is there a reason to it? Or is there a way to configure the behavior?
    I guess I could create a parent xml element by script after placing the element but then I would need to redo all existing libraries.
    Thank you,
    Ralf

    while( testIterator.hasNext() ) {
       Element testElement = (Element)testIterator.next();
       String code = testElement.getChildTextTrim("code");
        if( null == code ) {
               continue;
       String analysis= testElement.getChildTextTrim("analysis");
       //same for description
    }

Maybe you are looking for

  • Create empty document

    Hi, I try to create empty pdf document using C# from standalone app. Here is my code. CAcroApp acroApp = new AcroAppClass(); acroApp.Show(); AcroPDDoc pdDoc = new AcroPDDocClass(); Object jsObj = pdDoc.GetJSObject();     //  jsObj = null in this Type

  • How can I descreen and scale the target image size with a HP 8600 n911 premium?

    I recently purchased an new HP 8600 n911 premium all-in-one, HP's top of the line all in one inkjet printer/scanner.  I cannot find any settings that permit me to descreen an image (such as one in a newspaper) or to adjust the size of the target imag

  • Data validation query change

    hi experts I got request to change one data validation query. In the existing query,I see three parts...in top(first part) part,we have one query view from One cube.....when we come to middle part(second)..it has one query view from second cube.....f

  • SCCM 2007 Migration to SCCM 2012

    Hello, I read http://social.technet.microsoft.com/Forums/en-US/58ba35e5-d84e-4741-8089-624f5269a2ca/sccm-2012-design-consideration-advice?forum=configmanagergeneral&prof=required with the following notes: Secondary vs. DP is a subjective call based o

  • Importing translated text

    Can anyone tell me if English language annotations on diagrammatic drawings can be 'tagged' or coded in some way so that when they are translated into their foreign language equivalents they will automatically re-import or update to replace the origi