How to set myDoc.modified = false?

When a document is saved my beforeSave event handler changes the doc a bit then the afterSave undoes the change (long story described in another thread). Undoing the changes with afterSave puts the doc back to how it was before the save occured, but ID thinks that the doc is not changed and wants to save it again. With this strategy the doc is never in a "saved" state.
the Document.modified property is read only. Is there any way to forcibly change it to false? I was able to set myDoc.properties.modified to false without error, but either it was not changed or immediately overridden with 'true'.
Is there any way to do this?

Thank you for your reply, Marijan. In my case reverting to the saved copy won't work. I mark up the document in a way to preserve a state of the document for the save. When I open the doc later my script resets the state of the document which is what causes the modified flag to change to true. THerefore reverting the doc would result in modified = true.
I describe what I am trying to do here: http://forums.adobe.com/message/5760168#5760168
But thus far I appear to be blocked from achieving my goal. It seems silly that such a powerful app such as ID is unable to facilitate such an obvious need.
Thanks for your help.

Similar Messages

  • JTable how to set cell ediatble false

    - Can teach me JTable how to set cell ediatble false?
    - And I'm not so understand about following method and sentence...
    addRowSelectionInterval(int index0, int index1)
    Adds the rows from index0 to index1, inclusive, to the current selection.
    - Then what is toggle? What is the usage? How to use?
    - Then how to add one more row in the Jtable?

    - Can teach me JTable how to set cell ediatble false?check the method isCellEditable()
    Use DefaultTableModel
    - And I'm not so understand about following method and sentence...
    addRowSelectionInterval(int index0, int index1)
    Adds the rows from index0 to index1, inclusive, to the current selection.
    - Then what is toggle? What is the usage? How to use?
    - Then how to add one more row in the Jtable?[JTable API|http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html]

  • How to set XML.ignoreWhitespace = false; in HttpService /Result?

    Please ask these kind of questions on flexcoders or the Adobe Flex Forums.  This is for development of the SDK itself.<br /><br />Matt<br /><br /><br />On 11/17/08 12:56 AM, "venubwal" <[email protected]> wrote:<br /><br />A new discussion was started by venubwal in<br /><br />Developers --<br />  How to set XML.ignoreWhitespace = false;  in HttpService /Result?<br /><br />I want to carry/preserve Leading & trailing spaces<white spaces> in event's result....<br />I am using service as :<br />_webService = new HTTPService();<br />_webService.url = serviceUrl;<br />_webService.method = "POST";<br />_webService.resultFormat = "e4x";<br />......<br />...Again i am checking it as -in<br />private function serviceResultHandler(event:ResultEvent):void<br />        {<br />        stopExecution();<br />        var doc:XMLDocument = new XMLDocument();<br /> doc.ignoreWhite = false;<br />        XML.ignoreWhitespace = false;<br />doc.parseXML(event.result as XML);<br />       Alert.show(event.result.toString(),"....serviceResultHandler...");<br /><br />But, i am not able see L&T spacesin alert() where I can see L&T spaces in Servlet/Java side which assigned as metaResponse<br />as....<br />      OutputStream writer = response.getOutputStream();<br />      OutputStreamWriter outputStreamWriter = new OutputStreamWriter(writer,"UTF-8");<br />JaxbSerializationUtil.serializeObjectToWriter(outputStreamWriter, metaResponse);<br /><br />________________________________<br />View/reply at How to set XML.ignoreWhitespace = false;  in HttpService /Result? <a href=http://www.adobeforums.com/webx?13@@.59b70bd4><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b70bd4!folder=.3c060fa3>  form to cancel your email subscription.

    By Using XML.ignoreWhitespace = false; <br />I am able to Store/Carry/Save L&T white spaces in XML and i can retrive values with whitespaces...<br /><br />It is in case of loading from Java<DB> to Flex.<br /><br />But the actual problem is with xmlObject.toString()/toXMLString()<br />is not able to carry whitespace, while it should carry as parameter to Java Servlet..so that it can be get using request.getParameter() [..then it is serializing/deserializing]<br /><br />So, how i can preserve the L&T whiteSpaces on XML.toString()/toXMLString() method.<br /><br />OR else<br />How we can set Http request attribute in Flex, so that we can use ( AnY_Object)request.getAttribute()...

  • How to set ApplyDenied to false

    Hello,
    Does anybody know how to set ApplyDenied property to false.  This link asks the same question but there is no answer provided.
    http://social.msdn.microsoft.com/Forums/en-US/859a1b7b-5dd6-45b1-a912-9b4715e3d28c/how-to-set-isallowed-and-applydenied-for-dimension-security?forum=sqlanalysisservices
    Any help will be appreciated.
    Thanks

    Hi Kohinoor,
    As you can see on that link
    ApplyDenied: Determines whether members of this attribute that exist with other explicitly denied members cannot be viewed.
    It's said that this property is on members level for each dimension. When design a role, we can specify which members are available for this role. So you can set this property when designing a role. Open up role designer of Business Intelligence Development
    Studio(BIDS), click on Dimension Data page, you will see Basic and Advanced tabs, in Basic tab, you can uncheck the members of the attribute to deny their access. Also write MDX definition for Denied member set box to do this.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to set button validation false

    Hi,
    Actually I am working on a seeded page.In that page there is one button next,and whenever i click that button some validation is happening i.e some warning
    message is coming through VORow impl.I just want to remove that validationt through extended controller.Can u please give me some solution.PLs its urgent.

    Atanu,
    I have observed that you are closing your threads once they are answered. But not mentioning which reply is helpful or correct.
    As per Forums Etiquette / Reward Points - "- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).".
    Refer http://forums.oracle.com/forums/ann.jspa?annID=914 for Forums Etiquette / Reward Points.
    Forum participants are spending time on your question and trying to help you as much as they can. Kindly take some time of yours and mention which reply is helpful or correct.
    Mentioning helpful or correct is not only for reward points but when other users refer the thread they can directly use the "Correct" or "Helpful" reply. Which in turn save time of the participants who are posting questions and replying threads.
    Following are your threads which have no correct or helpful answers mentioned.
    How to align items in default single column
    How to enable row level exception in VO
    How to handle browser close event and session timeout
    How to set particular segment value of key flex field in Controller
    Problem In Displaying records in table
    View Object attributes are not setting
    Lets make forums helpful to all.
    regards,
    Anand
    Edited by: T.A.Anand on 17 Sep, 2010 2:56 PM

  • How to set exitonerror to false on wlst

    Hi Guys ,
    I want to run my wlst on a continue when error happens basis . I saw the document saying there is variable called exitonerror , default value is true , but it didn't indicate the way to change it .
    I try to add exitonerror='false' in the first line of my py script , but it seems dosn't work . Anyone have once tried before ?
    Thanks

    Thanks for reply , but it still doesn't work , I think I am using the correct name
    wls:/mydomain/serverConfig> print exitonerror
    true
    wls:/mydomain/serverConfig> print exitOnError
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: exitOnError
    The problem is I can set exitonerror to false by using exitonerror='false' , but looks it dosen't affect the wlst behaviour
    KY

  • How to set "Date Modified" as default tab in Open File window

    Photoshop CS5.1
    When I click on Open File, the window that comes up has several default columns (FileName, Date, Size, etc).
    I can right-click on the tab bar and add "Date Modified" to the tabs, but I would like to have "Date Modified" be a default column whenever I open the file selector (and no matter which folder I open up).
    I cannot find a way to do this. I want to know the last date I modified a file, not when it was created.
    Is there a way to universally set this column as a default?

    Date modified always shows for me in Details view.
    I believe what columns are showing has to do with what columns you've set in Windows Explorer...
    Here's an excerpt paraphrased from my Configure the Windows 7 "To Work" Options book that may cover what you need:
    Open Windows Explorer...
    Navigate to a folder of the type you want to see (e.g., one containing your Photoshop images) and set Details view. 
    Make the window look the way you'd like future Explorer windows to look.  Reorganize Details view columns, e.g., to Name, Size, Type, Date Created, Date Modified, Attributes, etc. and size them so they fit.
    Choose Tools - Folder options, then click the View tab.
    Click [ Apply to Folders ] to apply the above settings to all folders.
    [ OK ] to exit.
    Hope this helps. 
    If the Date modified still doesn't stick for you, there are some other things I've done (and documented) to tweak the configuration of my systems that may help make my seeing the columns being set as shown in the attached image when I choose File - Open in Photoshop.
    -Noel

  • How to modify the blob size, or how to set the size?

    i want to know how to modify the blob size, or how to set the size?
    what's the default size of blob?
    Thanks in advance.

    Blob datatype can contain binary data with a maximum size of 4 GB.
    when you enter 10kb file, the database will only use 10kb to store the file (depending on block size etc)
    if you want to modify the blob size, you may do like this:
    SQL> create materialized view t_mv refresh fast on commit
    2 as select id, dbms_lob.getlength(x) len from t;
    Materialized view created.
    SQL> alter table t_mv add constraint t_mv_chk check (len < 100);
    Table altered.

  • How to set render true or false in java class

    Use case:
    i have a page in which i have one inputListOfValues attributes and two LOV .initial the LOV render attribute value is false .it means it show only one attribute in run time .inputListOfValues is content two value .suppose if first value A then the first LOV have to show and is it value is B then Second LOV have to show .i bind my LOV to class .but i do not know how to set render attribute at java class.

    <af:inputListOfValues label="Branch Name"
    popupTitle="Search and Result Dialog"
    id="ilov1"
    model="#{pageFlowScope.organizationLOV.param['bindings.Organization'].listOfValuesModel}"
    converter="#{pageFlowScope.organizationLOV.param['bindings.Organization'].convert['latinDesc']}"
    valueChangeListener="#{viewScope.salaryBenefitsReportForm.branchChange}"
    binding="#{viewScope.salaryBenefitsReportForm.branchName}"
    rendered="true" visible="false"/>
    <af:inputListOfValues label="Department Name"
    popupTitle="Search and Result Dialog"
    id="ilov2"
    model="#{pageFlowScope.objectLOV.param['bindings.Department'].listOfValuesModel}"
    converter="#{pageFlowScope.objectLOV.param['bindings.Department'].convert['latinDesc']}"
    valueChangeListener="#{viewScope.salaryBenefitsReportForm.departmentChange}"
    binding="#{viewScope.salaryBenefitsReportForm.departmentName}"
    rendered="true" visible="false"/>
    this is code in jsff .
    and class code are following
    public void reportBy(ValueChangeEvent valueChangeEvent) {
    String value=(String)valueChangeEvent.getNewValue();
    System.out.println(value);
    if(value.equals("Branch")){
    branchName.setVisible(true);
    departmentName.setVisible(false);
    AdfFacesContext.getCurrentInstance().addPartialTarget(branchName);
    AdfFacesContext.getCurrentInstance().addPartialTarget(departmentName);
    if(value.equals("Department")){
    departmentName.setVisible(true);
    branchName.setVisible(false);
    AdfFacesContext.getCurrentInstance().addPartialTarget(departmentName);
    AdfFacesContext.getCurrentInstance().addPartialTarget(branchName);
    }

  • How to get value of a textfield which has been set as Renderd false.

    Hi all
    how to get value of a TEXTFIELD which has been set as Renderd false.
    i am getting the value of this textfield from an lov but dont want to show it to the user.
    getting error as:
    attribute xxxx required for view object yyyyy.
    pls help
    naveen

    You can create item inside your LOV region, set the item style to formValue. You can associate this to a View Object field. It can also act as mirror of any other text input field.
    FormValue can hold the value and will not be diaplyed to user. You can read value from it controller
    example
    OAFormValueBean orgValue = (OAFormValueBean)webBean.findChildRecursive("OrgIdFormVal");
    Or you can read it fro the VO associated with this form value.

  • [ECC6 - se06] - how to set System Change Option / subentries to modifiable or not modifiable

    When the customizing is set to "modifiable" we have to set all thesub items to "modifiable".
    What is the parameter to make all the sub items under Global Settings to modifiable or not modifiable.
    In fact, it is very long and not so interesting to set all sub items each time we are requested to open Customizing.

    Thank you Reagan,
    I think I wasn't precise enough.
    As I tried to show in my snapshot, I agree that I can change all the under items but that is my problem.
    How to make them ALL selected when you set the parent "Global Seting" to modifiable.

  • How to enable change /Modify infopackage setting in QA/PROD

    Please let me know , How to enable change /modify infopackage setting in QA/PROD - or create authorization of infopackages in QA or prod

    GO TO SU53 AND CHECK THE OBJECTS FOR WHICH YOU REQUIRE AUTHORIZATION AGAINST YOUR PROFILE FOR CHANGING THE I/P.THEN GO TO PFGC AND ASSIGN THE RELEVENT AUTHORIZATION . YOU MAY REQUIRE BASIS CONSULTANT SUPPORT FOR THE SAME.
    REGARDS,
    PSG

  • How to set dom fidelity to false on an already registered schema

    How to set dom fidelity to false on an already registered schema
    Thanks
    Message was edited by:
    uraees

    I guess that you will have to annotate the schema via updating schema or inserting the "xdb annotation" to deactivate the DOM fidelity. Reasoning from the most difficult situation that objects (XMLType objects created via registering the schema) are linked to the schema, this is probably not a supported way to do it.
    Schema evolution is supported though, this would be the supported way to do it...
    Do you have more info (including the database version in use)?

  • How to personalize and set rendered property false to poplist

    HI,
    could u please tell me that How to personalize and set rendered property false to poplist
    when poplist was developed initially it's user personalization property set as FALSE, that is why when i tried to personalize and set rendered property as flase, i could not able to find the property as rendered for that perticular item.
    Please provide me step by step process.
    Thanks,
    Ram.

    Hi Ram,
    you can do set rendered false through personalization as well as co extension.
    if you go for persoalization set the profile option Personalize Self Service Definitions and clik on personaliztion link
    then search for item and set its rendered property to false.
    If you go for co extension capture the poplist bean and and setRendered(false) to that field.
    If you are feeling difficulty by personalizatoin better go for CO extension.
    Thanks
    Amit Jaitly

  • How to set autocommit false in Oracle Weblogic console?

    Hi All,
    While invoking the oracle Ebiz custom package from Oracle SOA 11g BPEL we are getting below error:-
    java.sql.SQLSyntaxErrorException: ORA-02089: COMMIT is not allowed in a subordinate session.
    Wondering if there is some properties through which we can set the autocommit false on the Oracle Weblogic Console.
    Highly appreciate any pointers for the same.
    Thanks in advance.

    Yes I did set global transaction (XA) up in the db adapter. True, there are couple of commits in the API and from outside BPEL that works fine, the error i am getting when trying to access the API through BPEL. I am calling this only API from the BPEL.
    Do you think there needs to setup explicit "autoCommit=false" somewhere in the weblogic console?

Maybe you are looking for

  • Transfer posting problem in  material

    Hi Experts, Whenever we receive any  material ( quality rejection from plant A) at location  X in film plant A, we can not do Transfer posting of this material to crushing area ( location Y in plant A). While doing Transfer posting we get an error "

  • Memory leak issue in tuxedo server

    Hi, I am facing memory issues in our tuxedo application.One of the server memory utilization is gradually increasing after reboot. As a temporary solution , we are making restart of that particular server every week. I have installed Valgrind tool.i

  • Crystal Reports 11 - How to use group in footer

    hello i have a recordset of multiple branches and that is grouped by customer already. a customer  can buy goods from multiple branches so it is summery of customers with their goods. and i need the summery of branches with detail like i have attache

  • How to go from PS CS5 trial to full CS5 Design Premium?

    I'm about to install the trial version to check out PS CS5's new features. When I'm ready to purchase, I will buy the Design Premium package, not the individual PS program. What will be the correct procedure then? Uninstall (or delete) the PS trial p

  • Best way for Crossjoin in MDX query

    Hi all, what is the best way for  for Cross join in MDX query Regards, Manish