Data base with labview

please, can i us the labview 6.i to creat a data base?

Labview as a programming language can be used to communicate with a database, to add new recordsets to a database, to fetch values from a database.
There are several options you could use as the database core. E.g. some "open source", free databases as mysql, postgres, msde (ms "free" sql server) or you could interact with bigger databases from Oracle, DB2, MS SQLServer or probably even SAP.
The key point to this is how you communicate with the database, and there you could easily use the LabVIEW Database Connectivity Toolkit on a Windows platform.
What type of application would you like to write? Maybe other add-on modules to LabVIEW helps you further to implement in an easy way your applic
ation.
e.g.
LabVIEW for Datalogging and Supervisory Control
NI DIAdem
Configuration-Based Datalogger - NI VI Logger
If you are low on budget, you might get some help from this link: LabVIEW Open Source Tools (L.O.S.T.) - LabSQL
Hope this helps
Roland

Similar Messages

  • How to save data aquired with NI mydaq and save it in a data base using Labview?

    i have developped with labview an interface that can control automatic irrigation station using two sensors ( humidity sesonr and temperature sensor) so i want to save data aquired during a year in a data base so i can compare these results in the next year please help me to do that in my interface labview and thanks 
    Attachments:
    PFE.vi ‏223 KB

    There is a database toolkit for LabVIEW.  I don't think it is a free download however.  With the Data Manipulation toolkit, you can integrate with most databases that use the ODBC protocol.
    If you don;t need anything fancy, you can write the values out to file using the write/read spreadsheet VIs.  If the file is [COMMA] or [TAB] delimited, you can import it into your database with ease.
    Another approach is to format you output to a text file as SQL, and import the records that way.
    INSERT INTO TEMP_HUM_TBL (Temperature, Humidity, Txn_Date)
    VALUES (30, 95, 'Dec-24-2013');
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • Data base from Labview Base, possible?

    I would like to sent my generated testreport(.txt) into a database. So that every report from every test is stored in a Data Base.
    Is this possible with LabView Base 7.1 or do I have to buy Developer suite?
    How do you do this?
    Regards Fredrik C
    (Database newbie)

    There is an example VI which
    "This VI shows how to send data to an Access database through a macro.
    For more information, on Access macros refer to the Access manuals"
    No additional tookits would be required.
    Search for "Sending Data To Access.VI" from the examples

  • How to access two oracle data base with out DB link

    Hi,
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.
    Thanks,

    malarkandy wrote:
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.Yes. But that needs another network and application interface instead of a database link.
    The target database can implement PL/SQL web services. These can be called via HTTP.
    The local database can use UTL_HTTP to make a call to the target database's web service for accessing target database data.
    Both databases can use AQ (Advance Queues). This can be integrated with an application server's JMS queues.
    This enable one database to enqueue a request to the other database, and for that database to respond by sending data.
    There are numerous such type of interfaces that can be used. Some primitive. Some advanced. Some simple. Some complex.
    The easiest and most flexible mechanism is however a database link. And it does not make sense to disallow database links for security and management reasons, but allow JMS for example. The network infrastructure is the same for both methods. The network protocol is the same. The security issues and concerns are the same - except that JMS for example is significantly more moving parts and make configuration and security a lot more complex than using a database link.

  • New data base with adobe flex

    Hi  All,
    My Requiremenyty as below.
    I need to get the data from sap and from some third party softwares.  and need to build a web applicaation in adobe flex.
    i want put the data from sap and other systems into separate data base ( Like Oracle ).
    the data  from sap and other softwares can be schduled daily.  so we need build flex web appllication newly built oracle data base.
    Pleaae let me know how we can do?  is it possible?  we can i get the exact help?
    Regards,
    Kishan

    Hi mate!
    You can communicate your Flex app with SAP or another third-parties throw WebServices, RPC's or Remote Objects (java).
    For the communication with Oracle, there is a versión of Oracle which has WebServices to expose the operations; if not avaliable, you might need an application server (php, jsp, ...)
    This links may help you:
    http://www.nabble.com/-flex_india:15197--flex-sql-or-oracle-td20034201.html
    http://www.richappsconsulting.com/blog/blog-detail/integrating-flex-with-oracle-epg-using-xml/
    http://asql.mooska.pl/
    Hope it helps you
    Regards!
    Fran

  • Call function from data base with clob input parameter.

    Hello,
    In this project I use Jdev 11g.
    I call function from database.
    create or replace function get_fa_list (
    p_fa_id_list in clob
    return sys_refcursor
    is
    vCursor sys_refcursor;
    begin
    put_msg ('begin');
    if p_fa_id_list is null then
    put_msg ('CLOB is null!');
    else
    put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
    end if;
    put_msg ('Save');
    open vCursor for
    select rownum as id, s.*
    from (
    select f.latitude, f.longitude, count (distinct f.res_id) as res_count, count (*) as fa_count, 16711680 as color, res_concat_distinct (f.res_id) as station_list
    from mv_frequency_assignment f, table (SplitClob (p_fa_id_list, ',')) l
    where f.ext_system = 'BI' and
    f.ext_sys_id = l.column_value
    group by f.latitude, f.longitude
    ) s;
    put_msg ('Open and End');
    return vCursor;
    end get_fa_list;
    I use TopLink in ejb.
    i use follow code for call function and get result.
    public List<TmpResPoints> findAllPointsBI(String p_id){
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    uow.beginEarlyTransaction();
    StoredFunctionCall call = new StoredFunctionCall();
    call.setProcedureName("get_fa_list");
    call.useUnnamedCursorOutputAsResultSet();
    ClobDomain c = new ClobDomain(p_id);
    //System.out.println(c.toString());
    call.addNamedArgumentValue("p_fa_id_list", c);
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(TmpResPoints.class);
    query.setCall(call);
    List<TmpResPoints> result = (List<TmpResPoints>)uow.executeQuery(query);
    uow.commit();
    uow.release();
    return result;
    But size parameter "p_fa_id_list" is 0. (geting from temp table in Data base). this code in function >>
    if p_fa_id_list is null then
    put_msg ('CLOB is null!');
    else
    put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
    end if;)
    How I can call this function from dataBase and get result?
    thx,
    Demka.

    What is the SQL generated?
    The argument should just be the Clob value (a String) not the domain object.
    Also try addNamedArgument, and then pass the named argument to the query.
    James : http://www.eclipselink.org

  • Problem in selection from data base with RANGE-TABLE.

    Dear folks,
                   I am facing weird problem with range table in selection query.I have problem with bold part of code.Here when i give input to both ranges r_salesno,r_brandid then and the selection occurs ,when i put black in one of those it does not work.I haev passed Empty table to range if no inpiut in elements..although it does not work..I dont know why it is happening...By the i m using this code in Webdynpro ABAP.Please help points will be awarded..
    if  Stru_Cn_Selcrtr-ca_slsrl is not initial.
        wa_salesno-sign = 'I'.
        wa_salesno-option = 'EQ'.
        wa_salesno-LOW = Stru_Cn_Selcrtr-ca_slsrl.
        APPEND wa_salesno TO r_salesno.
        CLEAR : wa_salesno .
      else.
        wa_salesno-sign = 'I'.
        wa_salesno-option = 'EQ'.
        wa_salesno-LOW = space.
        APPEND wa_salesno TO r_salesno.
         CLEAR : wa_salesno .
      endif.
      if  Stru_Cn_Selcrtr-ca_brand is not initial.
        wa_brandid-sign = 'I'.
        wa_brandid-option = 'EQ'.
        wa_brandid-LOW = Stru_Cn_Selcrtr-ca_brand.
        APPEND  wa_brandid TO  r_brandid.
        CLEAR :  wa_brandid .
      else.
        wa_brandid-sign = 'I'.
        wa_brandid-option = 'EQ'.
         wa_brandid-LOW = space.
        APPEND wa_brandid  TO  r_brandid.
        CLEAR : wa_brandid  .
      endif.
    *If any of these are given then select data accordingly.
        <b>select * from ZNSLVWHDIMMD_LCL
                 into corresponding fields of table IT_VIEW
                 WHERE SALESRLNO in  r_salesno
    *             and   CREATEDBY in It_crtby_selopt
    *            and   STARTDATE in It_validfrm_selopt
    *             and   ENDDATE   in It_validto_selopt
    *             and  STATUS     in It_status_selopt1
                 and   BRANDID   in r_brandid.
    *             and   MODELNO   in It_model_selopt.</b>

    Hello Nirad
    Your coding is problematic. I assume that field SALESRLNO (of table ZNSLVWHDIMMD_LCL) probably means sales number (or sales order) and, thus, must not be empty. If this is correct then the first IF statement is probably wrong:
    if  Stru_Cn_Selcrtr-ca_slsrl is not initial.
        wa_salesno-sign = 'I'.
        wa_salesno-option = 'EQ'.
        wa_salesno-LOW = Stru_Cn_Selcrtr-ca_slsrl.
        APPEND wa_salesno TO r_salesno.
        CLEAR : wa_salesno .
      else.
        REFRESH: r_salesno.  " means: select all sales numbers
    " NOTE: If you fill the range like below this means that only sales order
    "            with no sales number (= ' ', space) should be select.
    " Thus, there will never be any sales order selected.
    *   wa_salesno-sign = 'I'.
    *   wa_salesno-option = 'EQ'.
    *   wa_salesno-LOW = space.
    *   APPEND wa_salesno TO r_salesno.
    *    CLEAR : wa_salesno .
      endif.
    The same logic applies to the second IF statement. If you want to select all BRANDID if none has been provided as selection criteria then code:
      if  Stru_Cn_Selcrtr-ca_brand is not initial.
        wa_brandid-sign = 'I'.
        wa_brandid-option = 'EQ'.
        wa_brandid-LOW = Stru_Cn_Selcrtr-ca_brand.
        APPEND  wa_brandid TO  r_brandid.
        CLEAR :  wa_brandid .
      else.
        REFRESH: r_brandid.  " means: select all BRANDID
    *    wa_brandid-sign = 'I'.
    *    wa_brandid-option = 'EQ'.
    *     wa_brandid-LOW = space.
    *    APPEND wa_brandid  TO  r_brandid.
    *    CLEAR : wa_brandid  .
      endif.
    Regards
      Uwe

  • Using Data Socket with LabView 7 Image Display

    I want to to connect the Image Display over the Data Socket, but its not working?

    Please be more specific. How are you trying to connect to the datasocket. is it over a network. same PC.
    Joe.
    "NOTHING IS EVER EASY"

  • Load file with encoding UTF-16 into data base with encodin UTF-8

    I want to load a bfile into a clob using dbms_lob.loadclobfromfile. My problem i that the encoding in the file is UTF-16 and the database has UTF-8.
    Is there a way to convert the character set.
    I have tried to set the bfile_csid parameter to
    NLS_CHARSET_ID('UTF8'),
    NLS_CHARSET_ID('UTF16') and
    NLS_CHARSET_ID('AL16UTF16'). None of them works.
    /Jonas

    I have checked the MSDN document that it states:
    SQL Server does not support code page 65001 (UTF-8 encoding).
    http://technet.microsoft.com/en-us/library/ms162802(v=sql.105).aspx

  • Testrail with Labview!

    Hi,
       Does anyone has successfully communicate Testrail data base with labview? I have faced "Accept header missing (use Accept: application\/json)"} error even though I put application/json in header file. Thanks in advance for your reply.
    With Regards,
    Tinwin

    On your development computer, click on Tools -> Build Application or Shared DLLs. Select Application and fill in the rest of the boxes with proper information (click Help button for more info). When all info is correctly filled, click on Build button. This will create an EXE file. On the other computer, install the Labview runtime engine. You can do this by using your regular Labview developer CD. Run the setup program but, when prompted for items to install, uncheck everything except the runtime engine box. Proceed with setup. This will install only the runtime engine on your target computer. Transfer your EXE file to the target computer. Run the EXE file, it should work.
    - tbob
    Inventor of the WORM Global

  • Problem of security using ADO from Labview to connect to Access 2000 Data Base

    I have a problem using ADO from Labview to connect to Access 2000 Data Base.
    First I open a ADO_DB_Engine and create a Workspace as an ODBCDirect. After I execute the open_data_base using the workspace. Here you can specify the parameter connect with /type of connection / user / password.
    The problem is the following:
    Although you configure a password for the Administrator user in Access, you can read/writte to data base from Labview using ADO without any security and without putting the user and password in the parameter connect. I need to access with security to data base using users and permissions but it seems that the parameter connect does not operate.
    I attach
    you a example of the vis and database. Remember create a ODBC connect with BD3.mdb
    Thanks a lot
    Peter Mst
    Attachments:
    SECURITY.zip ‏70 KB
    BD3.mdb ‏112 KB

    Hi Kahn,
    If you use ADODB_connection -> Connection.Open and set in connection string :
    "Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDBystem Database=c:\.....\Protegida5.mdw; Password=pepe;user ID=jose; Data Source:c:\......\BD5.mdb";
    and after connection.execute ->
    INSERT INTO tabla1 VALUES (5,'XXX'
    you will be able to access to the database with security using the provider=Microsoft.Jet.OLEDB.4.0. With this provider you have to use the path and the name of the database file c:\.....\mdb file. From this way the problem is solved. (SEE SAMPLE_ADO_W2_JET.VI).
    BD5.mdb have the following administrator user: user:jose / passwordepe (Protegida5.mdw)
    The problem is when you want to
    use ODBC and DSN. The name of this ODBC Provider is MSDASQL;. If you use this type of connection you can not enter to the database I attach you.
    This database has a new administrator owner. I deleted the default administrator. If you support the default administrator you can connect to database by ODBC / DSN but the security disappear because you can always enter to database with any password, user o PC.
    FINALLY I HAVE 3 QUESTIONS FOR Application Engineers of National Instruments or someone who knows these subjects before deciding the best way to connect locally o remotely with security to Access from Labview:
    1.- Is it possible to enter to Database BD5.mdb from ODBC and DSN with this owner?
    2.- I want to connect remotely to Access database too. Is it possible to use Microsoft.Jet.OLEDB.4.0 using the path (.mdb file) without DSN?
    3. Which is the optimal Provider for Microsoft Access?
    I thank you beforehand for your technical support.
    Peter Mst.
    Attachments:
    BD5.mdb ‏116 KB
    Protegida5.mdw ‏112 KB
    sample_ADO_W2_JET.vi ‏45 KB

  • 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

  • How to trigger pop-up window in report and update data base from report

    Hi All,
    I have a requirement, in a report output list to trigger a pop up window with some rejection codes corresponding to each sales order when i select from the output list. Also i need to update data base by selecting one of the rejection code in the pop-up window list for that sales order. Can any one please let me know how to achive this.
    Also, i have check boxes for each record in the output list. Also, i have added one more check box as "Select All'. When select 'Sleect All' check box , all check boxes need to be checked, how to achieve this. PLease let me know.
    Thanks in advance.
    Regards,
    Rajesh

    Hi check this code of editable ALV report... I updated the data base with the changes made..in the editable ALV
    *& Report ZJAY_EDIT_ALV
    REPORT zjay_edit_alv.
    * TYPE-POOLS *
    TYPE-POOLS: slis.
    * INTERNAL TABLES/WORK AREAS/VARIABLES
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
    i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
    w_field TYPE slis_fieldcat_alv,
    p_table LIKE dd02l-tabname,
    dy_table TYPE REF TO data,
    dy_tab TYPE REF TO data,
    dy_line TYPE REF TO data.
    * FIELD-SYMBOLS *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
    <dyn_wa> TYPE ANY,
    <dyn_field> TYPE ANY,
    <dyn_tab_temp> TYPE STANDARD TABLE.
    * SELECTION SCREEN *
    PARAMETERS: tabname(30) TYPE c DEFAULT 'MARA',
    lines(5) TYPE n DEFAULT 7.
    * START-OF-SELECTION *
    START-OF-SELECTION.
    * Storing table name
    p_table = tabname.
    * Create internal table dynamically with the stucture of table name
    * entered in the selection screen
    CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_table->* TO <dyn_table>.
    IF sy-subrc <> 0.
    MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    * Create workarea for the table
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    ASSIGN dy_line->* TO <dyn_wa>.
    * Create another temp. table
    CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_tab->* TO <dyn_tab_temp>.
    SORT i_fieldcat BY col_pos.
    * Select data from table
    SELECT * FROM (p_table)
    INTO TABLE <dyn_table>
    UP TO lines ROWS.
    REFRESH <dyn_tab_temp>.
    * Display report
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    i_callback_user_command = 'USER_COMMAND'
    i_callback_pf_status_set = 'SET_PF_STATUS'
    TABLES
    t_outtab = <dyn_table>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *& Form SET_PF_STATUS
    * Setting custom PF-Status
    * -->RT_EXTAB Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
    ENDFORM. "SET_PF_STATUS
    *& Form user_command
    * Handling custom function codes
    * -->R_UCOMM Function code value
    * -->RS_SELFIELD Info. of cursor position in ALV
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    * Local data declaration
    DATA: li_tab TYPE REF TO data,
    l_line TYPE REF TO data.
    * Local field-symbols
    FIELD-SYMBOLS:<l_tab> TYPE table,
    <l_wa> TYPE ANY.
    * Create table
    CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
    CREATE DATA l_line LIKE LINE OF <l_tab>.
    ASSIGN l_line->* TO <l_wa>.
    CASE r_ucomm.
    * When a record is selected
    WHEN '&IC1'.
    * Read the selected record
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
    rs_selfield-tabindex.
    IF sy-subrc = 0.
    * Store the record in an internal table
    APPEND <dyn_wa> TO <l_tab>.
    * Fetch the field catalog info
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = p_table
    CHANGING
    ct_fieldcat = i_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Make all the fields input enabled except key fields
    w_field-input = 'X'.
    MODIFY i_fieldcat FROM w_field TRANSPORTING input
    WHERE key IS INITIAL.
    ENDIF.
    * Display the record for editing purpose
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    it_fieldcat = i_fieldcat
    i_screen_start_column = 10
    i_screen_start_line = 15
    i_screen_end_column = 200
    i_screen_end_line = 20
    TABLES
    t_outtab = <l_tab>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    * Read the modified data
    READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
    * If the record is changed then track its index no.
    * and populate it in an internal table for future
    * action
    IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
    <dyn_wa> = <l_wa>.
    i_index = rs_selfield-tabindex.
    APPEND i_index.
    ENDIF.
    ENDIF.
    ENDIF.
    * When save button is pressed
    WHEN 'SAVE'.
    * Sort the index table
    SORT i_index.
    * Delete all duplicate records
    DELETE ADJACENT DUPLICATES FROM i_index.
    LOOP AT i_index.
    * Find out the changes in the internal table
    * and populate these changes in another internal table
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
    IF sy-subrc = 0.
    APPEND <dyn_wa> TO <dyn_tab_temp>.
    ENDIF.
    ENDLOOP.
    * Lock the table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Modify the database table with these changes
    MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
    REFRESH <dyn_tab_temp>.
    * Unlock the table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table.
    ENDIF.
    ENDCASE.
    rs_selfield-refresh = 'X'.
    ENDFORM. "user_command

  • I'm looking for a decent CRM app, so I can load my customer data base

    HI I'm looking for a CRM app or package, just started using my air for business and would like to have my customer data base with me handy
    for pulling up local customers and being able to enter some data sales related or just comments regarding conversations and topics talked about so I can follow up ect!
    any suggestions would be appreciated!
    thanks, Lee.

    Hi Lee what sort of database are you looking at also what sort of business do you run ?
    I have a CRM Package that is native to mac and pc and is built off of filemaker it is normally targeted at Recruitment businesses.
    Drop me a line if you wanna chat about it!
    Sammie

  • Get data from a Data Base in MySQL

    Hi guys,
    I'm developing an app for my exam at school. In this app I need to query my Data Base to get my data and to create a table.
    The purpose of my app is to create a list of songs that a DJ has played during a concert and automatically create a table with the song titles, artist name and date of the concert. All of these information are already stored in the Data Base.
    I created an interface in Xcode where the user types in the DJ name and the date. I want to query the Data Base with these information and create a table that can be view directly on the iPhone. I think that I can send the text contained in the text field to a PHP page and then the PHP page does the query.
    Is it possible doing this? Can you help me with the code?
    If you need any explanation just ask me.
    Thank you very much!
    Angelo

    Thanks for the reply, I found the problem, i was returning no.sentDate in the form YYYY-MM-DD and method getTime doesn't like so it was returning null, so what I have done was cast(no.sentDate as datetime) and also store the difference of the dates as a long variable as I need the difference between the dates not the day of the month.
    My code now looks like this:
    conWorkPartyID = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
    String sWorkOrderID = "select co.orderPartyid, no.workOrderListPartyid, wl.workOrdListDesc, cast(no.sentDate as datetime) as newDate from contractorOrders as co "+
    "left join newOrders as no on no.orderPartyid = co.orderPartyid "+
    "left join workOrderList as wl on wl.workOrderListPartyID = no.workOrderListPartyid "+
    "where co.flagSentToContractor = 0 and co.contractorPartyid =" + sCompany;
    cWorkPartyID = conWorkPartyID.executeQuery(sWorkOrderID);
    while(cWorkPartyID.next()){              
    Object x = cWorkPartyID.getObject("co.orderPartyid");
    Object y = cWorkPartyID.getObject("no.workOrderListPartyid");
    Object z = cWorkPartyID.getObject("wl.workOrdListDesc");
    Date dateTest = cWorkPartyID.getDate("newDate");
    Date Now = new Date();
    System.out.println("dateTest is: " + dateTest.getTime());
    long dif = ((Now.getTime() - dateTest.getTime())/86400000);// milliseconds to days
    System.out.println("Order PartyID that require your attention is : "+ x + " and workOrderPartyid: " + y +" and WorkOrderListDesc: "
    + z + " and the sent date is: "+ dateTest + "and the difference between the insertDate and the today is in days: "
    + dif);
    cWorkPartyID.close();
    Any other suggestions are welcome.
    Thanks for answering so soon.
    Good night!

Maybe you are looking for

  • How do I check Business object set type for a particular field

    Hi, I have a requirement to make the  DESCRIPTION field editable  for Internal Goods and Service .I have done it for Limit shopping cart with following details in the below configuration Goto SPRO->SAP Supplier Relation ship Management               

  • Best video format for converting DVD to NAS for widely sharing

    Summary: The article shows you with an easy workaround for copying DVD to NAS for streaming by ripping DVD to NAS friendly video format on Mac and Windows I recently purchased a NAS to store all my music/photos etc on. I can stream stuff to my iPhone

  • Click checkbox on alv grid

    hi all, Is there any way to handle the single click/tick on checkbox. Is there user command on that? For now, if we will click on the checkbox, the changes made on it does not reflect. I checked on the debugging mode, checkbox is not populated/ marke

  • Activating Flash paper??

    Hi, I have Studio 8 and have tried repeatedly to get flash paper to work. Did I need to do a separate activation for this application? All the other Studio apps work fine. When I try to convert a small word doc to flash/swf or pdf the process looks l

  • Filtering by date or date range by using FilterCriteria on a Table

    I am able to use the built-in feature of Table to filter the rows based on a text field (i.e display only those rows that has a certain value of a text field). Here is an example code:             CompareFilterCriteria criteria1 = new CompareFilterCr