How to trap Duplicate command executed successfully.

Hi,
I have attaced observer to document for listening protocol IID_ICOMMANDMGR for trapping command kDuplicateCmdBoss. When I perform duplicate from "Option + Drag" the kDuplicateCmdBoss command gets executed before duplicating the item.
The documentation for kDuplicateCmdBoss says that "The page items in the command's item list are duplicated if the command is prepared successfully." But How to find the command is executed successfully.
Please help me.
Thanks,
Praveen

For tracing drag action on layout, I have used following
Class
        kBscDNDLayoutSourceHelperBoss,
        kInvalidClass,
            IID_IK2SERVICEPROVIDER,        kLayoutDDSrcHelperProviderImpl,
            IID_IDRAGDROPSOURCECONTENTHELPER,    kBscDNDLayoutDragSourceImpl,
and the implementation class BscDNDLayoutDragSource id derived from CDragDropSource, In which currently I am overriding only WillDrag method as below.
bool16 BscDNDLayoutDragSource::WillDrag(IEvent* e) const
    CAlert::InformationAlert("drag started");
    return kFalse;
The alert is displayed but after that InDesign got crashed. Thus I checked it by returning false still InDesign get crash.
Any hint might solve my problem .
Please help.
Regards,
Praveen

Similar Messages

  • How to trap duplicate fields?

    hi,i am using oracle forms developer 6.0.i want a standard stored procedure to trap duplicate fields.i need to track data types number,char and date.i was not using primary keys and foreign keys.please help me anyone.must be a standard one.thanks in advance.

    05ce8847-63f6-462d-9c5b-c21076276bb4 wrote:
    hi,i am using oracle forms developer 6.0.i want a standard stored procedure to trap duplicate fields...
    By this, I assume you mean you want to check for duplicate values in a block.  There are several ways to do this and there are several examples of this in the Forum and on the Internet.  Many of the examples on the Internet are demonstrated in Forms versions greater than Forms 6.0, but they should still work in Forms.  You just won't be able to open the sample/demo forms included with the examples.
    i need to track data types number,char and date.i was not using primary keys and foreign keys.
    Why would you not want to enforce uniqueness on your table?  As I mentioned above, there are methods in Forms to check for uniqueness (duplicates) in Forms, this should always compliment what you enforce through your table - not replace what you enforce on your table.
    Craig...

  • Why won't my ntdsutil command execute successfully from my Posh script?

    Hello,
    The purpose of the script is to delete snapshot versions using ntdsutil.
    The script starts and executes a  '$SnapShotList = ntdsutil snapshot "list all" quit quit' to list current snapshots as indicated below.  I then parse through these and based on age I construct and submit a ntdsutil command as follows,
    cmd /c ntdsutil snapshot "Delete$SnapShotNumber" quit quit
    but I always get a 'Invalid Snapshot Index 1.' $SnapShotNumber is a string variable with the number of the snapshot I want to delete.  I tried removing the 'cmd /c', but same results.  This command works find from the Command Prompt.  Any
    suggestions?
    C:\windows\system32\ntdsutil.exe: snapshot
    snapshot: list all
    1: 2014/01/26:13:25 {6f58b7ee-2fc8-468b-a17d-55e7634c8259}
    2: C: {39200929-b206-4055-9333-ef6c7a096250}
    3: 2014/01/26:13:50 {d580d82e-ba0f-466b-ac77-fcc4f6ed4532}
    4: C: {5ccd0e27-cb4a-4002-8a5b-9b582fc2e694}
    5: 2014/01/26:15:06 {350c7788-114d-440c-afab-5a59def997a5}
    6: C: {c01fd8d1-d006-4b8e-9fbc-8a65c2abe37b}
    7: 2014/01/26:15:11 {7b5f2558-a928-4ada-9c37-239c99ece330}
    8: C: {f64fc410-a4e4-4eba-8c99-2d402efc21f1}
    9: 2014/01/26:16:19 {b32cd4e9-6d0c-4745-bc23-da20a7696b5e}
    10: C: {337e0cb1-6e0d-4dd3-8425-b4797160ed20}
    11: 2014/01/26:18:00 {82aa5be6-0cef-4e39-8016-99eb3af9058b}
    12: C: {dca91ff4-a045-48b5-95b7-4544b692bbb3}
    snapshot: quit
    C:\windows\system32\ntdsutil.exe: quit
    PS C:\windows\system32>
    Thanks for your help! SdeDot

    Hi,
    I would like to suggest you post the whole code that you used, how did you set the $SnapShotNumber variable?
    Regards,
    Yan Li
    Regards, Yan Li

  • Capture the command executed by Eclipse

    I have a Hibernate appps. It runs on Eclipse IDE (in class files format), it works fine. But when I packages it to jar file, and run it using command prompt, it hit error.
    +{color:#0000ff}java.lang.NoClassDefFoundError: org/hibernate/Session+
    at com.flextronics.fftester.Client.main(Client.java:103)
    Caused by: java.lang.ClassNotFoundException: org.hibernate.Session
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    +... 1 more{color}+
    My question is, how to capture the command executed by Eclipse, so that I cna re-use it on command prompt?

    Hi DrLaszloJamf , thanks and trying. One quick question: Can i specify path name instead of particular jar filename, from a simple test, I found the hibernate library path does not work. I need to specify the jar file, then only it works.
    You specify classes to include in the Class-Path header field in the manifest file of an applet or application. The Class-Path header takes the following form:
    Class-Path: jar1-name jar2-name directory-name/jar3-name.And If this one is true, that mean either we can use classpath externally or embedded in manifest, right?
    By using the Class-Path header in the manifest, you can avoid having to specify a long -classpath flag when invoking Java to run the your application.Edited by: gkheng on Jul 21, 2008 7:42 PM

  • How to know weather SP is executed successfully?

    I call stored procedures from JDBC, how do I know that the sp is
    executed successfully or not. If I know the status, then I can
    do commit or rollback.
    Please help.
    Thanks,
    Tony
    null

    hi,
    Iam not getting any application error or any IDE error.
    the problem is example, i have a jsp named 1.jsp, in this jsp iam including some 2.jsp using <jsp:include "2.jsp" flush="true"> after that i have some code in 1.jsp.
    The problem is that 2.jsp is not at all there, so how can i know 2.jsp is invalid jsp.
    My requiremnt is iam not hard coding name as 2.jsp ,if user entres some wrong jsp name,how can i know that jps is not a valid 1.
    thanks,

  • How can i run a executable right after a rman job has run?

    How can i run a executable right after a rman job has run?
    I have a rman job that execute every night. The backup is local.
    I want to have a duplicate of the backup on another machine.
    I want the executable to sync the directory to execute right after the rman backup.
    How can i do this using the job scheduler?
    Normaly, i would configure rman to run the backup on both location. But im having trouble with rman regarding this:ORA-600 [2103] on RMAN Backup to NFS mounted file system

    Hi,
    If the rman job is in fact a Scheduler jobs (appears in the dba_scheduler_jobs view) then you can create a second event-based job that runs after the rman job (and set the raise_events attribute for the rman job).
    Instructions are here
    Create Event based job
    Hope this helps,
    Ravi.

  • Cannot find stored procedure in Programmability despite being executed successfully

    Hi
    I have created a Stored Procedure in SQL Server which is parsed and executed successfully but when I check it in Programmabilty-> Stored Procedures I cannot find it. After refreshing the whole database and also restarting SQL Server, the problem is occuring.
     Help with a solution.
    The Stored Procedure is
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'Issues') AND type in (N'U'))
    BEGIN
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'DeleteIssue') AND type in (N'P', N'PC'))
    BEGIN
    DROP PROCEDURE DeleteIssue
    END
    EXEC sp_executesql @statement = N'CREATE PROCEDURE DeleteIssue
    @issueId INT
    AS
    BEGIN
    DELETE
    FROM
    Issues
    WHERE
    IssueId = @issueId
    END
    END 
    Thanks and Regards
    Sarthak

    May be you are checking in the wrong database or the conditions to create the SP is  not met(Issues
    table doesn't not exist in the db). What is the output from this query?
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'Issues') AND type in (N'U'))
    BEGIN
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'DeleteIssue') AND type in (N'P', N'PC'))
    BEGIN
    DROP PROCEDURE DeleteIssue
    END
    EXEC sp_executesql @statement = N'CREATE PROCEDURE DeleteIssue
    @issueId INT
    AS
    BEGIN
    DELETE
    FROM
    Issues
    WHERE
    IssueId = @issueId
    END
    END
    ELSE
    BEGIN
    print'ISSUE doesnt exist'
    end
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • How to display duplicate key in web report?

    Hi Experts,
    Can anybody tell me how to display duplicate key in web report?
    I know in the Bex analyzer, we can allow the duplicate key to be dispalyed via the 'query property' by right click, and in the 'display option' tab, there is an option which named 'forbid duplicate key', if we don't select this option, the duplicate key will be dispalyed in the report result in BEx analyzer.
    But how can I do this in Web report? Thanks in advance.
    Eileen

    Hi,
    <b>I know in the Bex analyzer, we can allow the duplicate key to be dispalyed via the 'query property' by right click, and in the 'display option' tab, there is an option which named 'forbid duplicate key', if we don't select this option, the duplicate key will be dispalyed in the report result in BEx analyzer.</b>
    Do the same and execute report in web.You can able to see the same.
    Cheers
    Karthik

  • How to hide the command line arguments from solaris process

    Hi All,
    When I execute a JAR application from a java file using the Runtime.getRuntime, the command line arguments (user ID and Password details) which I passed for executing the application displayed on Solaris process (ps -ef).
    Could anybody please help me, how can I hide either the process or the command line arguments from the Solaris process?
    I cannot pass any asterix or any special character in place of password, because the executing application doesn't have any functionality to retreive the password which send as asterix characters.
    Please help me
    SumodeV

    Thanks for all the response.
    I have created a design and implement the functionality which executes the JAR application in Solaris environment without showing any details in the process details.
    I have used the Java Reflection method, which invokes the JAR application. I am sharing the details here for all those who looking for it.
    1, Inside the Customer application [Jar File is running for it], collect the necessary session details [Using System.get property method]
    2, Create an independent Java file, which should be used to invoke the JAR application
    3, Create the ProcessBuilder object and use a command - execute the Java file [a wrapper code] using normal Java command
    4, Pass the necessary session details to the ProcessBuilder using the environment() function.
    5. Collect the environment values in the independent Java file (Which was invoked by ProcessBuilder) and set details for its environment using System.setProperty.
    6, Use reflection technique to invoke the JAR plugin [which you want to run]. You can use the standard Java functionality to read the MANIFEST file of JAR and load the main class using URLClassLoader.
    7, Invoke the main method of the JAR file, which run the JAR application in Solaris window
    This solution will make sure that the process cannot display any session details in the Solaris Environment.
    Note: Use String[] array while create the command. Otherwise the JAR application cannot pop-up.
    Regards
    Sumode

  • Applescript duplicate command runs different as an Application than from Script Editor

    Hi,
    When I run my script from the Script Editor it copies (duplicates) only the new files from one folder to the other one, as desired.  That is, when the file already exists in the destination folder, it just skips to the next one until they are all done.
    However, if I save that very same script as an Application and run it, Finder throws up a dialog box for each item telling me that it already exists and asks if I'd like to Keep Both, Stop or Replace the file.
    I can't figure out why it would run differently as a Script in Script Editor, to how it would run as an Application?  Can somebody please tell me where I'm going wrong? Or perhaps there has been a change in the way Finder and Applescript operate the Duplicate command in Yosemite?
    Interestingly, this problem has only started occurring since I updated to Yosemite.  Before that, on Mavericks, I didn't have this problem!  And I've also just tried the same thing on my other MacBook Pro that's running Mavericks and it works as intended.
    Thanks so much!

    I think the replacing parameter may be broken. The first time I run this:
    tell application "Finder"
      make new folder at desktop with properties {name:"newf"} with replacing
    end tell
    I get a new folder. The second and subsequent times, I get this:
    Unless I'm completely misunderstanding how to use the replacing parameter...

  • How to call gnuplot command from java

    Hi there,
    In our course, we are required to develop an GUI for gnuplot. In case you don't know about gnuplot, it's a plotting program and has lots of command. We want to use java and swing, but now we don't know how to call gnuplot command from java, or how to execute a shell command(script) from java.
    By the way, since we need read in files with several columns of data and allow user to select a column, we want to use JTable. Is that reasonable?
    Thanks a lot for any suggestions!
    Jack

    Hi, there:
    Will using JTable add much overhead? I may have to use several JTables and switch among them. I can add scroll bar to or edit JTables, right?
    BTW, do you have experience about gnuplot? Can I find the command tree of gnuplot somewhere? Or do you know a better place to post question about gnuplot? unix/linux group, maybe.
    Thanks,
    Jack
    P.S. Would you guys answer my question after I use up my duke dollars? :- )

  • How to simulate HOST command from DB Procedure

    Hi,
    I'm using Oracle 9.2 database on Win2000 PC.
    I need to start .bat file from a database procedure. More generaly how to simulate HOST command that I'm using from Forms6i.
    Thanks,

    Thanks for the reply,
    But, I am able to successffuly execute HOST from SQL+
    only from the PC where the database is, not from the client. My .bat file is on the server side.
    From the procedure I was not able to run it in either cases
    Procedure TEST
    IS
    BEGIN
    EXECUTE IMMEDIATE 'host C:\MYBATCHFILE.BAT'
    END;
    returns ORA-00900 INVALID SQL STATMENT
    with EXECUTE IMMEDIATE '$ C:\MYBATCHFILE.BAT' returns Invalid Character Error.
    BR,

  • Duplicate command is not working for custom importer

    Hi All,
    I am working on a custom importer plugin. Basic features are working fine, but, I'm facing an issue with Duplicate functionality.
    I added a new custom importer clip to project and created a duplicate of that clip (by right clicking the clip in Project window and selecting Duplicate from pop-up menu). Then I added both clip instances to timeline. Now, if I change properties of one clip instance it reflects in both clips. I noticed that both ClipIds are same and they are referring to same media path. I also observed the same behavior in SDK_Custom_importer sample. But, built in 'Color Matte' and 'Title' clips works fine.
    As per my understanding, Duplicate command should create a new clip from existing clip and new clip should be independent of original clip after creation.
    How to fix this issue? Is there any selector that I should handle to support Duplicate functionality?
    Thanks & Regards,
    Chandan

    Hi Chandan,
    The Color Matte and Title clips are not quite the same as your custom importer example.  Those are synthetic clips, without a file reference on disk.  If you exported a title to a file on disk, and then reimported it, and duplicated it so that there were two clips in the Project panel that reference the same file on disk, I think you would have the same behavior as what you're seeing with your custom importer.  Duplicate doesn't create a new file on disk.  The user would need to do that manually, and then import the new file.
    Regards,
    Zac

  • I am facing problem when configuring listener.ora and tnsnamess.ora in listener side it is showing The listener supports no services The command completed successfully  and in when i cross check with listener from tns it is showing the error

    i am facing problem when configuring listener.ora and tnsnamess.ora in listener side it is showing The listener supports no services The command completed successfully  and in when i cross check with listener from tns it is showing the error
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    here is my listener file
    lsn =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.125.128)(PORT = 1575))
    #ADR_BASE_LISTENER = /u01/app/oracle
    (SID_LIST_LISTENER=
    (SERVICE_NAME=kull)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
    tnsnames.ora
    to_lsn=
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1575))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = kull )
    my database name is kull
    please somebody help

    Biswaranjan wrote:
    i have two database one is kull and another is kk
    i configured listener.ora in kull
    and tnsnames.ora in kk
    when i am running lsnrctl start listener in database kull
    This makes no sense.  You don't configure a listener nor a tnsnames.ora "in a database".   I hope this is just a language issue and not reflective of a fundamental misunderstanding of how tns works.
    read: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ Help! I can’t connect to my database 
    read: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ Help! I can’t connect to my database (part duex)
    it is showing the message
    Alias                     lsn
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                05-JUL-2013 19:08:06
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/log/diag/tnslsnr/server1/lsn/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1575)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server1)(PORT=1575)))
    The listener supports no services
    The command completed successfully
    and in another database in kk when i am giving the command tnsping to_lsn
    it is giving this message
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1575)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = kull)))
    OK (0 msec)
    but when i am cross check sqlplus system/manager@ to_lsn
    it is giving the following error
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor

  • How to remove duplicate songs in iTunes?

    Please advise me how to remove duplicate songs in iTunes? Thank you

    THIS is how you remove them, Once you done this...Press and Hold Command on All Music and then Delete and your Done.

Maybe you are looking for

  • Ghost Images - Pages to PDF, Kinko's Printing

    I could really use some help here. I am trying to print about 8 pages of images & text in the Extreme Template. When I export the file to PDF everything looks fine, I then took it to kinko's to be printed on card stock and binded and when they did th

  • Profit center planning - Revenue planning

    Hi, Out client is service provider and all the scale of rates are mapped to pricing proceedure in SD. Now the requirement is for revenue planning. Revenue planning can be done through profit center accounting. But he do not want to enter the values i

  • To choose between one heavy EJB or many light ones

    Hi, We were just wondering whether an app server (like the latest versions of Weblogic or IBM's Websphere) would prefer one heavily-accessed stateless EJB when compared to a set of several modularised ones (all stateless again). How would performance

  • Error in FM when creating an output in Webworks

    Hi, When I try to generate an output in webworks, I get these messages. I don't really know how this could've happened, the framemaker files were on a network which I saved to my computer. Then I added them to the webworks project. I had my fm docs o

  • Need to upload previous years bonus

    Hi Guys, Kindly suggest me what is the best practice for uploading the previous years bonus while payroll has already processed for that periods, I would like to share one of solution that if I upload all two bonuses in current month and give comment