SearchTerm for EntityMembersDeleteRequest

I know how to make a EntityMembersDeleteRequest with a collection of Memebers.
It is not very efficient be cause I need to do a get first and retrieve lots of members then send them back to the  EntityMembersDeleteRequest 
That's 2 trips instead of in regular SQL, I could do a delete with a where clause that will point to the members to delete.
Is there a way to assign the EntityMembersDeleteRequest a search criteria like the EntityMembersGetRequest so it can be done in one trip?
 

EntityMembersDeleteRequest doesn't support search criteria. As you mentioned have to pass the members.
-Nithesh Shetty Software Engineer, C & E -> IMML -> MDS, Microsoft.

Similar Messages

  • Display packages from category X, repository Y on commandline

    Yesterday I set up my first arch system. After fiddling around with the boot disks I managed to install via PXE. After I had it working there were no problems with the installation at all. I installed only the base system as suggested by the installer. Now the question: How can I display the packages from category X, repository Y on commandline, for instance all Editors in repository Current.
    The command
    pacman -S -g
    only shows a subset, like xfce4, gimp. Or do I misunderstand anything?
    Cheers
    Dennis
    EDIT
    Because of confusion I edited my question to make it clearer what I like to do.
    Last edited by stb (2007-03-13 21:25:05)

    There are no real categories in the repository.. just repositories.
    To search for keywords on packages, use
    $ pacman -Ss searchterm
    for example..
    $ pacman -Ss term
    would bring up things like aterm, rxvt, gnome-terminal..etc.
    the groups (-g) are for installing collections of packages. think of the things in -g as meta-packages...
    Like installing all of gnome in one command..
    $ pacman -Sg
    What is in the gnome meta package?
    $ pacman -Sg gnome
    gnome
    control-center epiphany gnome-applets gnome-backgrounds gnome-common
    gnome-desktop gnome-icon-theme gnome-media gnome-mime-data gnome-mount
    gnome-panel gnome-session gnome-themes gnome2-user-docs metacity nautilus
    yelp
    oh look..gnome..i want that...
    $ pacman -S gnome

  • Badi for searchterm and lifecycle

    Hi,
    When an account is created then the value in searchterm is checked against a table .If the value in searchterm is present in the ztable and our lifecycle value is customer then that account is created otherwise an error message is to be returned on the UI.
    For implementing the above condition we have to implement BADI's for both the fields?
    I am able to find the BADI for searchterm check but i am unable 2 find a BADI for lifecycle field.
    Please help.
    Regards
    Shilpi

    I think you can use the badi 'BUPA_FURTHER_CHECK'. This badi is called in the function module 'BUPA_CENTRAL_CHANGE'.
    In general, the BP search term ('BU_SORT1' or 'BU_SORT2' in the table 'BUT000' is contained in the root object 'BuilHeader' of BOL model.This object is controlled by the class 'CL_BUPA_IL_HEADER' (#1). If an user changes the BP data, the method 'Modify' will be called. And also, if the user saves the BP data, the method 'SAVE' will be called.
    The above badi is called during the processing the 'modify' method.
    If this badi does not meet your requirment, I think you should also consider to use the following transaction (#2). In this transaction, you can replace the standard processing (ex. cl_bupa_il_header) with your own logic.
    Hope this helps.
    (#1) You can find the standard definition in the table 'CRMC_OBJIMP_BUIL'
    (#2) t-cd: spro
    -> Customer relationship management
    -> CRM cross-application components
    -> Generic Interaction Layer / Object Layer
    -> Component-Specific Settings
    -> Extend Object Model for Business Partner

  • To check whether searchterm maintained for   sales order

    hi ,
    i have to generate one alv report to check whether searchterm maintained for  sales order or not...
    can any one help me on this...
    thanks.

    Hi,
       The field VBAK-KTEXT can be of use to you.Refer tables :VBAK and VBAP.

  • Badi for searchterm

    Hi,
    While creating an account i want to check the searchterm against some ZTABLE.
    What Badi is used for applying check on searchterm?
    Regards
    Shilpi

    I think you can use the badi 'BUPA_FURTHER_CHECK'. This badi is called in the function module 'BUPA_CENTRAL_CHANGE'.
    In general, the BP search term ('BU_SORT1' or 'BU_SORT2' in the table 'BUT000' is contained in the root object 'BuilHeader' of BOL model.This object is controlled by the class 'CL_BUPA_IL_HEADER' (#1). If an user changes the BP data, the method 'Modify' will be called. And also, if the user saves the BP data, the method 'SAVE' will be called.
    The above badi is called during the processing the 'modify' method.
    If this badi does not meet your requirment, I think you should also consider to use the following transaction (#2). In this transaction, you can replace the standard processing (ex. cl_bupa_il_header) with your own logic.
    Hope this helps.
    (#1) You can find the standard definition in the table 'CRMC_OBJIMP_BUIL'
    (#2) t-cd: spro
    -> Customer relationship management
    -> CRM cross-application components
    -> Generic Interaction Layer / Object Layer
    -> Component-Specific Settings
    -> Extend Object Model for Business Partner

  • **URGENT** No getter method for property searchText of bean org.apache.stru

    I'm implementing a query page as described in the HowTo ADF_ComplexMasterDetail.zip
    When running the query page, I'm receiving the error:
    javax.servlet.jsp.JspException: No getter method for property searchText of bean org.apache.struts.taglib.html.BEAN
    I have my searchEmployees writen and 'exposed' (at least I can see it in the Data palette). But seems like something is missing, and can't find this searchText beam property specified in the html:text tag.
    Can someone help in this one?
    Here is the Help description inside the HowTo example:
    Section 3
    queryEmployees
    queryEmployeesInDept provides an interface for entering a simple search criteria for querying a list of
    employees. This does not use the Find mode Query By Example functionality that the other query screens
    use, but rather presents a much simpler search interface. The actual search is carried out using a
    function
    searchEmployees that the underlying view object exposes. (See the EmployeesView view object in the
    model project)
    1. Drop a new Data Page onto the page flow diagram call it queryEmployees
    2. In the page flow diagram, drag the searchEmployees operation from the AllEmployeesView
    collection in the Data Control Palette and drop it on top of the new Data Page. This will cause the
    framework to run a search whenever the page is called.
    3. In the Structure pane, locate the queryEmployees node and expand it, select the child node
    paramNames[0], and change it's value attribute to ${param.searchText}. This will pass the URL
    parameter searchText on to the business method to qualify the query.
    4. Drill down into the page and expand the Data Control Palette to select the AllEmployeesView
    collection. Set the Drag and Drop as: list to Read-OnlyTable. Then drag the collection onto the page.
    This will create a tabular containing the query results.
    5. Select the Struts HTML component palette and drag a Form onto the page above the output table. Set
    the handling action to this Data Page (queryEmployees.do)
    6. Drag a text field from the component palette inside of this new form. Set the property attribute of
    the
    <html:text> tag to searchText (the same value you used in the paramNames[0] for the Data Page)
    7. Create a new submit button in the form to submit the search. Set the property attribute of the button
    to
    event_search.
    8. Finally we need to subclass the data page to prevent the search action from being fired when it is not
    appropriate for the page ( for instance when we first display it). To do this we need to Go to Code on
    the Data Page's context menu, and override the invokeCustomMethod() method:
    * We only want to invoke the custom method i.e. the call to change
    * the Where clause on the collection, if the Action has been called with
    * a search event on the page with a search term supplied.
    * If the user got here via a link or another event, we bypass the model call
    * unless a URL parameter event=search is supplied, in which
    * case the method will also be called.
    protected void invokeCustomMethod(DataActionContext actionContext)
    List events = actionContext.getEvents();
    // If the event is "search" do the custom event call
    if ((events != null) && (events.contains("search")))
    String searchTerm = (String)((DynaActionForm)actionContext.getActionForm())
    Get("searchText");
    if (searchTerm != null)
    super.invokeCustomMethod(actionContext);
    }

    Solved with Oracle JDeveloper HowTo:
    Creating Search Pages with Both Fixed and Dynamic Criteria
    Author: Steve Muench, Oracle ADF Development Team
    Date: September 16, 2004
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamiccrit/index.html

  • Bing based federated result sources not returning any results for non-English languages

    I have a result source with this query:
    http://www.bing.com/search?q={?searchterms}  language:fr site:msdn.microsoft.com&format=rss&count=50&first={startIndex}
    This used to give me 40-50 results for common terms like download, blog etc.
    From today (7/14) IST, this source does not return any results. There are no results if I execute this query directly in IE either.
    Same behavior observed for: language:es, language:de etc.
    I do however get results as expected for language:en.
    Any idea what the issue might be?

    Hi Swapnil,
    According to your description, my understanding is that no results returned when searching with non-English in the Result Source query.
    I tested the same scenario per your post and I got the same results as you got.
    I recommend to change the language:fr in the Result Source query to be lang=fr to see if the issue still occurs.
    More references:
    http://kbdump.com/sharepoint-2013-opensearch-search-twitter-facebook-wikipedia-page/
    http://richardstk.com/2013/11/08/sharepoint-2013-federated-search-to-bing/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • SHA1 digest error for javax/mail/MessagingException

    java.lang.SecurityException: SHA1 digest error for javax/mail/MessagingException.class
         at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:194)
         at java.util.jar.JarVerifier.processEntry(JarVerifier.java:201)
         at java.util.jar.JarVerifier.update(JarVerifier.java:188)
         at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:411)
         at sun.misc.Resource.getBytes(Resource.java:97)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:256)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Exception in thread "main"
    What could be the problem for this error Exception ???
    Thanks and Regards.

    Hi!
    Do you use some plugins with eclipse IDE, like Tomcat by example or other plugins ... ?
    If yes, update mail.jar and activation.jar inside Tomcat or in your lib project Eclipse...
    You have a conflict with the class loader that check for security for class javax/mail/MessagingException
    See you Manifest.mf inside mail.jar :
    (old version here...)
    Manifest-Version: 1.0
    Implementation-Version: 1.4
    Specification-Title: JavaMail(TM) API Design Specification
    Specification-Version: 1.3
    Implementation-Title: javax.mail
    Extension-Name: javax.mail
    Created-By: 1.5.0 (Sun Microsystems Inc.)
    Implementation-Vendor-Id: com.sun
    Implementation-Vendor: Sun Microsystems, Inc.
    Specification-Vendor: Sun Microsystems, Inc.
    SCCS-ID: @(#)javamail.mf     1.6 05/12/09
    Name: javax/mail/search/SearchTerm.class
    SHA1-Digest: SwGnDhIUmpZhfhq/FKkCQ9nD7ZE=
    Name: javax/mail/SendFailedException.class
    SHA1-Digest: XdCEygaIZQB9YrH2WIr4nPRYYk0=
    Name: javax/mail/MessagingException.class
    SHA1-Digest: lfjX30OQ88v/n9G9fTJGqjFmPd0=
    regards,

  • When i enter a search term in firefox9.01,a page:Cisco Guest Acces appears, askin for a passwordg

    When i enter a searchterm in the Google searchbox, a blue screen,
    Cisco guest acces appears, asking for a password, which of course
    i do not have. This problem does not present itself all the time but very frequently. I have to restart the system and then sometimes
    things work again.
    Also when i try to start InternetExplorer to download Firefox
    again.IE crashes. I use Firefox 9.01. The problem did not
    occur in version 8.--

    -> [[Troubleshooting extensions and themes]]
    Check and tell if its working.

  • Enabling Remote Desktop for Windows 7 as a task sequence

    Hi there.
    I have a task sequence to automate the creation of a base image of Windows 7 x64 Professional. In my base image I would like to have Remote Desktop enabled by default for all users. Is there a command or a script to do this that I can add into my task sequence to make this possible?
    Thanks.

    I have to agree except I can't understand why anyone would use anything other than the unattend.xml.  You can do all that plus so much more and it's the way Microsoft provides to do it.  This is my complete x64 unattend.xml version but I also have
    an x86 version.  This should give you some idea of it's capabilities.
    Drop the unattend.xml file into a package and reference it in the Task Sequence as shown below.  I dropped both my x86 and x64 version of the unattend.xml into the package.  I use an OSD HTA menu on the frontend to let helpdesk pick
    between x86 and x64.  I cropped the picture up a bit and took out company specific info but you should get the idea from the screen captures.  This is how I deploy x86 and x64 in a single task sequence. I mark every line with a condition in the task
    sequence with (C) which makes it easier to find lines with conditions.  I use the condition to assign x86 and x64 software among other things.  The selection in the HTA pretty much triggers everything.
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <settings pass="auditSystem">
       </settings>
       <settings pass="auditUser">
       </settings>
       <settings pass="generalize">
       </settings>
       <settings pass="offlineServicing">
       </settings>
       <settings pass="oobeSystem">
          <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
             <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Work</NetworkLocation>
                <SkipMachineOOBE>false</SkipMachineOOBE>
                <SkipUserOOBE>false</SkipUserOOBE>
                <ProtectYourPC>3</ProtectYourPC>
             </OOBE>
             <UserAccounts>
                <DomainAccounts>
                   <DomainAccountList wcm:action="add">
                      <DomainAccount wcm:action="add">
                         <Name>Workstation Admins</Name>
                         <Group>Administrators</Group>
                      </DomainAccount>
                      <Domain>DOMAIN</Domain>
                   </DomainAccountList>
                </DomainAccounts>
             </UserAccounts>
          </component>
       </settings>
       <settings pass="specialize">
          <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <EnableLUA>false</EnableLUA>
          </component>
          <component name="Security-Malware-Windows-Defender" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="
    http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">
             <DisableAntiSpyware>true</DisableAntiSpyware>
          </component>
          <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <DisableSR>1</DisableSR>
          </component>
          <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
             <PrivateProfile_EnableFirewall>true</PrivateProfile_EnableFirewall>
             <PublicProfile_EnableFirewall>true</PublicProfile_EnableFirewall>
          </component>
          <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <RunSynchronous>
              <RunSynchronousCommand wcm:action="add">
                <Path>reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 00000000 /f</Path>
                <Description>Setting Network Location</Description>
                <Order>1</Order>
              </RunSynchronousCommand>
            </RunSynchronous>
          </component>
          <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <fDenyTSConnections>false</fDenyTSConnections>
          </component>
          <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <DisableAccelerators>true</DisableAccelerators>
             <DisableOOBAccelerators>true</DisableOOBAccelerators>
             <SuggestedSitesEnabled>false</SuggestedSitesEnabled>
             <DisableFirstRunWizard>true</DisableFirstRunWizard> 
             <DisableWelcomePage>true</DisableWelcomePage>
             <Home_Page>http://www.google.com</Home_Page>
             <SearchScopes>
                <Scope wcm:action="add">
                   <ScopeDefault>true</ScopeDefault>
                   <ScopeDisplayName>Google</ScopeDisplayName>
                   <ScopeKey>SearchProvider1</ScopeKey>
                   <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                </Scope>
             </SearchScopes>
          </component>
          <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <TimeZone>Central Standard Time</TimeZone>
          </component>
       </settings>
    </unattend>

  • I need suggestions for parental controls applications for the iTouch!

    I bought my sons new 4th generation 8gb iPod iTouches for Christmas. I want to restrict Internet websites and usage since they are only 13 y/o. Someone suggested a free application that apparently is great.....but I cannot remember the name of it! Please help! Any suggestions would be much appreciated!

    I have noted links to the two cases and sleeve that I have been using for you to check out.
    http://www.radtech.us/Products/MacTruck.aspx
    http://intl.tumi.com/product/product-detail/?modelId=108167&searchTerms=96111
    Good luck!

  • Do I need to update the BIOS for new HDD?

    I have to replace my HDD due to the current one dying on me. My current HDD is the 60Gb standard drive for the G4 DVI A1025. I'm considering replacing it with this model:
    http://www.dabs.com/productview.aspx?Quicklinx=3VNJ&SearchType=1&SearchTerms=7k1 00&PageMode=3&SearchKey=All&SearchMode=All&NavigationKey=0
    Which as you can see is 80Gb but otherwise looks to be pretty much the same.
    Does anyone know if this drive will require a BIOS update or not?
    Also when I do install it, can I simply boot from the Install DVD and then run Disk Utility to format it or does it take some other more complicated way to format it?
    Thanks in advance,
    Chris Gilbert

    The only hard drives that won't work internally on your machine are the 1.8", SATA, and the greater than 120 GB drives given this limitation:
    http://docs.info.apple.com/article.html?artnum=86178
    What that says basically is you can have up to 200 GB if your model is this one:
    http://support.apple.com/specs/powerbook/PowerBookG41GHz-867MHz.html
    But not any earlier version of the Powerbook where the limit is 128 GB (since 128 GB hard drives aren't made, that's why I said 120 GB).

  • Is there any solution for windows 7 to avoid focus stealing problem as some background running applications are stealing focus from current windows.

    To reproduce the focus stealing you can follow these steps
    1. Go to following link and click on 'Try it'    
    2. Before the popup is displayed from the above page switch to another application like notepad and start typing.
    3. When popup is displayed in #1 your keyboard focus should remain in the notepad.
    we have some other java applications which are stealing the focus from current work and creating this disturbance.
    Could you please let us know if there is any solution or work around to solve this issue.
    Thanks,
    <p style="border:0px;margin-bottom:0px;padding-right:0px;padding-left:0px;vertical-align:top;-webkit-font-smoothing:antialiased;min-height:

    Hi,
    I think this issue is focused on java application development or software which supports the development, while this forum is mainly discussing issue about Windows 7 performance rather than development issues, I suggest you contact support in this forum,
    thanks for your support
    MSDN Forum
    http://social.msdn.microsoft.com/Forums/en-US/home?sort=relevancedesc&brandIgnore=True&searchTerm=java+application+
    Yolanda Zhu
    TechNet Community Support

  • Need workaround for AppleScripts Running

    I recently upgraded to Mavericks on my MacBook Pro. Now I am trying to use software that is requesting AppleScript Runner. I understand it is no longer supported in Mavericks. Is there a workaround that will let me use my software? [Software: Wiley CulinarE - Companion 4]
    I saw the scripting thread on this online, but I am not a programmer or a proficient computer geek, so if you are going to recommend script, please give me step-by-step instructions on how to access the script and change it. I am such a novice!
    Thanks for your help!

    I was able to access the two script packages contained in the application. I think the second set of script is the one that applies to this issue.... The first one is:
    on run argv
              tell application "AppleScript Utility"
                        set error_message to ""
                        try
                                  if ((count of argv) is 0) then
                                            tell me to syslogger("ff.script", "no arguments")
                                            return "no arguments"
                                  end if
                        on error the errmsg number the errn
                                  tell me to syslogger("ff.script", "no arguments")
                                  return errmsg
                        end try
                        set myUrl to item 1 of argv
                        tell application "System Events"
                                  if not ((exists process "Firefox") or (exists process "firefox-bin")) then
                                            tell me to syslogger("ff.script", "not exists process Firefox")
                                            return "no url. Firefox does not exist"
      --return myUrl
                                  end if
                        end tell
      --set myUrl to "http://127.0.0.1:49470/"
                        tell application "Firefox"
      --activate
                                  try
                                            set numTabs to 0
      -- Get URLs of all tabs
                                            set urlList to {}
                                            set numWindows to count of windows
      --display dialog "numWindows = " & (numWindows as string)
                                            if (numWindows = 0) then
                                                      tell me to syslogger("ff.script", " no url. Firefox is not runing")
                                                      return "no url Firefox is not runing"
                                            else
                                                      repeat with w from 1 to numWindows
                                                                try
      --display dialog w as string
                                                                          properties of window w
                                                                on error the errmsg number the errn
      --beep 1
      --return properties
      --return myUrl
                                                                end try
                                                      end repeat
                                            end if
                                  on error the errmsg number the errn
                                            tell me to syslogger("ff.script", errmsg & " error = " & (errn as string))
                                            return errmsg
      display dialog errmsg buttons {"OK"} default button 1
                                  end try
                        end tell
      --return
                        tell me to set user_dir to system attribute "HOME"
      --set myUrl to "http://127.0.0.1:49395"
                        tell me to set profile_ini to user_dir & "/Library/Application Support/Firefox/profiles.ini"
      --display dialog profile_ini
                        tell me to set bbb to CheckIfExists(profile_ini)
                        if not bbb then
      --if not CheckIfExists(profile_ini) then
                                  «event panSdlog» profile_ini & " does not exist"
                        end if
                        tell me to set file_content to ReadAFile(profile_ini)
      --display dialog file_content
                        tell me to set profile_file to getProperties(file_content, "Path")
                        tell me to set sessionstore_file to user_dir & "/Library/Application Support/Firefox/" & profile_file & "/sessionstore.js"
      --display dialog sessionstore_file
                        tell me to set parent_file to user_dir & "/Library/Application Support/Firefox/" & profile_file & "/.parentlock"
                        tell me to set bbb to CheckIfExists(parent_file)
                        if not bbb then
      --if not CheckIfExists(parent_file) then
                                  «event panSdlog» parent_file & " does not exist. Firefos does not work"
                                  return "no parentlock"
                        end if
                        tell me to set bbb to CheckIfExists(sessionstore_file)
                        if not bbb then
      --if not CheckIfExists(sessionstore_file) then
                                  «event panSdlog» sessionstore_file & " does not exist"
                                  return "no sessionstore.js"
                        end if
                        tell me to set store_content to ReadAFile(sessionstore_file)
      --display dialog store_content
                        tell me to set newFFformat to 0
                        tell me to set strWindows to "{windows:[]"
                        tell me to set strTabs to "{tabs:["
                        tell me to set strClosedTabs to "_closedTabs:["
                        tell me to set prefics to "{url:\""
                        tell me to set suffics to "\","
      --set prefics to "entries:[{url:\""
      --set suffics to "\", children:["
                        if (store_content contains "{\"tabs\":[") then
      --display dialog "new format"
                                  tell me to set newFFformat to 1
                                  tell me to set strTabs to "{\"tabs\":["
                                  tell me to set strClosedTabs to "\"_closedTabs\":["
                                  tell me to set prefics to "{\"url\":\""
                                  tell me to set strWindows to "{\"windows\":[]"
                        end if
                        if (store_content contains strWindows) then
      --display dialog strWindows
                                  tell me to syslogger("ff.script", "sessionstore file contains " & strWindows)
                                  return "no url"
                        end if
      --display dialog (store_content)
                        tell me to set content_list to splitText(strTabs as Unicode text, store_content as Unicode text)
      --display dialog (content_list as Unicode text)
      --set length_list to number of items of (content_list)
                        set length_list to count of content_list
      --return (number of items of (content_list))
      --display dialog (length_list as Unicode text)
                        if (length_list < 2) then
                                  tell me to syslogger("ff.script", "Error in the sessionstore.js")
      --display dialog "Error in the " & sessionstore_file
                                  return "Error in the sessionstore.js"
                        end if
                        repeat with i from 2 to (length_list)
                                  tell me to set content_listItem to ((item (i) of content_list) as Unicode text)
      --display dialog "wnd " & i as string
                                  tell me to set window_list to splitText(strClosedTabs as Unicode text, content_listItem as Unicode text)
                                  set length_window_list to count of window_list
      --display dialog (length_window_list as Unicode text)
                                  if (length_window_list = 2) then
                                            tell me to set openedTabs to ((item (1) of window_list) as Unicode text)
                                            tell me to set closedTabs to ((item (2) of window_list) as Unicode text)
                                            tell me to set opened_tabs_list to splitText(prefics, openedTabs)
                                            repeat with j from 1 to (count of opened_tabs_list)
                                                      tell me to set url_item to ((item (j) of opened_tabs_list) as Unicode text)
      --display dialog url_item
                                                      if (url_item begins with myUrl) then
                                                                tell me to set pos to offset of suffics in url_item
                                                                if (pos > 0) then
      --display dialog (pos as string)
                                                                          tell me to set full_url to "" & (get characters 1 thru pos of url_item)
      --display dialog full_url
      --display dialog closedTabs
                                                                          if (closedTabs does not contain full_url) then --not closed yet
      --display dialog "wnd " & i as string
                                                                                    return myUrl
                                                                          end if
                                                                end if
                                                      end if
                                            end repeat
                                  end if
                        end repeat
                        if (length of error_message > 0) then
                                  tell me to syslogger("ff.script", error_message)
                        end if
                        tell me to syslogger("ff.script", "return \"no url\"")
                        return "no url"
              end tell
    end run
    ------------------  functions ------------------------------------
    on ReadAFile(filePath)
              tell me to set str to "cat " & "\"" & filePath & "\""
              tell application "Finder"
                        tell me to set filecontent to do shell script str
              end tell
              return filecontent
    end ReadAFile
    on CheckIfExists(filePath)
              tell application "Finder"
                        tell me to set folder_cmd to ("find \"" & filePath & "\"")
                        try
      do shell script folder_cmd
                                  tell me to set worked to true
                        on error
                                  tell me to set worked to false
                        end try
              end tell
              return worked
    end CheckIfExists
    on getProperties(content, property_name)
              tell me to set property_str to ""
              tell me to set property_list to split_paragraphs(content)
              tell me to set number_depart to 0
              repeat with theItem in property_list
                        if theItem as string is not "" then
      --display dialog theItem
                                  tell me to set items_list to splitText("=", theItem)
      --set count to number of items in items_list
                                  if number of items in items_list is greater than 1 then
      --property_name is in contents of (item 2 of items_list as string)
                                            if ((item 1 of items_list as string) = property_name) then
                                                      tell me to set property_str to (item 2 of items_list as string)
      --display dialog property_str
                                            end if
                                            if ((item 1 of items_list as string) = "Default" and (item 2 of items_list as string) = "1") then
      --set property_str to (item 2 of items_list as string)
      --display dialog property_str
                                                      exit repeat
                                            end if
      --display dialog property_str
                                  end if
                        end if
              end repeat
    --display dialog property_str
              return property_str
    end getProperties
    on split_paragraphs(someText)
              tell me to set oldDelims to AppleScript's text item delimiters
              set AppleScript's text item delimiters to {return}
              tell me to set TheItems to text items of someText
              repeat with theItem in TheItems
                        if theItem as string is not "" then
                                  display dialog theItem
                        end if
              end repeat
              tell me to set AppleScript's text item delimiters to oldDelims
              return TheItems
    end split_paragraphs
    on splitText(delimiter, someText)
    --display dialog (delimiter & "   " & someText)
              tell me to set prevTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to delimiter
              tell me to set output to text items of someText
              set AppleScript's text item delimiters to prevTIDs
              return output
    end splitText
    on subString(the_string, start_index, end_index)
              return "" & (get characters start_index thru end_index of the_string)
    end subString
    to searchReplace(thisText, searchTerm, replacement)
              set AppleScript's text item delimiters to searchTerm
              tell me to set thisText to thisText's text items
              set AppleScript's text item delimiters to replacement
              tell me to set thisText to "" & thisText
              set AppleScript's text item delimiters to {""}
              return thisText
    end searchReplace
    (* Logs a message to the system log (which you can monitor in Console.app). The msg is tagged with a given sender. *)
    on syslogger(sender, msg)
              if (length of msg is greater than 1500) then
                        tell me to set msg to (text 1 thru 500 of msg) & " <snip> *** Sorry, Message > 1500 chars will not be reliably logged by BSD's 'logger'."
              end if
              tell me to set cmd to "logger -t " & quoted form of sender & " " & quoted form of msg
    do shell script cmd
    end syslogger
    THE SECOND ONE IS:
    on run argv
              tell application "AppleScript Runner.app"
      --display dialog "++++++++"
                        tell me to set error_message to ""
                        try
      --tell me to log "no arguments"
      --display dialog "++22++++"
                                  if ((count of argv) is 0) then
                                            tell me to syslogger("sf.script", "no arguments")
                                            return "no arguments"
                                  end if
                        on error the errmsg number the errn
                                  tell me to set error_message to "no arguments"
                                  tell me to syslogger("sf.script", "no arguments")
                                  return errmsg
                        end try
                        tell me to set urlArgv to item 1 of argv
      --display dialog urlArgv
      --set urlArgv to "http://127.0.0.1:49651/"
                        tell me to set res to 0
                        tell application "System Events"
                                  if not (exists process "Safari") then
                                            tell me to syslogger("sf.script", "not exists process Safari")
                                            return "no url"
                                  end if
                        end tell
                        tell application "Safari"
      --activate
                                  try
                                            tell me to set numTabs to 0
      -- Get URLs of all tabs
                                            tell me to set urlList to {}
                                            set numDocs to (count of document)
                                            set numWnd to (count of window)
      --display dialog "Count wnd = " & (numWnd as string)
                                            repeat with w from 1 to numWnd
      --display dialog "Curent Wnd = " & (numWnd as string)
                                                      try
                                                                set numTabs to count of tab of window w
      --display dialog "Count Tab = " & (numTabs as Unicode text)
                                                                repeat with t from 1 to numTabs
                                                                          try
                                                                                    set tabURL to (URL of item t of tabs of window w)
      --display dialog tabURL
                                                                                    if (tabURL contains urlArgv) then
      --display dialog urlArgv
      --tell me to syslogger("sf.script", urlArgv)
                                                                                              return urlArgv
                                                                                    end if
                                                                          on error
                                                                                    tell me to set error_message to ("error  with tab = " & (t as string) & "   " & errmsg)
                                                                                    tell me to syslogger("sf.script", "error  with tab = " & (t as string) & "   " & errmsg)
                                                                          end try
                                                                end repeat
                                                      on error the errmsg number the errn
                                                                tell me to set error_message to ("error  with wnd = " & (w as string) & "   " & errmsg)
                                                                tell me to syslogger("sf.script", "error  with wnd = " & (w as string) & "   " & errmsg)
                                                      end try
                                            end repeat
                                  on error the errmsg number the errn
                                            if errn is -1708 then
      --display dialog (errmsg & "  error = " & (errn as string)) buttons {"OK"} default button 1
                                                      tell me to syslogger("sf.script", errmsg & "  error = " & (errn as string))
                                                      return urlArgv
      --return "no url"
                                            end if
                                            tell me to set error_message to (errmsg & "  error = " & (errn as string))
                                            tell me to syslogger("sf.script", errmsg & "  error = " & (errn as string))
      --display dialog errmsg buttons {"OK"} default button 1
                                  end try
                        end tell
                        if (length of error_message > 0) then
                                  tell me to syslogger("sf.script", error_message)
                        end if
                        tell me to syslogger("sf.script", "return \"no url\"")
                        return "no url"
              end tell
    end run
    (* Logs a message to the system log (which you can monitor in Console.app). The msg is tagged with a given sender. *)
    on syslogger(sender, msg)
              try
                        if (length of msg is greater than 1500) then
                                  set msg to (text 1 thru 500 of msg) & " <snip> *** Sorry, Message > 1500 chars will not be reliably logged by BSD's 'logger'."
                        end if
                        set cmd to "logger -t " & quoted form of sender & " " & quoted form of msg
      do shell script cmd
              on error the errmsg number the errn
              end try
    end syslogger

  • Search for all items belong to parent, child or grand child content type

    Hi,
    The goal is to get all tasks from various site collection for a given farm. I have about 7 content types and their parent content type is Task. However, the following query is only returning where a list is setup with only parent content type "Task".
    {searchTerms} ContentClass:STS_ListItem_Tasks AssignedTo:{User.Name} 
    If I have a list and Task is the only default content type then the data from this list shows up using above query. However, I have a list say "Workflow Tasks" and it has several content types (Tasks, summary Task, Workflow Task) then items from dont
    show up in the search result. Remember, the workflow task content type's parent is task (ctype=0x0108). 
    Please suggest.
    Thanks

    Hi,
    Thank you for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Acrobat 7.0 Pro error message in Vista Ultimate..missing printer driver

    I use to have Adobe Acrobat 7.0 Professional installed on my other computer with had XP Pro as its operating system. I could convert any Word 2003 document into a PDF and e-mail it without any problems. I just purchased a new computer with Vista Ulti

  • Screen failed got wet

    I spilled water on my second generation iPod touch.  The screen still comes on, but it is too dark to read.  The device still behaves normally when connected to my computer. – The iPod is two years old, and the warranty would not cover my stupidity,

  • Zooming in Premier Pro

    A friend who has Premiere elements made a video where he zooms and pans the subject.  It is Elements that does it, not the camera.  He said it was in tools, but I can't find it in PP.

  • 242 Songs= 7.6 GB?!?!?!?! I need help now!

    My computer crashed a while back and I have just been able to get all my songs onto the new computer. I tried to sync my iPod and it said there wasn't enough space so I restored it to its orginal settings and tried to sync again. It still said not en

  • /etc/rc.sysinit mountpoint not found

    Whenever I boot I get errors about mount point not being found, the boot stops, and then something times out and it boots fine. It's still really anoyying waiting those 30 seconds. What can I do to fix it? Here's the errors and some general info. /et