Create Object based upon Instance of TestStand

Hello,
I currently have TestStand code which creates an ActiveX Object reference to a StationGlobal...
Currently the ActiveX Object Reference created is always the same... I'm looking for a way to create a different ActiveX Object reference depending on what instance of TestStand open...
So I guess I'm wondering if there is an easy way to do this? Is there a variable I could use to distinguish different instances of teststand and somehow incorporate this into Create Options?
Thanks for any response.
Solved!
Go to Solution.

I can imagine that this property of the Engine class could help you:
AppMainHwnd Property
Syntax
Engine.AppMainHwnd
Data Type
Long
Purpose
Specifies the Window handle of the owner of modal dialog boxes.
Remarks
TestStand uses this property to make dialog boxes modal to the application. Do not set this property because TestStand sets it automatically when the application creates the TestStand Engine. Setting this property can cause dialog boxes to be modal to the wrong window. This property usually refers to the main window of the application but refers to the window of the dialog box when the application displays a modal dialog box.
If the handles are different, you are using "a different instance of TS".
Norbert 
EDIT: Starting the application, closing it and restarting it will likely generate different window handles. So you have to make sure that you shutdown connections to the ActiveX Server properly before actually shutting down the application for good. This, of course, is recommended nevertheless, independent of this "issue". 
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • Enhancement request : Create object based upon existing

    It would be useful to be able to create a new object based upon the definition of an existing one (e.g. a GUI version of CTAS).
    (for those browsing the forums who haven't come accross the acronym before, CTAS = "Create table as select")

    Hmmm .... ok, you got me !
    But, I would say .... can we have a tickbox there for "metadata only" i.e. CTAS table with no data.

  • Create order based upon notification in NWBC / Portal

    Dear experts,
    How to create a maintenance order based upon a notification, using the POWL for notifications ?
    I am using NWBC and would like to create a maintenance order, based upon a notification put in process.
    In R/3, this works fine using transaction IW22 / IW28 and all info from the noticiation is copied in the new order.
    How can I get the same functionality using the role SAP_BPR_MAINTENANCE_TECH_12 ?
    Kind regards,
    Dirk

    Dirk,
       You should be able to select the Notification number from the POWL overview list and choose the "Create Order" push button on the Tollbar (along with display notification, change notification etc).
      What i have noticed is that once you are inside the notification from the Portal application, the create Order push button or functionality doesn't seem to exists. This is probably incomplete functionality taking into consideration the standard IW22 transaction /Or a  Bug  and maybe you could raise a OSS Note for the same.
    Regards
    Narasimhan

  • Can't create object for multi instance when using GetObject("myconfig1")

    Hello,
    I have the Indesign Server CS6 Multi Instance. I create an instance using the InDesign Server Windows Service:
    Port: 12000
    Args: -configuration myconfig1
    Now I tried in Visual Basic: GetObject("myconfig1")
    Then I get a can't create ActiveX component exception.
    Notes:
    The service "InDesignServerService x64" is running.
    The InDesign Server instance was started.
    I can access the instance via SOAP: http://localhost:12000/
    Why can I not create the object in Visual Basic?
    Thank you for help!
    Harald

    I found that you need to create the object if it does not already exist, to I implemented that with a try catch, try to get it and if you can't then create it. when you start it I also found it was slow so I have to put a pause in to wait for it. The below code should hopefully be enough to help.
      Private Sub AttachToInstance(ObjectName As String, InDesignAppPath As String, ByRef Restarted As Boolean)
            Try
                oInDesign = GetObject(ObjectName)
            Catch ex As Exception ' instance not running, start it
                Restarted = True
                StartInDesignInstance(ObjectName, InDesignAppPath)
                Threading.Thread.Sleep(5000)
                oInDesign = GetObject(ObjectName)
            End Try
        End Sub
        Private Sub StartInDesignInstance(ObjectName As String, InDesignAppPath As String)
            Dim ProcessProperties As New ProcessStartInfo
            ProcessProperties.FileName = "InDesignServer"
            ProcessProperties.Arguments = "-configuration " & ObjectName
            ProcessProperties.CreateNoWindow = True
            ProcessProperties.WorkingDirectory = InDesignAppPath
            Dim myProcess As Process = Process.Start(ProcessProperties)
        End Sub

  • ADF BC: Creating updatable VO based upon DB View with "instead of" trigger

    Hello all,
    I have got an interesting issue. I have an Oracle DB view that is used to hide some complexity in the underlying DB design (it does some unions). This view is updatable because we have created an "instead of" update trigger to update the correct table when a row is updated. This is working fine in SQL.
    Next, we have created an ADF Entity object based upon the view, specifying an appropriate PK for the DB View. Then, we have created an updatable VO based upon the EO. All well and good so far. The issue we have is in trying to commit changes to the DB - because the ADF BC framework is trying to lock the row to update (using SELECT ... FOR UPDATE), it's not working because of ORA-02014 - cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    This leads me to thinking about overridding doSelect() on the EO as hinted here http://radio.weblogs.com/0118231/stories/2005/07/28/differenceBetweenViewObjectSelectAndEntityDoselectMethod.html
    As a temporary test, we have over-ridden the EO's doSelect to call super.doSelect(false) and it does work, although we will have lost update issues as detailed in Steve's article.
    My questions:
    1). Is overriding doSelect() the correct thing here? Perhaps there is a better way of handling this problem? I do have a base EO class from which all of the EO's extend, so adding this behavior should be straightforward.
    2). Does anyone have example doSelect implementation? I am thinking of overriding doSelect for my EO and calling super.doSelect (lock=false), but then I need to deal with some possible exceptions, no?
    Kind regards,
    John

    Hi John,
    I have exactly the same issue as you experienced back in January. I have a complex data modelling requirement which requires the need to pivot rows into columns using ROW_NUMBER() and PARTITION clauses. To hide the complexity from the middle tier, I have created a database view and appropriate INSTEAD OF triggers and mapped my EO to the view. I have overriden the lock() method on the EO implementation class (to avoid ORA-02014) and would like to try the same solution you used with the pl/sql call to lock the record.
    My question is, how did you manage the release of the lock if the transaction was not rolled back or committed by your application i.e. if the user closed the browser for instance.
    In my naivity, I would like to think that the BC4J framework would release any locks for the database session when it found the servlet session to be terminated however my concern is that the lock would persist and cause complications.
    Any assistance greatly appreciated (if you would be willing to supply your lock() method and pl/sql procedure logic I would be even more grateful!).
    Many thanks,
    Dave
    London

  • Create object from AS3

    im trying to create objects based on number i input on a textbox
    here is the image and code :
    // Image
    // codes
    import flash.events.MouseEvent;
    var circle:Shape = new Shape();
    var i:int;
    var j:int;
    myBtn.label = "Show";
    var a:Number = Number(text1.text);
    myBtn.addEventListener (MouseEvent.CLICK,createCircle);
    function createCircle (event:MouseEvent):void{
        for (i = 1;i<=a;i++){
            for (j = 1;j<=a;j++){
                circle.graphics.beginFill(0xFF0000, 1);
                circle.graphics.lineStyle(5, 0x000000);
                circle.graphics.drawCircle(j*50 + j*20, i*50 + i*20, 25);
                circle.graphics.endFill();
                addChild(circle);
    can someone help me ??
    thanks

    i can apply the mc with tween already
    but the circle create tweening when other circle create which i want it to stop when it finish and then the other circle tween
    i try using array to the mc but i think i mess up in the code
    can some1 help me ??
    // here is the code
    import flash.events.MouseEvent;
    import flash.ui.Mouse;
    import fl.transitions.Tween;
    import fl.transitions.easing.Strong;
    import fl.transitions.TweenEvent;
    var i:int = 1;
    var a:int;
    var myMC:MovieClip = new MovieClip();
    var myTween:Tween;
    var myArray:Array = new Array();
    myMC.name = "mc1";
    myBtn.label = "Show";
    myBtn.addEventListener (MouseEvent.CLICK,showCircle);
    function timing (event:MouseEvent):void{
        a = int(text1.text);
        var myTimer:Timer = new Timer(500,a);
        myTimer.addEventListener(TimerEvent.TIMER,  createCircle);
        myTimer.start();
    function createCircle (event:Event):void{
        a = int(text1.text);
        myMC.graphics.beginFill(0xFF0000, 1);
        myMC.graphics.lineStyle(5, 0x000000);
        myMC.graphics.drawCircle(200, 150 + i*50 , 25);
        myMC.graphics.endFill();
        myArray.push(myMC);
        i++;
    function showCircle (e:MouseEvent):void{
            a = int(text1.text);
            var myTimer:Timer = new Timer(500,a);
            myTimer.addEventListener(TimerEvent.TIMER,  createCircle);
            myTimer.start();
            addChild (myMC);
            myTween = new Tween(myMC, "x", Strong.easeOut, 50, 400, 2, true);
    and the circle didnot restart when i input a new number to the inputbox
    for example when i first input 3 in the textbox, it create up to 3 circle
    when i change the number to 4 , the circle add 4 to the previous 3 circle rather than create new 4 circle
    how do i solve this ??
    thanks

  • Which is better creating view accessor based on view object or view instanc

    When creating view accessors whether in the entity object or in the view object, we have two options:
    1- create the view accessor based on a view object.
    2- create the view accessor based on a view instance.
    what are the differences between these two options?
    what are the cases where I should only use option 1 or option 2?
    which one is better?

    Hello Timo,
    I will try to explain my question better.
    when we create view accessor, after click on create new view accessor icon, the create view accessor window is opened, at the header of this window there is a statement says:
    Select a view object or shared view instance and shuttle it to the selected list to create a view accessor.
    and here is my concern, which one to use
    1- select a view object from one of the available view object and shuttle it to the selected list.
    2- select a view instance from the application module and shuttle it to selected area.
    If you have FOD sample (and I am sure you have it :) ), I see that oracle team has used both of them in different places, for examples
    1- in oracle.fodemo.storefront.entities.PersonEO all view accessors are created from view instance in SharedLookupService application module.
    <ViewAccessor
        Name="PersonTypesVA"
        ViewObjectName="oracle.fodemo.storefront.lookups.LookupsBaseVO"
        AMUsageName="SharedLookupService"
        ViewInstanceName="PersonTypes"/>is it because they are used to create LOV?
    2- in oracle.fodemo.storefront.entities.OrderEO the view accessor is created from a view object, not from instance inside application module.
        <ViewAccessor
        Name="OrdersVO"
        ViewObjectName="oracle.fodemo.storefront.store.queries.OrdersVO"/>I couldn't find the usage of this accessor?
    Hope it is clear now.

  • Create "Object" Type based on columns of a table

    Hi Experts
    is it possible to create an Object Type based on columns of a table?
    for example the syntax for creation of type is
    CREATE OR REPLACE TYPE temp_t
    AS OBJECT (ID number, code number)
    can we create a type that is based on columns of an existing table? so that we donot have to write down all the column names in each type as i have to create types based on 100 and above tables :-s
    Please help me out here!
    Best Regards

    You cannot do that Zia, check below code:
    SQL> create or replace type temp_t as object(object_name all_objects.object_name%TYPE);
      2  /
    Warning: Type created with compilation errors.
    SQL> sho err
    Errors for TYPE TEMP_T:
    LINE/COL ERROR
    0/0      PL/SQL: Compilation unit analysis terminated
    1/35     PLS-00201: identifier 'ALL_OBJECTS.OBJECT_NAME' must be declared

  • Create Project Web App Instance - Failed to find Project Site object. Are there any database mounted?

    Hi
    New Installation. Sharepoint 2013, Project Server 2013 and SQL Server 2008 SP1 (another box).
    When I try to create Project Web App Instance, I get 
    Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
     Followed by:
    Failed to provision site PWA with error: Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
    Already tried reinstalling the whole farm to no avail. Farm Admin account is used to do everything within this process.
    Thanks in anticipation.

    Hi
    I got the same error when provisioning the PWA
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-Project Server
    Date:          8/29/2013 11:58:12 AM
    Event ID:      6966
    Task Category: Provisioning
    Level:         Error
    Keywords:     
    User:          abc\administrator
    Computer:      mycomputer
    Description:
    Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
       at Microsoft.Office.Project.Server.Administration.ProvisionFeatureEventHandler.FeatureActivated(SPFeatureReceiverProperties properties)
       at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
       at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean
    fMarkOnly, SPFeatureDefinitionScope featdefScope)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
       at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId)
       at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureProvisioningFeature(SPSite site)
       at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings provset)'.
    Later found that the service application where I was trying to provision the PWA, it was not associated with the web-application.

  • How to create an album based upon date of importing photos

    today i imported over 2000 photos with dates accross three years time frame. how can i create an album based upon the date i imported the photos? or can i.
    if not, how would i add these pix to a specific album without going through the whole library some 15,000 photos strong now?

    Check out the Film Rolls ->
    View -> Film Rolls
    Each import creates a Roll, so the most recent one's should be easy to find. Select all and make an album from them.
    Regards
    TD

  • Creating objects in a second instance

    I have created a second instance through the console of a directory server, which has been configured with the same rootdn as the original.
    When I open up the console why in the new instance does it show the rootdn on the config tab but the original doesnt ......
    also ....
    why when i go into the second instance i try creating data objects for root suffixes ive created to mirror the original instance, does it create them under cn=config ......
    Thanks
    G

    Hi
    I have read that creating objects in a loop degrades
    performance. Can someone explain why this should be
    so?Every object creation takes time, so if you create
    lot of unnecessary temporary items in loop it degrades
    performance (so it is nothing loop specific).

  • Create maintenance order based upon notification in NWBC / Portal

    Dear experts,
    How to create a maintenance order based upon a notification, using the POWL for notifications ?
    I am using NWBC and would like to create a maintenance order, based upon a notification put in process.
    In R/3, this works fine using transaction IW22 / IW28 and all info from the noticiation is copied in the new order.
    How can I get the same functionality using  the role SAP_BPR_MAINTENANCE_TECH_12 ?
    Kind regards,
    Dirk

    Dirk,
       You should be able to select the Notification number from the POWL overview list and choose the "Create Order" push button on the Tollbar (along with display notification, change notification etc).
      What i have noticed is that once you are inside the notification from the Portal application, the create Order push button or functionality doesn't seem to exists. This is probably incomplete functionality taking into consideration the standard IW22 transaction /Or a  Bug  and maybe you could raise a OSS Note for the same.
    Regards
    Narasimhan

  • "OIP-04796 Unable to create object instance"

    I am using OO4O, version 3 for Oracle 8.1.7 on Windows with Visual Basic version 6.
    I am getting the intermittent errors "OIP-04796 Unable to create object instance" and also "Method createDynaset of _IOraDatabase failed" - I think both are related to one another and from the documentation for OO4O, "OIP-04796" relates to the client side object cache of the OraDatabase class. Reasoning that the client side object cache was too small I attempted to increase the relevant properties of the OraDatabase object using the following: -
    MyOraDatabaseObj.CacheOptimalSize = 400
    However, at run-time, this property of the OraDatabase object does not get set accordingly in the VB IDE and after several attempts I can't seem to set it. I have also tried setting the CacheMaximumSize property but to no avail.
    Can anybody indicate to me where I am going wrong and either with the setting of the above properties or with the error message in general if I am not on the right track with the cache properties. I don't suspect that it is my code because the problem "seems" to be intermittent.
    Any and all help would be greatly appreciated. If more info is required then just ask as this is pressing problem.
    TYIA
    Mark Grimshaw

    I am pretty sure the patches are available here. If you didn't explicitly install one then you have whatever the base release was.
    If they are not available here (I almost never look here first for a patch) they are certainly available in the MetaLink file library for OO4O.

  • Create Custom Mail Template-Setting up wfMessage based upon workflow

    Hi,
    I have some 4 workflows and each should send out an email as soon as it is triggered.I have created one template which has some metadata fields,I need to dynamically change the wfMessage and wfMailSubject based upon the workflow,i wanted to understand how can we set the value of these 2 variables in the template.Do i need to create a custom component for each workflow with resource Strings and set this value and create a template and call this template.Has anyone implemented anything like this before?

    Got you.
    I think it's a question what the template should serve for. Usually, you want to modify it to change the content of the message - you may add a logo, re-organize the email, etc.
    But often, you use variables wfMessage and wfMailSubject to parametrize the text and the subject of the message. Note that this is not mandatory, and you could modify the logic of the template so that those two variables are derived from other workflow content (something like move to the code of the template a code like) <$if dWfName like "Workflow1"$>
    <$wfMessage="Message for Workflow 1"$>
    <$elseif dWfName like "Workflow2"$>
    <$wfMessage="Message for Workflow 2"$>
    ...It will work, but somehow, I don't like it - I think these two should be parameters set up by workflow, not something contained in the template, but that is my opinion.

  • Data Selection for report based upon a 'Prompt Value'

    I want to report information in my report based upon a 'user input prompt value'
    for example:
    'Enter Shareholder Selection - A-Active, I-Inactive, B-Both Active and Inactive'
    if the user enters 'A', the report selects only active shareholders
    if the user enters 'I', the report selects only inactive shareholders
    if the user enters 'B' the report selects all shareholders, active and inactive
    the field in the database that this based upon is their total share value.
    if this field is greater than zero (>0) they are considerd 'active'
    if this field is equal to zero (=0) they are considered 'inactive'.
    I have tried creating some type of filter,  but am not having any luck. 
    I saw a few examples within the forums that I have tried without any luck....unfortunately most of the examples I've seen are base one only two choices.
    I'm sure I need to create some type of 'independant varible' but am not sure how to do that either.
    Any suggestions would be appreciated.
    Thanks.

    Hi Daryl,
    I Tried this unsuccessfully in DESKI . We can't Eliminate Rows having Empty Measure Values or Measure with 0 as values using Table Level Filter as FIlter can't FIlter rows based on Prompt value selection dynamically. Filters filter rows at a time and not based on 3 condition as Active, Inactive and Both. thus filters are of no use.
    I Tried this in WEBI, and it is working perfectly you donu2019t have to create any Object in Universe, you can do it using function UserResponse() at report level.
    Hence if you are comfortable using WEBI for Generating this report then Follow the steps.
    1. Create Report With Name and Shares Object. It will display all Shareholder Names and No.of shares they hold.
    2. Use Status Object in Query filter, use condition as u201CEqual Tou201D and Select prompt. It  contains Active, Inactive and Both as values.
    3. Report will Display all Shareholder names and No. of  shares  like 45, 789, 0, 4562 where 0 is inactive Shareholder and all other are active shareholder.
    4. Create Variable using Formula.
    =If(UserResponse("Enter Status:")="Active" And [Shares]>0;[Shares];If(UserResponse("Enter Status:")="Inactive" And [Shares]<=0;[Shares];If(UserResponse("Enter Status:")="Both";[Shares])))
    5. Remove Shares Object from the report and Put Variable created with Names of Shareholders.
    6. Select Table-> Properties-> Display-> Uncheck the Option u201CShow Rows with Empty Measure Valuesu201D
    7. Report will display Value correctly as per your Prompt value selection.
    I Hope this Helpsu2026
    Thanksu2026
    Pratik

Maybe you are looking for

  • Cannot Read Files off CD/DVD Drive

    I realize there are several similarly titled posts on this topic, but I have not found the problem I have.  Computer: Pavilion tx2000CTO.  O/S:  Vista Home Premium (all updates current).  Issue:  Some CD's and DVD's cannot be read completely.  I CAN

  • How to trap Cleared document from the Flat file

    Hi All, In the BDC In flat file, I am getting boths Document No ( Cleared & Non Cleared). While Uploading I need to check the Document No , which is clered is filtered & Only Those Document No which is not cleared is posted in the Transaction - F-53.

  • ITunes/Quicktime will not start.

    iTunes/Quicktime will not start. Nor will anything quicktime dependant start. (Like Adobe Go Live) I recently reformated one of my Windows PCs and reinstalled m$ windows xp pro. I begain installing nessacary software and when I was done with iTunes/Q

  • How to save to PDF-X

    The print shop I submit documents to for professional printing prefers the document in CYMK instead of RGB. Apparently there is no way built into Pages '09 to accomplish this task. Someone suggested going to "Print" and then to  "PDF" and then in the

  • Index entries disappear in chm output

    Product: TCS 1 (FM8 ver 0p277 + RH7 ver 7.03.001) All my text and index markers are created in FM and then imported into RH7. This works well, but the problem occurs when the FM index has a format similar to the following example: Commands: for stand