Query Data Finder Server with ActiveX

I haven't been able to find much resources on how to use ActiveX to Query a Data Finder Server.  I know that this is all supposed to be done with the ToCommand but I have no idea how it is done beyond this.  Can someone give me some direction as to what commands are needed to Open a Data Finder, Create a Query, Merge Queries, and get resulting file paths?
Thanks,
David Vanleeuwen

Hi Djvanlee,
So they are not ActiveX commands, you would use VBScript Commands with a ToCommand reference writing to DIAdem through invoke nodes.  Are you using LabVIEW with the ToCommand reference?  
An example of this can be found by opening up the DIAdem - Example Finder by going to Help>>Examples and it will be on the Context tab under the directory Examples>>Create Scripts>>Using Interfaces>>Controlling DIAdem from LabVIEW.  Then the commands can be found in the DIAdem Help on the Contents tab by going to Programming Reference>>Object Oriented Script Interfaces>>DIAdem NAVIGATOR>>Methods.  The methods you would reference are labeled as <DataFinder>.  It looks like the main commands you would need are:
ConnectDataFinder()
CreateQuery()
Load Query()
SaveQuery()  \\Note when you save the query you will have to indicate the path.
If you are looking for a good example of programmatically using the DataFinder in the script tab in DIAdem you can find this in the ExampleFinder on the Contents tab at "Extending Functionalities with Scripts>>Context Menu for the Search Results of the DataFinder".  The ResultsList_Menus_Add.VBS connects to the DataFinder programmatically and loads a query.
Peter T
Applications Engineer
National Instruments

Similar Messages

  • Best Practice for SAP PI installation to share Data Base server with other

    Hi All,
    We are going for PI three tire installation but now I need some best practice document for PI installation should share Data base with other Non-SAP Application or not. I never see SAP PI install on Data base server which has other Application sharing. I do not know what is best practice but I am sure sharing data base server with other non-sap application doesnu2019t look good means not clean architecture, so I need some SAP document for best practice to get it approve from management. If somebody has any document link please let me know.
    With regards
    Sunil

    You should not mix different apps into one database.
    If you have a standard database license provided by SAP, then this is not allowed. See these sap notes for details:
    [581312 - Oracle database: licensing restrictions|https://service.sap.com/sap/bc/bsp/spn/sapnotes/index2.htm?numm=581312]
    [105047 - Support for Oracle functions in the SAP environment|https://service.sap.com/sap/bc/bsp/spn/sapnotes/index2.htm?numm=105047] -> number 23
          23. External data in the SAP database
    Must be covered by an acquired database license (Note 581312).
    Permitted for administration tools and monitoring tools.
    In addition, we do not recommend to use an SAP database with non-SAP software, since this constellation has considerable disadvantages
    Regards, Michael

  • Query to find records with more than 2 decimal places

    I have written the below query to find records with more than 2 decimal places, but it is returning records with decimal places 1 & 2.
    The datatype of the AMT column is NUMBER (without any precision).
    SELECT amt  FROM amount_table
    WHERE substr(amt, instr(amt, '.')) LIKE '.%'
           AND length(substr(amt, instr(amt, '.') + 1)) > 2Output:-
    AMT
    *41591.1*
    *275684.82*
    *64491.59*
    *3320.01*
    *6273.68*
    *27814.18*
    *30326.79*
    131.8413635
    162.5352898
    208.5203816
    8863.314632
    22551.27856
    74.716992
    890.0158441
    2622.299682
    831.6683841
    *1743.14*
    2328.195877
    3132.453438
    5159.827334
    3.236234727
    37.784
    Thanks

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    create table amount_table
      LINE_NUMBER        NUMBER not null,
      FEE_AMT            NUMBER not null
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60208, 41591.1);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60213, 275684.82);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (60238, 64491.59);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (63026, 3320.01);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (59906, 6273.68);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (83111, 27814.18);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (83114, 30326.79);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112395, 131.8413634682);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112399, 162.5352898104);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112402, 208.5203815738);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112403, 8863.3146321954);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112406, 22551.2785551322);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112407, 74.716992);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112410, 890.015844079);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112411, 2622.2996817048);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112414, 831.6683840698);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112415, 1743.14);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112418, 2328.1958771886);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112419, 3132.4534379886);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112422, 5159.8273341686);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112423, 3.2362347266);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112426, 37.784);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112427, 198.7423503696);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112430, 0.7220848332);
    insert into amount_table (LINE_NUMBER, FEE_AMT)
    values (2112433, 12.4149375254);

  • Advice with a query to find Accounts with activities within a given period ONLY

    Hello there,
    I am relatively new to Microsoft T-SQL and I was wondering if someone could help shed some light into a requirement I got...
    I have two tables in a database. One with accounts, and another with activities for such accounts. He is a simple diagram:
    *NOTE: Dates are in the DD/MM/YYYY format.
    Here is what I need to do:
    I need to get a list of all the accounts where the LAST activity was created in a date range, along with a count of activities that fall in such range. The idea behind this is to find out accounts with no activity after a certain period.
    I can certainly accounts with activities in a given range -- but that does not mean that there was no activities after the range.
    For example, if I look for Accounts with activities between Feb/2014 and Mar/2014, this query should NOT return the Contoso account, because it ha an activity after Mar/2014 (i.e.: Meeting with John on 15/Apr/14).
    Another example: If I query accounts with activities from 01/Jan/2014 and 03/Apr/2014, it should ONLY return the Adventureworks account:
    Adventureworks (3)
    [the number in parenthesis is the count of activities in that given time]
    This is because all other accounts had activities after 03/Apr/2014.
    Could someone please advise the best way to construct this query?
    Thanks in advance for the help!
    Regards,
    P.

    SELECT * FROM tbl WHERE CreatiinDate BETWEEN @firstactivities AND  lastactivites
    AND NOT EXISTS 
    (SELECT * FROM tbl t WHERE CreatiinDate>=@lastactivites
    AND
    tbl.AccountID=T.AccountID )
    OR
    SELECT * FROM tbl WHERE
    AccountID  NOT IN (SELECT
    AccountID FROM
    tbl t WHERE CreatiinDate>@lastactivites) 
    AND CreationDate BETWEEN
    @firstactivities AND  lastactivites
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Invoke-webrequest doesn't comeout when posting data on server with -InFile flag and file size is more than 820 MB

    I am using invoke-webrequest command to load a file on server with POST command, and the file does get loaded. However the command hangs in console until I hit enter.
    Here's what I m executing: 
    Invoke-RestMethod -Uri $url -Method POST -ContentType $ContentType -Headers $headerHash -InFile $filePath  -TimeoutSec $timeOut
    I am running powershell 3.0 on win2k12.
    I ran the command with Verbose on, and it ask for confirmation to run the command as below. However when I provided -confirm:$true, invoke-webrequest suggests that there's no confirm command. I am not sure how to proceed.
    Confirm
    Continue with this operation?
    [Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"):

    Hi Varun,
    Is there any update ?
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Converting Oracle query to Sql Server with date manipulation

    The following SSIS statement works great in Oracle, and it parses successfully in the "Sql Task" window. In Oracle it returns
    this result:
    FROM_DT              THRU_DT
    16-Jan-2014      23-Jan-2014
    select
    case
    when to_char(to_date(sysdate,'dd-mon-yyyy'),'dd') <=7 then to_date('24'||to_char(add_months(sysdate,-1),'mmyyyy'),'ddmmyyyy')
    when to_char(to_date(sysdate,'dd-mon-yyyy'),'dd') <=15 then to_date('01'||to_char(sysdate,'mmyyyy'),'ddmmyyyy')
    when to_char(to_date(sysdate,'dd-mon-yyyy'),'dd') <=23 then to_date('08'||to_char(sysdate,'mmyyyy'),'ddmmyyyy')
    else to_date('16'||to_char(sysdate,'mmyyyy'),'ddmmyyyy')
    end as from_dt,
    case
    when to_char(to_date(sysdate,'dd-mon-yyyy'),'dd') <=7 then trunc(last_day(add_months(sysdate,-1)))
    when to_char(to_date(sysdate,'dd-mon-yyyy'),'dd') <=15 then to_date('07'||to_char(sysdate,'mmyyyy'),'ddmmyyyy')
    when to_char(to_date(sysdate,'dd-mon-yyyy'),'dd') <=23 then to_date('15'||to_char(sysdate,'mmyyyy'),'ddmmyyyy')
    else to_date('23'||to_char(sysdate,'mmyyyy'),'ddmmyyyy')
    end as thru_dt
    from sys.dual
    How can I convert this to Sql Server ?

    >>You mean you get the data from Oracle and tries to insert it into SQL Server?
    - no, sorry, I want to convert the syntax to Sql Server
    >>Are
    you running the query in OLEDB provider connected to the Oracle's database?
    - yes, this works fine now (after fixing this redundancy:
    to_char(to_date(sysdate,'dd-mon-yyyy'),'dd')change toto_char(sysdate,'dd')

  • Why can't i use "INNER JOIN" in a query for SQL Server with JDBC??????

    Hi,
    I'm trying to execute some SQL queries and I just don't understand what's wrong.
    I�m using Tomcat and SQL Server in order to do this, but when I�m try to execute a query with a INNER JOIN statements Tomcat raise a SQL exception... at the very first time I thought there was a problem with database connection but I realize that a simple query to a table works pretty well. then I found out some problems with JDBC:ODBC.... so I install JDBC for SQL Server 2000 and test with the same simple query and works..... so, I come to a conclusion.... INNER JOIN or JOIN statements can't be used in JDBC..... please... somebody tell I�m wrong and give me a hand...
    I'm using TOMCAT 4 and JDK 1.4 SQL Server 2000
    Error occurs when executeQuery() is called.... not prepareStatement().... ??????
    Driver DriverRecResult = (Driver)Class.forName(driver).newInstance();
    Connection ConnRecResult = DriverManager.getConnection(DSN,user,password);
    PreparedStatement StatementRecResult = ConnRecResult.prepareStatement(query);
    ResultSet RecResult = StatementRecResult.executeQuery(); <---- Exception raise here
    So much tahnks in advance,

    That's exactly what I think, driver it's raising the exception, but I don't know why.... i test the same query with INNER JOIN directly from SQL Query Analyser and it's works perfectly, my problem ain't SQL, but JSP and JDBC 'cause i'm a newbie about these issues.
    Common sense tell me possible problems lie in SQLServer drivers 'cause i run the same pages on JRUN through jdbc:odbc and do works well, but by now i just depend on Tomcat.....
    I've installed SQL Server drivers for JDBC but i just find it doesn't work fully... could be the version of JDK i've installed? what version do i need?
    ( I'm running Tomcat 4 with JDK 1.4 & SQL Server 2000 W2K )
    thanks for reply.

  • Backend query to find metrics with thresholds

    Hi,
    Is there a way to query the backend tables in repository database to find the metrics with thresholds on a database.I want to findout the missing warning/critical thresholds for all the targets.Any inputs for this may be helpful to me.
    Thanks.

    You might want to create a User Deinfed Metric that does a query on the SYSMAN schema to find out.
    Checkout
    Oracle® Enterprise Manager Extensibility Guide
    10g Release 5 (10.2.0.5)
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b40007/toc.htm
    For description of all SYSMAN views to select your data
    Regards
    Rob
    http://oemgc.wordpress.com

  • Receving Error 383 while Querying Data finder

    Hi,
    We have a script (vbs) that runs in  Diadem and queries a Datafinder (server edition). After adding some error handling code, we encountered the following error:
                                          Error Description: An error occurred during the search. The query may contain at least one invalid property.        Number: 383      Source: false.*
                * Now according to the message above, we can extract that there is a property or property value (of the query) that is/are wrong, but see the following line of this message please.
    Once we trapped this error, we log and save the queries (in TDQ files) that were being used at the moment that the error ocurred. When we load this query files, no errors are ocurring. We've being troubleshooting this issue, but we haven't find the root cause yet. Any guidance, tip or help will be greatly appreciated.

    Hi manny,
    That sounds like a property data type issue to me.  In rare cases saving a condition from DIAdem to a *.tdq file can cause the data type of the property in that condition to change.  Can you try reducing the number of conditions to just one and determine which condition is the culprit?  Then ask yourself what operator you're using in that condition-- if it's "=" or "<>" then it supports any data type.  If it's any other condition, then it could run afoul of a string data type.  Also, you could have a datetime property that is not optimized in the DataFinder which could be considered an invalid property.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Query to find tables with excessive initial extent settings

    After loading a database dump we found many tables occupying large space due to large initial extents storage parameter but with very few rows and am trying to determine if it would be worth the effort to reorganize the entire schema. In other words, we are looking for a query to compare the estimated actual space that would be occupied by the table rows vs. the current size to see the space savings if we were to reorganize.
    I hacked out a script to calculate the estimated size using the table stats (or 64K if estimate is lower) and compared that vs. the extents allocated to each table but this seems a rather inexact way of doing it. Is there a more accurate approach?
    Doing this on Oracle database 10.2.0.4 on Windows Server 2003 SE
    SELECT a.table_name,
               b.table_size_MB,
               ROUND((a.num_rows * a.avg_row_len) / (1024 * 1024),2) calc_size_MB, 
               b.table_size_MB - GREATEST(ROUND((a.num_rows * a.avg_row_len) / (1024 * 1024),2), 0.0625) savings_MB
      FROM dba_tables a,
          (SELECT segment_name, sum(bytes)/(1024*1024) table_size_MB
             FROM dba_extents
            WHERE tablespace_name like 'PMDX' and segment_type = 'TABLE'
            GROUP BY segment_name) b
    WHERE a.owner = 'CAS' and a.table_name = b.segment_name
    ORDER BY b.table_size_MB desc
    TABLE_NAME                     TABLE_SIZE_MB CALC_SIZE_MB SAVINGS_MB
    TPM06_POL_DATA_WRK_PREV                  640       493.46     146.54
    TPM06_POL_DATA_WRK_CURR                  640       496.57     143.43
    TPM06_POL_DATA_201006                    640        496.8      143.2
    TPM06_POL_DATA_201005                    640       494.87     145.13
    TPM06_POL_DATA_201004                    640       490.45     149.55
    TPM07_MOV_DTLS_WRK                       256       198.66      57.34
    ...

    Hi,
    Didn't you check the dba_extents view with respect to the tables which you estimated.
    After loading a database dump we found many tables occupying large space due to large initial extents storage parameterYou might have modified the initial extent size before to your load by pre-created tables ,which might helped out with current situation prior to this as you might be well known with your current database. Does the segement using Autoallocate or Uniform. What is the block size of DB.
    - Pavan Kumar N

  • SCCM 2012 Query to find units with IPv6 Enabled?

    We've found a need to locate computers that may have IPv6 enabled for audit purposes, and then we'll disable them at a later date.
    Has anyone been able to create a successful query in SCCM 2012 to get that information? 
    I found this but it spit back the IPv4 info for all the units in our device collection, plus it's for SCCM 2007. http://www.myitforum.com/forums/Query-for-systems-with-IPv6-enabled-m227020.aspx
    Appreciate any input, thanks!
    This topic first appeared in the Spiceworks Community

    If you're using % in the value field the operator must be "Like" . In your case, the query should look like
    select SMS_R_USER.ResourceID,SMS_R_USER.ResourceType,SMS_R_USER.Name,SMS_R_USER.UniqueUserName,SMS_R_USER.WindowsNTDomain from SMS_R_User where SMS_R_User.UserPrincipalName Like
    "TQA%" order by SMS_R_User.UserPrincipalName
    Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. Delphin

  • IBook G3 Dual USB Not Finding Server With Wireless Internet

    I have an iBook G3 Dual USB that has been working fine, then all of a sudden we could no longer get web sites to come up. It keeps saying server not found. I am using a Linksy wireless router and have cable internet.
    I also have a desktop Mac that can still get on the net ok. It is plugged into the router by hardline. I unplugged the ethernet cable from the desktop Mac and plugged it into the iBook and still can not get online.
    Anyone have any suggestions why I can no longer get on the net? We have not changed any settings. One minute it was fine, the next nothing.
    When I go into AirPort, it is showing a strong signal.
    Any ideas?
    Thanks,
    mphi55
    Message was edited by: Michael Howard6
    Message was edited by: Michael Howard6

    When I replied to your latest post you had indicated that you were still having problems getting on the Internet through a hard line. I see that that has changed.
    Given the new data I think you are on the right path. If you zapped your PRAM and everthing is fine then disregard the rest of this message.
    If things still don't work right...
    New suggestion. Check the router and be sure the antennaes are secured to the back of the router and visually check them for signs of damage. If all looks good then cycle the router (if you have not done so already) and see if that helps. Its a long shot, but its worth a try.
    If you are still having problems then taking the iBook to work and seeing if you can gain access to the Internet through your wireless network is a good idea (as long as the network is open). If you can get on-line then the router at home is suspect. If not then the card is suspect.
    One last suggestion for the Mac. If you can, use another Airport card in your iBook. If you can get on-line with a different card then you know there is a problem with the other card and not the router. If you are still have problems getting on-line with a differemt card then getting another router may solve the issue.

  • Query to find numbers with dashes

    Help. I want to write a query that will return all the numbers in my table that have dashes (-) in positions 5, 8 and 12. I tried using the INSTR function, with the positions, but do not get the desired result.
    All suggestions are welcome!

    SQL> create table y as select '1234-67-901-34' y from dual;
    Table created.
    SQL> select to_number(x) from (select replace(y,'-') x from y where substr(y,5,1)='-' and substr(y,8,1)='-' and substr(y,12,1)='-')
    TO_NUMBER(X)
    12346790134

  • Query to find SQL with changed plans

    I am trying to find out which SQL statements have changed plans since they were first executed.
    I'm trying to run this on all databases from 9i upwards and I am assuming that I have no licensed access to the AWR. However, Statspack is installed on all databases. (So querying things like STATS$SQL_PLAN is fine).
    I am having difficulty understanding what HASH_VALUE, OLD_HASH_VALUE and PLAN_HASH_VALUE are, and how they can be used to help answer the problem. I am also trying not to use SQL_ID, since that column isn't there in 9i (I think), and I'd like something that is generically usable from 9i to 11g, if at all possible.
    Any hints, please.
    Edited by: Catfive Lander on May 14, 2012 12:01 AM

    Hi Sakshi,
    Try out this query if it can help you !
    SELECT a.user_name, a.description, c.responsibility_name, c.creation_date as ASSIGNED_DATE>FROM apps.fnd_user a,
    >apps.fnd_user_resp_groups b,
    >apps.fnd_responsibility_vl c
    >WHERE a.user_id = b.user_id
    >AND b.responsibility_id = c.responsibility_id
    >AND a.creation_date < = '01-JUN-07'
    ORDER BY a.user_name;Thanks,
    Anchorage :)

  • SQL Query - To Find Users with end dated responsibilities

    Oracle Apps ver: 11.5.10.2
    Oracle DB - 9i
    How can i list users and the access assigned to them for a specific division irrespective of the responsibility being end dated at responsibility level

    Hi Sakshi,
    Try out this query if it can help you !
    SELECT a.user_name, a.description, c.responsibility_name, c.creation_date as ASSIGNED_DATE>FROM apps.fnd_user a,
    >apps.fnd_user_resp_groups b,
    >apps.fnd_responsibility_vl c
    >WHERE a.user_id = b.user_id
    >AND b.responsibility_id = c.responsibility_id
    >AND a.creation_date < = '01-JUN-07'
    ORDER BY a.user_name;Thanks,
    Anchorage :)

Maybe you are looking for