determine the 'parent' of a selection

Assuming that the cursor is in a story or selected text in a story, how, of app.selection, determine the paragraph, in which the cursor is?

Of the paragraph, I could not history but I can't find any 'parent' properties from a selection to determine where he is.


TX, Dave

The cursor being placed in a story or with selected text:

App.Selection [0] .parentStory > history

App.Selection [0] .paragraphs [0] > paragraph selected (if you have selected more than one paragraph, only the first selected paragraph).

Peter

Tags: InDesign

Similar Questions

  • Determine the number of channels selected for traditional DAQ

    The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.

    Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.

    Any idea?

    In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.

    Ben

  • Table tree - Select All child nodes at the same time when the Parent node is selected.

    Hi all

    I am relatively new to ADF and JDeveloper, and so I hit a problem I can't deny.

    I have a tree table that looks like the following...

    1 status | Name | Employee ID

    -> Status 2. Name | Employee ID | etc. | etc.

    -> 3 status. Name | Employee ID | etc. | etc. | etc.

    I want to do is when I select the node from top of the line/parent (line 1) page I would like child nodes (lines 2 and 3) to choose from in the same mouse clicks.

    In the end I will be citing a listener of the property on a button, once the selection was made, to change the value of the 'Status' column in all three levels that have been selected.

    NB. each level in the tree above is derived from 3 views distinct, who are joined on the employee ID.

    Thanks in advance for your help and your advice.

    Kind regards

    Jamie.

    Jamie, tell us your version of jdev, please!

    This http://andrejusb.blogspot.de/2012/11/check-box-support-in-adf-tree-table.html Blog shows how to implement this.

    Timo

  • determine the name of current selection XMLTags

    Dear Scripting Guys,

    I would like to find a way to alert the name of XMLTags of the currently selected text or the text where my cursor is currently.

    Something like this works:

    Alert (App.activeDocument.xmlTags.Item (0).) (Name)

    The problem is, that the above example is static and shows only the name of item (0).

    How can I fix?

    Also, where can I watch the syntax of XML tags? Is there a literature or an overview of the syntax?

    Thanks for your help,

    TYPO

    Hi Typo,

    Try the below code on CS4

    Alert(App.Selection[0].associatedXMLElements[0].markupTag.Name)

    You can use the Indesign Jongware object reference. Check below link
    Shonky
  • Necessary troubleshooting after you rename the parent folder

    Recently, I renamed some files from the month to the 00 month (i.e. from January to January 01) and moved this month RAW files in a subfolder for this shoot.  The bad news is that I forgot to do in Lightroom!  Usually I choose a photo, update its location, and it syncs all the other photos in this folder.  However, something went wrong.  Whenever I try to add a link to the photo, it says the name of the file is different from the one chosen, and I want to continue.  File names have been changed already and just the sub and parent folder.  This means that I have to do each photo one at time and a few hundred to re link. I have tried to right click on the parent folder and select the location of the update folder and file (wants to import photos as if they were never in the catalogue) synchronize any suggestions to fix this?

    Adding spaces before the name of the file using Lightroom did indeed cause a space to be present in both the file name as shown in Lightroom and the file name as shown in Windows.

    And the problem remains that your file in Lightroom names do not seem to match the names of files in Windows.

  • Select list THAT LOV based on the selection of the Parent list


    Hello

    I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.

    So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.

    I think this question been here before, so could someone just tell me the answer?

    Thank you very much

    Leo.

    Leo_Y wrote:

    I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.

    So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.

    I think this question been here before, so could someone just tell me the answer?

    To get the right answer, you must ask the right question.

    Integrated support in cascade LOV is addressed in the documentation.

  • Determine the index of the selected items in a ListBox?

    Hello

    I can't find a simple/direct method to determine the index of the selected item in a list box.

    I feel I'm missing something, but I can't seem to figure out who (if any) returns an index number if you use it with the recall of .onChange for a ListBox control.

    The following code implements that I need, but is not particularly efficient or elegant and can get confused if you introduce multiple lists to check.

    Any suggestions to reproduce this behavior, even with the best code would be appreciated.

    Thank you!

    var RES = ' palette {text: 'Example-list' properties: {resizable: true}-} ".

    NLP: Panel {orientation: 'row', preferredSize: [400 600]------}

    list1: ListBox {preferredSize: [400 550], properties: {multiselect: true, numberOfColumns:2, showHeaders:true, columnTitles: ["list 1", "item 0"]}}, \

    }}"

    var win = new Window (res)

    Win.Show)

    for (i = 0; i < 10; i ++) {}

    var line = win.pnl.list1.add ("point", "Same entry")

    row.subItems [0] .text = ' paragraph '+ i}.

    Win.PNL.List1.OnChange = function() {}

    var tempArray = new Array()

    for (i = 0; i < win.pnl.list1.items.length; i ++) {}

    If (win.pnl.list1.items [i] .selected == true) {tempArray.push (i)}

    }

    selectedRow = win.pnl.list1.items var [tempArray [0]] .text

    var selectedRowSubitem = win.pnl.list1.items [tempArray [0]] .subItems [0]

    Alert ("selection:" + tempArray + "\n posted content:" + selectedRow + "\t" + selectedRowSubitem)

    }

    .. .in the same time, that should be enough

    win.pnl.list1.onChange = function() {
         alert(this.selection.index); // for this to work set, multiselect:false
    }
    

    I guess you already tried and the result is 'undefined', the reason is that you have this property

    multiselect:true
    

    in this case, the selection returns an array

    this.selection[0].index;
    

    I'd give you the first selected item, even if you only have a single element selected, for all selected items to loop through all the elements in the selection table.

    not sure if the wonderful guide Peter explains this (explained in the Guide to the tools), but you should read it too, he has tons of info.

  • What determines the strategy of selection of the path?

    If I attach just an ESXi host to a SAN that has one or multiple LUNS, how the strategy of selection of the path will be selected?

    It will always be SRM at the beginning? Or could itself select for fixed DS?

    to be more precise - claiming rules do not define the default PSP. Only, they define what Multipath ESX Plugin will use for the corresponding rule.

    Then the Plugin will be pickup the plugin of Type array of specific (ATAS) storage for storage device you or will use the default if there is no matching ATAS.

    Each HOME has its default path of selection Plugin, but you can always change it by using the ESXCLI command.

  • Determine the GLU selected on the calculated extended attribute

    The computation of the results based on values with different units of measurement (UDM), how can I know the unit of measure defined on a calculated digital extended attribute? For example, to get the values target in inches, if I calculate volume length * width * height will produce a value in cubic inches. If the extended attribute GLU has cubic feet, then I need to covert the returned results in inches cubic to cubic feet. The question is, I can determine the unit of measurement for the digital extended attribute computed in the calculation script so that I can calculate the value of the correct unit of MEASURE, or do I have to use a custom calculation class?

    The calculated environmental assessment can have a specified unit of MEASUREMENT, which means that if your calculated EA is Volume, configure you it with a specific unit of MEASURE (for example, cubic feet). Therefore, your JScript can ask values EA of the length, the width and height to return to the unit of MEASURE you need (feet)

    length of var @ GetCellInMyRowByColumnID ('LENGTH'). Value.GetNumericValue ("pi");
    var height @ GetCellInMyRowByColumnID ('HEIGHT'). Value.GetNumericValue ("pi");
    var width @ GetCellInMyRowByColumnID ('WIDTH'). Value.GetNumericValue ("pi");

  • Bind two conrols datagrid.  As in dg1 selection determines the data that shows in dg2

    I'm working on a back-office application for my company and I played with WaveMaker and Flash Builder.

    In WM I have dg2 show to load data on dg1 as I select a customer in dg1 the dg2 displays all devices that the customer is saved for them.

    http://184.73.199.26:8080 / jim2 < < this is my wavemaker version on amazon EC2 (no domain name) connect you as limit pw:limit

    Here is the code FB4.5 generated automatically

    http://pastebin.com/bYbjA1zu

    Untitled.png

    So whether you're just warned.  I installed only FB4.5 like two days ago.  I have very little experience with PHP/JS/As.  I'm not pleading for you to do it for me, but some agnostic codes would be great

    Thank you all.

    I got it.  changed the PHP service to this

    $stmt = mysqli_prepare ($this-> connection, "SELECT * FROM $this-> tablename where cust_id =?");

    Instead of

    $stmt = mysqli_prepare ($this-> connection, "SELECT * FROM $this-> tablename where dev_id =?");

    Then in the change of Manager selection for dg1 added this line

    getDeviceByIDResult.token = deviceService1.getDeviceByID (dataGrid.selectedItem.id);

  • Determine the maximum use of the processor for a virtual computer in the custom user interface

    I want to determine the maximum use of the processor for a virtual computer in the custom user interface.  How can I do this?

    If I use a supermetric, there is no kind of attribute under CPU called "maximum use.

    Certainly, you get points for a long question! Although to be fair, it's probably my fault to feed you so much information to digest at once.

    1. I would say you can do two ways visually. Use the operations > detail view for 'normal ranges' use the upper limit of the normal range as your typical max. You want an absolute peak, add the metric of a graph or observe that highlight high and low watermarks.

    2. There are a lot of ways to display data, but if you want to display a single metric over a period of time, we could use the following widgets [on top of my head]:

    Top - N analysis

    Weather map

    Analysis of distribution of data

    Among these, I think of your desire for a "peak". Who you want real value, which eliminates the weather map. Then, I think that the concept of a 'Summit' and what is the best thing, I think that the 95th percentile... then I came with the widget of data distribution. The decision is ultimately yours given your particular use case.

    3. you can have it apply to several virtual machines - it's just a widget capable of being an independent provider or receiving widget (metrics, DO NOT choose to select resources). Each resource/metric will add to the widget and you can remove them if you like after it is added. You can certainly all the time you visit... It is date and time standard options you have in all the other widgets chart. With the widget data distribution, you want as much time as possible to get an accurate histogram of the cycles of workload.

    4. This is similar to the question above. You can certainly add parameters of individual resource or a DM that summarizes or AVG groups of resources. And as above, the delay is configurable, along with the other graph widgets.

    5. it's part of Q4 - you can sumN or avgN up to any number of resources with a SM, then discovers that SM in the widget of data distribution. When I said container, I mean an application, group resource pool... all that acts as a container parent within the vCOps.

    6. that's correct, SMs calc using data collected last points... aka single period of time. When you are referring to the longest period, I gave you a few examples of the attributes that are composed of several periods of time which are calculated and created by the adapter for VMware vCenter behvaior. In this case, you have the GVA 15 min CPU 1.5; These specific simple mobile GVA can be specific OR a copy using SMs. Next, you will have the chance is to find a way to distribute what you need through a widget [at that time].

    7. the distribution of data is not for export, it is for Visual functions. If you want the data in CSV, just use a typical chart of metrics and export to a csv and calc your own pics, avg, 95th, whatever.

    8. This is a bit of a mix of all your questions, put in place.

    You are right, if you added those 3 VMs, then calc was the 95th of the AVG. Like Q7, you would not export the data of the distribution of data because the raw data points are not - you do not pass the metric to a metric graphics standard and export via csv.

    Take advantage of...

  • How do you determine the time (time since the computer turned on)?

    Probably simple, but I found not she. Where can I determine how long as the computer is on?

    iMac 27 "end 2013, OS 10.11.5

    Thanks yo for assistance.

    Please hold down the option key and select system information from the Apple menu. In the system information window, select the software from the list on the left. At the end of the 'software system overview', you should see a line that starts like this:

    Time since started:

  • Cancel the Parental control, because I'm the Parent: but not Administrator of my computer

    I myself blocked on my computer. I didn't know that Apple was the administrator of the computer, and I was a user. I turned on the 'enable parental control' to limit the spending of my adolescence, while using my apple ID. I didn't know I was putting controls on myself. I tried everything-

    (1) connected on Mac of my son tried to remote access, file sharing, etc. He is a Director on his computer, and we've even created a new user on his computer. Nothing has worked.

    (2) tried questions help and support, impossible to find a way around it.

    (3) I've changed my password, now I can't even shut down the computer.

    I can't believe that this happened to someone, somewhere, and it's so easy to do.

    Help, please! I tried everything-

    Please take these steps to restore the privileges on your account. This somewhat tedious procedure is only necessary if you have verified that no work administrator account exists on the system.

    If you do not already have a current backup of all your data, you must back up before taking any of the steps below. Ask if you need advice. You won't need the backup unless something goes wrong, which is always possible.

    Step 1

    Start in recovery mode. The OS X Utilities appears.

    Step 2

    This step only if you use FileVault 2. Start utility disk, then select the icon for the volume FileVault startup ("Macintosh HD", unless you have given it a different name.) It will be nested under another icon of the disc. Select open in the file menu and enter your login password when you are prompted. Then quit disk utility must be returned to the main screen.

    Step 3

    Select

    Utilities ▹ Terminal

    in the menu bar. In the window that opens, type this:

    resetp

    Press the tab key. The partial order you entered will automatically end this:

    resetpassword

    Press return. Opens a window to reset the password. Select your boot if not already done volume. Pull down the menu option

    Select the user account

    and select

    Administrator (root)

    Follow the prompts to set a password. It is safer to choose a password that includes only the characters a - z, A - Z and 0-9. I suggest that you write the password. If you don't write it down and forget about it, you will start again at step 1.

    Select

     ▹ Reboot...

    in the menu bar.

    Step 4

    This step, as step 2, applies only if you use FileVault. Sign up as usual, then select

     ▹ Disconnect...

    from the menu bar or press shift-command-Q key combination. Do not restart. You go back to the login screen.

    Step 5

    On the login screen, click on the other... Enter 'root' (without the quotes) in the name field and the password set in step 3 in the password field. You should now be logged in as root. It is a potentially dangerous situation. Do nothing by being logged in as root except as indicated below. You'll be fine as long as you don't dismiss the plan.

    Open the preferences users and groups window. Select your usual administrator account from the list of users and check the box marked

    Allow the user to administer this computer

    You will be prompted to restart. Do this and log in as yourself, not as root. Your administrator status should now be restored.

    Step 6 (optional, but recommended)

    Follow the instructions in this article to support under the title "disable the root user. You must authenticate in directory utility as a 'root' with the password set in step 3. As another administrator authentication will not work.

    Credit for this idea of NCP member wessongroup.

  • Soft pictures for Mac: how to determine the size of the image file

    Question: in the Photos for Mac, how can I determine the size of a photo or a video file

    Set-up the info panel does not include the size of the file.

    Furthermore, I don't see any place where I can do a "show in finder" to find the information in this way.

    Thank you!

    Can you not with the right button on the image file in the folder, the images are stored in, select "Get Info" and then find the size of the file in this way?

  • My child allows to bypass the parental control

    My child to bypass the parental control on his Macbook Air using the method presented in this video tutorial. Is there a way to avoid this? https://www.YouTube.com/watch?v=Br6wKR28jFo

    With the text of the video section, the way used by the author to exploit the single user Mode

    command line is specified; and it has been done before. Don't know if there are more recent methods

    to try to deter the child since the creation of their own Admin account to bypass the controls that

    those already discussed adjacent older sons, like this:

    How to stop a person setting up an administrative account duplicate (hackmac)?

    Although it is possible to learn how and use the Open Firmware password, to attempt to get the Admin acct

    This could also be overcome by a particular person looking to exploit a work around physical access.

    In the past, some computer models were easier to open and to perform tasks that could derail this method.

    Almost any iFixit or removable guide could be useful for a particular child or student, as a work-around.

    See suggestions on how to apply the Firmware password, as well as the means to

    block access to the material or the way to reset the admin by OS X Recovery password, in news

    OS X versions that use this partition and its utilities. It is part of the problem with the Admin

    operation, the user is physical access to the computer. And why remotely hacking is very difficult.

    • Use a password of the firmware on your Mac - Apple Support

    While I have no other suggestion (knowing that there could be a fairly simple method to work around the)

    and most have been published online for several years) I hope that someone will see & respond to your

    question with any method you can implement. Or see if an Apple Store genius bar can help you

    This question, because it creates problems. I'd be sure to make an appointment to discuss this at the store.

    If no official Apple retail Store is available, you should perhaps consider a call to Apple support or use a

    online chat. Don't forget to mention details about the build year computer, etc. & the version OS X in it.

    You can choose to make submissions directly to Apple's comments on this issue, if you find that it is not effective

    method of maintenance determined children or young adults to change their own Admin computer.

    One of the comments below links is probably more suited to this topic than the other:

    Support Feedback

    Products return

    Contact Apple support

    http://www.Apple.com/contact/

    Need service or support? Start your online application and we will find a solution.

    More ways to get help:

    Since there is no response when I first noticed your thread, I asked guests move it more appropriate

    location for visibility in these discussions of support; so they chose to put it in the section of MacBook Air.

    Good luck in this case!

Maybe you are looking for