IDCS2 Win: How to iterate all items in a group item?

I want to access each item in a page group item, How to do that? Any guide or code snippet will help. Thanks in advance.
Haikun

you can use InterfacePtr<IHierarchy> hier(group, UseDefaultIID()); <br /><br />and then hier->GetChildCount() & hier->GetChildUID(n) or hier->QueryChild(n) to visit all its direct children.  Hier->GetDescendents gets a list of all items in the group (including items in a group that are in the group).<br /><br />Ian

Similar Messages

  • How to get all kind of GP work items for all users

    Dear all:
       Basing GP implementation,we can only get the single user's work item. Is that possible to get all of the users' work items,and can filter the work item via time field?
      thanks a lot.

    ISearchResult result=UMFactory.getUserFactory().getUniqueIDs();
                   IUser iuser;
                   while(result.hasNext())
                        iuser=UMFactory.getUserFactory().getUser(result.next().toString());
    The above code retrives all the users from the UME
    IGPUserContext context = GPContextFactory.getContextManager().createUserContext(iuser);
    IGPWorkItem[] workitems = GPProcessFactory.getRuntimeManager().getWorkItems(GPWorkItemStatus.getTypeForCode("1"), context);
    You will get the WorkListItems in the workitems array. The type for code which is 1 currently, must be changed according to the requirement. It is different for Completed, Inprogress Tasks, etc.
    Hope this will help you!

  • How to include all the child OU groups of a master OU group in LDAP authentication

    Dear All,
    I am using Apex 4.2 on windows server 2012 on internet explorer with database 11g R2 all 64 bit.
    we are using Microsoft Active Directory Authentication in our domain.
    I have created two protals, Staff Portal and Student Portal
    I have two groups, Staff and Students. these two groups coming under HCT group.
    I want to configure LDAP authentication for these groups, so that student cannot login to staff portal and vice versa.
    I had created on authentication schema in apex.
    inititally I configured as below
    for example I have a group ETC, inside ETC I have CSS in active directory,
    DN String=cn=%LDAP_USER%,dc=hct,dc=org
    Use Exact distinguish name=YES
    LDAP Username edit function=
    return apex_escape.ldap_dn (
                 p_string => :USERNAME,
                 p_escape_non_ascii => false ) || ',ou=users,ou=css,ou=etc,ou=staff,ou=hct'   ;
    Username Escaping=NO ESCAPING
    and it is working,
    now I have another group under ETC, which is ESS. how to include ESS also? I mean how to include all the child groups of a master group?
    because I will then only include the STAFF ou and the rest of the ou which coming under staff will come automatically.
    please refer to this thread for more details.
    Re: Re: Different LDAP authentication for Student and Staff Active directory groups
    Thank you.

    Powershell (or vbscript if you want to be old school).
    You can trigger a powershell script which will remove the offending user(s) easily enough with out resorting to a TOLDAP pass.  Nearly any script type thing would work but powershell is preferred.  It can be triggered separately from the TO AD stuff and will take multiple objects to run in one pass if you can construct the command line (or create a text file and feed it in).
    Otherwise, TOLDAP is the way to write to AD...
    Peter

  • [IDCS2 Win]How to get Interface for ISwatchesUIDData?

    Hi All,
    Please tell me how to get the Interface for ISwatchesUIDData.
    Also please tell how to make use of GetItemList() method.
    I need to get a count of all swatches that are selected in the Swatches Pallette.
    Is this the Correct class &method that i have to use for my requirement?
    Help needed very urgent.
    Thanks
    myRiaz

    Hi Jaepil,<br /><br />Thanks a lot for your tremedous help!<br /><br />Im right now trying out [Option B]that you have suggested.<br />Please have a look at the code snippet that i have tried out.<br />When i compile this snippet i get my plugin Built but when i open the Indesign & run my plugin i get the following error"Indesign.exe has encountered a proble and needs to close" & Indesign Quits Suddenly.<br />Some where im going wrong,but dont know where.Plz help me out.<br />Here is the code:<br /><br />InterfacePtr<IApplication> app(gSession->QueryApplication());<br />InterfacePtr<IPaletteMgr> paletteMgr(app->QueryPaletteManager());<br />InterfacePtr<IPanelMgr> panelMgr(paletteMgr, UseDefaultIID());<br />InterfacePtr<IControlView>swatchPanelView(panelMgr->GetVisiblePanel(kSwatchesPanelWidge tID ));<br /> <br />InterfacePtr<ISwatchesUIDData> SwatchUID<br />(swatchPanelView,IID_ISWATCHESUIDLIST); //Here i got an error that IID_ISWATCHESUIDLIST is not declared.So i declared it myself as PMIID IID_ISWATCHESUIDLIST; is this correct?(Problem in this line only i guess!!!)<br /> <br />const UIDList &select=SwatchUID->GetItemList();     <br />sprintf(buf,"%d",select.Length());<br />CAlert::WarningAlert(buf);<br /><br />Plz tell where am i going wrong .WAITING 4 UR REPLY.<br /><br />Thanks<br />myRiaz

  • [IDCS2 Win]How to Convert a PMString to uchar?

    Hi <br /><br />I have got the Swatch Names in PMString as below: <br /><br />PMString swatchName= Utils<ISwatchUtils>()->GetSwatchName(db, uid); <br />CAlert::InformationAlert(swatchName.GrabCString()); <br /><br />Now i have to write this in a txt file.I found that i have to use <br />"IPMStream" to do this.I tried using the function below: <br /><br />virtual int32 XferByte (uchar *buf, int32 num)=0 <br /><br />The problem is the Swatch name's are in "PMString" but i have to pass <br />"uchar" in XferByte as the first parameter. Plz tell "How to Convert PMString to uchar"? <br />Any Code Snippets Plz. <br /><br />Thanks in advance

    If you want to read/write a PMString then it could be done this way:
    MyPMString.ReadWrite(stream);
    If you really need a C string then you can grab one doing something like this:
    MyPMString.GrabCString();
    All this is documented in SDK I think.
    Best regards
    Patrick Perroud

  • IDCS2, WIN: How to export a document to SVG file?

    I did not find any code snippet, Do you know how to do it?
    Thanks.

    I write some code about it, but <br />          InterfacePtr<IOutputPages> piOutputPages(pExportCmd, UseDefaultIID());<br />get a null pointer, Do you guys know what is the problem?<br /><br />Thanks in advance.<br /><br />ErrorCode ExportToSVG(const UIDRef& docRef, const PMString& filePath)<br />{<br />     ErrorCode status = kFailure;<br />     do {<br />          InterfacePtr<IDocument> piDoc(docRef, UseDefaultIID());<br />          if(!piDoc) <br />          {<br />               ASSERT(piDoc);<br />               break;<br />          }<br />     <br />          // Get a pointer to the document database<br />          IDataBase *piDataBase = ::GetDataBase(piDoc);<br /><br />          // Create a PDF Export Command<br />          InterfacePtr<ICommand> pExportCmd(CmdUtils::CreateCommand(kSVGExportCommandBoss));<br /><br />          // outputFile is the file to which the PDF will be exported - You have to set its value<br />#ifdef DEBUG<br />          const char* p = filePath.GrabCString();<br />#endif<br />          IDFile outputFile(filePath);<br />          CreateFolderIfNeeded(filePath);<br /><br />          // Specify the output file<br />          InterfacePtr<ISysFileData> piFileData(pExportCmd, UseDefaultIID());<br />          piFileData->Set(outputFile);<br /><br />          // Get the pages to be exported and set them on the command's output pages interface<br />          InterfacePtr<IPageList> piPageList(piDoc, UseDefaultIID());<br />          int32 nPages = piPageList->GetPageCount();<br />          UIDList pageUIDList(piDataBase);<br />          for(int32 i=0; i<nPages; i++)<br />          {<br />               UID uidPage = piPageList->GetNthPageUID(i);<br />               pageUIDList.Append(uidPage);<br />          }<br />          // fixme, got a null piOutputPages<br />          InterfacePtr<IOutputPages> piOutputPages(pExportCmd, UseDefaultIID());<br />          piOutputPages->InitializeFrom(pageUIDList, kFalse);<br /><br />          // Process the command<br />          status = CmdUtils::ProcessCommand(pExportCmd);<br /><br />     } while(0);<br /><br />     return status;<br />}

  • How to get all uniquememeber in a group

    Hi.
    How can I get all the 'uniquemember' in a given group programmatically, like in a pl*sql procedure?
    Thank you

    Check note Note:241038.1.
    You can use DBMS_LDAP to retrieve group members.
    my_attrs(1) := 'uniquemember'; -- retrieve all attributes
    retval := DBMS_LDAP.search_s(my_session, ldap_base,
    DBMS_LDAP.SCOPE_SUBTREE,
    'objectclass=*',
    my_attrs,
    0,
    my_message);
    retval := DBMS_LDAP.count_entries(my_session, my_message);
    -- get the first entry
    my_entry := DBMS_LDAP.first_entry(my_session, my_message);
    entry_index := 1;
    -- Loop through each of the entries one by one
    while my_entry IS NOT NULL loop
    -- print the current entry
    my_dn := DBMS_LDAP.get_dn(my_session, my_entry);

  • How to alter the display names of grouped items in a document library?

    Very odd issue I want to sort items in a document library by the value in a field, that is no problem. The issue is I want them display NOT in alphabetical order for example I have a list that is grouped into 3 groups (Cases, Forms and Support). When you
    look at the page they are grouped in alphabetical order from top to bottom, I want them to show up as (Cases, Support and Forms). I tried creating column with with a value 1,2 or 3 with the "3" value attached to "Forms" items and the "2"
    to the "Support" item them sort per Grouped value and that works BUT the grouped names appears as "1" "2" or "3". I need them to show as (Cases, Support Forms). 
    I was wondering if there is syntax to alter the display name while editing within Designer similar to the syntax used to change the display name of a long hyperlink when quoting it in an email or forum submission?? 
    I want:
    <FieldRef Name= "Grouping"/> to diplay the three groups by names other than the values in that column, the display names.

    Hello,
    This might be helpful:
    http://sharepoint.stackexchange.com/questions/78958/change-header-on-group-by

  • SSRS 2005 - How to do a WHERE clause against grouped items?

    Hi all
    Sorry for a newbie question, but I have been trying to solve this issue for ages and have not come up with anything yet!
    I have the following example data:
    SiteID    Contract
    0001      No
    0002      No
    0002      Yes
    0003      Yes
    0004      Yes
    0004      No
    I want to return the following:
    SiteID    Contract
    0001      No
    0002      Yes
    0003      Yes
    0004      Yes
    What I am trying to do is Group by SiteID, and if a SiteID has multiple rows, to only return the row with Yes in the Contract column
    Can someone please help me with this?
    Many thanks
    Naz

    you can also do this in query behind and do direct pull to report
    use query like this
    SELECT SiteID,Contract
    FROM
    SELECT ROW_NUMBER() OVER (PARTITON BY SiteID ORDER BY Contract DESC) AS SEq,*
    FROM Table)t
    WHERE Seq = 1
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to remove all packages in a group except x, y, and z?

    When I installed Arch, I installed KDE.  Since then, I've switched to tiling WMs (Awesome, then DWM), and I really have no need of most of KDE any more.  I still really like Dolphin, though.  Is there a simple way to tell pacman to remove the kde group except for dolphin and its dependencies? (i.e., rather than just removing all of kde and reinstalling the few bits I want.)

    Try
    #!/bin/bash
    groups="kde"
    packages="kdebase-dolphin kdeutils-kcalc"
    comm -23 <(comm -12 <(pacman -Sgq $groups|sort) <(pacman -Qq) | sort) <(for i in $packages; do pactree -u $i; done | sort)
    <thisscriptname> | sudo pacman -Rns -
    It allowed me to remove 344 of 396 packages I installed with 'pacman -S kde', both dolphin and kcalc seem to work (they at least start up ;P).
    Of course you need to modify which group(s) you want to remove and which packages you want to keep, as well as pacman options - I'm fine with '-Rns' but you may prefer different ones.

  • How do move ALL contacts from other groups into iCloud contacts group

    Is there a way to make Icloud contacts the default for the "groups" on my iphone ?
    OR
    is there a way to merge ALL the other groups into icloud contacts so i just have the one Icloud group to deal with on the iphone ?
    Thanks !

    This page: http://www.macworld.com/article/1054187/outlooktoaddress.html - has this to say:
    'Under Outlook 2002 you could simply open your contacts and drag them to the desktop to turn them into vCards. No longer. Try this and the contacts are converted to messages.
    While you can select a single Outlook contact, choose File -> Save As and, in the resulting dialog box, choose vCard Files from the Save as Type pop-up menu, this works only for individual contacts—you can’t export a group of contacts this way.
    You have a few options for eventually getting the things out of Outlook. The first is to select all your contacts and choose Action -> Forward as vCard. Outlook will create a new email message that contains all your contacts as individual vCard attachments. Send this message to yourself, pick it up on the Mac, drag these files into Address Book or Entourage’s Address Book and you’re good to go.
    Or Sperry Software can lend a hand with its $20 vCard Converter Add-in for Microsoft Outlook. This adds a service that enables Outlook to export all your contacts as a single vCard.'
    A Microsoft Help Page suggests:
    'The simplest way to do this would be to export your Outlook contacts to a tab-delimited file and then import that into Address Book.
    In Outlook select File menu --> Export... and select Contacts to a list (tab-delimited text).
    Save the new file to your Desktop.
    In Apple's Address Book select File menu --> Import... and select your file.
    Use the next window to match the field names in Address Book with those in your export file'
    If using either method you import into Address Book you can sync that to iCloud, which is probably easier than trying to import into the iCloud website. If you're prepared to splash out $20 the Sperry Software program would  simplify matters a lot.

  • How to get all signature fields in a .pdf from C#

    Does anyone have some sample code that shows how to "iterate" all signatures in a .pdf from C#? Using the SDK and the Javascipt object model I know how to sign a document but I can't figure out how to "get all the signatures". Basically I want to open a .pdf file and then (from C#) find out what persons currently have signed the document. I guess I need to iterate all signature fields and then get the SignatureInfo object, or?
    Anyone?
    Cheers,
    Calle

    I am afraid this don't help me. How do I get the "data" back to C#? Looping all fields in in JavaScript is probably "easy" but I simply can't figure out how to get access to the data from C#. Any one have a suggestion on the best approach?
    Thx,
    CJ

  • Don't know how to iterate over supplied "items" in forEach&gt

    I try the following
    I have form , bean , servlet and JSTL
    in bean I have constructor like
    public MyForm(String a_item) {
    this.a_item = a_item;
    in servlet
    MYForm uf = new MyForm(a_item);
    userSession.setAttribute("underform", uf);
    in jstl
    I have
    <c:forEach items="${sessionScope.underform}" var="found">
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
    <tr><td align="left" valign="top">
    <c:if test="${found.a_item=='on' }">
    <li> <input type="checkbox" name="a_item" checked></li>
    </c:if>
    </td>
    </tr>
    </table>
    I GET THE ERR Don't know how to iterate over supplied "items" in &lt;forEach&gt;
    HOW CAN I Persisting data by the request by as an object ??
    thank you!

    so you suggest the method oneConsidering that I said exactly the opposite, it is a mystery to me how you could possibly have drawn that conclusion. I don't intend to keep repeating myself or to keep clarifying statements that are already perfectly clear. If you don't understand something, please say so. But don't put words into my mouth thanks.
    that means all logical will be handle on bean and not servlet is needed?Once again I have no idea what you mean by this question.
    what is the role for the servlet in MVC?And I have no idea what you mean by this question either, or how it relates to this thread. A JSP is a servlet in case you didn't know.

  • How to delete all items in download folder under bookmark in the shortest time?

    I understand that all downloads from internet and yahoo/google mail are stored in the "Download" folder which I see under bookmark when I want to delete. I think that if the download folder is never emptied, then my mac will slow down. Therefore I want to delete these downloads which I have already seen. How do I delete ALL items in the shortest time? Deleting items, even in groups, takes a long time. Is there a method that I can use so that all items in the folder are deleted in one stroke?
    Thanks.
    Unguja

    Try (first button on toolbar) Organize > Select All (Command + A) to select all items in the right pane in the Library.

  • How to delete all items in the HUB ?

    How to delete all items on shot in the HUB ?

    Hi all,pay attention to the words I've marked in bold in the first answer from the technical support member:  "From the BlackBerry Hub, hold your finger on the date at the top of the list. A side menu will appear. Click on the Garbage Can to delete all messages prior to that date" At first, I also didn't understand how to make it works, but you have to slide until the date is at the top of displayed messages, then you can tap and hold to select all messages preceding that date. 

Maybe you are looking for