Grouping labeled textframes

Hi scripters
i cant group two labeled textframes, where i am wrong in the below script
x = app.activeDocument.textFrames.item("Fig");
y = app.activeDocument.textFrames.item("Cap");
g = app.activeDocument.groups.add([x,y]);
ERROR
Adobe InDesign
JavaScript Error!
Error Number: 30477
Error String: Invalid value for parameter 'groupItems' of event 'add'. Expected Array of PageItems, but received nothing.
Line: 21
Source: g = app.activeDocument.groups.add([x,y]);
OK  
thanks in advance
regards
a r u l

x = app.activeDocument.textFrames.item("Fig");
y = app.activeDocument.textFrames.item("Cap");
g = app.activeDocument.groups.add([x,y]);
ERROR
Adobe InDesign
JavaScript Error!
Error Number: 30477
Error String: Invalid value for parameter 'groupItems' of event 'add'. Expected Array of PageItems, but received nothing.
Line: 21
Source: g = app.activeDocument.groups.add([x,y]);
are you sure that x and y "contains" TextFrames ?
InDesign's message is clear - Expected Array of PageItems, but received nothing - x or y or both are "empty"
robin
www.adobescripts.co.uk

Similar Messages

  • Is there a way to allow text wrapping on the outside (parent) group label IN SSRS Bar chart?

    Hi,
    I am using SSRS 2012.  I have a series of charts that have multiple category groups.  When I preview the chart, everything looks great unless the category group label is too long.  In that case it just gets cut off.  I've tried allowing
    "wrapped text", changed interval values,font size for Y AXIS but that seems to only affect the inside (child) category group.  Is there a way to allow text wrapping on the outside (parent) group label?
    I am expecting AREA VIII  BUT it shows AR on y axis.
    I need to fix it asap.

    Hi Sukhjeet.BI,
    Actually, I can reproduced the issue in my local Reporting Services environment. If there are multiple category groups on the chart, the child category can be wrapped, but the parent category would be truncated. Based on my research, this behavior looks
    like by design. Usually, the best practice is to limiting label length and number of items, use a smaller size label font or enlarge the chart size to get the chart to display properly.
    If you have any concerns about this in Reporting Service, I would suggest you submitting a wish at
    https://connect.microsoft.com/SQLServer/Feedback.
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Alligning Group labels to center in Matrix with Group report

    Hi there!
    I am facing difficulty in alligning the group labels produced using matrix(cross tab) query in to center across direction. As it only stretches to first column of the underlying Matrix Across Column and Cell. Please help me in solving this prob.
    Thanks in advance.
    Imran

    For Simple HTML output, you can only get horizontal lines out of Reports. You will lose all vertical lines as well as other graphical objects (eg: polygons, polylines, etc.) This is because these objects are not supported natively within HTML.
    However, for HTMLCSS, you should be able to get a lot closer since rectangles are supported. Though again; polygons, polylines, etc. are not supported.
    Not sure what is happening to your text, possibly an issue with browser settings or you may need to reduce the font size in Reports to get what you want.
    As has already been suggested, for better WYSIWYG output for the web from Reports, PDF is the way to go.

  • Hide group labels on a 3D_CUBE_GRAPH

    Is there a way to hide all of the group labels across one of the axis lines on a 3D_CUBE_GRAPH?
    I tried all of the following and only the values listed on the other axis disappear.
    set_custom_property('BeanArea',1,'SHOW_LABELS','x=false,y=false');
    set_custom_property('BeanArea',1,'SHOW_LABELS','x=false,y1=false');
    Thanks,
    michelle

    Michelle,
    call
    set_custom_property('BeanArea',1,'HIDE_AXIS','X');
    to hide the x-axis labels
    set_custom_property('BeanArea',1,'HIDE_AXIS','Y1');
    for the y-axis
    or
    set_custom_property('BeanArea',1,'HIDE_AXIS','XY1');
    to hide both
    Frank

  • Limit Group Labels

    Hi forum,
    i'm facing a problem with group labels in line charts.
    I group values by a timestamp (one timestamp for every 10 minutes).
    If i want to see values for a larger interval, for example 3-4 days, group labels overlap themselves as you can see in the picture which is linked below.
    http://img6.imageshack.us/img6/8589/peaks.jpg
    Now my question is if there is a possibility to limit those group labels.
    For example that only every 6th, 12th group label is shown on the vertical axis
    This way it would have a way better clearness when looking at the dashboard.
    thx in advance
    alex~
    Edited by: user12338029 on 11.12.2009 01:42

    Making selectively skip the groups may not be a good idea as it might lead to misinformation on the chart. Anyway, this option is not available in BAM.
    To reduce the number of groups for your case, you can use continuous time series. In the vieweditor, in the step where you choose "Group by" field, clicking on field will open a time series UI on the right side. By default, Continuous time series is ON, you can just increase the default quantity from 1 to say 30. This will group the data of 30 minutes together, there by leaving very few groups in your chart.
    Thanks,
    Vishal
    BAM Dev

  • AdvancedDataGrid.styleFunction not applies for hierarchical group label

    Hi
    I have hierarchical data in advanced data grid.
    I am using AdvancedDataGrid.styleFunction to set font style to the rows.
    The style is getting applied only to the child rows.
    Its not getting applied to group label.
    Please help me to style group labels.
    Thanks
    Niyazar. 

    AdvancedDataGrid.styleFunction itself working for group label also.
    Problem was with my if conditions inside the styleFunction.
    Thanks Sathyamoorthi. But I didnt tried rendererProvider.

  • Generic "course-group' label in search results

    When searching on our "What Great Bosses Know" podcast for the Poynter Institute - the results display the label "course - group" in the Collections column instead of the actual titles.
    This began to occur after the recent redesign of the admin tools. The title appears to display correctly elsewhere.
    Is this a bug or are we doing something wrong in our collection set-up?
    Thanks
    Damon
    null

    I also just noticed that the author field is empty in the same podcasts. I do not handling the uploading but the author believes she is following the same process she has used for months.

  • How to enable group label selectable on combo box?

    When we use the combo box, we can group the items as following
    group 1
    item 1 1
    item 1 2
    group 2
    item 2 1
    item 2 2
    How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
    In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
    Thanks

    When we use the combo box, we can group the items as following
    group 1
    item 1 1
    item 1 2
    group 2
    item 2 1
    item 2 2
    How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
    In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
    Thanks

  • Suppress If Duplicated On Group Label

    I'm using Crystal Reports 2008
    I have a report that is to display just the totals (not the details) for each group.  To that end, I put the fields to be totaled in the detail line and used Insert Summary to create the total fields for each group (there are two groups).  I then hid the detail section, as well as the Group Footer sections (1 & 2).  Finally I dropped the group field names into the Group Header 2 line.  It works well, but I get the same Group 1 field repeated for each item in Group 2.  Sort of like this:
    Group 1
    Group 2
    Total 1
    Total 2
    0008
    Section A01
    123
    234
    0008
    Section A02
    53
    245
    0008
    Section A03
    152
    453
    0010
    Section A01
    34
    112
    I'd like to have the 0008(number) label (in the example above) be suppressed if duplicated, sort of like this:
    Group 1
    Group 2
    Total 1
    Total 2
    0008
    Section A01
    123
    234
    Section A02
    53
    245
    Section A03
    152
    453
    0010
    Section A01
    34
    112
    I tried the "Format Field" option and selecting "Suppress If Duplicated", but that did not seem to have an effect.
    Thanks!
    Matt

    Sorry, change the code to:
    WhilePrintingRecords;
    numbervar array arr;
    numbervar x;
    if not({Group_Name} in arr) then
        x := x + 1;
        redim preserve arr[x];
        arr[x] := {Group_Name}
    else
    0;
    -Abhilash

  • Checkbox Group Labels

    Hi
    I am Created checkbox group called "Gender".Automatically there are 3 checkboxes created with this with labels as "Lebel1","Label2","Label3".Now i want to change "Label1","Label2","Label3" as "Male","Femele","NotSpecified".At design time how to change these labels.I tried to change the "texts" property.can anybody help me?
    Thanks
    Prasad

    Hi Armin,
    I am trying to create a Checkbox group. I created a value attribute and binded it to simple datatype containg list of items in enumeration. Then I binded the Checkbox group "texts" property with the value attribute.
    In the layout wizard all items are visible but at runtime none of them is visible.
    Cardinality of node containing the value arrtibute is 0..n. I have checked it for 1..n also.
    Please tell me what could be the possible reason behind it.
    thanks in advance!

  • Contact Groups Labeled "(null)"

    In the contacts area of my IPhone there is a button that will take you to "Groups." In "Groups" and under the subhead "All ICloud" there is a long sequence of entries that are labled "(null)" and a couple that are labled "Group Name." All of these entries contain no contacts. How do I get rid of them?

    Download Easy Group. It is totally free. Lauch it. Click on Edit. Click on red-cross next to your unwanted group. That's all. http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: As I am Easy Group developper, I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • Mess. Type ET01: No labeling material group is assigned to material

    Dear Gurus,
    I want to print message type ET01 but when I try the system give me following message: "No labeling material group is assigned to material "
    What do I have to do to make my material group "labeling"?
    Waiting for your comments,
    Warm regards,
    Fuffo

    Hi Fuffo,
    I am getting the same error when I am trying to print my material id labels.
    The error reads:
    No labeling material group is assigned to material &1
    Message no. WJ024
    Is there something missing in the material master ? I have had a good look at the config (a couple of times) and the master data and am not able to make out what is it that I am missing.
    Your input will be very helpful.
    Thank you in advance.
    Regards,
    Pardeep.

  • Is there a way to make the Form Wizard group things in the order I want it to?

    I am creating a multi-page checklist. Each question has a radio button with the possible answers of yes, no or n/a. When I run the Form Wizard, it detects the boxes I created, in Word using the Developer, but it puts all the yes's in a group, all the no's in a group and leaves the n/a's out. Is there a way to make it so when the Form Wizard creates the radio buttons, it puts a yes, no and n/a in one group? I don't want to have to create a sepearte group for each question. These checklists are long and there are hundreds of questions.

    The auto field detection feature is designed to look for Yes/No text labels next to each radio button group -- not specifically n/a. Do you have a group label to the left or above each group? This is how each group is determined -- if it's not there they'll default to check boxes. For more detail on how the auto field detection feature works, check out the tutorial Designing Forms for auto field detection. Also, there were a few improvements in the 9.2 release, so make sure you're using this point release or later.

  • How do I remove the grouping headings in my list view web part?

    I don't have access to SharePoint Designer and so far, that is all I can find that people are saying to use.  I understand and know how to edit the HTML in SharePoint, just don't know what code to put in and where exactly to put it so that the Document
    Library List View web part is grouped how I want, but doesn't actually show the group titles.  Any help would be greatly appreciated.  Thank you!

    Hi,
    I understand that you want to hide list view group headers, based on your description, I can suggest as follow:
    Add this code to a Content Editor Web Part (CEWP) in the list view. Adding a CEWP in a SharePoint 2010 list view will unfortunately remove the list view selector.
    <script type="text/javascript" language="javascript">
    _spBodyOnLoadFunctionNames.push("HideHeaders");
    function HideHeaders()
    var elements = getElementsByClassName(document, "td", "ms-gb");
    var elem;
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.childNodes[3].style.display = "none";
    elem.removeChild(elem.childNodes[4]);
    elements = getElementsByClassName(document, "td", "ms-gb2");
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.childNodes[3].style.display = "none";
    elem.removeChild(elem.childNodes[4]);
    elements = getElementsByClassName(document, "tr", "ms-viewheadertr");
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.style.display = "none";
    Written by Jonathan Snook, http://www.snook.ca/jonathan
    Add-ons by Robert Nyman, http://www.robertnyman.com
    function getElementsByClassName(oElm, strTagName, strClassName){
    var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
    var arrReturnElements = new Array();
    strClassName = strClassName.replace(/\-/g, "\\-");
    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
    var oElement;
    for(var i=0; i<arrElements.length; i++){
    oElement = arrElements[i];
    if(oRegExp.test(oElement.className)){
    arrReturnElements.push(oElement);
    return (arrReturnElements)
    </script>
    More information:
    http://edinkapic.blogspot.in/2008/06/hiding-list-view-group-headers.html
    http://spjsblog.com/2011/08/30/remove-group-label-in-grouped-list-view/
    If you have any questions, please reply me.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How to format data for a custom group

    Hi all
    I have a pivot table with Actual and Budget as columns and some accounts in the rows. Since I'm using the account hierarchical column, I created custom groups for the accounts using the Selection steps pane. For example, I created a new group called Profit to combine 3 different Profit accounts and display one Profit line.
    Now I want to format the data for the Profit group. I right-click on the Profit group, choose to edit the group and click on the Format button on the bottom left corner. I add some formatting, e.g. borders. When I now view the pivot table, borders have been applied to the label of the group - so the word Profit is now bordered. However, the values in the Actual and Budget columns do not have a border. Don't know what I'm missing, but I want both the group label and the values to be formatted the same way.
    How can I apply formatting to the data/values for the custom group?

    Yeah tried that already, it formats the entire column whereas I need just the values for the Profit row to be formatted. Seems it is a limitation only when using custom groups?

Maybe you are looking for

  • CTR programs (Office 2013) and WSUS

    I want to take issue with Microsoft on this inability to update Office 2013 using Windows Server Update Services. We purchase computers with Office 2013 pre-installed which features the click to run (CTR) version. While WSUS can download office 2013

  • Embedding html tags within a report

    I have an interactive report in which I'd like to indicate new table entries. I have a case statement on a column that checks the date that the entry was added and if it was added recently I concatenate a gif to the column value which indicates "New"

  • Can Apple TV start up playing from My Music??

    I really like how the latest 3.0 update to Apple TV finally lets me scroll around and look through the movies while still playing my music... that is after I've gone into My Music and told it to play it. Is there a setting that will allow the ATV to

  • Re: Using mouseClicked with JTextArea

    Thanks guys, you have both been a great help!! I now have the functionality I needed ... CHEERS a most grateful, Master sifo-Dyas

  • Cannot edit photos in standard IPad photo app

    I have a 1st generation IPad.  I recently lost the capability to edit photos through the iPad photo standard supplied app.  I was able to edit photos back in May but it no longer works since I installed the iOS 5.1.1.  Does anyone have any ideas on h