Problem with stored procedure and validation

I have the following stored procedure:

create or replace PROCEDURE SOME_PROC)

/*

Some settings

*/

) AS

NUMBER of errors

BEGIN

errors: = FN_CHECK_BUSINESS_RULE_1 (/ * some args * /);

if(Errors > 0) then

raise_application_error (ERR_CONSTANTS. SOME_ERROR_NUMBER, ERR_CONSTANTS. SOME_ERROR_MESSAGE);

end if;

INSERT INTO une_table (/ * columns * /) VALUES (/ * values * /);

END SOME_PROC;

Because the business rule 1 is placed inside the stored procedure I can't check it out without calling the stored procedure.

I need to call the stored procedure 10 times with a different set of parameters and validation of the changes only after all calls to the stored procedure

are successful. I want to show the user all the errors that occurred during the stored procedure calls. If for a first example of stored procedure call

succeeds and a second failure no data has to be stored in a database.

How to prevent the stored procedure for insert lines until I call the method commit of ApplicationModule?

Thanks in advance.

No, other users only see the lines until you commit. The search term is the transaction isolation level. Tom Kite write a paper on this here ask Tom: on transaction isolation levels. This article gives some samples, according to theory, and you should read it.

Timo

Tags: Java

Similar Questions

  • Problem with stored procedure

    I use 10g, I have a 'PACK_SP' package with stored procedures, one of them is the following:
    PROCEDURE USP_ROWLARGESIZE(tablename VARCHAR2, cur_Types OUT CLOB,  v_namePrimaryKey OUT CLOB, cur_Result OUT CLOB) IS
    v_sql_str VARCHAR2(1000);
    v_ctx VARCHAR2(100);
    v_rowlength pls_integer;
    qryCtx DBMS_XMLGEN.ctxHandle;
    BEGIN
    
    -- Begin error stmt
    
    SELECT SYS.COL$.NAME INTO v_namePrimaryKey 
    FROM SYS.COL$ INNER JOIN SYS.OBJ$ ON SYS.COL$.OBJ# = SYS.OBJ$.OBJ# 
                  INNER JOIN SYS.CCOL$ ON SYS.COL$.OBJ# = SYS.CCOL$.OBJ# 
                  INNER JOIN SYS.CDEF$ ON SYS.CCOL$.CON# = SYS.CDEF$.CON# 
    WHERE SYS.OBJ$.NAME = tablename AND SYS.CDEF$.TYPE# = 2 AND SYS.COL$.COL# = SYS.CCOL$.COL#;
    
    -- End error stmt 
    
    (...)
    
    END USP_ROWLARGESIZE;
    As you can see, I have marked the statement with the error according to the OEM error message. The error text is: "Error Text = PL/SQL: ORA-00942: table or view does not exist. My goal is to store in the output parameter 'v_namePrimaryKey' the primary key column of a tablename. This query only works in more SQL query editor. Could someone help me?

    Thank you very much in advance!

    Published by: user9112176 on February 10, 2010 18:30

    Published by: user9112176 on February 10, 2010 18:31

    Published by: user9112176 on February 10, 2010 18:32

    Published by: user9112176 on February 10, 2010 18:33

    Published by: user9112176 on February 10, 2010 19:22

    System objects are accessible in SQL because they are visible through roles (DBA or SELECT_CATALOG_ROLE for example).

    However, the roles are disabled in PLSQL. You must have explicit privileges.
    That said, I would strongly advice you against writing code that references the SYS objects directly. You should use the USER_ or ALL_ % (or, if you really really must) the DBA_ % views.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Hello I have problem with my site, and mozilla. Google chrome, safari, explorer, opera work ok. Mozilla Heve problem with images?

    Hello I have problem with my site, and mozilla. Google chrome, safari, explorer, opera work ok. I have Sobipro for both the company and the logos and images without work!
    When I try to open the url is this:http://www.athens-dayandnight.gr/images/sobipro/entries/288/587_img.jpg

    whith mozilla is the following: /images/sobipro/entries\288\587_img.jpg when ichange it------with this / work.

    any idea?

    Thank you

    Hello, the URLS that contain-in their path are not valid. Firefox is less tolerant to errors in this respect than other browsers.
    Correct the path to http://www.athens-dayandnight.gr/images/sobipro/entries/288/587_img.jpg in the source code of this site or if you don't control the contact of the site their webadmin to do...

  • Call the stored procedure, and bind parameters by name

    Hello

    I use the Oracle ODBC 12 c driver to pass values from one Interface to our database Oracle 11.2. The Interface software collects data from modbus protocoll and calls a stored procedure. Right now my syntax to call the stored procedure looks like this:

    CALL procedure-name ('STRING', 'Timestamp as String', numValue1);

    It works very well. Now, I have to add a default setting to my procedure. To stay flexible to make other changes, I want to call the procedure and bind the parameters by name. Release 10.2.0.1.0 ISC ODBC Notes:

    Added support for the named parameter, binding the parameters by name. ODBC Oracle driver now allows the application to specify the parameters of a stored procedure by name, in the procedure call. Named parameters are to be used in calls to stored procedures and should not be used in other SQL statements.

    So, it shouldn't be a problem to use named notation, but how do I do this in ODBC? I tried like this, but oracle returns an ora-00936 error of missing expression:

    call procedure-name (paramName1 = > 'STRING',= paramName2 > 'Timestamp as String',paramName3 = > numValue1).


    Thank you for your help.

    Finally, I was able to find the error. The syntax of the statement was very good. The problem was caused by another declaration that I edited before and the error has not attracted Attention immediately.

    Thanks for reading and looking for an answer.

  • Problems with Acrobat XI and a pro version

    I uninstalled Acrobat Pro XI and re-installed with a license key valid (as confirmed by Adope JUDGMENT).

    However, when trying to first open the program, I accept the terms and then a windo opens that says:

    "XI acrobat Pro-Testversion; Tagus 00;

    Der Testzeitraum sit abgelaufen. Sie können Acrobat Pro XI weiter use, indem sie die Software kaufen'... "

    But I already bought the Pro Version...

    Best regards

    I am locking this discussion as it continues on a new thread. Please see Re: problems with Acrobat XI and a pro asking for license key version for additional troubleshooting.

  • I had a problem with my Mac, and I have to reinstall Adobe Photoshop CS4, I have on a CD. I put the serial number I have on the cover, it takes it. another window opens and ask for the serial number. again, I put the same number and he said to me: not val

    I had a problem with my Mac, and I have to reinstall Adobe Photoshop CS4, I have on a CD. I put the serial number I have on the cover, it takes it. another window opens and ask for the serial number. again, I put the same number and it says: invalid.

    where will be the second serial number?

    Help me please.

    Thanks, Abe

    Hi,

    Please see error "serial number is not valid for this product". Creative Suite and serial number incorrect error

    Kind regards

    Sheena

  • problem with the CURSOR and WITH clause

    Hi guys,.

    I have never created a package before. I try to run it, but I get:
    ORA-06550: line 8, column 16:
    PLS-00382: expression is of the wrong type
    ORA-06550: line 8, column 3:
    PL/SQL: Statement ignored

    I know that my problem is in the next section

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)


    Is the above correct?

    When I copy paste the "heart" of the query, it works very well. I really have a problem with the CURSOR and the declaration.

    Here's the code in its entirety. I know that the code is much more then he returned, but ignore this overload that was to do some tests to make sure that I can achieve any query request.

    CREATE OR REPLACE
    PKG_SPF_NATIONALREPORTS PACKAGE BODY IS

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor IN OUT C_RESULTS)
    IS
    v_io_cursor C_RESULTS;

    BEGIN

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)
    SELECT
    -START P_SelectFields
    r.cli_served,
    r.EIER,
    -END P_SelectFields
    r.RC,
    r.Year_ID,
    r.period_id,
    r.agreement_type_ind,
    CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT,
    YEARS.year_desc,
    RC_CODE.rc_code_id,
    RC_CODE.rc_code,
    AHRDA HOLDERS. AHRDA_ID,
    AHRDA HOLDERS. REGION_ID,
    AHRDA HOLDERS. PROVINCE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_DESC_EN,
    ROW_NUMBER() over (partition R.YEAR_ID, R.CONTRACT_Number_Text
    order by
    P.PERIOD_desc
    (/ / DESC NULLS LAST) AS r_num
    RESULT r
    JOIN period p ON r.period_id = p.period_id
    JOIN CONTRACT_NUMBER ON r.contract_number_text = CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT
    JOIN RC_CODE ON contract_number.rc_code_id = rc_code.rc_code_id
    JOIN AHRDA holders ON ahrda.ahrda_id = rc_code.ahrda_id
    JOIN AGREEMENT_TYPE WE AHRDAS. AGREEMENT_TYPE_ID = AGREEMENT_TYPE. AGREEMENT_TYPE_id
    JOIN the YEARS WE r.year_id = YEARS.year_id
    )
    SELECT year_desc
    -START P_SUMFields
    SUM (cli_served) AS sum_cli_served
    The SUM (eier) AS sum_eier
    -END P_SUMFields
    OF got_r_num
    GROUP BY year_desc
    ORDER BY year_desc
    ;

    io_cursor: = v_io_cursor;

    END GET_NATIONAL_TOTAL_RESULTS;

    Agree - all this talk of loops FOR is completely irrelvant.
    A refcursor is usually the exact mechanism to return a result set.

    What is C_RESULTS?

    Just use SYS_REFCURSOR.

    No need for local variable.

    OUT why? Not just walk OUT?

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS
    (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor OUT SYS_REFCURSOR)
    IS
    BEGIN
     OPEN io_cursor FOR ...
    END;
    
  • Insert table with stored procedure

    Hello

    is it possible to use bind insert table in odp.net that calls a stored procedure, or who loses the point of contact of the table?

    I need to do at once two insertions in a parent table and the child table (get the primary key generated by a sequence in the first table.). Don't know if this can be done without storing seq.next_val somehow?

    Edit: I will extend the question and ask if the table bind sql text can be a block anonymous plsql

    Edited by: KarlTrumstedt 16-jun-2010 02:49

    You can do both. You can table insert a stored procedure and an anonymous block.

    Here's how (these are based on the ArrayBind example provided with the installation of ODP.net/ODT.

    Installation program:

    create table zdept (deptno number, deptname varchar2(50), loc varchar2(50));
    
    CREATE OR REPLACE PROCEDURE ZZZ (p_deptno in number, p_deptname in varchar2, p_loc in varchar2) AS
    begin
        insert into zdept values(p_deptno , p_deptname || ' ' || p_deptname, p_loc );
    end zzz;
    
     /**
     drop table zdept ;
     drop procedure ZZZ ;
     **/
    

    table and link it to the stored procedure call:

       static void Main(string[] args)
        {
          // Connect
          string connectStr = "User Id=;Password=;Data Source=";
    
          // Setup the Tables for sample
          Setup(connectStr);
    
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Maryland", "Texas"};
    
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "zzz", connection);
          command.CommandType = CommandType.StoredProcedure;
    
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("p_deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
    
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("p_deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
    
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("p_loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
    
          try
          {
            connection.Open();
            command.ExecuteNonQuery ();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
          }
          catch (Exception e)
          {
            Console.WriteLine("Execution Failed:" + e.Message);
          }
          finally
          {
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          }
        }
    

    "anonymous plsql block.
    Well Yes

        static void Main(string[] args)
        {
          // Connect
          string connectStr = "User Id=;Password=;Data Source=";
    
          // Setup the Tables for sample
          Setup(connectStr);
    
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Maryland", "Texas"};
    
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "declare dnumber number; dname varchar2(50) ; begin dnumber := :deptno;dname := :deptname;insert into zdept values (:deptno, :deptname, :loc); update zdept set deptname=dname || :loc where deptno = :deptno; end;", connection);
    
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
    
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
    
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
    
          try
          {
            connection.Open();
            command.ExecuteNonQuery();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
          }
          catch (Exception e)
          {
            Console.WriteLine("Execution Failed:" + e.Message);
          }
          finally
          {
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          }
        }
    
  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • Problem with the locale and date serialization in java

    Hello
    I have a serious problem with Flex dates and need a solution as soon as possible. I have a Flex 2 front end that uses remote java objects to talk to the database. I have a Flex 2 DateFields form. The dates of these are stored in the datebase. However I need the dates to be stored exactly as users them selects regardless of the locale.

    What is happening at the moment is we are developing in Ireland and in selecting a date, filling an actionscript VO which is in turn transformed into a java VO (on a server in the United States) and when the date is stored in the database is one day before the date that we have selected. It seems that the flash player uses the locale with a time of midnight (GMT) users. When place the conversion to the EAST, it stores the date (GMT - 5), which causes the being Eve.

    I changed my flex code to set the date at 12: 00 time even if he converts and subtracts 5 hours it will always be the same date. But this does not work, it seems to work sometimes and not others and is very inconsistent. I can't understand why it works sometimes.

    Its makes me mental - someone has experienced this problem or did someone knows a solution PLEASE?
    Thank you

    I'm not very familiar with your specific question, but I wonder if a combination of store dates as the first milliseconds since midnight January 1, 1970, universal time, stored as a string and then when presenting the data are aware, locale would solve the problem.

  • Satellite Pro C650D - problems with the audio and game controllers

    Hello

    I recently had problems with my microphone and speakers/headphones and game controllers.
    Sometimes the microphone stops working when on Skype, for example, but most of the time works fine, once again, when I restart the pc.

    Stakeholders sometimes still work when I connect headset.
    Some of the sounds are still coming through the speakers while some coming through the headphones.

    I have a usb game controller which also did not work everything properly.
    If I assign buttons in the program that they do not work in the game.

    All these devices are in Device Manager in a group that makes me think it's sort of annoying update doubtful that messes with them.

    Any body have similar problems or know what to do better?

    See you soon
    Laurin

    Hello

    Can you please send some details on the laptop model and the system you are using?

    With regard to the issue of sound/mic:
    > The microphone sometimes stops working when on Skype, for example, but most of the time works fine, once again, when I restart the pc.

    Are you talking about internal microphone or external? This only happens using Skype?
    In your case I would test the microphone using different applications to make sure that is not a Skype related issue.

    > Yet sometimes the speakers work when I connect headset.
    I recommend this thread:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=65295

    The user has had a similar problem, but this phenomenon was linked to the Realtek HD Audio Manager settings.
    She wrote:
    + In the upper right corner, there is a small yellow folder called "Connector settings" in my version. +
    + There, finally I could re-enable the setting "enable popup dialog box, when the unit is plugged. +

    + So now when I plug an external speaker or headphones, it appears, and I select the option "helmet" (instead of "line-in"), and then the sound only through the headphones/ext.speaker.+

    Regarding the game controller:
    > I have a usb game controller which also did not work everything properly.
    > If I attribute buttons in the program, they do not work in the game.
    I put t think its problem of laptop in my opinion, you must make sure that the controller is compatible with the games you play and also recommended to check some info provided by the manufacturer of the game controller.

  • How can I return to 6.3 4.0 I have never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    How can I return to 4.0 3.6 I've never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    Downgrade to Firefox 3.6 first of all uninstall Firefox 4, but do not select the option 'remove my Firefox personal data '. If you select this option, it will delete your bookmarks, passwords and other user data.

    Then you can install the latest version of Firefox 3.6 available to http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your favorite courses, passwords etc.

    I recommend, to avoid possible problems with decommissioning, accessing your profile folder and delete the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Delete these files will force Firefox to rebuild the list of installed extensions, check their compatibility and cancel the toolbar customizations.

    For more information on how to find your profile folder, see https://support.mozilla.com/kb/Profiles

  • Problems with wifi, bluetooth and gps in my iphone after updating iOS 6

    After that the last iOS 9.3 update my iphone 6 has problems with wifi, bluetooth and gps. Now, my wifi connection is slower and falls easily on a short distance. My bluetooth does the same. But the biggest problem is the GPS on my phone. I tried Island:

    -By doing a reset network

    -Do a reset total and restore my phone

    -To restart my phone twice.

    -Audit and third-party applications unnistalling

    Nothing works. I was in the apple store where they checked my phone and they say everything is ok with the phone. I'm not crazy, and I know when something does not work correctly. Also, I think it's iOS 9.3 update a reaponsible for my phone issues.

    Please fix bugs fast.

    Having the same exact problems since the upgrade. In addition, battery drains very quickly now, and sometimes the phone becomes very hot. It took to the Genius Bar and they told me everything was normal in the diagnostic tests. Restored, restarting, etc., and always the same problems. GPS locates me, but then don't follow my movement at all and told to go outside as the gps is not detected even if I am outside. Bluetooth connection to the car and watch grave intermittently. Signal WiFi is greatly reduced and falls easily.

  • HP 15 laptop: problem with the touchpad and the key "stuck."

    Hello!
     
    Last weekend, I have an irritating problem with my HP 15 laptop. Bought two years ago and upgrades to Windows 10 a year ago.
     
    First of all, my touchpad started to not work properly. It "freezes" and I can't use it until I click the ESC key, but it doesn't last and "freezes" again a few seconds later. Then, everytime I open a window where there is a text box (Start menu, edge browser, Control Panel, etc.), the number 5 is entered automatically and permanently, as if the button 5 has been blocked. I did a quick check and button 5 do not seem physically stuck.
     
    Yesterday, I restored the system to the factory settings, so I'm back to 8.1 for Windows and then upgraded to Windows 10. Everything seems to work fine, but this morning, the problem was back. Is there something I can do? What is the problem caused by Windows 10 or the computer? Should I restore it to Windows 8.1? Everything worked great til last weekend, I don't know what that was.
     
    Thank you in advance for your help!

    Welcome to the HP support community @gouch3.

    I understand that you have a problem with the keyboard and the touchpad on your laptop from HP 15.

    Have you tried to use a keyboard external and mouse at all?

    Have you tried to go to Safe Mode to see if the problems persist in there?

    Have you tried to perform a material or forced reset Reset?

    Did you do a test of material?

    Have you updated your drivers?

    gouch3 wrote:

    ... Is there something I can do? What is the problem caused by Windows 10 or the computer? Should I restore it to Windows 8.1? Everything worked great til last weekend, I don't know what that was.

    It could be a driver problem to be able to look at that for you, I need your model number. I wish I could give you an answer or not, but at this point without the troubleshooting results and the model number, it is difficult for me to say.

    I can say that if everything works in point 8.1 of Windows without problem, the driver TROUBLESHOOTING is a great place to start. Please try to follow these steps for the keyboard and the touchpad of troubleshooting:

    • Beginning
    • Search for Device Manager
    • Search results, open Device Manager.
    • Click on display
    • Show hidden devices.
    • Click the arrow next to keyboards.
    • Right click on the name of the keyboard device.
    • Select uninstall.
    • Continue deleting the names of devices in the category keyboards until the feature of all the names have been uninstalled.
    • Restart the laptop twice.

    Touchpad:

    • Type of research, "Device Manager."
    • Click on Device Manager,
    • Expand mice and other pointing devices.
    • Right click on the TouchPad,
    • Click on uninstall.
    • Restart the computer laptop twice,
    • Reinstall the TouchPad card.

    I found a document of troubleshooting for you to try also called Portable keyboard troubleshooting. Please be sure to follow the steps described in this document.

    The best document I have for TouchPad problems is the use and troubleshooting of the TouchPad and ClickPad document. 

    Here is a link to the HP Support Assistant, if you need it. Just download and run the application and it will help with the software and drivers that need to put up-to-date.

    This is a great question other clients may also be questioned. When we came to a resolution, please share what has worked for you with others by marking this post as an acceptable Solution. If you want to show appreciation for my efforts today, please take a second to click the Thumbs Up button below.

    If you need assistance, I would be more than happy to continue to help you. Please re-post with the results of the resolution of the problems. Could you please also provide your model number (How can I find my model number or product number?)

    Thank you!

  • Problem with the report and the system of axis 2d

    Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.

    What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).

    With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.

    I tried everything, but I could not remedy

    I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)

    Any help will be appreciated, thanks in advance

    Ierman

    I'll post my code here:

    Dim Xscale, Yscale
    XScale = Array (0,25,0,5,49)
    Yscale = Array(-0.2,0.2,-0.2,10,4)
     
    Call PicDelete()
    Call GraphObjNew ("2D-Axis", "2DAxis1")
    Call GRAPHObjOpen ("2DAxis1")
    D2AxisTop = 1

    D2AxisBottom = 70
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_1")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale (0)
    D2AXISYEND = Yscale (1)
    D2AXISYORIGIN = Yscale (2)
    D2AXISYTICK = Yscale (3)
    D2AXISYMINITICK = Yscale (4)
    Call GRAPHObjClose ("2DYAxis1_1")
    Call GRAPHObjOpen ("2DXAxis1_1")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale (0)
    D2AXISXEND = Xscale (1)
    D2AXISXORIGIN = Xscale (2)
    D2AXISXTICK = Xscale (3)
    D2AXISXMINITICK = Xscale (4)
    D2AxisXTxt = ""

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_1")
    Call GraphObjNew("2D-Curve","New_Curve")

    Call GraphObjOpen ("New_Curve")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve")
    Call GRAPHObjClose ("2DAxis1")

    Dim Xscale1, Yscale1
    Xscale1 = Array (25,50,0,5,49)
    Yscale1 = Array(-0.2,0.2,-0.2,10,4)
    Call GraphObjNew ("2D-Axis", "grafic")
    Call GRAPHObjOpen ("grafic")
    D2AxisTop = 40

    D2AxisBottom = 37
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_2")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale1 (0)
    D2AXISYEND = Yscale1 (1)
    D2AXISYORIGIN = Yscale1 (2)
    D2AXISYTICK = Yscale1 (3)
    D2AXISYMINITICK = Yscale1 (4)
    D2AxisYTxt = "" ' testo asse label y
    Call GRAPHObjClose ("2DYAxis1_2")
    Call GRAPHObjOpen ("2DXAxis1_2")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale1 (0)
    D2AXISXEND = Xscale1 (1)
    D2AXISXORIGIN = Xscale1 (2)
    D2AXISXTICK = Xscale1 (3)
    D2AXISXMINITICK = Xscale1 (4)
    D2AxisXTxt = «»

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_2")
    Call GraphObjNew("2D-Curve","New_Curve1")

    Call GraphObjOpen ("New_Curve1")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve1")
    Call GRAPHObjClose ("grafic")

    Hi lerman,.

    Here is an edited version of your code that works on my computer.  A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels.  The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.

    Brad Turpin
    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for

  • Update iTunes problem

    The iTunes on my Mac reported a bunch of apps for my iPhone and iPad, had to be upgraded as it often does.  When I tried to update these applications all went as usual with the exception of two applications.  Find friends and podcasts.  Find my frien

  • Identification of the monitor

    I recently acquired a TOSHIBA monitor model No. DA1566M-01 which was manufactured in December 1996. can someone help me identify this monitor or help me to find technical information about him?It also has a control Module attachable LCD attached to s

  • Satellite L - CD/DVD player will not recognize a blank BD disc

    My CARPET * A BD - CMB UJ141EL won't regonise a blank bd disk?

  • HP C7280 all in one. Problem copying

    HP C7280 all in one.  During the copy with the original on the glass, the copy is fine.  During the copy with the original introduced in the extra paper tray, a vertical line appears at the same place on each copy of the product.  Maybe some soil is

  • change OS from vista to XP in HP Pavillion Model a6611me

    is it possible to install XP HP Pavillion Model a6611me that I find all drivers for Windows XP. can any bodu help me on what I am facing problem in using vista.