Storing multiple databank records at run time

Hi,
I found from the thread 'How can I get the data and store the data dynamically generated?' that we can store the data's at runtime in databank using:
utilities.fileservice.appendStringToFile(<filepath>,<data>)
But here my question is how to store multiple values in databank. Consider a databank variable named 'OrderID' and I need to store the values '35000', '350001' in it.
What I observed is, while appending these values system appends it column vise instead of row vise like:
OrderID
3500035000135002
What I require is it should be appended like:
OrderID
35001
35002
35003
I tried new line character '/n' also...but while trying with it system appends like 35001/n35002...
So could any of you help with this?
Thnaks,
VVK

Hi Alex,
I tried with the character '/n' even then system doesnt inserts new line in csv file.
My databank file will look like this:
Par1 Par2 Par3
Test Test1 Test2
And I executed the below mentioned code:
FileService.appendStringtofile("C:\DB.csv", "one,two,three\n");
FileService.appendStringtofile("C:\DB.csv", "four,five,six");
Result comes as mentioned below:
Par1 Par2 Par3
Test Test1 Test2
one two three/nfour five six
But what I require is:
Par1 Par2 Par3
Test Test1 Test2
one two three
four five six
Can you help on this pls??
Thanks,
VVK
PS: I use Microsoft Excel to open csv file, I verified this issue with wordpad too.

Similar Messages

  • Multiple app on same Run time engine

    Hello
    Can we run multiple application on same CVI run time engine?
    We have thin client desktop and want to run application on different terminals. Is it possible?
    Means on server there will be one application installed and 5 terminals will  use same desktop application.
    Thanks

    Yes, you can call multiple instances of the Run-Time Engine. 

  • While I running macros created by Excel recorder getting run time error "5" Invalid procedure call or argument

    Hi,
    I',m very new of EXCEL VBA programs, one of the pivot table able to run with out error.
    but other getting error when i run it
    below codes are automatically created by excel macro recorder.
    if you help me out this situation, i really appriciated
    Sub Macro11()
    ' Macro11 Macro
        ActiveWorkbook.Worksheets("LCG-JKX").PivotTables("ThickCheckIn").PivotCache. _
            CreatePivotTable TableDestination:="LCG-JKX!R17C64", TableName:= _
            "PivotTable9", DefaultVersion:=xlPivotTableVersion15
        Sheets("LCG-JKX").Select
        CellS(17, 64).Select
        ActiveWorkbook.ShowPivotTableFieldList = True
        With ActiveSheet.PivotTables("PivotTable9")
            .PivotFields("Thick(mm)").Orientation = xlRowField
            .PivotFields("matTypeC").Orientation = xlPageField
        End With
        ActiveSheet.PivotTables("PivotTable9").ColumnGrand = False
        Range("BL17").Select
        ActiveSheet.PivotTables("PivotTable9").PivotSelect "", xlDataAndLabel, True
        Selection.ClearContents
        Range("BH18").Select
    End Sub

    You can't have two pivot table with same name in a sheet. As the macro names pivot table as "Pi...9" always if you run 2nd time, macro will try naming with "Pi..9" again but is not allowed. 
    try changing only the first block.
    ActiveWorkbook.Worksheets("LCG-JKX").PivotTables("ThickCheckIn").PivotCache. _
            CreatePivotTable TableDestination:="LCG-JKX!R17C64", TableName:= _
            "PivotTable" & [=round(Rand()*1000,0)], DefaultVersion:=xlPivotTableVersion15
    Just added RAND to make the pivot table name unique.
    Best Regards,
    Asadulla Javed, Kolkata
    Please do not forget to click “Vote as Helpful” if any post helps you and
    "Mark as Answer”if it solves the issue.

  • Display specified record in run time

    I am using report wizard in report builder to develop a report and display it through the web browser.
    The Query that I entered is :
    Select * from empMaster
    Question: If I want to display some specified record in RUNTIME(like, Select * from empMaster where Name='Peter'), what should I need to do? I am using web report tester to generate the web report. Do I need to add something in HTML in order to display specified record.
    I have tried to use xml file which customize the report to control the output.
    xml show as following:
    <report name="testrpt" author="Generated" DTDVersion="2.0">
    <data>
    <dataSource name="testrpt">
    <select>
    Select * from empMaster where empMaster.email='Peter'
    </select>
    </dataSource>
    </data>
    </report>
    I have checked the trace file. it contain no error but it still display all the record in the table.
    null

    hello,
    the easiest way is to
    1) create a parameter e.g. called my_where
    2) rephrase the query to
    select * from empMaster &my_where
    if you then run the report you can pass the where-clause to your report as a parameter. you can also enforce the parameter-form by passing the additional parameter PARAMFORM=HTML
    regards,
    the oracle reports team

  • Table of Contents incorrect running times

    I'm using Captivate 5 to create a module with slide video and lots of other video clips integrated into frames. The Table of Contents is providing inaccurate running time information about the slides. Much of the video seems not to be registering when it runs. Here's a link to an online preview version of the module.
    http://www.paaap.org/headbumpsmatter/Headbumpsmatter.htm
    Any way to correct this problem?
    Dan
    [email protected]

    Yes, thanks for the clear description of my problem. Your description hints at the solution. I was able to get the Table of Contents to show the correct running times for the slide and the project by manually lengthening the slide running time to match the actual length of the slide. It didn't register correctly when I had a combination of slide audio (narration) and inserted video. The slide would play the audio and then the video as set up in the timeline for the slide but would only record the running time up until the video started. By adding up the the audio and video and them manually changing the length of the slide in the timeline, I got the TOC to show the correct times. Thanks for your help,
    Dan Huber

  • URGENT: I want to pass a variable to a stored procedure at run time

    Post Author: aruplabs
    CA Forum: Data Connectivity and SQL
    I work for a health care provider and I have reports that pull PHI (Protected Health Information) about patients that needs to be logged according to federal HIPAA regulations. One of the pieces of information that needs to be logged is the username of the person who ran the report. Since these reports will be run from our Crystal Enterprise server I can get this from the CurrentCEUserName variable but I am looking for a way to pass this value to a stored procedure that will not only return the records for the report, but also log the disclosure in our PHI disclosure tracking table. I know you can pass a parameter to a stored procedure but I dont know how, or if it is even possible, to pass a run time variable. This is an urgent problem that I need to find a solution for. Any help would be appreciated.
    Thank you.

    Here it is. Right now, when i press te "Go" it runs for the specific time i've set and when its done the variable "Run" is set true. When i call this VI from another VI it waits for the loop to be finished before it will read the variable.
    Regards
    Viktor
    Attachments:
    Untitled 2.vi ‏26 KB

  • Run invoke-command on multiple machines at the same time

    Hey all so I read that if I store my New-pssession in a variable then used that in my invoke-command it would run all computers at the same time.
    $a = Get-Content "C:\Users\cody-horton\Desktop\list.txt"
    $session
    for($i=0;$i -lt $a.Length;$i++){
    if(!(Test-Connection -Cn $a[$i] -BufferSize 16 -Count 1 -ea 0 -quiet)){
    Write-Host $a[$i] -foregroundcolor red
    else{
    $session = New-PSSession $a[$i]
    Invoke-Command -Session $session -FilePath "\\My computer\C`$\Users\public\Documents\zip folder.ps1"
    What exactly am I doing wrong I just need to run this script on multiple machines at the same time.
    Thanks.
    Edit: Also what would be the best way to close all the sessions thanks.

    Hi there,
    So what I think you are doing wrong here is that you are overwriting the value in $Session everytime you executed code inside for loop. try the below:
    $a = Get-Content "C:\Users\cody-horton\Desktop\list.txt"
    $session = @() #define this as an array
    for($i=0;$i -lt $a.Length;$i++){
    if(!(Test-Connection -Cn $a[$i] -BufferSize 16 -Count 1 -ea 0 -quiet)){
    Write-Host $a[$i] -foregroundcolor red
    else{
    $session += New-PSSession $a[$i] #add the new session to the array, at the end it will be a collection of sessions
    Invoke-Command -Session $session -FilePath "\\My computer\C`$\Users\public\Documents\zip folder.ps1" #I think the above one won't work..first you need to copy the script locally on the machine and then execute it#Why this won't work because of Second-Hop Authentication
    Have put comments where I edited your code.
    Hope this helps
    Knowledge is Power{Shell}. http://dexterposh.blogspot.com/

  • Can I run the currency translation for multiple years at the same time?

    Dear Friends,
    I set up currency translation on our BPC NW 7.0 system and it is working fine ONLY if I run it for any one year at a time. But if I select multiple years in the data package (FX Restatment) selection it only calculates for the first year in that selection.
    say if I run the data package for years: 2009, 2010, 2011, 2012, it only performs currency translation for the year 2009.
    Can I run the currency translation for multiple years at the same time ?
    Note: The year is determined from the YEAR property of the "Time" dimension
    appreciate any inputs,
    thanks

    You can run currency translation for multiple years.
    I think the problem it is actually related to how you are sending the parameter to currency translation script.
    Just review the script logic log and you will see with what parameters was called currency translation FXTrans.
    My expectation is that actually the script is called just with first year and that's the problem.
    Log of script logic you can find it into:
    C:\BPC|DATA\Webfolder\YourAppset\YourApplication\Private Publications\Users used to run logic\Temp
    Regards
    Sorin Radulescu

  • How to do validation on multi record block at run time...

    Dear Friends,
    I have to do validation at run time on multi record block.
    If user tries to enter and save two or more records in same multi record block with same data at run time, it should not allow it and display a message like, " error : Records are having same(duplicate) values. "
    I already did validation with the data coming from database table using cursor. But confused about how to do at run time(on one screen only) ??
    Please, give details about how to check duplicate records on form block before saving it to the table ????
    Regarding details would be greatly helpful.
    thanks,

    Hi...Pankaj
    thanx for your reply..
    I already did validation for the data coming from table....
    but I need to do it on form only...at run time...
    exa...
    In one multi record block
    record no : column 1 : column 2 : column 3
    1 abc 123 hi
    2 abc 123 hi
    so it should check on the form itself, here I m not getting data from table...I am just
    navigating from first record to second using down arrow.
    so, may be 2 possibilities.
    1) when user navigates using tab to third record, it should say like two duplicate records.(may be like when validate record or item)
    2) or when user tries to save, it should say two duplicate records.
    so, everyting should take place on form screen only.....
    waiting for your reply,
    thanx...

  • How to save multiple records at a time?

    Hi
    Can any one help me to save the multiple rows using ADF 11g?
    I have the requirement something like, Dragged the VO as a ADF table on the screen, Added the CreateInsert operation and commit operations on to the screen. User have the abliity to add multiple rows and then what is the best way to save all the records at a time instead of one by one.
    the commit operations allows to store single row at a time.
    Thanks

    Actually, the commit action will commit all outstanding rows. Add a bunch of rows, fill in the data, press commit -> all of the rows are saved. Perhaps you could be more explicit in what you are trying and the results.
    Best,
    John

  • How to set the number of records displayed at run time

    Is it possible to set the number of records displayed block property at run time? The built-in 'GET_BLOCK_PROPERTY' can retrieve the number of RECORDS_DISPLAYED. But I can't find SET_BLOCK_PROPERTY to set this property. Is there anyway I can set this property programmatically? Thanks for any suggestions!

    Bookmark Go to End
    goal: How to vary the number of records displayed in a block
    programmatically
    fact: Oracle Forms Developer
    fix:
    Block property 'Number of Records Displayed' can not be changed during runtime
    using SET_BLOCK_PROPERTY. However, it is still possible programmatically change
    the visual appearance of the form so that it creates effect of changing this
    property. To achieve such an effect follow these steps:
    1. in Forms Builder, in the multirecord block define the new set of items.
    The simplest way is to copy/paste the original item and rename created item.
    2. set properties of these new items so that they are the same as the properties
    of the original items. If these new items were copied from original items
    then properties are already the same. Modify following properties
    'Database item' on new items to value 'No'
    'Synchronize with item' to the value of the original item
    'Number of Items Displayed' to desired value.
    'Visible' to 'No'
    In other words, these new items are mirrors of original items.
    3. code event, which is meant to trigger the change in block appearance.
    This code should use SET_ITEM_PROPERTY built-in to set properties
    like 'VISIBLE', 'ENABLED', 'NAVIGABLE', 'UPDATE_ALLOWED' and others
    to desired value for items which are about to be displayed, then
    move cursor to one of these just displayed items with GO_ITEM built-in
    and then hide the previously displayed items.
    Example:
    Assume that the block is built on SCOTT.DEPT schema. Following will
    change the set of displayed items
    set_item_property('dept.mdeptno',visible,property_true);
    set_item_property('dept.mdname',visible,property_true);
    set_item_property('dept.mloc',visible,property_true);
    set_item_property('dept.mdeptno',enabled,property_true);
    set_item_property('dept.mdname',enabled,property_true);
    set_item_property('dept.mloc',enabled,property_true);
    set_item_property('dept.mdeptno',update_allowed,property_true);
    set_item_property('dept.mdname',update_allowed,property_true);
    set_item_property('dept.mloc',update_allowed,property_true);
    set_item_property('dept.mdeptno',navigable,property_true);
    set_item_property('dept.mdname',navigable,property_true);
    set_item_property('dept.mloc',navigable,property_true);
    go_item('dept.mdeptno');
    set_item_property('dept.deptno',visible,property_false);
    set_item_property('dept.dname',visible,property_false);
    set_item_property('dept.loc',visible,property_false);
    Regards,
    Monica

  • HOW TO create a temp table or a record group at run time

    i have a a tabular form and i dont want to allow the user entering duplicate
    records while he is in insert mode and the inserted records are new and not exsisting in the database.
    so i want to know how to create a temp table or a record group at run time to hold the inserted valuse and compare if they are exsiting in previous rows or no.
    please help!

    As was stated above, there are better ways to do it. But if you still wish to create a temporary block to hold the inserted records, then you can do this:
    Create a non-database block with items that have the same data types as the database table. When the user creates a new record, insert the record in the non-database block. Then, before the commit, compare the records in the non-database block with those in the database block, one at a time, item by item. If the record is not a duplicate, copy the record to the database block. Commit the records, and delete the records in the non-database block.

  • Frequent run-time errors during audio recording

    While recording audio voice-over for a slide, I'll often do
    several "takes" before finding the best one. All too frequently,
    when I click OK, I encounter a run-time error that terminates the
    Captivate 2 software. I've done the default installation on two
    machines and encountered the same problem on both. Are other users
    running into this problem as well? Any fixes / workarounds to
    suggest? Is this problem fixed with Captivate 3?
    Below is the message that appears.
    Title Bar: Microsoft Visual C++ Runtime Library
    Messaqe Text: Program: C:\Program Files\Adobe\Adobe Captivate
    2\AdobeCaptivate.exe
    This application has requested the Runtime to terminate it in
    an unusual way. Please contact the application's support team for
    more information.
    Any input would be greatly appreciated. Thanks!

    Hi folks,
    The first thing I would do is to remove the .dat file that
    can be found via the following path:
    C:\Document and Settings\Username\Application
    Data\Adobe\Adobe Captivate\
    Rename the captivate_v20.dat to something like
    Old_captivate_v20.dat and then start up Adobe Captivate.
    If this doesn't address the problem then report this as a bug
    using the
    Adobe
    Captivate Feature Request/Bug Report Form
    Let us know how you get on.
    Best - Mark

  • DTW 2007B PL:7 - DTW always showing run time error on record key no. 1377

    Hi,
    I've encountered a strange problem while transferring Customer Master.
    Firstly, the DTW throws error randomly asking for 'Ship To' Address along with given 'Bill To' Address.
    Also, at Record Key No. 1377, DTW shows run time error & asks for debugging.
    Once the debugging is started, it goes on & on with any probable end of debugging.
    And if the debugging option is not chosen DTW crashes & the corresponding error file is blank.
    If anyone had encountered similar problem, pls respond ASAP.
    Thanks,
    Prashant

    Hi Kapil,
    did you use a template for importing the BPMaster and BPAddress data ? Such error normally causes by wrong LineNum and wrong signs for type of addresses.
    Please reffer to SAP note 899093 and 979116. This would be helpful.
    Regards Steffen
    PS. templates are located in <program folder>\SAP\Data Transfer...\Template\Template\oBusinessPartners

  • Can we change [maximum number of records per page] property at run time

    can we change [maximum number of records per page] property at run time in report 6i

    Ravi,
    I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
    You limit the number of lines per page when you use the xsl commands like this in your template:
    <xsl:variable name="lpp" select="number(13)"/>
    <?for-each@section:LIST_G_INVOICE?>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
    <?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    and then you have the table where you have the data
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
    and all your lines
    and then
    <?end if?><?end for-each?>

Maybe you are looking for

  • Discoverer and 9I OLAP

    Has anyone successfully used Discoverer to access a 9I OLAP cube? If so how? Amy info would be greatly appreciated. Thanks, Carl Petersen

  • Error in Workflow for PR Overall Release

    Dear SAP Fans, I am getting error in workflow (WS20000077) after release of Purchase Requisition with first person and getting message in OutBox with the following errors and is unable to go to next person's Inbox for release PR.    Error when creati

  • After converting my vid to constant rate with Handbreak, Premire Elements 11 gets choppy

    I am using my cell phone SGH-T599 to shoot video.  In order for me to edit it I have to convert it from variable rate to constant rate with Handbreak, otherwise the video and sound go out of sync.  But apparently there is something wrong with the con

  • Deploying exploded archives?

    Hi,           I am doing J2EE/Struts/EJB Development on Weblogic 8.1.           Have an EAR file with WAR file and bunch of EJB JARs inside that EAR.           I need to do a lot of changes and additions to the GUI,           which is mostly JSPs ins

  • How to install apple mobile support in windows 8?

    plz help me! i cant install itunes on my windows 8 for the error of appl mobile support!