How to add a pagitems to a group

mygroup := Application.ActiveDocumnet.Groups,Add(),
then I can not find any method can add in InDesign CS4 Group object?
Anybody show me a hint , please;
Thanks

This is what I found in my archive. Don't remember who is the author of the code — probably Marc Autret.
Group.prototype.addItems = function(/*PageItem[] | PageItem*/ newItems)
// Emulates Group.groups.add(items) or Group.add(existing_item)
// <newItems> == Array of 2+ PageItem -> create a <newItems> subgroup in <this>
// <newItems> == single PageItem -> add the PageItem in <this>
// Returns the added subgroup or item (the whole group hierarchy is preserved)
// [this method fails if <this> is anchored/embedded in a story]
var     nodes=[], gs=[], g=this, node;
var makeNode = function(id,g)
     var elems = g.pageItems.everyItem().getElements();
     if (id === null) // placeholder for newItems
          return {index: elems.length, items:elems.concat(0)};
     for(var i=elems.length-1 ; i>=0 ; i--)
               // need to find the actual index in the group
          if (elems[i].id == id) break;
     return {index: i, items:elems};
for( var id=null ; g.constructor == Group ; id=g.id, g=g.parent )
     gs.push(g.getElements()[0]);
     nodes.push(makeNode(id,g));
var add = (function()
     var host = g;
     return function(items){return host.groups.add(items);};
var r = (typeof newItems == 'array' ) ?
     add(newItems) :
     newItems;
while( g=gs.pop() ) g.ungroup();
for( g=r ; node=nodes.shift() ; )
     node.items[node.index] = g;
     g = add(node.items);
return r;
var myDoc = app.activeDocument;
var myGroup = myDoc.groups[0];
// Sample usages:
var mySingleTextFrame = myDoc.textFrames[0];
// or
//~ var subGroup = myGroup.addItems(myNewTFs);
myGroup.addItems(mySingleTextFrame);

Similar Messages

  • How to ADD Materialized Views to Refresh Group

    Hi,
    My requirement is, i want to refresh MVs(fast refresh only) by using DBMS_SCHEDULER. For this i have created one DBMS_SCHEDULER job like below.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    JOB_NAME      => 'REFRESH_MV_UPLOAD',
    JOB_TYPE           => 'PLSQL_BLOCK',
    JOB_ACTION      => 'DBMS_REFRESH.REFRESH('MV_UPLOAD_GRP');',
    REPEAT_INTERVAL      => 'FREQ=MINUTELY; INTERVAL=30',
    ENABLED      => TRUE
    END;
    In the above script, i created one refresh group 'MV_UPLOAD_GRP'. So what my requirement is i want to ADD my MVs refresh scripts to this group. Scripts as below...
    Refresh MV Scripts:
    1) Exec dbms_mview.refresh('emp.entity', 'f');
    2) Exec dbms_mview.refresh('emp.identifier', 'f');
    3) Exec dbms_mview.refresh('emp.rating_hist', 'f');
    . so on.
    Can anyboy help me how to add these scripts to refresh group 'MV_UPLOAD_GRP'.
    Regards
    Raj

    ALL_REFRESH and ALL_REFRESH_CHILDREN
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rarsnapviews.htm#REPMA027
    Nicolas.

  • How to Add multiple entry to the group policy security filtering

    How to Add multiple entry to the group policy security filtering
    Is there any way we can add multiple entry to the Domain group policy Security filtering tab.Currently its not allowing to add more then one entry at a time.
    Getting Error like "only one name can be entered,and the name cannot contain a semicolon.Enter a valid name"

    Hi
    Are you trying to add more users or groups through Group Policy Management Security Filtering tab?
    Try right clicking on the policy and then edit
    Then in Editor Right click on the name of the policy and Properties
    Security tab and add user or group from this tab. Just make sure if you are adding user or groups "Select this object type" has
    the correct option also "From this Location" is set to your entire directory not the local server.
    Update us with the above.
    Thanks

  • How to add a button to the grouped data in an AdvancedDataGrid?

    Hi,
    Can anyone please suggest how to add a button to the grouped data in the AdvancedDataGrid?
    I have tried extending the AdvancedDataGridGroupItemRenderer and using it as the groupItemRenderer but its not reflecting.
    For the leaf node the itemRenderer property works just fine.
    Please help!

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • Regarding : How to add a user to portal group with the help of webdynpro .

    Hii ,
    I am working on an application in which with the help of an action( Button)  we r adding a user in Ztable in R/3 , as well as  group in portal.
    The user r successfully creating in Ztable but from portal side No user is assigned to Portal group.
    I need coding solution for " How to add a user to portal group with help of webdynpro"
    Any usefull link will also do.
    Pls anyone have any solution ??
    Thnks in advance.
    Rewards r waiting for u .

    Hi,
    Use UME api to add user to portal group.
    Using UME API:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d562b7-1405-2a10-dfa3-b03148a9bd19
    Regards,
    Naga

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to add ASM Disk to Disk Group that is shown as MEMBER?

    HI,
    We have a Production Oracle RAC on HP-UX. We have Two Disk Groups one for Arcive (ARC_DISK) and other for Database(DATA_DISK).
    Today I wanted to add another 200 GB of Disk Space to the DATA_DISK Group.
    I opened DBCA and could not find the new disk in the 'Show Candidates' option. But after the Unix admin changed the ownership and permission of the Disk, it was shown in 'Show Candidates' option. I selected this Disk and continued but got an error later as we didnt change the ownership and permission from the 2nd Unix server. After doing this, , when I open DBCA to add disk, nothing is shown in 'Show Candidates' option but when we click on 'Show All', the new disk is listed as MEMBER (header status) but not allocated to any Disk Group.
    I would like to know how to allocate this Disk (which is already shown as MEMBER) to the DATA_DISK - ASM diskgroup. This is a production database system.
    Rgds,
    Thiru

    user1983888 wrote:
    Hi,
    Due to huge difference in Disk Size which I am trying to add to the existing Disk Group which has 1024 GB of Disk, would it be a better idea to create a new Disk Group with 200g GB Disk? Will this command work as the header_status is already MEMBER?
    SQL>CREATE DISKGROUP DATA_DISK1
    EXTERNAL REDUNDANCY
    DISK 'disk path';
    Thanks.Yes, you can create new diskgroup (DATA_DISK1). Just make sure all datafile in DATA_DISK autoextend off, then create all your new datafile to the new diskgroup DATA_DISK1. The command will not work as the header_status is MEMBER. You'll receive ORA-15018 & ORA-15033 error. As I mentioned before, you need to use FORCE option or format the disk using dd* command before perform above command.
    1st Option : (Format the raw disk using dd command creating new diskgroup. Header_status MEMBER -> CANDIDATE). E.g.
    1. dd if=/dev/zero of=/dev/rdsk/c2t1d0 bs=8192 count=1000 //any rac nodes
    2. # chown oracle:oinstall /dev/rdsk/c2t1d0 //perform on both node. This apply if using LVM or direct access to raw
    3. SQL> create diskgroup data_disk1 external redundancy disk '/dev/rdsk/c2t1d0'; //any RAC node in ASM instance
    4. SQL> alter diskgroup data_disk1 mount; //try to mount on the other node
    2nd Option : (Using FORCE option when creating the new diskgroup. Header_Status = MEMBER)
    1. # chown oracle:oinstall /dev/rdsk/c2t1d0 //perform on both node. This apply if using LVM or direct access to raw
    2. SQL> create diskgroup data_disk1 external redundancy disk '/dev/rdsk/c2t1d0' force; //any RAC node in ASM instance
    3. SQL> alter diskgroup data_disk1 mount; //try to mount on the other node
    Just be careful when using FORCE option or DD command. If you perform this operation on existing ASM disk groups disk, it may destroy existing disk groups.

  • How  to add a new option for group by in a excel report

    Hi,
    there is a enhancement in a excel report
    I need to add a new option for group by
    help me
    Regards,
    Raghu

    k

  • How to add the User in customized Group.

    Hi All,
         If we create any User in SAP Portal then that user is assigned to
    everyone group by default.Now i have one custom group,say 'ABC'.what i
    want is, which ever user is being created through SAP Portal should be
    added to this group.
    one way i think, is to create a webDynpro application which will add
    all the portal users to the customized group but the problem is how to
    run this appl.Continuously.
    regards,
    Mithileshwar

    Hi!
    I do the test here, try this:
    In group ABC, add Everyone role in Assigned Roles.
    In my case I’m using a role XXX in group Everyone and I configured all iViews for this role.
    Regards,
    Edson Thomaz

  • SSRS 2008 R2: How to add Border to Parent Column group only in Tablix?

    Hi there,
    I have a report where there is a Parent and Child group on columns.  I want to add a left/right border to just the Parent Group (Fiscal Period) with no border between the Child grouping (Fiscal Weeks).  How can I do this?  I have found expressions
    using the Previous function but that doesn't appear to be supported in a Tablix?  Am I missing something?

    Hi Debn,
    From your description, you want to use expression to display or hide the textbox border on the column base on it's scope, right? In Reporting Services, the color of the textbox border is support expression, however we cannot use the expression to display
    or hide the textbox border dynamically. So I am afraid your requirement cannot be done.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How To Add New Contact To a Group Using iPhone

    I use a Business and Personal Group. When I add a new contact using my iPhone, there is no way I can assign it to a Group. Then when I sync, the new contact shows only in Group "All". Further, in Address Book you cannot tell which contacts are not in a Group. I can see the total number of contacts in Group All, and the total in Group Personal, and the total in Group Business, so I can tell the sum of Personal and Business is less than the number in All. But I cannot tell which contacts are in All and not assigned to either Business or Personal. This makes it difficult to then locate the contact on my iPhone (I tend to always look in the appropriate Group).
    So how can I either a) assign a new contact to a Group using my iPhone or b) identify in Address Book which contacts are not assigned to any Group?

    RJOBoston wrote:
    So how can I either a) assign a new contact to a Group using my iPhone or b) identify in Address Book which contacts are not assigned to any Group?
    a) In Phone, Contacts, enter the group you want, THEN add the new contact (you can't add a new contact to a group from Recents, but you can add a number to an existing contact, which will remain in its original group).
    b) In Address Book, select group All, then click File, Export Group vCard... and view the exported file with your favorite text file viewing method (TextEdit, cat | more, vi, etc.); look for entries without a CATEGORIES: line.
    Unchecking Hide Extension and changing it from .vcf to .txt might allow you to open it easier in TextEdit; I opened Terminal and used "cat Documents/vCards.vcf | grep : | more" to view them ("grep :" filters out the photos).
    (Note to others: The above procedure is for Mac OS; Windows users could probably export their Outlook Address Book and use Notepad to view it.)

  • How to add reference to a type group from ABAP webdynpro?

    Hi,
    When I copied the webdynpro application from a system to another with SCWB, the referenced types in type groups are reported not defined, even the types from basic type group ABAP - the type groups are defined in both systems, the webdynpro app works well in the original system.
    And I didn't find the way to add type group references in webdynpro with "TYPE-POOLS:". Anybody knows how to handle this?
    Thanks and regards, Said

    OK I found it.
    Under my main program there is a global include. A co-worker called it somehting different.
    So it had:
    type-pools: rs, rsr, rro01, rrk, rro04.
    And I change it to:
    type-pools: rs, rsr, rro01, rrk, rrs0, rro04.
    Yes, Then when I r-click on the main program and select "Rebuild Object List" then it added the type group under "Type Group".
    Mike

  • How to add external user to the group programmatically in SharePoint?

    Hi all,
    I want add an external user to a sharepoint group:
    When I run the below code in ConsoleApplication the user will be added to the DemoGroup,
    but when I add my code to User Control and run the code on SharePoint it doesnt work and I get an error:
    The user does not exist or is not unique.<nativehr>0x81020054</nativehr><nativestack></nativestack>
    Now I change the code:
    SPUser user = spWeb.EnsureUser(userName);
    I get again an error:
    The Specified user i:0#.f|IT2S|Doe, John was not found.
    string extName = "Doe, John";
    string domainName = System.Environment.UserDomainName;
    // in sp this is way how we get the domain:
    //string domainName = System.Environment.GetEnvironmentVariables()["USERDOMAIN"].ToString();
    web.AllowUnsafeUpdates = true;
    string userName = string.Format("i:0#.f|{0}|{1}", domainName, extName);
    web.SiteUsers.Add(userName,"[email protected]", extName, "0222");
    SPUser user = web.SiteUsers[userName];
    if (user != null)
    web.Groups["DemoGroup"].AddUser(user);
    web.Update();
    web.AllowUnsafeUpdates = false;
    can anyone please help me and say why that not work? Or if someone have an idea?
    thank you in advance
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

    Hi Linda Li,
    yes I solve the issue with FBA:
    http://chrisbarba.com/2013/07/16/sharepoint-2013-forms-based-authentication-fba/
    and
    http://sharepointsolutions.blogspot.de/2012/08/configuring-forms-based-authentication.html
    with above links I solved the task.
    Best Regards
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • How to add a field object to group header section in crystal report document?

    Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName,                         CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,                         CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();                     fieldObject.DataSourceName = dbField.Name;                     fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai

    Hi Jaikumar
    As per the SCN Rules of engagement, one question per thread please.
    Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, consult the Developer Help Files:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Re. your second question, please create a new discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to add sales office and sales group code in Badi Order_Save?

    Hi,
    i have a requirement .
    the concept is like this ,we have S>D>G lay out.
    initially the sales office and sales group were fetching  values from "G".
    But my requirement is the sales office and sales group should fetch values from "D"..when the transacion is "ZGRW"..
    This is in CRM platform...So how shud i assign values of D to sales office and sales area??
    how to code this...
    help me out
    Edited by: VARUN VADNALA on Jun 25, 2009 1:35 PM

    Hi Sangeeta,
    As per your statement, my understanding is that the Organization Attributes are not maintained in the Customization. If all the values are properly maintained then based on the Organization Data determination, the system would have picked up the data. You can first check the Organization Structure and see all the attributes are properly maintained or not and then check whether the Object Permitted in determination checkbox is checked. Then create a Transaction and see that all the Organization data are getting filled properly.
    Have a look at the following link for a complete guide to the Organization data determination customization.
    http://help.sap.com/saphelp_crm70/helpdata/en/6d/5c1738453fde16e10000009b38f8cf/frameset.htm
    If the Organization data customization is not meeting your requirements then you can have a second look at the development approach. Then we can have a look at the available Objects to get the desired functionality.
    Hope this helps.
    Thanks,
    Samantak.

Maybe you are looking for

  • Blob column slow after upgrade from 9i to 11g

    Hello, I recently upgraded 9i to 11g and the insert for blob column in one of the table is now really slow. can anyone help me please? thanks

  • Graphs (in JSP)

    I created a simple bar chart by dropping my VO onto my JSP as a graph. I notice that when I display the data value above each bar, the data value displays with decimals. Is there any way to display data values without decimals (i.e., "56" vs. "56.0")

  • "Read" Triggers

    Are there such things as Read Triggers in Oracle 8i? My requirement is to write an entry to a transaction table every time a user views a row in a billable table (i.e. a pay-per-view system). It occurs to me that a row-level trigger based on the user

  • The poor MS-JVM in IE 5.x! go your death!

    No Java1.0 VM in IE6.0 is good thing in my eye: With plug in, Java2 can take role in IE, more applet can work therefore, more prople can know Java better....... mengmeng Beijing.

  • Always Overloaded!

    I'm running Logic 8 using a macbook pro: processor 2.16 Core Duo Memory 2GB Hard Drive 500GB Logic is always stopping and this message appears:"System Overload The audio engin wasn't able to process all required data in time (-10011) Even in my sessi