How to 'select content' of an element of the page in javascript?

in the GUI, in the menu object, there are selection-> content, there is also a button on the Panel to "select content". How using javascript? or what is the command line to write in 'select content' of a pageItem? can anyone help?

Try the following:

var container = app.selection[0];
if(container.allPageItems.length > 0)
{
    app.select(container.allPageItems);
};

It's something that you can't in the user interface.

See the example following a group of rectangles has been pasted inside another rectangle.

All rectangles are selected and the Group:

Uwe

Tags: InDesign

Similar Questions

  • How to display decimal numbers with elements of the page?

    Hey everybody,

    I work with APEX 4.2. I have a page with an element (element of the page displayed in the text field).

    This point of displays the values the database. If the value in the database is "0.5" item only shows that ", 5" instead of "0.5".

    I tried it already as digital point. Can someone help me?

    Your article is using data column?

    Otherwise, data recovery process:

    Select to_char (number_value, '990.0')

    in: point

    table;

  • Set a value of the element of the Page in Javascript

    I've created two elements on the page P9_DEVELOPMENT & P9_DEPARTMENT. The two select lists that are inspired by the shared components and in the sections of the list of the value of the properties display Null = Yes and Null = text "- Select -".

    I want each selection list for mutually is when I select P9_DEVELOPMENT P9_DEPARTMENT is back 'Sélection' - and vice versa. I wrote a function javascript with the following assignment.

    switch (pItem)
    {
    case 'P14_DEVELOPMENT ':
    $x('P14_DEPARTMENT').value = "- select -";
    break; …

    Logic sets the value of "P14_DEPARTMENT" empty, but I do not see "- select -". I get the same result with the statement
    $x('P14_DEPARTMENT').value = null;

    How can I reset the value of P14_DEPARTMENT and then displays the default "- select -"?

    Ned

    If the "- Select -" is the first option in the list select below the statement defines the list select Show "- Select -"

    $x('P14_DEPARTMENT').selectedIndex = 0;

    CITY

  • How to select when several shapes overlap in the page layout view

    When changing the opinion of EM structure layout, it is common to have several forms and/or port objects overlap in the same place. How to choose the object you want in this case?

    In general in any layout view, when you select objects that overlap, the smaller form will be selected by default.  Hold down the Ctrl + Shift, and then to the same place to scroll through all the objects that are under the mouse.

  • How can we do a single element with the content of two clips

    How can we do a single element with the content of two clips

    You try to get a picture of image? In other words, that contained two visible clips at the same time? If you are, change the substantive item to you main plot and another tie on top using an edit connect to the battery. Select the top item. Activate the transform tool and resize and reposition the clamp if necessary.

    Russ

  • How can we make a visible element on the screen based on the selection of an existing menu in the same screen

    February 2015 release OPA

    How can we make a visible element on the screen based on the selection of an existing menu in the same screen.

    I have a list box and a text box in the same screen.

    I have a visibility rule on the text box saying that it is only available for one of the selection in the menu dropdown.

    problem is now unless I hit the button next to the screen and return to the original screen the text box does not appear.

    Is there a solution to more to come this problem.

    Please help me

    The feature you describe is called "dynamic visibility" (http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy%20Modeling%20User%20Guide/Interviews/Screens/Add_questions_to_screens.htm#Dynamic). It allows to control the visibility of another article on the same screen, without writing a separate rule of visibility and click on Submit.

    Using out-of-the-box functionality, you can have dynamic visibility based on Boolean values and value lists (but not regular drop-down lists).

    The example in the February 2015 User Guide based on a Boolean value on the same screen. See slide 27 of the bridge-features and benefits for an example of what it looks like to a list of value: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf

    If you are wondering what is a list of values, see here: http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy Modeling User Guide/Value_lists/What_is_a_value_list.htm

    See you soon,.

    Jasmine

  • You will return the "Select an element in the page" button right in Inspector?

    The 'select an element on the page' is to the extreme left now. Since ver.32 FF. As seen in this image:
    https://MDN.mozillademos.org/files/8315/Inspector-select-element-fx32.PNG
    Change for the worse in my opinion. You will return it right into the next version? Thank you.

    N ° it is always on the far left in the current construction of 35.0a1 of Firefox.

    All Toolbox items are on the far right, including the gear button options to define what items to display.

  • ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    I don't know why it worked, but I changed the police and was able to download Web site.  Thanks for your help!

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • How to make more than 3 elements to another page via a column binding?

    I know this is a simple question, but I don't see it covered in the manual.

    I have a report on page 1, when the user clicks on a link in the column, I spend 4 elements to the page that is called.
    The column binding box allows you to specify 3 elements. How people normally accomplish this?
    Somehow use page zero? Do you use elements of Application for this?

    Also, can anyone recommend a good book APEX to complete manuals?

    Thank you

    You can enter several point names/point-values separated by a ',' in these areas

    As

    P1_x, P1_y for element names

    23,24 for values of tea plant

    CITY

  • Different value for the element on the page on different areas on the same page?

    Hi all:

    I use APEX 4.0.6 and I have a page with 4 regions and each of the region shows a classic report which SQL is very similar to the other:

    for example

    For region 1, the SQL looks like select * from history where status = 'A ';
    For region 2, the SQL looks like select * from history where status = 'B ';.
    For region 3, the SQL looks like select * from history where status = 'C ';
    For region 4, SQL looks like select * from history where status = ';

    To optimize database performance, I like to create a page element called p_status_value on this page and using the syntax of following link for the SQL statement for all 4 regions:

    Select * from history where status =: p_status_value;

    However, I need this page element value is dynamically change for each region:

    For region 1, p_status_value = "A";
    For region 2, p_status_value = 'B ';.
    For region 3, p_status_value = 'C ';
    For region 4, p_status_value = ';

    Also, I need hide this element of the page on this page.

    Can someone show me how to do this?

    Thanks in advance!

    Kevin

    Published by: Kevin Zhang on May 10, 2011 13:03

    Then I would have 4 regions, with each region report, create a box item in each area, called PXX_REGION_VALUE and then your request is:

    select * from history where status = :PXX_status_value_X; (XX for page # and X for region #).. The database engine will crunch through the query and your dashboard will work fine..
    
    Thank you,
    
    Tony Miller
    Webster, TX
    
    If vegetable oil is made of vegetables, what is baby oil made of?
    
    If this question is answered, please mark the thread as closed and assign points where earned..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • I would like to know how I can buy photoshop license because on the page it says that my country Chile does not sell directly.

    Hello, I would like to know how I can buy photoshop license because on the page it says that my country Chile offers no direct sales.Compr

    Adobe resellers http://adobedealreg.force.com/PartnerSearch?lang=en

    -http://www.adobe.com/content/dam/Adobe/en/products/creativecloud/cc/pdfs/cc-availability-m atrix.pdf

  • How can I add a PDF file to the page in the site Web of Muse?

    How can I add a PDF file to the page by Muse?

    Hello Gini1950,

    In case you want visitor to click a button and open the PDF file in the browser, you can try following:

    1. create a button (Rectangle or text box)

    2. click on the button and go to the hyperlink menu and click on "link to file".

    3. navigate to the PDF file and select it.

    This will create a hyperlink to the file and it will open in the browser if someone clicks on the button.

    Please let me know if you are trying to achieve something else.

    Kind regards

    Vivek

  • The default value for the elements of the page get ready when the session is disabled

    Hello

    I am facing this problem, do not know how to solve this problem. Basically, the default value 'elements' on the page don't prepare you when the session is disabled and I visit the page for the first time. So when I check the session for the first time, all page elements are null. But when I revisit the page, page elements sometimes gets.

    Don't know what I'm missing here... Someone has encountered this problem before?

    Thanks in advance! Kindly let me know if you need more clarification.

    Is there a way that the page element can be defined at the time the page is loaded for the first time?

    Yes. Create a "Page Rendering" PL/SQL process. That it is very early in the page rendering (i.e. "on charge ‑‑ after Header"). Set the value of the element of page here:

    BEGIN
      :P10_MY_ITEM := 15;
    END;
    
  • Position of the element on the page

    Hi - I'm still pretty new to LiveCycle so hopefully it'll be easy.

    I produce a PDF and I am trying to get information on each element to put in bookmarks XML so that I can bookmark the PDF dynamically.

    I found that I can use xfa.layout.page (this) in the script of layout: ready to get the page number of each article, but I can't work, how to get the position of each element on the page.  All I can find are this.x/this.y and xfa.layout.x (this) / xfa.layout.x (this), but those will be 0,0 - which I think is because the element is located at the top left of the element that contains.

    Does anyone know how to get the position of an element on the page?

    Thank you

    Dan

    Hi Dan,.

    John Brinkman has x, y of the samples on his blog: http://blogs.adobe.com/formfeed/category/transpromo

    I have here a sample that accesses the x, y position of the objects and mouse, which can help.

    http://cookbooks.Adobe.com/post_Moving_Objects_Around_a_Form-16519.html

    and

    http://assurehsc.IE/blog/index.php/2010/05/moving-objects-around-a-form/

    You are right that the coordinates are based on the top/left of the container. When you work with coordinates I tend to set the container of the Page master at 0,0, so that all objects are then based on this.

    Good luck

    Niall

Maybe you are looking for