Ms office multiple triggers

Anybody have step by step on how to get Ms office 2010 to work so you can launch the individual apps, word,excel,pwrpoint?????
I understand you need to use multiple trigger points but not sure how you would launch them and have icons like the non virt app

If you want separate icons, you may need to snapshot the applications individually. I could only ever find a single place to put an icon.
If you specify multiple startup files you can define which program launches. So, let's say we have Office with Word, PowerPoint, and Excel. I'm creating a virtual Office app called office. My multiple startup files will look like this:
..\word.exe <leaving command line blank, since I don't want to pass additional arguments> word
..\powerpoint.exe <still leaving command line blank> pp
..\excel.exe <still leaving command line blank> excel
And because it's used the most, I'll have the word line set to Auto Start. This should cause the following behaviour when running the exe:
run office.exe -> word opens
run office word -> word opens
run office pp -> powerpoint opens
run office excel -> excel opens
I haven't played around with an MSI of Office much, but I'm fairly certain if you create an MSI that uses multiple startup files it should register those applications.

Similar Messages

  • Using NI 5911 with multiple triggers

    Is it possible to use the NI5911 to receive multiple triggers ? In my application there is an external device that generates trigger pulses at every start scan period. I would like to use the board to wait for 32 triggers. After each trigger the board must acquire N scans @ scan rate previusly defined. The Operational System CANNOT interfier on the process. Any help ?
    Can we use it on linux ?

    Hello,
    The 5911 can run in a multiple record mode which allows you to tell the 5911 ahead of time that you want to do a certain amount of acquisitions (32 in your case) and to re-arm (start the next acquisition) in hardware without software interaction. This allows for a very small dead time (time between acquistions). There are multiple record examples that ship with NI-Scope in all environments and more information on this mode is available in the the software users manual that should be installed on your computer. If you cannot find it, here is a link to it on NIs website: http://digital.ni.com/manuals.nsf/websearch/91C5DEA19ACC6F2586256A8F0072E86F?OpenDocument&node=132100_US
    Currently there is no support for the NI 5911 on Linux.
    Best Regards,
    Bri
    an

  • How do i create multiple triggers in one image?

    Hi there,
    I have an image which consists of multiple sections. (It's a circle with pie-pieces: see attachment)
    I want every segment of the image to be a seperate trigger: when you hover or click other segments will turn gray and a text will appear.
    At first i thought that it wouldn't be possible, but then i saw this website http://pmkwilliams.com/# (i know it's made with edge, i saw it in a presentation on youtube)
    Can anyone help me? All the help is welcome! And a link to a tutorial would be grant.
    And i want to appologise if this is asked before: i didn't know how you would call such a feature. English is not my motherlanguage...
    Thanks sooo much in advance!!!
    bart

    Hi ResDesign, thanks again for your reply.
    I just inserted a part of the code, but because i can't seem to find the way the "american map animateproject" works i find it hard to see what it is i have to do.
    1: I understand that i need to create rectangles at the place i want the trigger to be: coords="217,9, 222,9,226,9,230,9"/>'+
                 // for a rectangle shape use shape="rect"
    2: I changed every "usmap" to my own image name.
    3: But it also says '<area id="California" shape="poly" title="California region:West" Does this mean that when you hover, you'll see this text? i could delete this then?
    4: I don't know what to do with the timeline. What do i set up and what keyframes do i use?
    The idea was that when you click on one segment of the circle the others would go gray and a text will appear on the right.
    I realise that maybe this is to difficult for me: i've never done javascript, so if you think this is too much...
    Thanks in advance.
    bart

  • Multiple triggers for single popup

    Maybe it is dumb question to ask... sorry if that is so but...
    Is it possible to have several triggers in different parts of page for the same action? E.g. I want to open one lightbox by means of five different buttons. How to do that?
    Thanks.

    Hello,
    You can Simply do that by creating copy of single trigger light-box slideshow widget, Please find below the step by step suggestions.
    1. Create a light-box slideshow and Design it as per your requirement (Create it with a single trigger)
    2. Go to the options and uncheck "Show light-box parts while editing"
    3. By doing this you will be able to see only the trigger on the page.
    4. Now copy that (Slideshow) and paste it on the desired locations.
    5. It would look like its launching same light-box for each trigger as they all are the same copy.
    Regards
    Vivek

  • Pioneer Office - Multiple Sources?

    Hi,
    I've seen the presentation on where pioneers going on Latest update on SAP BusinessObjects Analysis software (aka Pioneer)
    I just have one small question, just to be clear on this: will Pioneer Office also connect to other sources then SAP BW? Like MSAS, Essbase?
    Thanks!
    Raf

    Hello Raf
    Yes, Pioneer Office will be able to connect to other providers. In the initial release this will be SSAS 2005 and SSAS2008. We are planning to follow up later with connectivity to Essbase.
    Regards
    Ian

  • Multiple Triggers to create single DBMS_JOB

    We're using Oracle 9i and I'm trying to get triggers from different tables to schedule a new job, however the job should only be scheduled once. I know the DBMS_JOB.SUBMIT can return a jobno value but how does this help me from within a different trigger which has no clue as to what that number was?
    I have a stored procedure which gets called in the exact same way by all triggers using a parameter of 0 for WhoCalling:
    if (WhoCalling = 0) then
    DBMS_JOB.SUBMIT(jobno, 'BEGIN Tourism_Cache_Refresh(1); END;', SYSDATE+1/1440, null);
    else
    v_html := utl_http.request('http://11.200.110.9/DesktopModules/Tourism/TourismCacheRefresh.aspx');
    end if;
    END tourism_cache_refresh;
    Unfortunately if another trigger is generated on a different table the procedure gets called again and another job is created. I only want a single job to be issued if the first job has not even completed yet (basically Im ignoring all additional requests for 5 mins). The Oracle 10g DBMS_SCHEDULER seemed nice because I could name the job and search its table for a match but here I only have a random #.
    Thanks.

    Ok now Im having a bit of an issue with compling the procedure. AN error occurs on:
    SELECT count(*) INTO v_job_exists FROM DBA_JOBS WHERE LOWER(what) like '%tourism_cache_refresh(1);%';
    Line # = 8 Column # = 42 Error Text = PL/SQL: ORA-00942: table or view does not exist
    It is highlighting the DBA_JOBS. I tried pluggin that line in the SQL ScratchPad within the Enterprise Console and it was ok but when creating a procedure and trying to compile it gives the error.
    Update: I got it working by swithcing to USER_JOBS. As for the session issue, hmmm. Any solutions to compensate for that?
    Message was edited by:
    quantass

  • Binding a control to a cfc with multiple triggers

    I'm an old-school coder. I've been trying to figure out the
    new AJAX controls to see if they could save me some time, but I'm
    running into headaches.
    At the moment I'm building a tool to reconcile a table full
    of firstname lastname and organization records (strings, no id's)
    with 2 other tables that contain organizations and contacts,
    respectively. IOW, we're trying to match string data with records
    that have ID's.
    My tool so far has 3 form fields per record - a "this is
    valid" checkbox and 2 select lists. One for organizations, second
    for the contacts associated with that org. On load, I bind the org
    select to a CFC that attempts a direct lookup using the string
    value of the record, then a SOUNDEX match. Now, when the select
    list gets loaded, I want to use the first matched record's ID to
    lookup contacts for that org. How do I tell the second select list
    to wait until the first one is loaded before doing its lookup, and
    to do another lookup anytime that value changes? What if I wanted
    to also link the lookup functionality to the checkbox 's onChange
    event? I may want to add a separate checkbox so there is one for
    org and one for contact in case an org exists but the contact
    doesn't.

    Tinaja wrote:
    > My tool so far has 3 form fields per record - a "this is
    valid" checkbox and 2
    > select lists. One for organizations, second for the
    contacts associated with
    > that org. On load, I bind the org select to a CFC that
    attempts a direct
    > lookup using the string value of the record, then a
    SOUNDEX match. Now, when
    > the select list gets loaded, I want to use the first
    matched record's ID to
    > lookup contacts for that org. How do I tell the second
    select list to wait
    > until the first one is loaded before doing its lookup,
    and to do another lookup
    > anytime that value changes? What if I wanted to also
    link the lookup
    > functionality to the checkbox 's onChange event? I may
    want to add a separate
    > checkbox so there is one for org and one for contact in
    case an org exists but
    > the contact doesn't.
    >
    1) in your contacts cfselect make sure you have specified
    bindonload='false' - this will prevent it from loading any
    data on
    pageload, before an entry in your organisations list is
    selected
    2) in its bind argument add @change to the bind parameter:
    i.e.
    bind='cfc:path.to.your.cfc.method({formcontrolname@change})'
    - this will
    make it re-lookup data on each change in the organisations
    list (it may
    be that @change is even default event, so you may not even
    have to add
    it at all... can't remember now if it is change or click that
    is default...)
    3) how do you want to link your select lists to your check
    boxes? what
    action should the change in the state of a checkbox trigger?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Hp 8500 Office Jet Pro never warned ink was low, how to change this?

    We have 2 of these units and prefer to only have the hp printers.  Got this printer setup, it seems verbose in asking to register, please register, you must register, you cant print until you register.  ok fine lets regsiter then!  thats ok youre already registered.
    the next day: WARNING! You must take action! your HP Printer has an alert you must read! click HERE to read the alert!  okay okay whats the alert?  Your printer is not registered, would you like to register to get valuable gift offers and get an email from hp about new and exciting things you can print?  next day WARNING! You must take action, the printer software could be totally worthless, all drivers are erased or will fail, click here now before its too late!  click.  you havent checked for updates to your hp driver software, want to check now?  ok click.  please wait....  your drivers are up to date.  click here to close this message.
    Im NOT KIDDING or being sarcastic, and I say all of this for a reason.  today when trying to print, I mean while it was in the process of printing a page, the page stopped and it said OUT OF INK.  looking closer it was the black cartridge that was TOTALLY EMPTY.  The printer is used at an office where printed documents are very important.  While printing documents for a meeting with a client, this hp 8500 stopped and said the ink was not low, it was OUT of ink and printing cannot take place, do not pass GO, do not collect $200, come back when you're sober.  It uses only the HP ink cartridges, fortunately some other ones were on hand to install and finish printing.  this could have been a printing disaster. 
    With all the other alerts it gave to register over and over, and then the messages saying check for updates, each time the entire message was carefully read, nothing about ink levels, everyone who uses an inkjet for office printing where its important knows the cartridges get used up and have to be replaced.  but why wouldnt this warn about low ink when it asks everything else?   Is there a basic way to set the printer driver in windows to give an alert when the ink starts to run low??

    Hi harleyfire
    I understand you would like to be able to have the ink alerts automatically and the registration keeps prompting you all the time.
    For the registration that keeps coming up you can correct this by doing the following:
    On the Windows taskbar, click the Windows icon.
    Right-click Computer , and then click Manage . The Computer Management window opens.
    In the left pane, click the arrow next to Task Scheduler , and then click Task Scheduler Library .
    Under Name , point to any of the following tasks to select them, click Delete in the Actions pane, and then click Yes in the Task Scheduler dialog box.
    Any Webreg task (Example: Webreg 20031218075500)
    ExtendedService Plan - After triggered, repeat every 30 minutes indefinitely
    HPCeeScheduleForryan - After triggered, repeat every 6 hrs for 3000 hrs (30.00:00:00)
    InternetServiceOffers - After triggered, repeat every 30 minutes indefinitely
    Registration - After triggered, repeat every 30 minutes indefinitely
    ServicePlan - Multiple triggers defined
    Close the Computer Management window.
    For the Officejet 8500 a910 you can change the settings for the ink alerts through the software. Double click the Officejet 8500 icon on the desktop and it opens the HP Printer Assistant. Then click on icon for estimated ink, then click on the tab called Advanced Settings and click Show Alerts options. Show me ink alerts right away.
    If you have the older model Officejet 8500 a909 you would have to uninstall and reinstall and should prompt you for the ink alerts.
    Hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Multiple MapTriggers allowed on the same cache?

    I'm trying to register a pair of trigger listeners on the same cache (Coherence 3.5.1)
    (See below for xml scheme reported in storage node log).
    It appears as if only the first listener is active.
    Both triggers work if configured in isolation.
    We could partially solve the problem by creating a "super" trigger that encapsulates both functions, but this would prevent us from removing one of them at runtime by unregistering the listener.
    In summary:
    1) If multiple triggers are not supported, then shouldn't the config below be rejected?
    2) If multiple triggers are supported, could anyone suggest what I'm doing wrong?
    3) If multiple triggers are supported when added programatically, but not via config, is there a recommended way of managing them?
    Thanks,
    Philip
    <distributed-scheme>
      <scheme-name>dist-default</scheme-name>
      <backing-map-scheme>
        <local-scheme/>
      </backing-map-scheme>
      <autostart>true</autostart>
      <serializer>
        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
        <init-params>
          <init-param>
            <param-type>string</param-type>
            <param-value>java_pof_config.xml</param-value>
          </init-param>
        </init-params>
      </serializer>
      <thread-count>2</thread-count>
      <listener>
        <class-scheme>
          <class-factory-name>com.psinventory.cache.EntryVersioningTrigger</class-factory-name>
          <method-name>createMapTriggerListener</method-name>
        </class-scheme>
      </listener>
      <listener>
        <class-scheme>
          <class-factory-name>com.psinventory.cache.EntryLoggingTrigger</class-factory-name>
          <method-name>createMapTriggerListener</method-name>
        </class-scheme>
      </listener>
    </distributed-scheme>

    Hi Philip
    Multiple triggers do work if you add them using NamedCache.addMapListener(...). If you configure the trigger using the xml cache config file then only the first trigger is added. I will enter an internal bug for this issue.
    Please be aware of 2 items:
    1) The order in which the trigger is called is not specified in the API or any doc (that I know of). I did some testing and the last trigger added was the first called. However, you cannot rely on this behavior unless it is documented.
    2) The output of the first trigger is passed as input to the second trigger. If you cannot rely on the ordering of the triggers then this could be a real problem.
    Paul

  • Regarding activation job triggering more than once

    hi all,
    i have designed a process chain in which there are 5 info packages (same info source) loading into same ods.I have then clubbed these 5 info packages steps in one OR condition.however,there are multiple activations which are triggered i.e. as soon as one of the load is completed one activation job is triggering and similarly it happens with other loads also.
    this multiple triggering of activation causes subsequent processes in the chain to trigger multiple times which is not required.
    is there way that we can trigger this activation only once.
    Please note that OR condition is required and AND cannot be placed in its place.

    HI Parth,
    I think you cannot do away with AND.
    You will have to use it just when the 5 different process complete.
    I am not sure how did you make it but i would suggest to go like this:
    Loading1     
    Loading 2 
    Loading 3
    Loading 4          
    Loading 5
    Then you can have the Activation step. after the loading is completed.
    Do assign points if it helps.
    Do iterate your problem in more descriptive manner if this doesnt helps :).
    Regds,
    Den

  • Database Links and Triggers

    Hello altogether,
    I'm not sure if I am in the right topic here, if not please excuse!
    I got the following problem:
    My system consists of two parts - one calculation part P1, and one output part P2. Both parts have their own Oracle DBMS. The calculation part P1 calculates a lot of data and replicates this data to the database of the output part P2.
    I created a database link from P1 to P2.
    Now I used triggers to replicate the data from tables on P1 side to tables on P2 side.
    Problem:
    This works fine, as long as the number of inserted or updated entries is low. If it increases, I get the error "Too many database links in use", and everything is stuck. I guess this is because too many triggers fire in parallel.
    Question:
    Is there a possibility to restrict the number of triggers executed in parallel (some kind of semaphor to serialize on), or can multiple triggers share the same database link?
    Thanks a lot for your help!
    Bye,
    Daniel

    Besides from using normal oracle replication I would check your triggers.
    Do they fire and access the DB for each row? May change this to statement level.
    Or switch from some synchonous process (immediatly update the target database) to some asynchronous process (mark the records that needs to be updated/changed, every half an hour do the change).
    3rd version? DO you really need two databases? Consider 2 separate schemas on one database instance.

  • Triggers in Oracle

    Hi,
    I have a question about the behavior of triggers. Consider the following situation:
    1. There is a table called TABLE_A.
    2. There is a table called TABLE_B.
    3. There is a trigger T1 that watches TABLE_A for inserts, and if there is an insert the trigger inserts a row into TABLE_B.
    4. There is a trigger T2 that watches TABLE_A for inserts, and if there is an insert the trigger inserts a row into TABLE_B.
    5. There is a trigger T3 that watches TABLE_B for inserts, and peforms some action.
    6. There is a trigger T4 that watches TABLE_B for inserts, and peforms some action.
    My questions are:
    1. What is order in which these triggers will execute when a row is inserted into TABLE_A?
    2. Will any of the triggers run concurrently (perhaps in different threads?) ?
    3. Is the order which triggers run predictable?
    4. Is there any way to define priority, synchronous, concurrent behavior with the triggers?
    5. Is there any way to define dependency among triggers (e.g. T1 cannot run until T2 finishes running) ?
    Thanks in advance,
    Galen

    Sounds like you're looking for the control offered by different types of triggers, row level vs. statement level triggers. Here is what Oracle Concepts has to say about Trigger execution:
    A single SQL statement can potentially fire up to four types of triggers:
    BEFORE row triggers
    BEFORE statement triggers
    AFTER row triggers
    AFTER statement triggers
    A triggering statement or a statement within a trigger can cause one or more integrity constraints to be checked. Also, triggers can contain statements that cause other triggers to fire (cascading triggers).
    Oracle uses the following execution model to maintain the proper firing sequence of multiple triggers and constraint checking:
    Run all BEFORE statement triggers that apply to the statement.
    Loop for each row affected by the SQL statement.
    Run all BEFORE row triggers that apply to the statement.
    Lock and change row, and perform integrity constraint checking. (The lock is not released until the transaction is committed.)
    Run all AFTER row triggers that apply to the statement.
    Complete deferred integrity constraint checking.
    Run all AFTER statement triggers that apply to the statement.
    The definition of the execution model is recursive. For example, a given SQL statement can cause a BEFORE row trigger to be fired and an integrity constraint to be checked. That BEFORE row trigger, in turn, might perform an update that causes an integrity constraint to be checked and an AFTER statement trigger to be fired. The AFTER statement trigger causes an integrity constraint to be checked. In this case, the execution model runs the steps recursively, as follows:
    Original SQL statement issued.
    BEFORE row triggers fired.
    AFTER statement triggers fired by UPDATE in BEFORE row trigger.
    i. Statements of AFTER statement triggers run.
    ii. Integrity constraint checked on tables changed by AFTER statement triggers.
    Statements of BEFORE row triggers run.
    Integrity constraint checked on tables changed by BEFORE row triggers.
    SQL statement run.
    Integrity constraint from SQL statement checked.
    There are two exceptions to this recursion:
    When a triggering statement modifies one table in a referential constraint (either the primary key or foreign key table), and a triggered statement modifies the other, only the triggering statement will check the integrity constraint. This allows row triggers to enhance referential integrity.
    Statement triggers fired due to DELETE CASCADE and DELETE SET NULL are fired before and after the user DELETE statement, not before and after the individual enforcement statements. This prevents those statement triggers from encountering mutating errors.

  • CFSchedule firing multiple times

    Hi Everyone,
    i still have not found a solution to this. if anyone has any
    other suggestions please let me know.
    Also i would like to report this as a bug, what is the proper
    procedure for reporting this?
    thanks to all
    Tim
    Original- Hi All,
    i have had issues since upgrading from 6 to 7 with
    cfschedule. sometimes it runs fine, other times it will run the
    same task multiple times in a row, other times it will wait an hour
    then run the same task again.
    This may not sound like a big deal, but the tasks send out
    several thousands of emails. talk about spam!!
    I have been screamed at on a weekly basis to make this stop.
    Now since the the DST change, the tasks that were scheduled
    at 3pm run at 3pm and again at 4pm!!
    Please someone help!!!!!!!!!!!!!!!!!!!!!
    Thanks in advance.
    Tim

    Hi BK,
    in my task is setup to run every 15 with a start date of a
    few days ago and no end date or time.
    it calls a file on the same server via its dsn name.
    The file it calls is this:
    [code]
    <cfset testtext = "Testing st #now()#">
    <cfset testSTname = "d:\st_test_" &
    #DateFormat(now(),"yyyymmdd")#&""&#TimeFormat(now(),"HHmmss")#
    &".txt">
    <!--- <cffile action="write" file="#testSTname#"
    output="#testtext#" nameconflict="makeunique"> --->
    <cfmail to="[email protected]" from="[email protected]"
    subject="st timer test">
    #Dateformat(now(),"mm/dd/yyyy")#
    #TimeFormat(now(),"hh:mm:ss:l")#
    </cfmail>
    [/code]
    If you notice i commented out the file write. something was
    puzzling about it, it would write fine for an hour then once in
    awhile write multiples (by comparing the date created on the file
    in windows.
    I then found the calls in my IIS log file, every single call
    was done twice at exactly the same time.
    (edited for security)
    [code]
    2007-07-30 22:15:06 x.x.x.x GET /tools/test_ts.cfm - 80 -
    x.x.x.x CFSCHEDULE 200 0 0
    2007-07-30 22:15:06 x.x.x.x GET /tools/test_ts.cfm - 80 -
    x.x.x.x CFSCHEDULE 200 0 0
    2007-07-30 22:30:06 x.x.x.x GET /tools/test_ts.cfm - 80 -
    x.x.x.x CFSCHEDULE 200 0 0
    2007-07-30 22:30:06 x.x.x.x GET /tools/test_ts.cfm - 80 -
    x.x.x.x CFSCHEDULE 200 0 0
    2007-07-30 22:45:08 x.x.x.x GET /tools/test_ts.cfm - 80 -
    x.x.x.x CFSCHEDULE 200 0 0
    2007-07-30 22:45:08 x.x.x.x GET /tools/test_ts.cfm - 80 -
    x.x.x.x CFSCHEDULE 200 0 0
    [/code]
    So i decieded to make it send an email, this way there is a
    queue so to speak for the messages to be written, i think this is
    why i saw speratic multiples with cffile.
    Email 1 contents: {ts '2007-07-31 01:30:00'} 01:30:00:769
    Email 2 contents: {ts '2007-07-31 01:30:00'} 01:30:00:909
    So far, i am only getting 2 copies for every fire of the
    task, but i have seen in other tasks that email, up to 6 copies.
    i can see this in IIS Logs, the test cfm file being called at
    least twice per task for long periods, then other tasks will fire
    and i only see a single call to the test cfm file. but its next
    execution time is duplicated if there is no other tasks running
    during the same time period
    I have dug through all the logs for each task, so far all of
    the task that have no end date fire multiple times.
    I can see the results (files written, db records inserted,
    emails sent, IIS log files).
    all show duplicates during same creation time Except the
    scheduler.log it only shows each of those tasks firing once.
    I can only assume that the scheduler log is being updated
    correctly which leads me to belive that this log entry is done some
    time before the scheduler payload execution or the scheduler code
    dosnt log multiple triggers on its actions.
    So i am going to set the End date for this test task to see
    if the duplicates stop.
    more to come
    Tim

  • Trigger is firing multiple times

    Hi
      we have a table in database , which has multiple triggers defined by Vendor. I have created our own custom trigger on this table also , which fires last. Goal of this custom trigger is to send an email, when ever update happens on table. But somehow
    trigger is firing multiple times for same update, so it is sending multiple email for same update also
       Any advice?
    thanks
    Drew

    ALTER trigger [dbo].[AB_TABLEXXX_IUD_TR]
    on [dbo].[TABLEXXX]
    after insert,update,delete
    as
    begin
        set nocount on
        declare @sub varchar(1024)
        declare @tmpstr nvarchar(max)
     DECLARE @action as char(1);
     declare @id as int
     declare @send as int
        SET @action = 'I'; -- Set Action to Insert by default.
        declare @insCount int
     declare @delCount int
     DECLARE @newLineChar AS CHAR(2) = CHAR(13) + CHAR(10)
     DECLARE @tab as CHAR(1)=char(9)
        declare @vendorId char(30)  
     declare @detailmsg varchar(500)
     declare @ovname varchar(30),@nvname varchar(100)
     declare @ovchkname varchar(100),@nvchkname varchar(100)
     declare @oaddress1 varchar(100),@naddress1 varchar(100)
     declare @oaddress2 varchar(100),@naddress2 varchar(100)
     declare @oaddress3 varchar(100),@naddress3 varchar(100)
     declare @ouserdef1 varchar(100),@nuserdef1 varchar(100)
     declare @ovndclsid varchar(11),@nvndclsid varchar(11)
     select @tmpstr=''
     select @insCount = count(*) from INSERTED
     select @delCount = count(*) from DELETED
        if(@insCount > 0 or @delCount > 0)--if something was actually affected, otherwise do nothing
        Begin
            if(@insCount = @delCount)
                set @action = 'U'--is update
            else if(@insCount > 0)
                set @action = 'I' --is insert
            else
                set @action = 'D' --is delete
        End
     else
      select @action='X'
     if(@action='X') RETURN
     select @sub='Not Found'
     set @send=0
        if (@action='I')
     begin
      select top 1 @vendorId=rtrim(VENDORID),@nvname=rtrim(VENDNAME),@nvchkname=rtrim(VNDCHKNM), @naddress1=rtrim(ADDRESS1) ,
        @naddress2=rtrim(ADDRESS2),@naddress3=rtrim(ADDRESS3),@nuserdef1=rtrim(USERDEF1),@nvndclsid=rtrim(VNDCLSID) from inserted 
      select @sub=ORIGINAL_LOGIN()+' : '+'Data inserted in table ''TABLEXXX'''
      select @send=1
      select @sub=ORIGINAL_LOGIN()+' : '+'New Vendor
    '''+@nvname+''' is added'
      select @tmpstr=@sub
      select @tmpstr =@tmpstr+@newLineChar +'Inserted On: '+ Convert(varchar(50),sysdatetime())+@newLineChar
      select @tmpstr=@tmpstr+@newLineChar+'Vendor ID:
    '+@vendorId
      select @tmpstr=@tmpstr+@newLineChar+'Vendor Name:
    '+@nvname
      select @tmpstr=@tmpstr+@newLineChar+'Check Name:
    '+@nvchkname
      select @tmpstr=@tmpstr+@newLineChar+'Address1:
    '+@naddress1
      select @tmpstr=@tmpstr+@newLineChar+'Address2:
    '+@naddress2
      select @tmpstr=@tmpstr+@newLineChar+'Address3:
    '+@naddress3
      select @tmpstr=@tmpstr+@newLineChar+'User Def:
    '+@nuserdef1
      select @tmpstr=@tmpstr+@newLineChar+'Class ID:
    '+@nvndclsid
     end
     if (@action='U')
     begin
      select @sub=ORIGINAL_LOGIN()+':''Data Updated in table ''TABLEXXX'''  
      declare @iTotal int
      select @iTotal =0
      select @detailmsg=''
      create table #new_values(
       VENDORID varchar(100) NULL,
       processed char(1) NULL
      insert into #new_values
         select distinct VENDORID,NULL from inserted  
      while ((select count(*) from #new_values where processed is null)>0 and @iTotal<=50)
      begin
         --PRINT 'UPDATE Entered ' +@action
       select @iTotal=@iTotal+1
       select top 1 @vendorId=VENDORID from #new_values where processed is null
       update #new_values set processed='Y' where
    VENDORID=@vendorId and processed is null
       select @detailmsg=''
       select
         top 1       
           @ovname=o.VENDNAME, @nvname=n.VENDNAME,
        @ovchkname=o.VNDCHKNM,@nvchkname=n.VNDCHKNM,
        @oaddress1=o.ADDRESS1,@naddress1=n.ADDRESS1,
        @oaddress2=o.ADDRESS2,@naddress2=n.ADDRESS2,
        @oaddress3=o.ADDRESS3,@naddress3=n.ADDRESS3,
        @ouserdef1=o.USERDEF1,@nuserdef1=n.USERDEF1,
        @ovndclsid=o.VNDCLSID,@nvndclsid=n.VNDCLSID
       from  inserted n,deleted o
       where n.VENDORID=o.VENDORID and n.VENDORID
    =@vendorId
       if (update(VENDNAME) and @ovname<>@nvname) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'Vendor Name: '+rtrim(@ovname)+' => '+rtrim(@nvname)
       if (update(VNDCHKNM) and @ovchkname<>@nvchkname) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'Check Name: '+rtrim(@ovchkname)+' => '+rtrim(@nvchkname)
       if (update(ADDRESS1) and @oaddress1<>@naddress1) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'Address1: '+rtrim(@oaddress1)+' => '+rtrim(@naddress1)
       if (update(ADDRESS2) and @oaddress2<>@naddress2) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'Address2: '+rtrim(@oaddress2)+' => '+rtrim(@naddress2)
       if (update(ADDRESS3) and @oaddress3<>@naddress3) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'Address3: '+rtrim(@oaddress3)+' => '+rtrim(@naddress3)
       if (update(USERDEF1) and @ouserdef1<>@nuserdef1) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'User Def: '+rtrim(@ouserdef1)+' => '+rtrim(@nuserdef1)
       if (update(VNDCLSID) and @ovndclsid<>@nvndclsid) select @detailmsg
    =@detailmsg+ @newLineChar
    +@tab+'Class ID: '+rtrim(@ovndclsid)+' => '+rtrim(@nvndclsid)
       if(len(@detailmsg)>0)
       begin
           select @send=1
        if (len(@tmpstr)<=0)
        begin
          select @sub=ORIGINAL_LOGIN()+' : '+'Vendor '''+rtrim(@ovname)+''' Updated in table TABLEXXX'
          select @tmpstr='Vendor '''+rtrim(@ovname)+''' Updated'
          select @tmpstr
    =@tmpstr+@newLineChar +@tab+'Updated On: '+ Convert(varchar(50),sysdatetime())+@newLineChar
          select @tmpstr
    =@tmpstr+@newLineChar +@tab+'Vendor ID: '+rtrim(@vendorId)
        end
        select @tmpstr=@tmpstr +@detailmsg
       end
      end
     end
     if (@action='D')
     begin
      select top 1 @vendorId=rtrim(VENDORID),@nvname=rtrim(VENDNAME),@nvchkname=rtrim(VNDCHKNM), @naddress1=rtrim(ADDRESS1) ,
        @naddress2=rtrim(ADDRESS2),@naddress3=rtrim(ADDRESS3),@nuserdef1=rtrim(USERDEF1),@nvndclsid=rtrim(VNDCLSID) from deleted 
      select @send=1
      select @sub=ORIGINAL_LOGIN()+' : '+'Vendor
    '''+@nvname+''' is DELETED'
      select @tmpstr=@sub
      select @tmpstr =@tmpstr+@newLineChar +'Deleted On: '+ Convert(varchar(50),sysdatetime())+@newLineChar
      select @tmpstr=@tmpstr+@newLineChar+'Vendor ID:
    '+@vendorId
      select @tmpstr=@tmpstr+@newLineChar+'Vendor Name:
    '+@nvname
      select @tmpstr=@tmpstr+@newLineChar+'Check Name:
    '+@nvchkname
      select @tmpstr=@tmpstr+@newLineChar+'Address1:
    '+@naddress1
      select @tmpstr=@tmpstr+@newLineChar+'Address2:
    '+@naddress2
      select @tmpstr=@tmpstr+@newLineChar+'Address3:
    '+@naddress3
      select @tmpstr=@tmpstr+@newLineChar+'User Def:
    '+@nuserdef1
      select @tmpstr=@tmpstr+@newLineChar+'Class ID:
    '+@nvndclsid
     end
     if (@action<>'X' and @send=1)
     begin
      Exec msdb.dbo.sp_send_dbmail
       @profile_name='default',   
       @recipients='[email protected]',
       @subject= @sub,
       @body=@tmpstr
     end
    end
    Drew

  • Trouble configurin​g triggers with synchroniz​ed AWG and Digitizer

    Hi,
    I have been working for a few weeks in my project now, and I have a problem concerning the use of triggering options :
    I am using a 5412 AWG and a 5142 Digitizer, in a PXI chassis. I have synchronized them using the Ni-TClk blocks provided in Labview. Now, let me explain what I am trying to do.
    I need to make sure that the data I will record with the digitizer will be exactly aligned with the start of the sequence I am generating with the AWG. This acquisition is triggered either by the user (let's say a clic on a button) or by an external analog trigger.
    I am trying to do that using 2 different kind of triggers : Arm reference trigger and reference trigger.
    I am exporting a signal (Marker Event) from the 5412, on the RTSI0 line. This event happens each time the AWG starts to generate a sequence I have defined. I would like the digitizer to trigger off of this event, but only when a event occured first (the user trigger or the external analog trigger). My idea was to generate an Arm Reference Trigger with the "niScope send software trigger Edge", and to "plug" the reference (stop) Trigger on the RTSI0 line.
    According to the SMC based digitizers acquisition engine state diagram, the digitizer should start in the idle mode when I initiate the acquisition (with Ni-TCLK Initiate), then it should wait for a start trigger (defined as IMMEDIATE) then it should wait for an ARM reference trigger (the one I want to send by software, or later by an external source). Finally it waits for the reference (stop) trigger which would be the marker event on the RTSI0 line.
    According to what I see in my VI, the digitizer seems not to wait for the ARM reference trigger, I guess it directly sees the reference trigger on the RTSI0 line (which happens quite often) without waiting for me to allow it to look for it.
    Do you see a mistake in my thinking here? Is it possible to do what I propose? I was thinking that the fact that I use the TClk synchronization might be a source of my problem with the triggers...
    If it is not possible to do what I propose, I was also thinking to do what I need another way : Is it possible to somehow combine the 2 events I want to trigger off of? I mean, is it possible to create my own signal which would be high when the external trigger and the marker event are both High, and Low otherwise? And then, route this signal in one of the RTSI lines, which would be the source of a digital triggering...
    I hope you will understand what I'm trying to do, and that you will be able to help me.
    Thank you very much in advance,
    Best regards
    Antoine Benard

    Hi Antoine,
    I have been reading you post for a while and I have concluded
    that it will help me a lot if I can have the code; if you were so kind to attach
    it to the discussion forum, I will be more than glad to try on my test machine.
    “I
    need to make sure that the data I will record with the digitizer will be
    exactly aligned with the start of the sequence I am generating with the AWG.”  In this case, and I will
    like to make sure I’m getting this correctly the 5412 is going to trigger the
    5142 and either a user control or an external trigger is going to trigger the
    5412. In this case the user control or the external trigger is going to start
    or stop de generation on the fgen and the fgen will control the scope.  So what we really need to do is figure a way of  using multiple triggers  with the  5412.
    I
    was also thinking to do what I need another way: Is it possible to somehow
    combine the 2 events I want to trigger off of? You can handle this with
    another card. Using card with change detection, you can the FGEN trigger from
    multiple sources.
    I will wait for you answer to make sure I got everything correctly
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

Maybe you are looking for