Open Script how to Retrive Databank record values

Hi,
I am trying get a value from Open script and then assign it to a variable for validation.
Can anyone let me know if either of the below possible using Open script
1) Getting Total column count in a Databank file.
2) Getting a field value and assigning it to a variable.
I know that getDatabank("") has some options but it does not include the above mentioned also this has {{DatabankName.FieldName, Recorded Value}} for setting a value while running. Apart from these options are there any other keywords using which we can retrive a databank field values and assign it to variables.
Also there are utilities through which we can access a csv file. But how to assign the value to a Variable.
Example:
Table table = utilities.loadCSV("Directory with File name");
          Row row = table.getRow(0);
          getLogger().info(row.get(Field Name));
I am looking to get the value and assign it to a variable example Variable1 = row.get(Field Name).
Thanks
Open Script User
Edited by: Openscript User 100 on Oct 20, 2009 4:03 AM

hi,Kate,
Do you resolve this problem?
And here i'm trying to compare two column values in the if () {} condition,for example:
String headerNum1 = eval("{{db.po_tsk_0002b_1.headerNum}}");
String headerNum2 = eval("{{db.po_tsk_0002b_2.headerNum}}");
info(" 2_headernum is :"+ headerNum2);
info(" 1_headernum is :"+ headerNum1);
if(headerNum2 !=headerNum1 ){
               fail("The headerNum column is not the same with the header.");
I can see in the result window,it show:
2_headernum is :1
1_headernum is :1
Error in section Run at line (script.java:47). Failure when running child script po_tsk_po0002b. Caused by: The headerNum column is not the same with the header.
Can anyone tell me why?
Thks.

Similar Messages

  • How to edit the records value fetched by select statement query in sqldever

    How to edit the records value fetched by select statement query in sqldever 2.1.1.
    EX-
    SELECT * FROM emp WHERE ename like 'Jaga%'
    Edited by: user9372056 on Aug 31, 2010 2:16 AM

    Hi,
    Although some forum members may be using that tool, there is still a dedicated forum for SQL Developer.
    SQL Developer
    Maybe your chances are better there.
    Regards
    Peter

  • Open script- how to automate RealTimeDecision center using Open Script

    Trying to automate Oracle Real time Decision center, but not able to capture the objects in the page,
    please help if Oracle Application Testing Suite supports Real time Decision center or is there any way to automate  Real time Decision.
    Thanks
    Nikitha

    Hi,
    Thanks for the reply. I know that there is this command which you have specified here this only adds user defined Test comments for a iteration.
    What i am actually looking for is to report a pass or a fail. For example if there are no Object level tests in the Script then can we add our results based on a custom test that we built.
    Forms.textfield.Value1 matches Variable(From Databank) or not. This might be my test but is there a way to tell Open script that i am reporting a pass or fail based on my validation. If you have worked in QTP we have "Reporter.ReportEvent" i am looking some thing like this. This is for overriding the system generated results.
    Anyways i have created my own customized HTML results where i report the pass or fails.
    If there are any options available please let me know.
    Thanks

  • Oracle Load testing- Open script at the end of recording gives this error

    I am recording a script for R12 in Open scirpt , but at the end of finish record Open script Load testing gives this error"Failed to correlate script has encountered a problem"
    Steps I followed. Open Open script-New Script. Select Load testing Protocol(Automation) - Select Oracle EBS/Forms- Create a script. Now start recording. I have EBS R12 instance and the test I am doing is just login / open a form . After that I click Stop recording. Open script pops up a Window "Exception occured while correlating script:oracle.oats.scripting.transforms.TransformException:transfrom rule threw exception in TransformStep:oats.otas.scripting.modules.formsLT.correlationformsHttpVarSubstitution.Refer to the Error Log for Details". The tool is installed on Windiws 7 64 bit and using IE8 as a browser.
    Any help?

    Hi
    Thanks JB/Glen
    My Answers
    Stupid, but have you tried to create a new script?
    ANS-Yes JB . Always try with New one only not using the same. Also before I record first I try the same steps in browser to make sure it work/oepns all.The do the same via recording)
    Is that the only script that doesn't work?
    ANS-Every script that I record has this issue on this Windows - x 64 Laptop.
    Have you tried another one? Just a simple web one?
    ANS- Open script functional recording works fine.
    Have you ran the Diagnose Tool (Help Menu)?
    ANS- Yes- All came out Green
    Have you put a specific name for the script? Special characters?
    ANS-No my script name is Test1, Test2 etc
    Restart OpenScript?
    ANS- Yes Tried several times. Also I completely uninstalled/removed registry/folders, re-installed also.
    But I have another Windows XP machine where I installed now that works fine. Only issue now on this Laptop - Why /where is the issue on this Laptop?
    Open the error view which will show in the lower pane. You may find more details.
    ANS- More details shows only "Exception occurred while correlating script." a one liner
    When you manually run the "Correlate Script" option as JB has mentioned, first un-check all but one correlation rule. This is an additional choice in "Correlate Script" menu. If no error, "Revert to recorded" again, and then "Correlate Script" again though this time un-check all but two correlation rules. Continue this effort until you narrow down the correlation rule which throws the error.
    ANS- This is a simple out of the install and I ccan see only two Rules. HTTPS Libraries and Oracle Load Form Libraries. If we leave Oracle Load form libraries checked and correlate that is where it is failing. I believe we need that Library correct?
    Thanks

  • How to capture the record value, when an error occurs

    Hi , can you please help us in achieving the below requirement.
    i have source with 10 accounts , i have to update the 5 target tables for the 10 accounts, i am using a for loop to do insert/update operations.
    when an primary key/unique constraint error occurs while doing the insert/update operations, i want to catpure that account number along with the
    error message and store in a table.
    right now i am using sqlerrm,sqlcode in my exception block to capture the oracle error code and error message,i need to capture the account number along with this message. please tell me how to achieve this ...
    thanks

    if you want to log the error in the table and keep going with the rest of them you might want to check out bulk collection exception handling.
    http://psoug.org/reference/array_processing.html
    CREATE OR REPLACE PROCEDURE forall_errors IS
    TYPE myarray IS TABLE OF tmp_target%ROWTYPE;
    l_data myarray;
    CURSOR c IS
    SELECT table_name, num_rows
    FROM all_tables;
    errors PLS_INTEGER;
    dml_errors EXCEPTION;
    PRAGMA EXCEPTION_INIT(dml_errors, -24381);
    BEGIN
      OPEN c;
      LOOP
        FETCH c BULK COLLECT INTO l_data LIMIT 100;
        -- SAVE EXCEPTIONS means don't stop if some DELETES fail
        FORALL i IN 1..l_data.COUNT SAVE EXCEPTIONS
        INSERT INTO tmp_target VALUES l_data(i);
        -- If any errors occurred during the FORALL SAVE EXCEPTIONS,
        -- a single exception is raised when the statement completes.
        EXIT WHEN c%NOTFOUND;
      END LOOP;
    EXCEPTION
      WHEN dml_errors THEN
        errors := SQL%BULK_EXCEPTIONS.COUNT;
        dbms_output.put_line('Number of DELETE statements that
        failed: ' || errors);
        FOR i IN 1 .. errors
        LOOP
          dbms_output.put_line('Error #' || i || ' at '|| 'iteration
          #' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX);
          dbms_output.put_line('Error message is ' ||
          SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
        END LOOP;
      WHEN OTHERS THEN
        RAISE;
    END forall_errors;
    /

  • How to add attribute to UME and how to retrive the attribute value

    Hi Gurus,
    I have developped an application that retriving the data from back end for that we need to give input values .
    I have got the Logged user from the Iuser But Sales Organization of User [from user profile] and Brand value [from user profile] I want these input put values need to pass as a input .
    For this how can get the sales org and Brand value.
    Give me suggestions for this or how to pass attributes to UME and how to capture it.
    Advance thanks.
    thanks
    Lohi.

    Check if there are any available function modules for this functionality. One of the FM that comes to my mind is:
    a) BAPI_USER_GET_DETAIL
    Check with your SD guys , if there exists any such function module.
    Regards,
    Subramanian V.

  • How to retrive KFF segment values in each row of VO?

    Hi,
    I need to retrve Special Information Type values in HR screen.
    There is a table based on the VO and on of the column is a flex (KFF) linked ot the same VO.
    How can i retrieve the KFF segments values from each row of the table (or VO row).
    The VO contains the ID_FLEX_NUM only.
    Specific issue details:
    It is an HR screen
    page : PersonSIT Page
    Region : SpecialInformationType(Table)
    VO : SpecialInformationDetailsVO
    flex id="HrSitKeyFlex" flexName="PEA" flexFieldAppShortName="PER" user:akAttributeCode="HR_PERSON_SIT_FLEX"
    Any information is of great help
    Thanks,
    Kamath..

    Vo Query is
    SELECT /*+ ORDERED */pac.analysis_criteria_id,
    ppa.analysis_criteria_id old_analysis_criteria_id,
    ppa.person_analysis_id,
    ppa.object_version_number,
    ppa.id_flex_num,
    ppa.business_group_id,
    ppa.person_id,
    ppa.date_from,
    ppa.date_to,
    'DB_ROW' status,
    ppa.date_from old_date_from,
    ppa.date_to old_date_to,
    ppa.attribute1,
    ppa.attribute2,
    ppa.attribute3,
    ppa.attribute4,
    ppa.attribute5,
    ppa.attribute6,
    ppa.attribute7,
    ppa.attribute8,
    ppa.attribute9,
    ppa.attribute10,
    ppa.attribute11,
    ppa.attribute12,
    ppa.attribute13,
    ppa.attribute14,
    ppa.attribute15,
    ppa.attribute16,
    ppa.attribute17,
    ppa.attribute18,
    ppa.attribute19,
    ppa.attribute20,
    ppa.attribute_category
    FROM per_person_analyses ppa,
    per_analysis_criteria pac
    WHERE ppa.business_group_id = :1
    AND ppa.person_id = :2
    AND ppa.id_flex_num = :3
    AND pac.analysis_criteria_id = ppa.analysis_criteria_id
    The values from log file for a single row is as below
    i = 0
    row.getAnalysisCriteriaId()=68198
    row.getAttribute1()=null
    row.getAttribute10()=null
    row.getAttribute11()=null
    row.getAttribute12()=null
    row.getAttribute13()=null
    row.getAttribute14()=null
    row.getAttribute15()=null
    row.getAttribute16()=null
    row.getAttribute17()=null
    row.getAttribute18()=null
    row.getAttribute19()=null
    row.getAttribute20()=null
    row.getAttribute2()=null
    row.getAttribute3()=null
    row.getAttribute4()=null
    row.getAttribute5()=null
    row.getAttribute6()=null
    row.getAttribute7()=null
    row.getAttribute8()=null
    row.getAttribute9()=null
    row.getAttributeCategory()=null
    row.getBusinessGroupId()=83
    row.getDateFrom()=2009-10-01 03:32:38.0
    row.getDateTo()=null
    row.getIdFlexNum()=50454
    row.getPersonAnalysisId()=null
    row.getObjectVersionNumber()=null
    row.getOldAnalysisCriteriaId()=null
    row.getOldDateTo()=null
    row.getOldDateTo1()=null
    row.getPersonId()=46788
    row.getSelectFlag()=Y
    row.getStatus()=NEW_ROW
    Here, row.getIdFlexNum()=50454 is the id_flex_num- KFF structure code which has 4 segments.
    I need to get the value for the VaueSet of Segment1
    The segment values are displayed in the OAF page but i did not get how did std oracle code fetch it
    Thanks,
    kamath

  • How to retrive 5 record

    hi everyone,
    can any one guide me to solve this.
    i write a query to get user details which returns 20 records.
    select * from users.
    how can i write a query to get the 5 user in the user table.
    thanks in advance

    Rosario,
    Maybe, He want only first 5 RecordNote that first is well only if you use an ORDER BY clause. That will be first rows in regards of a sort criteria which have to be defined. Without ORDER BY clause, nothing say you that is first or last or any other rows... we are only able to say "take 5 rows, not first, not last, just 5 rows".
    Nicolas.

  • How to retrive the records with in the range

    hi,
    I want to read the records from the table with in the date range.
    for example select empID,empName from EmpTable where stardat to lastdate
    please somebody help me...
    thanx in advance
    cinux

    hi,
    I want to read the records from the table with in the
    date range.
    for example select empID,empName from EmpTable where
    stardat to lastdate
    please somebody help me...
    thanx in advance
    cinuxhi ,
    Oracle provides BETWEEN ..AND.... operator for such requirement.
    SQL> select empno,ename,hiredate from emp where hiredate between to_date('03-dec-80','DD-MON-RR') and sysdate;
    EMPNO ENAME HIREDATE
    7369 SMITH 17-DEC-80
    7499 ALLEN 20-FEB-81
    7521 WARD 22-FEB-81
    7566 JONES 02-APR-81
    7654 MARTIN 28-SEP-81
    7698 BLAKE 01-MAY-81
    7782 CLARK 09-JUN-81
    7788 SCOTT 19-APR-87
    7839 KING 17-NOV-81
    7844 TURNER 08-SEP-81
    7876 ADAMS 23-MAY-87
    EMPNO ENAME HIREDATE
    7900 JAMES 03-DEC-81
    7902 FORD 03-DEC-81
    7934 MILLER 22-FEB-81
    124 johndoe 28-DEC-05
    15 rows selected.
    Hope this may help you.
    Trinath Somanchi,
    Hyderabad.

  • How to use databank in OLT

    Hi
    I am facing issues while opening databank with Load Test UI
    In my script which is created with open script I used a databank for a variable but when I am trying to open the script in OLT it gives a error:
    Error getting databank info
    Exception while retrieving response for request 1912
    Error opening databank for the script
    Repository not found
    any suggestion to fix this?
    TIA

    I'm not sure if this is the same issue, but I had something similar a while back. What I found was that I had to ensure that the "Save Path" for my Databanks were set to "Relative to current script" (rather than "Relative to a repository" which is the default).

  • How to retrive data from this inernal table

    hi,
    could u please explain clearly how to retrive the records  from this structure
    data: begin of itab.
    include structure sflite.
    data:end of itab.
    how to retrive data from this structure could u plz give me a code with example.

    Hi,
    TYPES: BEGIN OF struc1,
                    val1 TYPE c,
                    val2 TYPE c,
                 END OF struc1,
             BEGIN OF struc2,
                   val type struc1,
                   val3 TYPE c,
                   val4 TYPE c,
                END OF struc2.
    DATA: l_f_str1 type struc1,
          l_f_str2 type struc2.
    START-OF-SELECTION.
      l_f_str2-val-val2 = 'a'.
      write : / l_f_str2-val-val2.
    END-OF-SELECTION.

  • How to change the variable value for the SCript in debugging

    I have a variable &KNA1-NAME4&
    i want to change the value of this variable in debugging mode
    can any one please tell me how to do in step by steb mode.

    Hi Ravi,
    In script u can't change the value in debigging. Open ur print program(If u don't know check TNAPR table).
    Search for the element name where u r printing this variable. U can see some thing like
    CALL FUNCTIOn 'WRITE_FORM'
    element = ur element name.
    Keep break point here and when u issue output control stops here. Now change the value as we does in normal reports.
    Thanks,
    Vinod.

  • How to retrive one table records into another table by multiple records

    how to retrive table X records into another table Y by multiple records (means at once i want display 10 records) in form 6i .
    when i am written cursor it is ftching only one record.But i want to display all records at once.
    Declare
    Cursor cur_name is
    select PROTOCOL_NO,DOCNUM,SUBSETSN,REPEATSN,AESEQ,AETERM from coding_ae WHERE PROTOCOL_NO='KP229';
    Begin
    open cur_name;
    loop
    fetch cur_name into :PROTOCOL_NO,:DOCNUM,:SUBSETSN,:REPEATSN,:AESEQ,:AETERM;
    exit when cur_name%notfound;
    next_record;
    end loop;
    close cur_name;
    End;

    Hi,
    Make sure the cursor is in the detailed block. For that use 8GO_BLOCK* built-in. So the code will be
    Declare
    Cursor cur_name is
    select PROTOCOL_NO,DOCNUM,SUBSETSN,REPEATSN,AESEQ,AETERM from coding_ae;
    Begin
    GO_BLOCK('<detailed_block_name>');
    open cur_name;
    loop
    fetch cur_name into :PROTOCOL_NO,:DOCNUM,:SUBSETSN,:REPEATSN,:AESEQ,:AETERM;
    exit when cur_name%notfound;
    next_record;
    end loop;
    close cur_name;
    End;Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to handle Java popup in oracle forms application through Open Script?

    I want to record and test oracle form application but it popup java dialogue box and Open Script can't handle java object.
    So how to handle the Java popups in forms application?

    Hi, Have you been able to resolve this?

  • Not able to record web navigation(URL/Certificate Error : Navigation Blocked) part of oracle application in open script !

    Hi,
    I am trying to record script in using Functional Oracle EBS/Form in open script but only Oracle Forms actions are got captured.
    I am not able to record first web navigation(URL/Certificate Error : Navigation Blocked) part, only i am getting "web.window(7, "/web:window[@index='0' or @title='about:blank']"). close()" code for   navigation of URL part.
    I tried with changing Capture Screen in Recorder but doesn't work. 
    How to resolve this.
    Please help me out.
    Here is some info :
    OATS version  : Version: 12.3.0.1 Build 376
    Browser : Internet Explorer 9
    Operating System : Windows 7
    I am using VPN connection to open oracle application. 

    try adding ur url in secured site list

Maybe you are looking for

  • How to log into Mountain Lion if the FileVault user can't unlock the drive?

    I have a computer that has the FileVault user not able to decrypt the drive. I've read on how to get into the machine and have successfully done so a few times. This has been accomplished by creating a new Admin user, deleting the original user, recr

  • IPad as a DVD player?

    I want to watch my DVDs on an iPad but don't want to rip them into the compatible format. Will the CameraAdapter Kit work as the USB input for the super drive?

  • Photoshop CS5 freezes when I try to open photomerge

    I am using PS CS5.1 from the Creative suit 5.5 design premium on an iMac with the 10.7 Lion operating system. The latest 12.1 photoshop update has been installed.

  • TS1424 Runtime error

    "R6034 An application has made an attempt to load the C runtime library incorrectly. " I've uninstalled/reinstalled and still get the same error. Any help?

  • ICal syncing old events

    Hi I have a strange problem...  I just moved to a new MacBook Pro with Mountain Lion.  Now when new CalDav events come in, iCal picks up an event in my email from two + years ago and adds THAT to the calendar ... not the new event.  Any ideas?