Webapps tag - filters "lastclassified" and "randomclassified" producing empty collections

When using the {module_webapps} tag, the filters "lastclassified" and "randomclassified" producing empty collections. "all" and "lastest" are working OK.
Example code:
{module_webapps id="Member Directory" filter="lastclassified" itemid="Featured" template="" resultsPerPage="4" collection="members"}
{module_webapps id="Member Directory" filter="randomclassified" itemid="Featured" template="" resultsPerPage="4" collection="members2"}
{module_webapps id="Member Directory" filter="latest" itemid="Featured" template="" resultsPerPage="4" collection="members3"}
<pre><code>{{ this.members | json }}</code></pre>
<pre><code>{{ this.members2 | json }}</code></pre>
<pre><code>{{ this.members3 | json }}</code></pre>
Produces this output.
  "moduleName": "webapps",
  "moduleDescriptor": {
    "templatePath": "",
    "parameters": "id=\"Member Directory\",filter=\"lastclassified\",itemid=\"Featured\",resultsPerPage=\"4\",template=\"\",collection=\"members\"",
    "apiEndpoint": "/api/v3/webapps",
    "objectType": "34",
    "objectId": "-1",
    "adminUrl": "/Admin/CustomContent_ItemList.aspx?CustomContentID=-1"
  "moduleName": "webapps",
  "moduleDescriptor": {
    "templatePath": "",
    "parameters": "id=\"Member Directory\",filter=\"randomclassified\",itemid=\"Featured\",resultsPerPage=\"4\",template=\"\",collection=\"members2\"",
    "apiEndpoint": "/api/v3/webapps",
    "objectType": "34",
    "objectId": "-1",
    "adminUrl": "/Admin/CustomContent_ItemList.aspx?CustomContentID=-1"
  "moduleName": "webapps",
  "moduleDescriptor": {
    "templatePath": "/Layouts/WebApps/Member Directory/list.html",
    "parameters": "id=\"Member Directory\",filter=\"latest\",itemid=\"Featured\",resultsPerPage=\"4\",template=\"\",collection=\"members3\"",
    "apiEndpoint": "/api/v3/webapps",
    "objectType": "34",
    "objectId": "-1",
    "adminUrl": "/Admin/CustomContent_ItemList.aspx?CustomContentID=-1"
  "editableFieldTypes": {
    "description": "Html",
    "itemid": "Id",
    "name": "Text",
    "url": "Text",
    "releaseDate": "Date",
    "expiryDate": "Date",
    "lastUpdateDate": "Date",
    "weight": "Number"
  "items": [
      "description": "\r\n",
      "itemid": "4943789",
      "name": "Donec Elit",
      "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/donec-elit",
      "url": "/member-directory/donec-elit",
      "releaseDate": "2014-10-08",
      "releaseDate_raw": "7/10/2014 11:00:00 PM",
      "expiryDate": "9999-01-01",
      "expiryDate_raw": "1/01/9999 12:00:00 AM",
      "lastUpdateDate": "2014-10-08",
      "lastUpdateDate_raw": "8/10/2014 12:10:08 PM",
      "counter": "1",
      "weight": "",
      "Member First Name": "",
      "Member Surname": "",
      "Title": "Director, R & D Talent",
      "Firm_id": "4929417",
      "Firm": "Andersons Solicitors",
      "State": "",
      "Email": "",
      "Direct Phone": "",
      "Mobile Number": "",
      "Areas of Law Practiced": "",
      "Areas of Law Interested In": "",
      "LinkedIn Profile": "",
      "Twitter Profile": "",
      "Google+ Profile": "",
      "Accredited Specialist": "0",
      "Accreditations": "",
      "Dietary Requirements": "",
      "DOB": "",
      "Special Interest Groups": "",
      "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
      "isloggedin_11": {
        "moduleName": "isloggedin",
        "moduleDescriptor": {
          "templatePath": "",
          "parameters": "",
          "apiEndpoint": "/api/v3/isloggedin",
          "objectType": "-1",
          "objectId": "-1",
          "adminUrl": ""
        "isLoggedIn": "0"
      "description": "\r\n",
      "itemid": "4943785",
      "name": "Jack Bour",
      "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/jack-bour",
      "url": "/member-directory/jack-bour",
      "releaseDate": "2014-10-08",
      "releaseDate_raw": "7/10/2014 11:00:00 PM",
      "expiryDate": "9999-01-01",
      "expiryDate_raw": "1/01/9999 12:00:00 AM",
      "lastUpdateDate": "2014-10-08",
      "lastUpdateDate_raw": "8/10/2014 12:08:15 PM",
      "counter": "2",
      "weight": "",
      "Member First Name": "Jack",
      "Member Surname": "Bour",
      "Title": "Chief Executive Officer",
      "Firm_id": "4929396",
      "Firm": "Steele & Co",
      "State": "NSW",
      "Email": "",
      "Direct Phone": "",
      "Mobile Number": "",
      "Areas of Law Practiced": "",
      "Areas of Law Interested In": "",
      "LinkedIn Profile": "",
      "Twitter Profile": "",
      "Google+ Profile": "",
      "Accredited Specialist": "0",
      "Accreditations": "",
      "Dietary Requirements": "",
      "DOB": "",
      "Special Interest Groups": "",
      "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
      "isloggedin_12": {
        "moduleName": "isloggedin",
        "moduleDescriptor": {
          "templatePath": "",
          "parameters": "",
          "apiEndpoint": "/api/v3/isloggedin",
          "objectType": "-1",
          "objectId": "-1",
          "adminUrl": ""
        "isLoggedIn": "0"
      "description": "\r\n",
      "itemid": "4943787",
      "name": "Kate Metus",
      "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/kate-metus",
      "url": "/member-directory/kate-metus",
      "releaseDate": "2014-10-08",
      "releaseDate_raw": "7/10/2014 11:00:00 PM",
      "expiryDate": "9999-01-01",
      "expiryDate_raw": "1/01/9999 12:00:00 AM",
      "lastUpdateDate": "2014-10-08",
      "lastUpdateDate_raw": "8/10/2014 12:09:23 PM",
      "counter": "3",
      "weight": "",
      "Member First Name": "",
      "Member Surname": "",
      "Title": "Project Manager",
      "Firm_id": "4929417",
      "Firm": "Andersons Solicitors",
      "State": "",
      "Email": "",
      "Direct Phone": "",
      "Mobile Number": "",
      "Areas of Law Practiced": "",
      "Areas of Law Interested In": "",
      "LinkedIn Profile": "",
      "Twitter Profile": "",
      "Google+ Profile": "",
      "Accredited Specialist": "0",
      "Accreditations": "",
      "Dietary Requirements": "",
      "DOB": "",
      "Special Interest Groups": "",
      "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
      "isloggedin_13": {
        "moduleName": "isloggedin",
        "moduleDescriptor": {
          "templatePath": "",
          "parameters": "",
          "apiEndpoint": "/api/v3/isloggedin",
          "objectType": "-1",
          "objectId": "-1",
          "adminUrl": ""
        "isLoggedIn": "0"
      "description": "\r\n",
      "itemid": "4943788",
      "name": "Porta Gravida",
      "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/porta-gravida",
      "url": "/member-directory/porta-gravida",
      "releaseDate": "2014-10-08",
      "releaseDate_raw": "7/10/2014 11:00:00 PM",
      "expiryDate": "9999-01-01",
      "expiryDate_raw": "1/01/9999 12:00:00 AM",
      "lastUpdateDate": "2014-10-08",
      "lastUpdateDate_raw": "8/10/2014 12:10:39 PM",
      "counter": "4",
      "weight": "",
      "Member First Name": "",
      "Member Surname": "",
      "Title": "VP of Operations",
      "Firm_id": "4929417",
      "Firm": "Andersons Solicitors",
      "State": "",
      "Email": "",
      "Direct Phone": "",
      "Mobile Number": "",
      "Areas of Law Practiced": "",
      "Areas of Law Interested In": "",
      "LinkedIn Profile": "",
      "Twitter Profile": "",
      "Google+ Profile": "",
      "Accredited Specialist": "0",
      "Accreditations": "",
      "Dietary Requirements": "",
      "DOB": "",
      "Special Interest Groups": "",
      "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
      "isloggedin_14": {
        "moduleName": "isloggedin",
        "moduleDescriptor": {
          "templatePath": "",
          "parameters": "",
          "apiEndpoint": "/api/v3/isloggedin",
          "objectType": "-1",
          "objectId": "-1",
          "adminUrl": ""
        "isLoggedIn": "0"
  "pagination": {
    "currentPage": 1,
    "numberOfPages": 2,
    "previousPageUrl": "",
    "nextPageUrl": "/Default.aspx?PageID=13659684&A=WebApp&CCID=22594&Page=2&Items=4"

Thanks! Will the documentation be updated to show this correct usage?
Developer reference - Web Apps

Similar Messages

  • [BUG] Exporting to xls and xlsx produces empty file

    When I'm viewing a table with data, and in Actions choose "Export...", turn off "Export DDL", choose "xls" for format, everything else is on default, and either leave empty or enter same name for both Query and Data worksheet names, and specify filter query - export produces empty xls/xlsx file. Only when one explicitly enters different worksheet names does valid non-empty excel workbook get generated with two differently named worksheets.
    Either validation should be added for worksheet names, or generating them automatically on export should be supported.
    I'm using Oracle SQL Developer 3.1.07.
    Kind regards,
    Stevo.

    Hi Stevo,
    Really appreciate you reporting this. There was an earlier, somewhat similar thread on this issue that we blamed on export file size:
    Sql Developer 3.1 - Exporting a result set in xls generates and empty file
    But you have discovered an important variation that explains it for small export file sizes also. Here is what I verified on 3.1.07.42:
    1. Normally if the worksheet names are left untouched (empty), then the names default to Export Worksheet and SQL
    2. If the name settings in Tools|Preferences|Database|Utilities|Export|Excel Format are null (empty), there is no problem
    3. If the name settings are intentionally changed to a single blank character, then the problem you describe occurs.
    So, you may wish to go to the preference settings and intentionally Backspace over each to null it out, then click OK.
    In the case of intentionally setting both worksheet names, data and query, to the same non-null value, that is also a problem.
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Apr 17, 2012 11:55 AM
    Logged a bug for this:
    Bug 13971991 - FORUM: EXCEL FILE EMPTY IF DATA AND QUERY WORKSHEETS ARE THE SAME AND NON-NULL
    Edited by: Gary Graham on May 25, 2012 2:00 PM
    Notification received: fixed for 3.2

  • Empty Collections and Empty Tags

    It seems that empty collections from a cast or cursor result in an empty tag. For example, the following sql:select work.work_id medlineid,
    cursor(
    select
    databankname,
    db.accessionnumberlist_ref.accessionnumberlist accessionnumberlist
    from table(dbl.databanks) db
    order by databankname) databanklist,
    cast( multiset (
    select chemical_t(
    wrkchm.cas_registry_number,
    wrkchm.term)
    from work_chemicals wrkchm
    where wrkchm.work_id=work.work_id
    order by wrkchm.term) as chemicals_t) chemicallist
    from
    works work,
    databanklist_t_v dbl
    where
    work.work_id = 96264942
    and work.work_id = dbl.work_id(+)results in the following XML:<medlinecitationset>
    <medlinecitation num="1">
    <medlineid>96264942</medlineid>
    <databanklist/>
    <chemicallist/>
    </medlinecitation>
    </medlinecitationset>Is there a way to not have these empty tags appear?
    Thanks! -- John.
    null

    David, this is about understanding the use of, and differencies between tags and collections. This is a bit hard for many new users.
    First of all searching for collections and tags can *not* be done simultaneously. You can either work with one collection only, or you can search for pictures with one or more tags.
    Next collections should be used as either temporary work sets or for special occasions like specific vacations, trips or birthdays, e.g. "Anna 5 years". You say you have a collection named "Churches". I think would have made a TAG called "Churches" instead, because a tag is for general searches that can be combined. On the other hand I might have made a collection called "Church visits July 2005" or "Summer vacation 2005" or the like.
    Another difference is that pictures in a collection can be sorted manually by drag & drop, while pictures found via tags always are shown in the order chosen in the Photo Browser Arrangement box shown bottom left in the Organizer.

  • AJAX producer/consumer and JAVA producer/consumer  in same project

    I've already successfully integrated and customized the code for both an AJAX and JAVA producer/consumer client in JMS (using ActiveMQ as the JMS broker and Tomcat as the webapp container). While both have been working well in separate projects, unfortunately, I'm having a bit of trouble trying to integrate them for the purpose of running an AJAX message listener and JAVA message listener in the same project.
    What I'm trying to do is have JAVA act as the failover for when the AJAX JMS consumer is not listening (i.e. when the browser is closed). When a browser client opens, the (constantly running) JAVA client can ignore the messages... but... when no browser client is initialized, the JAVA client should respond to the messages on behalf of the AJAX client.
    I've tried using a ServletContextListener pattern, which I was hoping would "automagically" launch the JAVA listener via its main method, whenever the Servlet gets initialized (i.e. it would auto-start when Tomcat gets restarted, or, anytime the Servlet gets redeployed) but it seems Tomcat is not thread-safe and this might be causing some problems.
    In any case, I can't seem to get the JAVA client to reliably start running and stay running for the lifetime of my AJAX client (webapp .war), and without including them in the same project and same J2EE container sharing the same ServletContext, I don't know how its possible to ensure they are running and starting and stopping at the same time.
    Is there perhaps a better way to accomplish this?
    Edited by: bcmoney on May 17, 2010 1:25 PM

    I've already successfully integrated and customized the code for both an AJAX and JAVA producer/consumer client in JMS (using ActiveMQ as the JMS broker and Tomcat as the webapp container). While both have been working well in separate projects, unfortunately, I'm having a bit of trouble trying to integrate them for the purpose of running an AJAX message listener and JAVA message listener in the same project.
    What I'm trying to do is have JAVA act as the failover for when the AJAX JMS consumer is not listening (i.e. when the browser is closed). When a browser client opens, the (constantly running) JAVA client can ignore the messages... but... when no browser client is initialized, the JAVA client should respond to the messages on behalf of the AJAX client.
    I've tried using a ServletContextListener pattern, which I was hoping would "automagically" launch the JAVA listener via its main method, whenever the Servlet gets initialized (i.e. it would auto-start when Tomcat gets restarted, or, anytime the Servlet gets redeployed) but it seems Tomcat is not thread-safe and this might be causing some problems.
    In any case, I can't seem to get the JAVA client to reliably start running and stay running for the lifetime of my AJAX client (webapp .war), and without including them in the same project and same J2EE container sharing the same ServletContext, I don't know how its possible to ensure they are running and starting and stopping at the same time.
    Is there perhaps a better way to accomplish this?
    Edited by: bcmoney on May 17, 2010 1:25 PM

  • How to apply WebApp tags to CSS layout code

    Does anyone know how the system render tag code so that tag_fields can be applied to CSS. i.e. we want to use a tag_field to apply colour to color:{tag_color}
    The system keeps stripping out the code color:{tag_color}
    Does anyone know if it is indeed possible to do this?

    Thanks Liam. For colours I was using the most basic of defaults which also acted as labels in the WebApp so 'white', 'yellow' and 'green'.  Field type is radio button called 'status'.  I tried numerous things:
    1. Inline override:  <tr class="trcontent" style="color:{tag_status};">
    2. DIV wrapped: <tr class="trcontent"><div style="color:{tag_status};">
    3. Defined in the stylesheet: <tr class="trcontent">
    .trcontent {color:{tag_status};}
    In cases 1 and 2, BC strips out the style code which seems odd it would do that, although I can't see that it is greatly different from yours.
    In 3  the code is unresponsive for obvious reasons (double curly brackets).
    I will try your example above which is a great idea - thanks for sharing.

  • Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I ha e some educational videos that belong in "Podcasts." Help?

    Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I have some educational videos that belong in "Podcasts." Help?

    Select/highlight the ones that you want to change in your iTunes library, do Get-Info (control-I) and change their Media Kind on their Options tab to 'Music Video' - and then similarly for the podcasts.

  • How can you tell if a pic hasnt been tagged by iPhoto, and do you then...

    How can you tell if a pic hasnt been tagged by iPhoto, and do you then do you then have to draw "missing box" around them
    What I mean is tagged a few faces, imported some more pics, checked a few and they dont show as named faces, but are faces that are in my Faces source list (ie identified and named)
    So do I then have to draw a box around known faces to me, and name them again (I think iPhoto will pop up as Im typing the names I already have)
    It just means that even when i import and it doesnt name, I may have lots of pics that are of faces but not tagged and so not in my faces source list
    please help
    cheers
    ps when are Apple going to upload the Getting Started manuals for iLife 09? its been a while since released now, ad they give a bit more insight than the video tutorials alone

    No-one? It'll be nice to know how many pics of faces that arent yet tagged
    cheers

  • Sorry, something went wrong --- I got an error message after a new webapp was built and a new site collection was created

    Sorry, something went wrong --- I got an error message after a new webapp was built and a new site collection was created.
    This in SharePoint 2013 Farm.
    What should I do?
    1- I did a DisableLoopBack and set the value to "1".
    For hostname do I have to do : 111.111.111.111 (sample) and serversp2013?
    P.S. I fixed this issue once, long time ago and I forgot how it ... be done.

    Hi,
    For troubleshooting your issue, please take steps as below:
    1.Go to IIS, make sure the web application is actived.
    2.Go to IIS -> Applicaiton Pools, make sure the application pool related to your web application is started.
    Reference:
    http://support.microsoft.com/en-us/kb/926642/en-us
    http://www.techrepublic.com/forums/questions/cannot-browse-created-web-application-site-in-sharepoint-services-30/
    Best Regards,
    Eric
    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]

  • HT1926 I installed the itunes update on my regular PC. The update failed and produced an error in MSVCR80.DLL I spoke to an apple tech about it. He blames Microsoft for the error. I did the same update on another PC and it produced the same error. Itunes

    The iTunes update is causing a problem on PC's resulting in an error pointing to MSVRC80.DLL. I called Apple Support they blame Microsoft.....(What a surprise!).
    I did a second update on another pc and it produced the same problem with the same DLL file. Apple still says it's not their problem. Unfortunately until they acknowledge the problem and correct it iTunes is no longer functional. That's too bad but Windows Media Player works fine.
    Apple, own up to the problems you create. Don't pull an Obama!
    When enough people have the problem it will force Apple to correct it. Everyone on a PC using iTunes who try the update will have this problem.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • [svn:fx-trunk] 5558: Add hack to Grammar. jj to allow special component tags in spark and halo namespaces to resolve to special node in the parser .

    Revision: 5558
    Author: [email protected]
    Date: 2009-03-25 14:50:18 -0700 (Wed, 25 Mar 2009)
    Log Message:
    Add hack to Grammar.jj to allow special component tags in spark and halo namespaces to resolve to special node in the parser. This will be re-addressed once we stabilize on the renames and can better enforce the contents of MXML 2006, MXML 2009, FXG, Spark and Halo.
    Add a work around for the step building the AIR Updater UI to set -compatibility-version=3.0.0. This involved checking in a local copy to override the sample-frameworks-build.xml checked into the AIR Integration Kit.zip.
    Adding missing base halo and spark classes that appear as qualified type selectors in our defaults.css files but have historically not been in our manifests for MXML tag mappings.
    QE: This should help pass more tests.
    Dev: Not yet
    Doc: Not yet
    Modified Paths:
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/halo-manifest.xml
    flex/sdk/trunk/frameworks/spark-manifest.xml
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MXMLNamespaces.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.java
    Added Paths:
    flex/sdk/trunk/in/air/sample-frameworks-build.xml

  • Camera roll empty but shows 6.1 gb.  Restored to original settings after backing up.  When I restored the backup camera roll still shows 6.1 gb and is till empty.  I imagine that the backup contains some corruption

    Camera roll empty but shows 6.1 gb.  Restored to original settings after backing up.  When I restored the backup camera roll still shows 6.1 gb and is still empty.  I imagine that the backup contains some corruption

    Hi cfgolf,
    Thanks for contacting Apple Support Communities. I agree with your assessment that something is going on with that previous backup. If you restored from that backup and the issue continues, I would recommend restoring and Set up as new. Before you restore, make sure you Transfer content so that you can sync it back after setting up as new. The instructions on how to Transfer content and Set up as new are both listed in this article.
    iOS: How to back up your data and set up your device as a new device
    http://support.apple.com/kb/ht4137
    2. Transfer content
    Before you erase your device, take a few minutes to transfer your content from your device to your computer to ensure that all your critical data is safe.
    6. Set up as new
    Complete the setup assistant. When prompted to set up your device, select Set Up as New iPhone and tap Next to continue.
    Skip the Apple ID sign-in, in case the original issue was related to any of your content on iCloud.
    Note: After setting up as new, you will need to enter the Visual Voicemail password for iPhone (on carriers that support Visual Voicemail). If you've forgotten the password, contact your carrier to help you reset it.
    After erasing and setting up as a new device, your device is now in a factory configuration. Test to determine if erasing and setting up as a new device resolved the issue. Content on the device may have caused unexpected behavior.
    If the issue is still present, you may want to contact Apple Support.
    If the issue is now resolved, sync one type of content at a time back to the device. For example, if you had an issue playing music, add songs from iTunes and confirm they will play. If your contacts weren't loading successfully, add the contacts back. After each sync, test to see if the issue has returned.
    Cheers,
    -Joe

  • I backed up my macbook pro using time machine and now my iphoto and itunes are empty. how do I reset the computer to an earlier date?

    I backed up my macbook pro using time machine and now my iphoto and itunes are empty. how do I reset the computer to an earlier date? and why would this have happened?

    Without more information, I can't tell you why it happened. As to how to restore to an earlier date, please check out the article below. Should help you to restore form a time machine backup.
    http://support.apple.com/kb/HT1427

  • How to copy/paste anchor text box to its anchor point in text and delete all empty anchors?

    hi all
    i have a document of few pages but one story. The right column is the main text box and on many places anchored text boxes are placed which appeared on the left column as shown below.
    i want text of each anchor-text-box to be cut from its place and paste at its insertion/anchor point and delete all empty anchored boxes.
    I am trying since morning but i unable to reach anchor object reference. Any help on how to start with will be helpful.
    virender

    Ok, let's say you have one main text box (not anchored) and three text boxes that are anchored to text within it. The first one is anchored with text, the second one is unanchored, and the third one is empty (I'm not going to get into inline anchoring vs. custom anchoring since you didn't bring it up in your post).
    We cycle through the items on the page:
    function main(){
      var myDoc = app.activeDocument;
      var myPages = myDoc.pages.everyItem().getElements();
      for (var i = 0; i < myPages.length; i++){
        var myPage = myPages[i];
        //Checks that the page is valid, and that it is not a master page. If either is true, skips to the next page.
        if (myPage.isValid == false) continue;
        if (myPage.parent instanceof MasterSpread) continue;
        var myItems = myPage.allPageItems;
        for (var j = 0; j < myItems.length; j++){
          //Current item.
          var myItem = myItems[j];
          //If myItem doesn't have a Character parent, it is not anchored.
          //The first and third text frames would fail this test.
          if (!(myItem.parent instanceof Character)) continue;
          //We only care about text frames.
          if (!(myItem instanceof TextFrame)) continue;
          //I think the only way this would happen would be if you had an image or
          //something else unexpected within the frame. I check for it so no content
          //is inadvertently lost.
          else if (myItem.texts.length > 1) continue;
          //If we're still in this iteration of the loop, all qualifications are met.
          //Flatten the text frame.
          //I don't use layers that often so, to me, flatten makes sense. You may want
          //to use a different term if there's a chance for confusion.
          flattenItem(myItem);
    function flattenItem(funcItem)
         //Hold onto the anchor character.
        var myParent = funcItem.parent;
         //Duplicate the text from within the frame so that it appears right after the anchor.
         //There may be other methods, but this works for me. I try to avoid copy/paste
         //so as not to deal with any clipboard mishaps. I added a check in case of empties.
         if (funcItem.texts.length > 0){funcItem.texts[0].duplicate(LocationOptions.AFTER, myParent.insertionPoints[0]);}
         //Replace the anchor character itself with a space (or whatever) which also
         //deletes the text frame it was anchoring.
        myParent.contents = " ";
    I guess the takeaway might be that you're not looking at the main text frame and then checking to see if anything is anchored to it. You're looking at each text frame and figuring out if it is anchored. That's my approach, anyway.

  • JS CS3 How can I find -and delete- anchored empty images frames

    I have a script that works fine with text,
    I need the same function, but find and remove anchored empty image frames
    thx
    var myDoc = app.activeDocument
    for(var myCounter = myDoc.textFrames.length-1; myCounter>=0; myCounter--)
    var myFrames = myDoc.textFrames[myCounter]
    if (myDoc.textFrames[myCounter].contents == ""){
    myDoc.textFrames[myCounter].remove()

    I'd do it this way:
    1. Grab the document's allPageItems.
    2. Iterate over it, ignoring text frames.
    3. Check to see: (a) if the parent is a character and (b) if the graphics collection of the page item is empty. If so, delete it.
    Dave

  • Help, I deleted some files and then secure empty trashed it.

    I accidently deleted important files, and also secure empty trash, is there any way to recover those files?

    no, unless you have a backup.

Maybe you are looking for