How to set document "dirty" flag

Hi I wonder if there is a  simple way to set document "dirty" flag.
The thing is that I am modifing layer XMP info in action script but this change is not reflected by setting the document to modified state
Lukas

I wonder how fast it would be to set the currect layer colour?
IE:-
layerColour('red')
function layerColour(colour) {
    switch (colour.toLocaleLowerCase()){
        case 'red': colour = 'Rd  '; break;
        case 'orange' : colour = 'Orng'; break;
        case 'yellow' : colour = 'Ylw '; break;
        case 'yellow' : colour = 'Ylw '; break;
        case 'green' : colour = 'Grn '; break;
        case 'blue' : colour = 'Bl  '; break;
        case 'violet' : colour = 'Vlt '; break;
        case 'gray' : colour = 'Gry '; break;
        case 'none' : colour = 'None'; break;
        default : colour = 'None'; break;
    var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
        var desc2 = new ActionDescriptor();
        desc2.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), charIDToTypeID(colour) );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), desc2 );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );

Similar Messages

  • How to set document cannot save as in content Management in Portal

    Dear Sir,
    Is it possible to set document in content managment in Portal cannot "save as" in content Management in Portal, because our requirement need cannot save and save in document.
    Please advise.
    thank you and best regards,
    Vimol

    Hi,
    Content Administration -> Portal Content--> double-click the role you want to set priority to- click properties and find Sort Priority.
    Refer this link, it will explain you...
    http://help.sap.com/saphelp_nw04s/helpdata/en/92/3e703e632c7937e10000000a114084/frameset.htm
    Regards,
    Senthil K.

  • How to set PS GLOBAL FLAGS

    Hi,
    I am trying to set PS Global Flags (e.g. pre-commit and initialized flags) but the changes I made are not reflected in the system. I tried using the FM 'PS_FLAG_SET_GLOBAL_FLAGS'.
    I am not that familiar in this module so any info you can provide would be greatly appreciated.
    Thanks,
    Ian

    hello,
    use this bapi
    BAPI_PS_INITIALIZATION
    for setting global flags
    regards
    afzal

  • How to set Document Library Item Limit at Site Collection level?

    Hi,
    I have SharePoint which contains one Site collection with many Sites. Each sites has many document library.
    Actually my requirement is, End Users  wants to see only 10 items per page in document library. We can manually set by using "Item Limit" option but i could not set that for around 150 document libraries.
    Is there any possible to set that in Site Collection level?
    Thanks & Regards
    Poomani Sankaran

    You can run for each loop and use below code
    http://get-spscripts.com/
    #Get the site and list
    $web = Get-SPWeb "http://portal/sites/testsite"
    $list = $web.GetList(($web.ServerRelativeUrl.TrimEnd("/") + "/Shared Documents"))
    #Get the list view to be changed
    $newview = $list.Views["Sort by modified date"]
    #Set the mobile and default mobile view properties
    $newview.MobileView = $true
    $newview.MobileDefaultView = $true
    #Update the view configuration
    $newview.Update()
    $web.Dispose()
    $web.Lists[0].Views[0].RowLimit=30
    $web.Lists[0].Views[0].Update()
    How you can get all list using powershell
    http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
    If this helped you resolve your issue, please mark it Answered

  • How to set Document Type Declaration of xml Document?

    Hi,
    I am referring to "org.w3c.dom.Document".
    How can we set the Document Type Declaration (DTD) of a document?
    Thanks.

    Hi,
    But when we have to create a document(org.w3c.dom.Document) dynamically, and that document has to be validated against a DTD......How can we do it?
    I am using the following code
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    DOMImplementation domi = builder.getDOMImplementation();
    DocumentType docType = domi.createDocumentType("query", null, "c:\\queryDtd.dtd");
    Document doc = domi.createDocument(null, "query", docType);But this code is not working. Resulting document is not having <!DOCTYPE...> tag
    I have to build a Doument object (not xml file) whose content is as below
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE query SYSTEM "queryDtd.dtd">
    <query id="abc123">
         <data-source-name>EmployeeDB</data-source-name>
         <fields>
                     <field>id</field>
                     <field>name</field>
                     <field>salary</field>
                     <field>joindate</field>
         </fields>
         <fetch-limit>10</fetch-limit>
    </query>

  • How to set "unicode check" flag

    User execute and encounter dump on some statistic update program, RXCX0027 when running TCODE VA01.
    The program is System generated for SIS update group, Z1.
    How can I set this program to unicode compliant?
    Thanks

    Hi Colin,
    I assume you mean RMCX0027 ?
    In that case please have a look at SAP note 99507.
    Best regards,
    Nils Buerckel
    SAP AG
    Edited by: Nils Buerckel on Jul 30, 2010 6:59 AM

  • Dirty flag in standard FPM

    I notice that I can change the text of some field in PPM then click Close (without hitting <ENTER>).
    I get the data changed dialog box.
    How does the dirty flag get set without an event triggering to set it?

    Hello Robert,
    if you have a look at http://help.sap.com/saphelp_nw04s/helpdata/en/45/b76f4169e25858e10000000a1550b0/content.htm you can see, that there are 3 work-protect modes:
    ·        NONE
    This value means that the work protect mode is not used by the Web Dynpro application. If you navigate to another application in the portal, unsaved data is lost, even if you set the dirty flag.
    ·        APPLICATION_ONLY
    This value means that the Web Dynpro application itself decides if there is still unsaved data u2013 that is, whether the application is dirty. This is why the u201Cdirtyu201D status is only monitored by the server. With this value you cannot ensure that data that has not yet been transferred to the server will not be lost.
    ·        BOTH
    This value means the client also checks the u201Cdirtyu201D status. This ensures that no user input that has not yet been transferred to the server will be lost. This is done by setting the dirty status of the application in SAP Enterprise Portal as soon as the user has entered data.
    FPM is using the BOTH mode, which results in behaviour you observed.
    Best regards,
      Christian

  • Setting deletion indicator/Flag for an operation in production order

    Dear All, Hi
                     How to set deletion indicator/flag for an operation in a production order. I don't want to delete the operation as such. Please help & suggest.
    Ragards,
    Shaiz

    Hi Shaiz,
    I hope the requirement is just like you posted earlier as in case of component deletion.
    Here in this case also the behaviour of the order remains the same.
    So you can go for release the order as soon as the order gets created, your both the requirements can be fullfilled.
    Also you havn't provided the exact feedback on the solutions offered by all of us, on your last query.
    Request you to give detailed input on the same.
    Hope thish helps you.
    SmanS

  • How to set "embed icc Profile" option  to export document as JPEG

    Hi All,
    While exporting the document as jpeg, through File->Export, there is an option "Embed ICC Profile" as figure shows.
    How to set it if I am exporting the document through my program in which I rasterize the document and used 
    the sAIImage->AsJPEG(raster, jpegDataFilter, params);
    I didn't find any option in AIRasterizeSettings or AIImageOptJPEGParams to set this flag.
    plz anyone suggest me how to do so.
    Thanks,
    Rud.

    thanks for you through out help.
    I use the folowing code which executing properly,but there is no effect on JPEG whether the value of jpegparam.s.jpeg.embedICCProfile is 0 or 1.
    /////Start
    ASOptimizationSettings jpegparam;
    jpegparam.fileFormat = asffJPEG;
    jpegparam.s.jpeg.embedICCProfile = isICCProfileEmbeded;
    ASInt32 optID;
    optID = sAIOptSet->GetUniqueOptimizationSettingsID();
    error = sAIOptSet->SetOptimizationSettings(optID, &jpegparam); // after executing this line error = 0
    /////End
    I guess it would  work when we export document as jpeg through AIActionManagerSuite
    not with  rasterizing the layer's art and then exporting them as JPEG  using AsJPEG().
    thanks

  • JClient: set dirty flag after prepared stmnt to activate trans. buttons?

    Hi,
    I wrote a service method with a call to a prepared statement that makes a bulk insert (insert into a select ... from b).
    This service method returns the number of inserted rows.
    In my button action after a call my service method I refresh the ViewObject.
    The new rows are displayed, I know that they are not committed but the transaction buttons are not activated.
    How can I set the transaction dirty flag to true so that the transaction buttons are active?
    My button action method:
    private void jButton1_actionPerformed(ActionEvent e)
    SiteTablesAM siteTablesAM = (SiteTablesAM)panelBinding.getDataControl().getApplicationModule();
    int numOfAddedRows = ((TranslationsAM)siteTablesAM.findApplicationModule("TranslationsAM1")).createMissingCurrencyLangRows();
    if (numOfAddedRows > 0)
    // navBar.doExecuteButtonAction(); tested this but has same result
    siteTablesAM.findViewObject("TranslationsAM1.CurrencyLangVO1").executeQuery();
    panelBinding.refreshControl();
    JOptionPane.showMessageDialog(this,numOfAddedRows+" rows have been added.\nTranslate the labels or delete the added rows.","Info",JOptionPane.INFORMATION_MESSAGE);
    It would be more elegant to do the wole job on the server side => after call to prepared statement, refresh the ViewObject + "fire a transaction change event".
    Could you help me on this one.
    Thanks
    Frederic

    I've found a workaround:
    this.setAttribute(this.getAttribute());
    this makes the transaction dirty.
    I would have preferred a more elegant solution.
    I've noticed that when calling preparedStatement.executeUpdate() on a DBTransaction the isDirty flag stays false.
    Is this normal, executeUpdate is always a DML statement?
    Thanks
    Frederic

  • How to set data in rtf document?

    Hi friends,
    I have a rtf document can anyone suggest how to set data in cells of an rtf document?Is there any way?
    Thanks in advance..
    Regards ,
    Soumyanil

    Convert the resultSet from the db to a Object[][], let's call it result.
    Then create a JTable (jTable1).
    On the JTable you need to define the headers, and the data itself.
    You can get the headers from ResultSetMetaData. Convert these to an array again (headers).
    Now use these methods to create a model and set the model of the JTable.
    Model model =  new DefaultTableModel(result, headers);
    jTable1.setModel(model);That's about the basics.
    If you need more info, use at the tutorial at sun's homepage.
    How to use Tables:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to Set up HTTPOnly and SECURE FLAG for session cookies

    Hi All,
    To fix some vulnerability issues (found in the ethical hacking , penetration testing) I need to set up the session cookies (CFID , CFTOKEN , JSESSIONID) with "HTTPOnly" (so not to access by other non HTTP APIs like Javascript). Also I need to set up a "secure flag" for those session cookies.
    I have found the below solutions.
    For setting up the HTTPOnly for the session cookies.
    1] In application.cfc we can do this by using the below code. Or we can do this in CF admin side under Server Settings » Memory Variables
         this.sessioncookie.httponly = true;
    For setting up the secure flag for the session cookies.
    2] In application.cfc we can do this by using the below code. Or we can do this in CF admin side under Server Settings » Memory Variables
         this.sessioncookie.secure = "true"
    Here my question is how we can do the same thing in Application.cfm?. (I am using ColdFusion version 10). I know we can do this using the below code , incase of HTTPOnly (for example).
    <cfapplication setclientcookies="false" sessionmanagement="true" name="test">
    <cfif NOT IsDefined("cookie.cfid") OR NOT IsDefined("cookie.cftoken") OR cookie.cftoken IS NOT session.CFToken>
      <cfheader name="Set-Cookie" value="CFID=#session.CFID#;path=/;HTTPOnly">
      <cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;path=/;HTTPOnly">
    </cfif>
    But in the above code "setclientcookies" has been set to "false". In my application (it is an existing application) this has already been set to "true". If I change this to "false" as mentioned in the above code then ColdFusion will not automatically send CFID and CFTOKEN cookies to client browser and we need to manually code CFID and CFTOKEN on the URL for every page that uses Session. Right???. And this will be headache.Right???. Or any other way to do this.
    Your timely help is well appreciated.
    Thanks in advance.

    BKBK wrote:
    Abdul L Koyappayil wrote:
    BKBK wrote:
    You can switch httponly / secure on and off, as we have done, for CFID and CFToken. However, Tomcat automatically switches JsessionID to 'secure' when it detects that the protocol is secure, that is, HTTPS.
    I couldnt understand this. I mean how are you relating this with my question.
    When Tomcat detects that the communication protocol is secure (that is, HTTPS), it automatically switches on the 'secure' flag for the J2EE session cookie, JsessionID. Tomcat is configured to do that. Coldfusion has no say in it. So, for JsessionID, 'secure' is automatically set to 'false' when HTTP is detected and automatically set to 'true' when HTTPS is detected.
         If this is the case then why I am getting below info for jsessionid (As you mentioned it should set with SECURE flag . Right???). Note that we are using web server - Apache vFabric .And the application that we are using is in https and there is no hit is going from https to http.
    Name:
    JSESSIONID
    Content:
    782BF97F50AEC00B1EBBF1C2DBBBB92F.xyz
    Domain:
    xyz.abc.pqr.com
    Path:
    Send for:
    Any kind of connection
    Accessible to script:
    No (HttpOnly)
    Created:
    Wednesday, September 3, 2014 2:25:10 AM
    Expires:
    When the browsing session ends
    BKBK wrote:
    2]When I checked CF Admin->Server Settings->Memory Variables I found that J2EE SESSION has been set to YES. So does this mean that do we need to set HTTPOnly and SECURE flag for JSESSIONID only or for CF session cookies (CFID AND CFTOKEN ) as well ?.
    Set HTTPOnly / Secure for the session cookies that you wish to use. Each cookie has its pros and cons. For example, the JsessionID cookie is more secure and more Java-interoperable than CFID/CFToken but, from the explanation above, it forbids the sharing of sessions between HTTP and HTTPS.
         I understood that setting thos flags (httponly/secure) is as per my wish. But my question was , is it necessary to set those flags forcf session cookies (cfid and cftoken) as we have enabled J2EE session in CF admin?. Or in other way as the session management is J2EE based do we need to set those flags for CF session cookies?.
    BKBK wrote:
    3]If I need to set HTTPOnly and SECURE flag for JSESSIONID , how can I do that.
    It is sufficient to set the HTTPOnly only. As I explained above, Tomcat will automatically set 'secure' to 'true' when necessary, that is, when the protocol is HTTPS.
         I understood that it is sufficient to set httponly only.but how we will set it for jsessionid?. This is my question. Apache vFabric will alos set secure to true automatically. Any idea??

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    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]

  • How to set the root path of XML document when calling Inserting procedure

    Hi,
    I was create a procedure to insert XML Document in to DBMS Tables, but i am not able to set the Start root element in calling procedure.
    My calling procedure is
    exec insXmldoc('pmc_sample.xml', 'pmc')
    When i am calling this procedure i got this error
    11:23:54 Error: ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 8
    ORA-06512: at line 2
    I am checking my XML file using XML Validator. My XML file was parsed with out errors.
    Please give the solution,and tell me where i did wrong in my calling procedure.
    suppose i have this XML file in local E drive ,how to set the path for that XML file in my calling procedure.

    Hi, I am doing the code likthis,please give the solution.
    SQL> create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
    2 insCtx DBMS_XMLSave.ctxType;
    3 l_ctx dbms_xmlsave.ctxtype;
    4 rows number;
    5 begin
    6 insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    7 rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    8 DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    9 end;
    10 /
    Procedure created.
    SQL> begin
    2 insProc('/usr/tmp/ROWSET.xml', 'emp');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:
    Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 7
    ORA-06512: at line 2
    Kishore B

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

Maybe you are looking for

  • Pls help with .CAP file.

    Hi. I read a lot about how to write java applet for smart card and after read a lot about how to convert .class file into a .CAP file. But I don't know where to find informatin about what to do further. Pls can you tell or give link to a text which e

  • My 2011 IMac will not boot up past the White apple logo screen with the whirly circle

    My 2011 IMac will not boot up past the White apple logo screen with the whirly circle. I have tried various commands but to no avail. does anybody have any advice?

  • PC Suite issue with Anna on N8

    The new version of symbian is not supporting the existing PC suite to sync.  Is there version change for PC suite also?

  • Can't rent movies after recent OS update

    Any one experiencing this too?

  • How bad is Edge?

    I went to YouTube and watched a demo of Edge vs. wifi using a video as an example I was pleasantly surprised. But I was wondering. How about just general web surfing. For example is reading the NY Times OK on Edge? Or is it just for emergencies? I ju