ActiveHistoryBrushSource deletes only if it exists. How?

If I use the first time or use again this script, I must reset history and delete activeHistoryBrushSource if there is one.
How can I reset (or delete) the activeHistoryBrushSource?
If it not exist or if it exist, it must not give me any error.
// here I need to delete activeHistoryBrushSource only if it exists
savedState = doc.activeHistoryState
doc.activeLayer.applyDustAndScratches(16,0); // only an example
doc.activeHistoryBrushSource = doc.activeHistoryState
doc.activeHistoryState = savedState

DustAndScratches was just an example.
I have made it already and I have just did it with listener:
It makes historybrush OFF from any history state.
Done
var desc6 = new ActionDescriptor();
var ref5 = new ActionReference();
ref5.putProperty( charIDToTypeID( "HstS" ), charIDToTypeID( "HstB" ));
desc6.putReference( charIDToTypeID( "null" ), ref5 );
executeAction( charIDToTypeID( "Cler" ), desc6, DialogModes.NO );

Similar Messages

  • How can I delete only shared instance of a member from Hyperion Planning

    Hello,
    Can anyone tell me how I can instruct the Hyperion Planning IKM to delete a only specific instance of a shared member from Hyperion Planning? I've tried specifying the shared member, the parent of the shared instance, 'Shared' as the data storage type, and 'Delete level 0' as the operation. Instead of deleting just the shared instance under the specified parent, however, the IKM deleted the base member, which in turn deleted all shared instances of the member and all the data for the member (lucky thing I'm working in a development environment!). At one point I thought I had things working as I wanted, but now I think I must have mistaken.
    Does anyone know definitively whether only a specific instance of a shared member can be deleted from Planning and, if so, exactly how to do it?
    Thanks very much.

    Well, with a careful review of my ODI interfaces and some additional testing I found my problem. My interface for one dimension was defined exactly as it should be and it worked as expected, whereas I found I had failed to activate the mapping for the data storage property in my interface for another dimension (DOH!). Naturally, the latter interface deleted the base member because the default data storage property value is 'Store'.
    Thanks for testing and confirming that deleting only a specific shared instance of a member from Hyperion Planning does work, John.
    (P.S. to John: I can't see how to change my "Helpful" tag on your first reply to "Correct", so if you want to post another reply, I'll mark it "Correct" (for more points!). Or, if you can tell me how to modify the "Helpful" tag to "Correct" I'll do that instead.)
    Edited by: Mark on May 25, 2012 3:33 PM

  • How can I delete only one part of my xml file?

    Hello,
    I stored more than 100 users in only one xmltype column. For instance
    Create table agro(users XMLTYPE);
    ... and I inserted all users inside
    INSERT INTO agro values(XMLTYPE
    ('<?xml version="1.0" encoding="ISO-8859-1"?>
    <authentication><users><user>
    <name>cocoon</name>
    <password>cocoon</password>
    <role>admin</role>
    <title>Mr.</title>
    <firstname>Walter</firstname>
    <lastname>Cocoon</lastname>
    <company />
    <street />
    <zipcode />
    <city />
    <country>DE</country>
    <phone />
    <fax />
    <email />
    <bankid />
    <bankname />
    <accountid />
    </user>
    ... another user, etc.
    </users></authentication>'));
    Now I tried to delete only one part of this file. For example all persons with the name"cocoon".
    I used for this target the following statement:
    DELETE FROM agro agro
    WHERE agro.users.extract('authentication/users/user/text()').getStringVal()= 'cocoon';
    When I execute this statement, Oracle DB delete all users and not only with the name "Cocoon".
    How can I delete only one part of my xml file?
    Kind Regards
    M R

    This the expected behavoir. You uploaded a document containing multiple users and then asked XML DB to delete any documnet that contained a user with the name in question. The problem here is that you are creating a mega document that contains an aggregation of user documents but then trying to work with individual user documents. This is a bad idea.
    In general XML does not understand the concept of a collection of documents. It can only operate on one document at a time. Hence the tendancy to aggregate individual documents into a single larger document. Once you have an XML database, you can perform operations on collections of document, as easily as you can perform operations on individual documents, so the need to aggregate the individual documents together disappears.
    If you store each user document as a seperate document then your delete will work as expected.

  • I want to use my iPOD only for music.  How do I delete my congtacts and calendar entries?

    I want to use my iPOD Touch only for music.  How do I delete my contact and calendar entires?

    Attach it to your computer, open iTunes, and deselect syncing contacts and calendars. Syncing your iPod again with the mac will delete the unneeded content from the iPod.

  • I just did the IOS8 update on my Ipad retina which had 300  photos it asked me to do an iCloud back up which i did but it deleted all my previous photos and now i only have recent photos how do i get back all my old photos? It said befor that my iclo

    I just did the IOS8 update on my Ipad retina which had 300  photos it asked me to do an iCloud back up which i did but it deleted all my previous photos and now i only have recent photos how do i get back all my old photos? It said befor that my icloud was out of storage but i didnt know it didnt have my old photos, they arnt back up on itunes either is there any way I can get them back?

    atoo2 wrote:
    I just did the IOS8 update on my Ipad retina which had 300  photos it asked me to do an iCloud back up which i did but it deleted all my previous photos and now i only have recent photos how do i get back all my old photos? It said befor that my icloud was out of storage but i didnt know it didnt have my old photos, they arnt back up on itunes either is there any way I can get them back?
    Please see the bold.  If you're out of icloud storage, then you won't be able to backup to icloud unless you purchase more storage, but yet you said you backup to icloud.
    If you really did backup to icloud no data would be loss - sounds to me that it didn't backup since you had no more free icloud storage space.
    iCloud: iCloud storage and backup overview

  • How to delete only part of a iMessage conversation

    How do I delete only part of a conversation in iMessage?

    Just press and hold the part of the conversation you want to delete. A black box will appear then press More... A circle will appear to the left then select delete.

  • How do i add or delete information from an existing pdf document?

    How do I add or delete information from an existing pdf document??

    The free Reader has no editing capabilities.

  • How to create an object only if not exist?

    how to create an object only if not exist? is it possible?
    if not what can I do?
    Thanks.

    Well, the jsp:useBean tag is a great way to do things.
    But another way is:
    <%  
          MyObjectType myObject = null;
          if(session.getAttribute("myObject"))==null) {
             myObject = ... ; //initiate your object
             session.setAttribute("myObject", myObject);
          myObject = (MyObjectType) session.getAttribute("myObject");
    %>As you can see, this is more messy, but you can do it.

  • FI - How to reverse Park Invoice created by FV60 (No deletion, only reverse)

    Hello FI Guru,
    I'm a developper, not a functional
    For a client, I have created a tool to allow the Park Invoice for every invoices coming from vendor.
    For invoices without PO, the park invoice is created by transaction FV60, but some times the user has to "cancel" the park invoice to allow the creation a-of a new park invoice because it was link to a PO.
    The goal is that I have to reverse the parked Document (they don't want to deleted it, only a reversing).
    How can we do this in FI ?
    Wich transaction, wich procedure ?
    Thanks a lot.
    JC

    Hello Jean,
    It is not possible to reverse the parked document in SAP as it is not yet posted finally. But you can able to delete the same with the help of FBV0 t code.
    Delete parked doc - Go to FBV0 - give co.code, document no,fiscal year details and press enter.
    Now go to document tab and click delete parked document option then it will delete the parked document.
    I hope it helps else revert us with your query.
    Thanks & Regards,
    Lakshmi S

  • Adobe X Pro: How to Delete ONLY the footer?

    As far as I can see, I can only delete both the header and footer at the same time. I would like to delete ONLY the footer to add a new one without disturbing the header. I cannot figure out how to do this. The header was created in word, and then the footer was created in adobe after it was converted. I simply want to update this footer I made, but even if i choose the update header/footer option it deletes the header. I don't understand why adobe keeps deleting the header. This happens on any similar document I try it on.
    Thanks for any help!

    no you can't with the phone but if you use a computer program like iphone backup extractor and transfer the messages to your computer you might get some indication of size.  A safe bet is that the messages with pictures and vids are the big ones

  • My iPad 2 only keeps a set number of emails for me to view eventually deleting from the screen. How do stop this as it syncs with my phone and mac book pro neither of which do this?

    My iPad 2 only keeps a set number of emails for me to view eventually deleting from the screen. How do stop this as it syncs with my phone and mac book pro neither of which do this?

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • Deleted icloud account and now names are gone in contacts only numbers shown.  How do I get the names back?

    I created an icloud account but my 2 kids shared the same itunes account.  I had the kids delete their icloud accounts from their phones.  My contacts and my daughter's contacts merged on my phone, when she deleted her icloud account her contacts no longer show names... only phone numbers.  How can we fix this?

    The only possible way that you could get it back is if the app is still in your iTunes library. If you don't sync with iTunes and it is not in your iTunes library, unfortunately, your version of the app is gone now.

  • How do you delete only certain pictures from the photo library on the iphone 5?

    I just purchased an iphone 5. I would like to know how you delete only certain pictures from the photo library. You can delete from camera roll, but not photo library!! There are duplicate pics and ones that I don't even want on my phone.

    Your photo library is a complete list of all photos on your phone, including the camera roll and any albums you've created.
    Therefore it will always duplicate photos in your camera roll.
    The images are simply links, not additional copies of the photo

  • HT201302 How do i delete only selected photos that were copied from pc to my iphone?

    I have copied a few photos from my my pc to the phone but i would like to delete a few of them but i dont know how to delete only selected one.

    You can't delete them from the phone directly.  You re-sync the photos via iTunes, this time choosing only the photos you want on your phone.

  • How to delete only a portion of the data portal?

    This would be similar to DataDelAll() command, but allow only a limited set of data to be removed.
    For some background:
    - DIAdem 9.1 sp2
    - LabVIEW interface calling various DIAdem/VBS scripts
    Using DIAdem to format reports based on various scripts and TDM data
    results, I would like to be able to load and unload various data files
    (TDM) while maintaining the specific report layout (also TDM) data in
    the portal.  Two (ugly) options seem to be:
    a)  load entire data result set into the portal (including layout instructions) and process, or
    b)  keep track of layout state variables and clear portal/reload layout/load next data
    This would all be easy if there is a command to enable the right-click delete... behavior of the data portal UI.
    Thanks!
    James

    Hello James,
    there are diufferent commands you can use to delete only a portion of the data in the portal. You can delete single channels, a selection of channels, or entire groups with these three commands:
    Call ChnDel(ChnArg) - deletes one channel
    Call ChnDelete(ClpSource) - deletes a selection of channels
    Call ChnSDel(ChnArg1, ChnNo) - delets a number of channels
    Call GroupDel(TargetGroupIndex) - deletes a group including its channels
    To create a selection of channels as argument for the second command, have a look at the functions
    ChnSelAdd, ChnSelGet, ChnSelCount
    Regards
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

Maybe you are looking for

  • Any Way to Test IDLE

    Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009) I configured IDLE according to these instructions: http://wikis.sun.com/display/CommSuite/Configuring+IMAP+IDLE (except for setting an environment variable to restrict access), se

  • Mouse pointer freezes sometimes

    Whenever I unplug my iPod (shuffle) from the keyboard (of course after having the volume unmounted), some seconds later the mouse pointer freezes and the computer is totally unresponsive for some seconds. Then everything is normal again, i.e. the mou

  • In Design 5 won't startup with Mac Os 10.8.2

    I have tried repairing permissions, deleting preferences, reinstall after clean sweep and uninstall procedures, and a score of other suggestions from the forums postings. I am ready to trash 10.8 and go back to 10.6.

  • Mtrr: type mismatch for d8000000 / Grub  boot command line

    Hi, Dmesg is showing: mtrr: type mismatch for d8000000,2000000 old: uncachable new: write-combining (DL380 G5 - generic KVM/LCD Monitor) I googled for the problem found Disable MTRR for vesafb. iirc, there's a boot command line option to do it.video=

  • IPhone 3G 8GB - cant download IOS 4.0.2 from iTunes

    Hi there. I have an iPhone 3G 8GB. I have been unable to download IOS4.0.0/4.0.1/4.0.2 in iTunes. It comes up with download error 9006. I have Windows XP with SP2 and use iTunes 9.2.1.5 and use the Safari 5.0.1 (7533.17.8) and Firefox 3.6.8 browsers.