How can we handle the history datas when openscript terminates abnormallly

I'm a new comer for openscript. Now i'm trying to use it to fulfill creating some sales orders and then transafer them to AR module. The orders have many lines, so that I use two databanks,one is for the header datas, and the other is for the line datas.After I book the order ,i save the order number into one global variable,i.e,if there are 5 sales orders,I use orderNum0- orderNum4 to record the created sales orders in script 001. In script 002, I want to get the variable values and then post them to AR.
But if when i'm running script 001, it has created 3 orders and then suddenly terminates. How can I deal with the already created orders ? I know if i want to use them in 002, I can give the global variables orderNum0 - orderNum2 initial values using the new order numbers. But if there are too many datas in the databank,i.e, 100 orders ,and it encounters error after creating 60 orders, how can i proceed ?

hi,
As of now I dont know how to export the data to specified column in the databank, even I'm trying to find out the solution for this.
//**** reading data from the application *****
OrdNumber=forms.textField("//forms:textField[(@name='ORDER_ORDER_NUMBER_0')]").getText();
//**** exporting the data for the file.*****
utilities.getFileService().appendStringToFile("C:\\file_name.csv", "\r\n"+"Order Number: "+OrdNumber);
info("Sales Order #: "+OrdNumber);
After that use this file as input databank to the another script.
Regards,
MRSN

Similar Messages

  • How can I check the expiration date of a Certificate Keychain from terminal?

    Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights.
    Specifically I will be checking three certs: a Root Authority, Issuing Authority, and a user cert (Identity).
    I was exploring the Security and Openssl command line tools. But I can't seem to get the info I need.
    Any recommendations would be appreciated.
    Thank you!

    Anyone?

  • How can I interrupt the blocking call when call timeout?

    Hi,Guys
    I wrote an application server(daemon process) to talk with oracle server
    continuous which used oracle9 OCCI lib, each 5 min it executes the procedure
    on the DB server.
    Now I have come cross a problem:
    If the network is blocked, app server will blocked at occi call and would
    never pass, and no exception was catched :-(
    for e.g.
    1. Oracle server reboot without shutdown oracle process
    2. udp broadcast message storm blocked the connection between app server and
    oracle DB.
    I consider maybe it's because OCCI using the blocking mode of connection
    that caused this problem.
    How can I interrupt the blocking call when call timeout?

    Manage the timeout using a separate thread. When the timeout happens, issue a break on the OCCI connection. There is no direct way as of now. You need to do this to break a OCCI connection.
    retrieve the OCI handle from the OCCI handle (e.g. using Connection::getOCIServer or Connection::getOCIServiceContext methods) and issue a OCIBreak on it. Do not forget to allocate a error handle which should be passed to OCIBreak call.

  • How can I get the history of the subprogram  i.e Procedure  ........?

    How can I get the history of the subprogram i.e Procedure ........?

    annu_rajput wrote:
    I mean I want to see .
    When procedure was created.?
    what was the original code ..?
    what are the modification done since ..?
    who has modified it ......?This is not a task for Oracle. This is a task for a version control system.
    You can see when a procedure has been created in ALL_OBJECTS (CREATED and LAST_DDL_TIME columns) but even using flashback queries on this table you don't expect to go back for long.
    Definitely you cannot see who has modified it. You can only see the procedure owner.
    Again, Oracle is NOT a version control system. You are on the wrong way.
    Regards.
    Al

  • How can I know the purchase date of my notebook?

    Hello guys
    I bought a Toshiba notebook from Extra Company @ Jeddah, Saudia Arabia
    & I want to know how can I know the Purchase Date Of it because I missed the payment bill & when I register my notebook Toshiba web site it asks me about the Purchase Date.
    Please help me
    Thanks a lot
    Bye

    Dont think you can find out the date of purchase!
    Where should know this without a payment bills or sales checks.
    What you can do is to find out when the notebook was registered on the Toshiba page.
    [Toshiba Warranty Lookup |http://computers2.toshiba.co.uk/toshiba/formsv3.nsf/WarrantyEntitlementLookup?OpenForm]

  • Hi, can you help?  My emails that I have received show the date received as either today, yesterday or July 28.  How can I get the correct date received?

    Hi, The emails that I have received show the date received as either today, yesterday or July 28.  How can I get the correct date received?

    That's very scary. They might do it, but I personally have never had Apple contact me re id's except on their site when signing in. I suggest you DO NOT respond until you have a phone conversation with Apple security. They can verify if they sent you the e-mail and why.
    While it's very possible it's true,again, I suggest you not respond until you speak to someone at Apple. I've often read here that when people sign in they are not allowed to because "someone else has used the id" type of statement.
    Also, you should be able to go to the app store and see what apps you have downloaded.
    Though it could have been a free app, have you checked to see if any were bought with your id account?
    I've gotten these types of e-mails from places like USPS and FedEx which look amazingly authentic and were from their website. I also received an odd e-mail from my cousin in Ireland last year that clearly was not from him. It was also sent to others in his family in Ireland. I e-mailed him that I only opened it because it had a .ie, but suggested he change... Days later I received mail from 'him' - same name, but at yahoo.com. 
    Again, I would call Apple. You can also report it at [email protected], but I would not settle for that given your situation. If nothing else, call Apple sales (sales depts. anywhere answer fast) and ask them to transfer you to security. Apple will not want anybody accessing their name, and while it's unlikely, it's not impossible that it is someone phishing.
    Hope this helps and can you let the support community know your results by posting on this thread when you're done? Thank you.
    Hope this helps.

  • How can I open the 'time date browse button'?

    Hello!
    How can I open the 'time date browse dialog' from the time stamp control in my block diagram? I tryed it with the property node but couldn't find this item to open the 'time/date browse dialog'!
    Thanks in advance for your help

    There is no way to programitically bring up the dialog window for the timestamp control. I recommend building your own dialog window VI that will work by opening when you want the user to set the time and when it closes, it can programatically update the timestamp control. It will not be as pretty but it will be just as functional.

  • How can I hide the tool data box?

    How can I hide the tool data box that reads out the loction in Photoshop CS6?
    It appears when I move a layer or change the size.
    It is very distracting and totally useless for me (I'm an artist - not an engineer).
    I can't find a setting to remove that black box.  I hope there is a way to make it go away...
    Thanks!

    It sounds like your talking about the transformation values.
    In the photoshop preferences under Interface you can set Show Transformation Values to Never

  • How can i get the meta data from database?

    Hi, all java and db experts,
    I need to write a tool to generate java file which will be used to hold the resultset of a stored procedure of Oracle. Is there any API call or tools to connect to db and then get the meta data of the return cursor instead of reading stored procedure definition on my own?
    Please help, thanks a lot.
    Hanna

    if i execute a Oracle stored procedure, the resultset of a cursor is returned. It's easy to know the meta data at the runtime.
    However, could i get the meta data about the resultset of a cursor before runtime? Such as by connecting to the database and ask it about meta data of a specified stored procedure?
    Is it feasible?
    DatabaseMetaData dbmd = conn.getMetaData();
    ResultSet rs = dbmd.getProcedureColumns("", "%", "SP_NAME", "%");
    while (rs.next()) {
    String colName = rs.getString(4);
    int colType = rs.getInt(5);
    int colDataType = rs.getInt(6);
    int colPrecision = rs.getInt(8);
    int colLen = rs.getInt(9);
    int colScale = rs.getInt(10);
    long defaultValue = rs.getLong(11);
    But what i get is a list of stored procedure parameters. In oracle, cursor is IN OUT parameter . How can i get the meta data about the resultset of cursor?

  • How can I restore the game data from an old ipod touch to a new one?

    How can I restore the game data from an old ipod touch to a new one?

    Restore it from the backup of the old ipod.

  • I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date is created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date  created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    The Finder reports File information. The date and time of the photo are in the Photo's Exif metadata. The Finder has no awareness of this. All photos apps on any system do.
    Regards
    TD

  • How can I view the history of paid applications for my iphone???

    How can I see the history of all purchased paid applications for my iphones?
    I tried the order history from hte store but there is nothing there?
    Where is the paid apps history?
    Thanks/Panos

    Hi...
    Launch Safari on your iPhone.
    Type this in the address bar:  http://store.apple.com/us
    Then tap Account right side of the window (just above New to the Store) then tap View Order History and sign in.

  • HT204150 i have deleted all contacts in icloud but still have them on my iphone (which is backed up as well to iTunes) how can i restore the iphone data to the iCloud so it will resend it to my mac book and iPad?

    i have deleted all contacts in icloud but still have them on my iphone (which is backed up as well to iTunes) how can i restore the iphone data to the iCloud so it will resend it to my mac book and iPad? I have switched my iphone to airplane mode so it is not connected to the internet and so icloud can not wipe it at the moment.
    thanks roy

    There's a menu choice (I think under "Files") that lets you sync purchased items on a device back to itunes.  Look for that.
    iCloud does not store music.  If you want to do that you'd have to subscribe to itunes Match, but to get music to the match servers, you need the music in the itunes library on your computer.

  • How can I set the insert date to auto update in Pages 5.2.2

    how can I set the insert date to auto update in Pages 5.2.2
    I am attempting to have the date in header auto update in a Pages file.
    I can insert it, but where is the AUTO UPDATE selection
    OS10.9.4
    thank you

    Apple never included the auto-update feature for dates in Pages v5.2.2. You would have to single-click the date, and deliberately update it.
    If you have Pages ’09 v4.3 in /Applications/iWork '09, then it will allow you to configure auto-update of the date field. Right-click on the date, set the format, and click the selection for automatically update on open.

  • I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    How do you disabled it if running the same?

Maybe you are looking for