Alert when adding a document

Hi
Is it possible to get alert when user adds document? I was been told that it is possible by query.
Pls guide me on this
Regards
Shashi

hi guys  You Con Try this method for instant alert
Alert For Document Add (Eg : SO)
       Create two user fields in to the table ORDR (SO)
   Eg:Hour and Minutes
Add this Transaction Notification in You are data base
---Transaction Notification For alert
IF (@object_type=N'17') AND (@transaction_type = N'A' or @transaction_type = N'U')
Begin
update ORDR set
U_Hour=(select case when ((select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),16,2)))='59'
and (select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),13,2)))='12')
then
(select convert(int ,01))
else
(case when
((select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),16,2)))='59'
and (select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),13,2)))<>'12')
then
(select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),13,2))+1)
else
(select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),13,2)))
end)
End
U_Minutes=(select case when (select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),16,2)))='59'
then
(select convert(int ,00))
else
(select convert(int ,substring(convert(varchar,CURRENT_TIMESTAMP),16,2))+1)
end)
where DocEntry=@list_of_cols_val_tab_del
End
---End Transaction Notification Alert
Note: Add or update event current Hour and minutes is going to update in the document
Set this Query To Query Manager
SELECT T0.[DocNum], T0.[CardCode], T0.[CardName],T0.[NumAtCard], T0.[DocDate],
T0.[DocStatus],T0.U_Hour [Hour],T0.U_Minutes [Minutes] FROM ORDR T0  INNER JOIN RDR1 T1 ON
T0.DocEntry = T1.DocEntry WHERE DATEDIFF(DD,T0.CREATEDATE,GETDATE())=0
and convert(int,T0.U_Hour)=(select substring(convert(varchar,CURRENT_TIMESTAMP),13,2))
and convert(int,T0.U_Minutes)=(select convert(int,substring(convert(varchar,CURRENT_TIMESTAMP),16,2)))
Alert Manager
    Set alert for Every 1 Minutes
Result
     alert will come document added after One Minutes

Similar Messages

  • Error when adding a Document

    When i try to add document to PM a error window appears with this msg- There is no copy of Word 2000 or later installed on the server, which is required for this feature. Please contact your Contract Management Administrator.

    Depending upon the PCM version, some versions require Word to be installed on the PCM web server; others do not.  Check your version installation documentation.  Later versions don't require it to be installed on the server, BUT, see next comment, you may still get message.
    Also, when in PCM (user interface) even with Word installed you may still receive this message if your client (user) machine is not configured with the correct ActiveX settings.  Typically, adding your PCM site to "Trusted Sites" in IE resolves this, though sometimes additional changes to the Trusted Site options/settings needs to be modified.

  • IDCS3 When adding a document to a book, the text frame of the subsequent documents in the book moves

    Hi
    I've been working on a 700 or so book containing about 115 documents. These book's documents consist of a main text frame and I've been adding them gradually to the book document. The problem is whenever I add a document to the book or change the order of the documents, the main text frame of the subsequent documents in the book moves on its x axis even when it is locked. To correct the problem I've been moving them to their original place manually but this is a real chaos. Moreover I've noticed that not every text frame in a document moves but most of them does. I don't know what is causing the problem so either don't know how to solve it. I would like to prevent this from happening again cause I've got to add more documents to the book. Can anybody help?

    truncated mail continuation...
    (getDocument is exactly the same as in XML Database
    Developer's Guide - Oracle XML DB Release 2 (9.2))
    I get:
    SQL> INSERT INTO items VALUES (XMLTYPE(getDocument('items1.xml')));
    INSERT INTO items VALUES (XMLTYPE(getDocument('items1.xml')))
    ERROR at line 1:
    ORA-19007: Schema and element do not match
    Do you know which is the problem?
    I have proved changing the headers of the xml document
    and schema in severals way, but it doesn't work.
    Could be a problem with Oracle configuration?
    Thanks in advance,
    Mario Barcala

  • Display problems when adding a document

    Hi,
    one of our customers is facing a strange problem. He runs SBO 8.8 PL18 on Windows Server 2008 R2, and the users work in SBO through Terminal Server. I will do my best to explain what happens.
    When one adds a manual journal entry, the screen flickers the same number of times there are rows. Let me explain the flickering. Suppose you have 10 rows. When you click Update, the table that displays the rows is kind of refresh or repainted 10 times, then fields are empty ready for a new journal entry. The best way I can describe what one can see is that the table is rolled down as many times as there are rows. Unfortunately I have not been able to record the flickering.
    This take some times, and users fell eyes fatigue because of the flickering. I have seen it on my own computer, so this problem does not relate to the computer used to work with SBO. I am told that it happens as well in A/P Invoices.
    The only hint I have is that display problem does not takes place with a TS established on Server 2003.
    Any hint at what this can be, has someone else seen this ?
    Thanks

    Hello,
    If you are using Add-on then it will happed because programmer set keyword last focus in which cell and i think your programmer have code for some arthritic operation on grid then it will happen.
    So discuss your programmer it will solve issue or give proper explanation for same.
    It will defiantly through add-on .
    for tesing pupose stop the add-on then try make new document.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on May 21, 2011 8:07 AM

  • Creating Alerts on adding sales quotation?

    Hi All,
    we want to create an alert when adding a sales quotation.
    Overview:
    Someone in a company adds an sales quotation. We have to send automatically an alert to the sales employee in the document.
    We worked on the transaction notification. Now it adds data into OALR and OAIB Tables, but there is no alert sent.
    Do you know a possibility to automatically send alerts when adding documents?
    Or which steps business one makes when sending an alert?
    Best Regards
    Michael

    Hi,
    I am afraid that it will not work if you did not create the sales employee as user. The alert management is a feature to activate the alert that sent to user but not sales employee. So, I suggest to create user code for the sales employee and then under module administration -->  alert management --> press Ctrl+A --> create the alert name --> click open save query button to display query manager --> select and click the query --> select the user code in the To column where the user code is the sales employee by tick the tick box column  --> click add button if finish. You could define the frequency of the alert and save history tick box checked or not checked.
    Rgds,

  • I have added the Documents folder to the Dock, however when I save a document it doesn't appear in the Documents folder on the Dock, only the Documents folder in the Finder.  Is this a quirk, so am I doing something wrong?

    I like having my Documents folder on the Dock so I added the Documents folder from the Finder to the Dock.  When I save a document to the Documents folder, the saved document appears in the Documents folder from the Finder and not in the Documents folder on the Dock.  Why is this happening?  And how can I change this?

    newbieAK wrote:
    I opened the Finder, selected Documents, then right clicked and selected Add to Dock.
    Oooh. I never new that was there.

  • Coredump when adding new data to a document

    Hi,
    I have managed to get a coredump when adding data to a document,
    initially using the Python API but I can reproduce it with a dbxml script.
    I am using dbxml-2.2.13 on RedHat WS 4.0.
    My original application reads XML data from files, and adds them
    one at a time to a DbXML document using XmlModify.addAppendStep
    and XmlModify.execute. At a particular document (call it "GLU.xml") it
    segfaults during the XmlModify.execute call. It is not malformed data in
    the file, because if I remove some files that are loaded at an earlier stage,
    GLU.xml is loaded quite happily and the segfault happens later. Changing
    my application so that it exits just before reading GLU.xml, and loading GLU.xml's
    data into the container file using the dbxml shell's "append" command produces
    the same segfault. The stacktrace is below. Steps #0 to #7 inclusive are the
    same as the stacktrace I got when using the Python API.
    Can anyone give me any suggestions? I could send the dbxml container file and
    dbxml script to anyone who would be prepared to take a look at this problem.
    Regards,
    Peter.
    #0  ~NsEventGenerator (this=0x9ea32f8) at NsEventGenerator.cpp:110
    110                     _freeList = cur->freeNext;
    (gdb) where
    #0  ~NsEventGenerator (this=0x9ea32f8) at NsEventGenerator.cpp:110
    #1  0x009cacef in DbXml::NsPullToPushConverter8::~NsPullToPushConverter8$delete ()
        at /scratch_bernoulli/pkeller/dbxml-2.2.13/install/include/xercesc/framework/XMLRefInfo.hpp:144
    #2  0x00a5d03c in DbXml::NsDocumentDatabase::updateContentAndIndex (this=0x96b7a60,
        new_document=@0x96e3608, context=@0x96a3fc8, stash=@0x96a4098) at ../scoped_ptr.hpp:44
    #3  0x009a71b1 in DbXml::Container::updateDocument (this=0x96a71d0, txn=0x0, new_document=@0x96e3608,
        context=@0x96a3fc8) at shared_ptr.hpp:72
    #4  0x009b8465 in UpdateDocumentFunctor::method (this=0xb7d3a008, container=@0x96a71d0, txn=0x0, flags=0)
        at TransactedContainer.cpp:167
    #5  0x009b70c5 in DbXml::TransactedContainer::transactedMethod (this=0x96a71d0, txn=0x0, flags=0,
        f=@0xbff66500) at TransactedContainer.cpp:217
    #6  0x009b71e4 in DbXml::TransactedContainer::updateDocument (this=0x96a71d0, txn=0x0,
        document=@0x96e3608, context=@0x96a3fc8) at TransactedContainer.cpp:164
    #7  0x009d7616 in DbXml::Modify::updateDocument (this=0x96c1748, txn=0x0, document=@0xbff665b0,
        context=@0xbff669dc, uc=@0xbff669e4)
        at /scratch_bernoulli/pkeller/dbxml-2.2.13/dbxml/build_unix/../dist/../include/dbxml/XmlDocument.hpp:72
    #8  0x009d9c18 in DbXml::Modify::execute (this=0x96c1748, txn=0x0, toModify=@0x96a7280,
        context=@0xbff669dc, uc=@0xbff669e4) at Modify.cpp:743
    #9  0x009c1c35 in DbXml::XmlModify::execute (this=0xbff666c0, toModify=@0x96a7280, context=@0xbff669dc,
        uc=@0xbff669e4) at XmlModify.cpp:128
    #10 0x08066bda in CommandException::~CommandException ()
    #11 0x0805f64e in CommandException::~CommandException ()
    #12 0x08050c82 in ?? ()
    #13 0x00705de3 in __libc_start_main () from /lib/tls/libc.so.6
    #14 0x0804fccd in ?? ()
    Current language:  auto; currently c++

    Hi George,
    I can get the coredump with the following XML data (cut down from its original
    size of around 900Kb):
    <file name="GLU.xml">
    <_StorageUnit time="Wed Apr  5 11:06:49 2006" release="1.0.212"
    packageName="ccp.ChemComp" root="tempData" originator="CCPN Python XmlIO">
    <parent>
      <key1 tag="molType">protein</key1>
      <key2 tag="ccpCode">GLU</key2>
    </parent>
    <StdChemComp ID="1" code1Letter="E" stdChemCompCode="GLU" molType="protein" ccpCode="GLU" code3Letter="GLU" msdCode="GLU_LFOH" cifCode="GLU" merckCode="12,4477">
      <name>GLUTAMIC ACID</name>
      <commonNames>L-glutamic acid</commonNames>
    </_StorageUnit>
    <!--End of Memops Data-->
    </file>This happens when the data from 106 other files have been inserted beforehand
    (ranging in size from 1Kb to 140Kb). If I manipulate the order so that the above data
    is loaded earlier in the sequence, it inserts fine and I get the coredump when
    loading data from a different file.
    The actual XmlModify calls look something like:
      qry = mgr.prepare("/datapkg/dir[@name='dir1']/dir[@name='dir2']", qc)
      mdfy.addAppendStep(qry, XmlModify.Element, "",
                         '<file name='" + fileName + '">' +
                          data[pos:] + "</file>")
      mdfy.execute(XmlValue(doc), qc, uc)where data[pos:] points to the location in the mmap-ed file containing the
    above data just after the <?xml ...?> header.
    If you want to try to reproduce the crash at your end there are a couple of ways
    we could do it. I have just figured out that this forum software doesn't let me
    upload files or reveal my e-mail address in my profile, but you can contact me with
    username: pkeller; domain name: globalphasing.com and I can send the
    data to you.
    Regards,
    Peter.

  • How to Given the Message when Adding the Marketing Documents

    Hello Experts,
    I have Required only Message for when Adding the Markeing Documents that times
    I want give the message for  " Please Check the Control Account"
    Is IT Possibal  in SAP
    Dixit Patel

    Hello Dixit Patel,
    It is possible but that need SDK coding.
    Thanks,
    Gordon

  • Message 131-3 when adding document

    I am adding a document to a UDO and I get the Message 131-3 that says I have to set up the numbering series thru the Administration tab first.  The only problem is that this has already been done.  There is a Next number and a Last number set for this document.  Is there something else that has to be set?  I have added documents successfully to this table in the past.
    Please help!

    Tim,
    What version of SAP Business One are you using?  If you are using 2007A, I think there were some issues in earlier PL's.  Please make sure you have downloaded the latest which is PL15 ... again ... if you are using 2007A.
    Eddy

  • Mail compose window jumps to back when adding address. As soon as I add a single character to the address window of a new mail message, it pops  under all other existing windows. If I have others open...and who doesn't? I have to then close them all.

    So.....deeply....disappointed by Lion...
    It honestly gets in the way of getting things done.
    When was the last time you had an upgrade, in any program or  OS that caused an immediate productivity drop?
    Mail windows, when adding a new address, pop under to become the lowest window in the stack...before you are done composing...
    no extra clicks..just adding ONE character to the actual address bar does it.
    Trying to add files to an online content management system is hard...it's hard because when you attempt to add the file, it disappears from
    the list, so a search must be conducted...oh not a search of your hard drive...no...it has to include ALL FILES and that takes a while, showing
    files totally unrelated to what you need or in whatever that view is, showing everything from movies to documents, to a whole range of other stuff
    that is irrelevant to what is being sought.
    I can get used to the disappearing icon tool bar...but the message threading in Mail is so strangely bad it's hard to describe. So you send out an email,
    and it had 5 points...but that was 3 emails before...A reply comes in addressing those 5 points but saying something like ..."I disagree with point number 4"
    Unless you have total recall the thread shows you only incoming mail and the LAST most recent folded up message you sent. You are forced to go digging
    into sent mail to see what that point you made 8 days eariler actually was...
    I am pleased that I don't have to have Launchpad (honestly the silliest 'feature' I've ever seen on a computer) in the dock and see no point in the juvenile Mission Control (the naming scheme is odd and reminiscent of Junior Spaceman...how ironic that we end America's manned launch capability at the same time as Launch Pad and Mission Control, both throwbacks to the 60's are added to an OS). In any case both are virtually useless tools. One, replacing the mildly useful Spaces and the other just genuinely useless.
    I'm going to give Apple until the second bug fix...but I can tell right now that Snow Leopard was a far more robust OS. The thousands of posts about this may rise to the level of AntennaGate...I hope so...It seems the only way to get Steve (for whom I have now honestly lost respect for the FIRST TIME) to address the issues is to embarrass the company publicly. Lion is a broken system, poorly conceived...and proof that the Apple methodology of no widespread user testing can and does fail. This needs to get fixed. Soon.

    It seems to have something to do with profile manager.
    I get stack traces in the "system messages" logs for the "Server" application, grrrr.
    I'll get that info and attempt to submit a but report tonight.

  • Can you customize what folder MAIL goes to when adding attachments?

    Can you customize what folder MAIL goes to when adding attachments?
    My friend has 2 email addresses for businesses.
    He has invoices in folders for both, and wants to set up the Mac like this:
    When he writes from one email address and attaches documents - he want the Mac always to go to the corresponding folder for that company of his. Same for the other email address...
    Make sense?
    Can this be done?
    Thanks in advance....

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether your problem is caused by third-party system modifications that load automatically at startup or login. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click  Log in.
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word"

     I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word".I am sure that document is not corrupted and
    all. something it showing the preview and sometimes it throwing this error. I hope this error is intermident. When clicking on the link also it throws this error but on refreshing it working fine. I dont know why it is happening. Please helpme  to resolve
    this issue. 

    Hi Waqas
    Thanks for your help with this. I had a look at both posts, the URL works fine from the WAC server and I am not using a System account to test docs.
    Also, this is a production site that is accessible over the Internet, so we are using https therefore the WOPIZone is external-https.
    Issue #3 in the above blog link does not reflect the same error I see on my servers.
    I also had a look at the information in this link: http://technet.microsoft.com/en-us/library/ff431687.aspx#oauth
    Problem: You receive a "Sorry, there was a problem and we can't open this document" error when you try to view an Office document in Office Web Apps.
    If you added domains to the Allow List by using the
    New-OfficeWebAppsHost cmdlet, make sure you’re accessing Office Web Apps from a host domain that’s in the Allow List. To view the host domains in the Allow List, on the Office Web Apps Server open the Windows PowerShell prompt as an administrator and run
    the Get-OfficeWebAppsHost cmdlet. To add a domain to the Allow List, use the
    New-OfficeWebAppsHost cmdlet.
    I have not added any domains to the Allow list so this did not help either. Should I add the domain?
    Any further help with this is much appreciated.
    Thanks again.
    Yoshi

  • Acrobat crashes when closing a document.

    I have developed a simple Acrobat Addin, which adds a menu item and a toolbar button. The active document will be closed when this menu item or toolbar button is clicked.The document is closed using the function "AVDocClose".
    Acrobat crashes when AVDocClose is invoked from toolbar button and works fine when invoked from menu item. This happens only when "Show each document in its own window" is checked and in the version 8.0 Professional. Works fine in 7.0. The crash has occured in Acrobat.dll.
    Is this crash a known Acrobat issue in 8.0?
    OS : Windows XP
    Thanks,
    Partha

    The only  plug-ins installed are the default ones that came installed with Acrobat.  All of these are developed by Adobe, so i'm assuming your are not referring to these as "3rd party".  All custom plug-ins have been uninstalled with the exception of the Stamper sample to test this theory.  Quite literally this can be reproduced by adding  the following code to the "ToolActivate" method in StamperUI.cpp.  This is the method that is wired into both the MenuItem and Button click events by default in this sample.  When this code is executed by a MenuItem event, no issue at all.  When this code is executed by a button click event, an exception is thrown from Acrobat.exe.  Note that the exception is not thrown from the ToolActivate method, it is thrown at some point after this method completes.
    AVDoc avDoc = AVAppGetActiveDoc();
    if (avDoc != NULL)
    AVDocClose(avDoc, true);
    As you can see, no objects are being acquired in this code.  If AVDocClose is not executed, no issues at all.  Although that goes against what i am attempting to do (as a result of a Button click, i need to be able to close the AVDoc).
    Any thoughts as to root cause of this issue?
    Karl, i really appriciate your assistance!  Thanks.

  • Zoom settings change when adding pages

    Hi
    When adding a page to a document with this code:
    app.activeDocument.pages.add(LocationOptions.AT_END);
    InDesign automatically reverts the zoom setting to FIT_TO_PAGE
    Is there a way to prevent this from happening?
    I would like that it should stay at whatever it was.
    Help will be much appreciated!
    Thanks,
    Davey

    Davey_Doo wrote:
    1) is there a difference between what I wrote "layoutWindows[0]" and what you wrote "windows[0]"?
    Yup, "layoutWindows" refer to just the layout windows -- the ones one is normally working in. The other kind is "storyWindows", which is what you get when you open a text in the "Story Editor". There are vast differences between the two, such as "zoom" (you cannot zoom in on the story editor window).
    Using "windows", without specifying the kind, you get a list containing both types; and using "windows[0]", you get the very first one, whether it is a story window or a layout window. Then, if it happens to be a story window, csm_phil's script will Crash & Burn because you cannot zoom in on a story window.
    Your version will work correctly, and just in case you might have a story editor window open, it's best to stick to "layoutWindows" if you want to change a layout window property.
    2) Although this does help, is there a way to prevent it from happening?
         The reason I ask is because in a script which adds many pages, (e.g., MultiPageImporter script), the script needs to do this after adding each page.
    No, you cannot prevent it in any way. It's just ID's default built-in behavior (although it seems strange that this only happens when using a script!).
    But I disagree with your assessment it needs to be done "after adding each page". ID does not store the zoom percentage for each separate page and so it is enough to read the current zoom, add as much pages as you like, then set the zoom.

  • Page side varies when adding pages

    Dear all,
    When i add pages in stacked document that will starts in left hand side as in the below screenshot
    it will change as right hand and new pages will inserted in left hand as below when added thru script
    of same spread but when do manually it ll insert correctly as below
    Please help me to do thru script as above.
    Thanks in advance,
    Sankar

    Shankar, activate the Pages window by press the F12 key.
    Activate the "Allow Document Pages to Shuffle"
    Activate the "Allow Selected Spread to Shuffle"
    As per the below screenshot. Hope it helps.

Maybe you are looking for

  • Error in BAPI_SAG_CREATE

    Hi, I'm getting the below error while using using BAPI_SAG_CREATE : No instance of object type PurchSchedAgreement has been created. External reference: # 1 I'm trying to cerate scheduling agreement. If anyone has worked on similar issue, plz advise.

  • Video renders out blurry

    I am new to Motion- I replaced video is a motion template and the video renders out blurry, on screen and on my tv monitor -please help.

  • I back up my files by using back up iphone function.but after i reset

    i back up my files by using "back up iPhone" function.but after i reset and restore from backup for my iphone 4,all my apps were gone.what can i do?i found that the apps in not in itunes sync,how to restore back all my apps?i have not turn off my my

  • Recommendations for optimal QuickTime HD export settings?

    I've searched and didn't see anyting specific to my question, however my apologies if this is a repeat question. I frequently have to export 1080p, 1080i and 720p @29.97 QuickTime files from CS5 and no matter what settings I've used I always seem to

  • Convert txt file to pdf using Acrobat Distiller

    Hi, We purchase years ago Distiller 8.1.0. Now, I try to convert txt file to pdf files, but I always get an error. Please Help, Hezi