First record of the block

Hi all

Understand that this is the last recording of the block shapes provide the: SYSTEM. LAST_RECORD.

But if I want to know if the block is the first record of the block that I use.

Does not include forms: SYSTEM. PREMIER_ENREGISTREMENT.

Help, please.

Concerning

Rajat

You can use: SYSTEM. CURSOR_RECORD = 1

Tags: Oracle Development

Similar Questions

  • update a record is updated the first record in the comic book... Help!

    I'm going again and again to this new and can not find the problem.

    I have a form that sends an email to the emails that are on a database mysql php however when I update some documents it is always update the first record in the comics... I looked on this so many times and can not see what goes wrong

    the user ID is not auto_increment but is based on the username (which are all unique)

    I include the code to see if I'm missing something

    <? php require_once('.. / Connections/hostprop.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}

    $updateSQL = sprintf ("UPDATE plus_signup SET email = %s, emailerSubject = %s emailerContent = %s WHERE userid = %s",

    GetSQLValueString ($_POST ['email'], "text").

    GetSQLValueString ($_POST ['emailerSubject'], "text").

    GetSQLValueString ($_POST ['emailerContent'], "text").

    GetSQLValueString ($_POST ["userid"], "text"));

    @mysql_select_db ($database_hostprop, $hostprop);

    $Result1 = mysql_query ($updateSQL, $hostprop) or die (mysql_error ());

    Guarantor of the e-mail

    $to = $_POST ['email'];

    $subject = "email property student Host."

    $message ="

    < html >

    < head >

    < title > expensive ".» GetSQLValueString ($_POST ["userid"], "text"). "< /title >

    < / head >

    < body >

                                  <img src=\" http://www.hoststudent.co.UK/beta/images/hostlogo.gif ' -' alt =------"-www.HostStudent.co.uk" / >

    < h2 > year students host Email < / h2 >

    < br / > < br / >

    < table >

    < b >

    Subject of the E-mail < td >: < table >

    < /tr >

    < b >

    < td >. GetSQLValueString ($_POST ['emailerSubject'], "text"). "< table >

    < /tr >

    < b >

    Content of the < td > < table > e-mail

    < /tr >

    < b >

    < td >. GetSQLValueString ($_POST ['emailerContent'], "text"). "< table >

    < /tr >

    < /table >

    < / body >

    < / html >

    ";

    Content-type always defined when sending HTML email

    $headers = "MIME-Version: 1.0 '. « \r\n » ;

    $headers. = "content-type: text / html;" charset = iso-8859-1 ". « \r\n » ;

    $headers. = "from: HostStudent.co.uk < " [email protected] > '. "\r\n";

    $send = mail ($to, $subject, $message, $headers);

    $updateGoTo = "TenantEmailSent.php";

    If (isset {}

    $updateGoTo. = (strpos ($updateGoTo, '?'))? « & » : « ? » ;

    $updateGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $updateGoTo));

    }

    @mysql_select_db ($database_hostprop, $hostprop);

    $query_Recordset1 = "SELECT username, email, emailerSubject, emailerContent FROM plus_signup";

    $Recordset1 = mysql_query ($query_Recordset1, $hostprop) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($Recordset1);

    ? >

    <?

    session_start();

    if(!$_SESSION['loggedIn']) / / if the user IS NOT connected, before they return to the login page

    {

    Header("Location:login.html");

    }

    ? >

    < script type = "text/javascript" >

    function loadFields (Value) {}

    var guarantor = Value.split("|");

    pseudo1 var = guarantor [0];

    var GuName = guarantor [1];

    var GuPhoneEmail = guarantor [2];

    document.getElementById('userid1').value = pseudo1;

    document.getElementById('GuName').value = GuName;

    document.getElementById('GuPhoneEmail').value = GuPhoneEmail;

    }

    < /script >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form2" id = "form2" >

    < table align = "center" >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < select name = "userid" id = "userid" onchange = "loadFields (this.value)" >

    < option value = "select sponsor" > select guarantor < / option >

    <? PHP

    {}

    ? >

    < option value = "<?" PHP echo $row_Recordset1 ['userid']. '|' . $row_Recordset1 ["GuName"]. '|' . $row_Recordset1 ["GuPhoneEmail"];? > "> <?" PHP echo $row_Recordset1 ['userid']. " , " . $row_Recordset1 ["GuName"]. " , " . $row_Recordset1 ["GuPhoneEmail"];? > < / option >

    <? PHP

    } While ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));

    $rows = mysql_num_rows ($Recordset1);

    If ($rows > 0) {}

    mysql_data_seek ($Recordset1, 0);

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    }

    ? >

    < / select > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > tenant name < table >

    < td > < input type = "text" name = "pseudo1" id = "pseudo1" readonly = "readonly" = value "<?" PHP echo htmlentities ($row_Recordset1 ['userid'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > GuName: < table >

    < td > < input type = "text" name = "GuName" id = "GuName" readonly = "readonly" = value "<?" PHP echo htmlentities ($row_Recordset1 ['GuName'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > GuPhoneEmail: < table >

    < td > < input type = "text" name = "GuPhoneEmail" id = "GuPhoneEmail" readonly = "readonly" = value "<?" PHP echo htmlentities ($row_Recordset1 ['GuPhoneEmail'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > GuEmailerSubject: < table >

    < td > < input type = "text" name = "GuEmailerSubject" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > GuEmailerContent: < table >

    < td > < textarea name = "GuEmailerContent" cols = "45" rows = "5" > < / textarea > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < input type = "submit" value = "Email" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_update" value = "form2" / >

    < input type = "hidden" name = "userid" value = "<?" PHP echo $row_Recordset1 ['userid'];? ">" / >

    < / make >

    I found the problem, there are two forms of the same name...

    Thank you

  • Verification is a detial record in the block of retail?

    Dear gurus...
    What is the best way to check or is a detial record in the block of detail no matter I can control that there should be no master record entry without a child record of retail registration in registration forms?

    You can create a text element and set the mode of calculation of the property of the ANALYTICS field and the COUNTY put text-to-speech function and then choose the datablock and therefore the point that you want to check for records.
    So if count will be zero means there is no record in the detail block.

    -Clément

  • PHP code takes the first record in the database regardless of the selected one

    I struggled for hours with this trying to see why no matter what file is selected, the record displayed is always the first. It must be a stupid mistake on my part, but I can't see it.

    I use DW CC 2015 with WebAssist server for server code additions. I looked at the database itself, and it's OK.

    Test data

    Capture.JPG

    Copy the following code enumerates the various documents in the database. (I removed my HTML that works well for brevity).

    <? php require_once('.. /.. /.. / Connections/Terrier.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("" SELECT * FROM documents ' ");

    $rsDocuments-> execute();

    ? >

    <! doctype html > < html >

    "' Snip...

    < p align = "left" > < a href = "add_terrier_document.php" > add new record of Documents < /a > < /p >

    < table width = "100%" border = "1" cellspacing = "2" cellpadding = "2" >

    < tbody >

    < b >

    < td width = "26%" align = "left" > < strong title > < / strong > < table >

    < td width = "52%" align = "left" > < strong text > < / strong > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < /tr >

    <? PHP

    {While (! $rsDocuments-> {atEnd())}

    ? >

    < b >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < table >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < table >

    < td width = "6%" align = "center" > < a href = "view_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> view < /a > < table >"

    < td width = "6%" align = "center" > < a href = "edit_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> edit < /a > < table >"

    < td width = "6%" align = "center" > < a href = "confirm_terrier_document_delete.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> delete < /a > < table >"

    < /tr >

    <? PHP

    $rsDocuments-> moveNext();

    }

    $rsDocuments-> moveFirst(); return the RS to the first record

    ? >

    < / tbody >

    < /table >

    < a href = "<?" PHP echo $rsDocuments-> getFirstPageLink();? > "> first < /a > - < a href =" <? PHP echo $rsDocuments-> getNextPageLink();? > "> Next < /a > - < a href =" <? PHP echo $rsDocuments-> getPrevPageLink();? > "> previous < /a > - < a href =" <? PHP echo $rsDocuments-> getLastPageLink();? > "> last < /a >"

    < p >

    .... SNIP

    The table shows the different records in the database. I can go through the files back and forth and pick any one to edit - say one-third.

    The PHP code creates the URL of http:// localhost/priory_database_2/gateway/Terrier/documentation/edit_terrier_document.php?dc_in dex = 3

    However, the record that is displayed is always record 1, regardless of the currently selected folder.

    The edition code (less HTML) is.

    <? php require_once('.. /.. /.. / Connections/Terrier.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/queryobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents ORDER BY dc_index ASC");

    $rsDocuments-> execute();

    ? >

    <? PHP

    If (isset($_POST["submit"]): isset($_POST["submit_x"])) {}

    $UpdateQuery = new WA_MySQLi_Query ($Terrier);

    $UpdateQuery-> action = 'put up-to-date. "

    $UpdateQuery-> table = 'documents '.

    $UpdateQuery-> bindColumn ("dc_index", "s", "".) "((isset($_POST["dc_index"])))? $_POST ["dc_index"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_title", "s", "".) "((isset($_POST["dc_title"])))? $_POST ["dc_title"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_text", "s", "".) "((isset($_POST["dc_text"])))? $_POST ["dc_text"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ('date_recorded', "s", "".) "((isset($_POST["date_recorded"])))? $_POST ["date_recorded"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("date_update", "s", "".) "((isset($_POST["date_update"])))? $_POST ["date_update"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> addFilter ('dc_index', '=', 'i', ' ".) () $_GET ['dc_index']). » ») ;

    $UpdateQuery-> execute();

    $UpdateGoTo = 'index.php ';

    "If (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo? rel2abs ($UpdateGoTo, dirname (__FILE__)):" ";" "

    $UpdateQuery-> redirect ($UpdateGoTo);

    }

    ? >

    ..... Snip


    < /table >

    < h3 align = "center" > change the document details < / h3 >

    < form id = "AddDocumentRecord" name = "AddDocumentRecord" method = "post" >

    < label for = "dc_title" > title

    < name textarea = "dc_title" cols = "150" lines = "3" maxlength = "300" id = "title" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < / textarea >

    < / label >

    < label for = "dc_text" > Description

    < name textarea = "dc_text" cols = "150" lines = "20" maxlength = "60000" id = "text" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < / textarea >

    < label for 'date_recorded' = > registration Date:

    < name textarea = 'date_recorded' cols = "50" rows = "1" maxlength = "20" id = 'date' > <? PHP echo ($rsDocuments-> getColumnVal ("date_recorded"));? > < / textarea >

    < / label >

    < label for = "date_update" > Date of last update:

    < name textarea = "date_update" cols = "50" rows = "1" maxlength = "20" id = "Refresh" > <? PHP echo ($rsDocuments-> getColumnVal ("date_update"));? > < / textarea >

    < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" >

    < input name = "dc_index" type = "hidden" id = "dc_index" value = "<?" PHP echo ((isset($_POST["dc_index"]))? $_POST ["dc_index"] ":" "")? > ">"

    < / make >

    ... Snip

    The query for the edit page should look like

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents WHERE dc_index =?");

    $rsDocuments-> bindParam ('i', ' ".) "(isset($_GET['dc_index']))? $_GET ['dc_index']:" ")". "" », «-1 ») ;

    $rsDocuments-> execute();

    What this did that select a recording with a value of dc_index.

  • first record of the table (repeating group) is to be duplicated

    Using the add-in Word RTF output to display/print order confirmation.

    The first line item in the body of detail is reproduced always regardless of the method that I use.
    The data are NOT duplicated in the XML input file, only in the Word output.

    Software data problem bug or weird?

    I'd be happy to send the little XML file.

    Suggestions? Thank you!

    Published by: jbiwer on May 10, 2010 10:32

    This is easily duplicated. It's either a bug in BI Publisher or in the Oracle ERP that has created the XML file!

    Forgive my lack of use the terms correct XML, but I noticed that if you look at the raw XML data
    the creator of the XML file using the same name tag but at two different levels:

    ...
    Name of the tag <>
    ...
    ...
    ... Zzzz > name of the tag < < / Tag name >
    ... XXXXX > name of the tag < < / Tag name >
    ..
    ..
    < / tag name >

    Published by: jbiwer on May 10, 2010 10:41

    I forgot to mention, that if I manually change the background and all tags at the top, the first line of detail in the table data is NOT duplicated.

    Hi Jim,.

    Your xml file is good, but the word template is wrong.

    Send me the template and xml my identification number, in the profile.

  • activation and deactivation of the button in the block record multi

    Hi all
    I use
    Forms [32 bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    I have a multi record block each block contains a button (the button is to approve the record in terms of change of status)
    I have elements such as the date, remarks and button
    the button should be enabled if the remarks is not null in the case otherwise it should be disabled.
    I wrote to this effect in the pre-record trigger
    if :record is null then
       set_item_property('button',enabled,property_false);
    else
          set_item_property('button',enabled,property_false);
    end if;
    What problem is enable and disable has repercussions on all the buttons in the block. in other words, if the remarks of the first record is null then all records button is disabled. If the observations of the first record column is not null, then all the records in the column of buttons is enabled.
    I have to enable and disable the button for the corresponding record.that ways if the remarks of the first record column is not null not so only records first button should be activated and others should be disabled.

    Thank you...

    Hello

    but I'm not able to do.

    You can find the current record Y_POS 
    

    This means that whatever the user record navigates according to whether the button position gets her past set.but not.
    for example the user navigates up to the fourth record that will settle the position of the button but if user navigates back to the first record. the position of the button is going to the fifth record?

    V_ITEM_Y_POS: = GET_ITEM_PROPERTY ("NOM_ELEMENT", Y_POS);

    Please note that do not use the button element to get the Y_POS.
    This should be another element in the block, then button as a buttons position will continue to change on
    What you are to get the Y_POS of button which is the fourth position of the record for the first time so, it is fair,
    second time you set Y_POS button which is 4th record + first recording which is the fifth album,.
    you need to find is the Y_POS from a fixed point in the block.

    in your description what do you mean by top_record. Why I ask, is because it is multi record block(showing_10_records).so will appear every 10. no record may be hiding.

    Top of page record is the first record in the block.
    For example, in a record 10 block, if there are 20 records then if you navigate the records, if you go to the 11th, 12th, 13th, 14th... the other then your TOP_RECORD be record No 2, 3, 4,... is the first record that is displayed in the block that is not always 1, and will be 1 only for the first 10 rcords.
    If we use: system.cursor_record we will not be able to get the Y_POS exact numbers of superior record then 10 which will put the button located under the last (10th) record, which is not what we want, so need to find the TOP_RECORD.

    Best regards

    Arif Khadas

  • How to programmatically set the focus to one record other than the first condition in a block?

    My form runs the query on the block, and by default, it leaves the focus on the first record (top) in the block.  I would like to have it put emphasis on the last record in the block to the original query.

    I tried Last_record and go_record in a trigger post-bloc but these internal controls are limited and you cannot run message block triggers.  I see not all things property of block which could influence of it... either how can I do?  Thank you.

    I understand the answer to my own question... in the new block instance trigger, there is an execute_query statement and I simply last_record statement after...

  • Select the first value in the list of values when running in poplist

    Hello
    IM using forms 6i. I filled the poplist by request. But what I need, I want to choose the first value in the list of values when running...

    That is to say, during execution, the poplist should have chosen its first value in the list of values.

    What to do...

    Concerning
    Sery

    WHEN CREATING a RECORD of the block of the list item or after the filling of the list item, you can write

    : my_list_item: = GET_GROUP_CHAR_CELL ('my_list_item', 1); / * If the data type of the item in your list is character.*.

    Here, instead of 1, you can give any clue... 1: value to the first list item position

  • Find and change a single record in the database

    I create a few forms that access an Access database that will be used to enter data into the database.  I am able to open the database files and scroll through records one at a time and have added features to be able to search and display a single record.  The problem I'm having is when I load a single record and then modify that file, I can't save the changes to the record, in other words, the record is not updated on the database.

    I can add new records and modify records as long as I scroll to them using the. next(),. last(),. first() and. previous() orders; However, when I insert a single record I can't figure out how to save the changes made to that record in the database.

    Here it is:

    xfa.sourceSet.DataConnection.open ();

    xfa.sourceSet.DataConnection.first ();

    var oDataConnList = xfa.sourceSet.DataConnection.nodes

    var oDataConnList.length = nCount;

    for (var i = 0; i)< ncount;="">

    If (CurrentRecord.rawValue! = SearchField.rawValue) {}

    xfa.sourceSet.DataConnection.next ();

    }

    }

    This establishes the data connection, made sure that it starts on the first record, counts the number of files and of volutes each record until he finds the one the user sought!

  • SKIP A RECORD IN THE FILE EXCEL STAGING

    Hello

    Does anyone know how we can jump the first record of the first leaf and not consider the 1st record in the second title sheet. No need to explain that to me the opposite that happens. If anyone can help? Dev?


    Concerning
    B

    Vincent, close the excel file and also the designer and restart designer and run it again, which should resolve the error:
    The connection to the display of your linked Microsoft Excel worksheet has been lost.

    Now this particular code uses OdiSqlUnload to obtain the topology connection settings, this is why we use the command on the source to get the settings.
    Using this code I am reading Excel save and write down them in a CSV file and then you can resolve the problem you have desired.

    Yes the c:\test.csv is the output file, so please change accordingly.

  • How rea total no element is available in the block details

    I use Forms 10 G.
    I have a block of details, and it is a tabular format.
    I have 10 record in the block.

    I use this post for an insertion request not in the block of details...
    *: mySno: = get_block_property ('mydetail_block', CURRENT_RECORD); *

    How can I count the number of records are in the block of details?
    Declare
      i  pls_integer := get_block_property('mydetail_block',CURRENT_RECORD);
      max  pls_integer ;
    Begin
      go_block('mydetail_block');
      Last_Record ;
      max := get_block_property('mydetail_block',CURRENT_RECORD);
      message('max records: || max);
      Go_record( i ) ;
    End;
    

    François

  • read UTL_File, first record is missing

    Hello

    I read the text with UTL_FILE file to insert data in the staging table. For some reason any the first record to the text in inserting file is not in the table
    (Assume there are 10 records in text.file, except the very first record rest records is inserted successfully). Please help me on this.
    create or replace
    PROCEDURE PRC_XYZ_FILE_LOAD(
        p_in_file_name IN VARCHAR2,
        p_out_message OUT VARCHAR2)
    IS
     v_membernumber     whr_stageftd.membernumber%TYPE ;
      v_memberfullname   whr_stageftd.memberfullname%TYPE ;
     
     BEGIN
     --open files
      v_file_handler := UTL_FILE.FOPEN(v_file_path, v_file_name, 'r');
       UTL_FILE.GET_LINE(v_file_handler, v_text);
       LOOP
        BEGIN
             BEGIN
            UTL_FILE.GET_LINE(v_file_handler, v_text);
          EXCEPTION
          WHEN no_data_found THEN
            EXIT; -- end of file
          END;
          -------------------- Insert data in to whr_stageftd table -------------------------------
          v_detail_record              :=FNC_PIPE_PARSE (V_TEXT,1,'~');
           v_membernumber               :=FNC_PIPE_PARSE (V_TEXT,2,'~');
           v_memberfullname             :=FNC_PIPE_PARSE (V_TEXT,3,'~');
           v_stage:='stage3';
           v_locationid                 :=FNC_PIPE_PARSE (V_TEXT,4,'~');
           v_regionid                   :=FNC_PIPE_PARSE (V_TEXT,5,'~');
           v_transstartdate             :=FNC_PIPE_PARSE (V_TEXT,6,'~');
           v_transenddate               :=FNC_PIPE_PARSE (V_TEXT,7,'~');
                     
          IF v_detail_record            = '2' THEN
            INSERT
            INTO whr_stageftd
              (
                fileid ,
                membernumber ,
                memberfullname ,
                locationid,
                regionid,
                earningstartdate,
                earningenddate  )
              VALUES
              (
                v_fileid,
                v_membernumber,
                v_memberfullname,
                v_locationid,
                v_regionid,
                v_transstartdate ,
                v_transenddate);
            v_rec_counter := v_rec_counter + 1;
            IF mod(v_rec_counter,10000)= 0 THEN
              COMMIT;
            END IF;
          END IF;
        EXCEPTION
        WHEN OTHERS THEN
         dbms_output.put_line(Sqlerrm||v_stage);
          END;
      END LOOP;
       COMMIT;
      UTL_FILE.FCLOSE(v_file_handler);
     END PRC_XYZ_FILE_LOAD;
    Here's the code for FNC_PIPE_PARSE
    create or replace
    Function      FNC_PIPE_PARSE
     (p_instring in varchar2,
      p_field_no in number,
      p_delimiter in varchar2 default '|')
      RETURN varchar2 IS
     v_start number;
     v_no_of_chars number;
     v_instring varchar2(4000);
        v_delimiter_length NUMBER(10) := 0;
    BEGIN
    v_delimiter_length := length(p_delimiter);
    v_instring:=p_instring||p_delimiter;
    
      IF p_field_no = 1 THEN
         return(substr(v_instring,1,instr(v_instring,p_delimiter)-1));
      ELSE
       v_start := instr(v_instring,p_delimiter,1,p_field_no-1)+v_delimiter_length;
       v_no_of_chars := instr(v_instring,p_delimiter,1,p_field_no) - v_start;
     return(substr(v_instring,v_start,v_no_of_chars));
      END IF;
    END;
    examples of data
     actual data
    2~105266648J~C TEST~~~20050707~20050707
    2~104133506D~K TEST~~~20050707~20050707
    2~104929890I~A TEST~~~20050707~20050707
    2~104700166K~D TEST~~~20050708~20050708
    inserted into the table data (missing first record
    2~104133506D~K TEST~~~20050707~20050707
    2~104929890I~A TEST~~~20050707~20050707
    2~104700166K~D TEST~~~20050708~20050708
    SQLERRM error is
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small stage3
    Thank you
    Sandy

    Apparently, you do not specify the parameter len to GET_LINE, and the doc says:

    The parameter len GET_LINE must be a number in the range 1 to 32 767. If not specified, Oracle provides the default value of max_linesize.

    The FOPEN max_linesize parameter must be a number in the range 1 to 32 767. If not specified, Oracle provides a default value of 1024.

    Could it be the culprit?

    You should try to put some debugging in your code to find out what online content triggers the error.

  • Form check synchronize on Popup to the selected record from the table

    I'm trying to recreate what I did on the portals of the OAS in Weblogic/ADF. I have JDeveloper 11.1.1.2.0. What I do seems to be a little different than the tutorials: I need something like the tutorial master-detail, but instead the details appearing on the same page, it should appear in a popup. I managed to build the part table/popup. But when the popup appears, it displays the wrong record. Here are the steps I used to create this page:

    After you create the ADF Fusion Middleware project:

    1 create templates for the tables I need.
    2. create the JSF Page.
    3 drop panelCollection on the page.
    4. remove my data to see in panelCollection control and choose the Table read-only ADF. Select the sorting and selection options.
    5 change table properties: selected = DisplayRow, EditingMode = clickToEdit
    6 drag the Popup on the page.
    7. remove my data from view in popup control and choose the form of the ADF. Select the send option.
    8 drop showPopupBehavior on the page. Name of the popup. The value triggerType to the 'selection '. (triggerType "click" works, too)
    9 deploy.

    The table is displayed. I click on a line. The pop-up window appears. The form of popup displays the first record in the table. I click on any line.

    I just bought the merger Oracle 11g Developer Guide, but were not able to answer this question yet.

    Any ideas?

    Thank you.

    See this video for how it works for me:
    http://www.ScreenToaster.com/watch/stWUtcRkVLQ1BcSV1aX15Q

  • How to check if this is the first record

    Hello..
    I have a block with some elements SL, STAFF,..., NAME of several record.
    during data entry, I want to check if this record is first record...
    If it's trees folder I need to know the SL of the latest entry of DB and based on that generate next SL.

    "Let me know how to check if my first record..?

    thnx...

    ManiKanchan wrote:
    Hello..
    I have a block with some elements SL, STAFF,..., NAME of several record.
    during data entry, I want to check if this record is first record...
    If it's trees folder I need to know the SL of the latest entry of DB and based on that generate next SL.

    "Let me know how to check if my first record..?

    Try this,

    if GET_BLOCK_PROPERTY('block_name',CURRENT_RECORD)=1 then
    your_code;
    end if;
    

    Hope this helps

  • Alert to be fired only for the first record, when there are duplicate entries

    Hello

    This is related to the fact of Oracle 10 g.
    I have a block record multi in which I entered and save some codes, something like below

    Code Description
    =====================
    AAAAAAAAAAAA ABCD
    BBBBBBBBBBBBB PQRS
    GENEVIEVE DAVIS
    ABCD DHGFKSDHKSHG
    PQRS DFJHHGS
    EEEE SDT85604ET
    =====================

    Now I need to post a warning/msg to go when-validate-the field Code. So now if I'm on the first record, the alert/msg will appear for code ABCD which is Ok. Now, on the next album, I get a different code PQRS as indicated above, the new alert appears which is Ok. If I enter a code that has been previously entered into the record block multi and alert/msg had been exposed to the only first alert/msg need is not displayed now know if I enter ABCD again the fourth record, the alert should not be displayed.
    Note that this must be done at the time of data entry itself. I guess that maybe it can be done by using groups Records / table plsql.

    Help with a way to solve this matter will be highly appreciated...

    Thank you and best regards...

    As you have already guessed, you must be able to keep track of how many times a value has been entered. If you know what all the possible values of 'CODE' at design time, you can create a counter for each value variable, but it would be a total pain. A better solution would be to permanently keep a total dynamics you can quickly check against. For this I recommend you use a group of registration of forms. Take a look at the demo of Forms - record group treatment (duplicate values check) I wrote. Using the packet of forms Rec_Group condition in this demo, you can easily change the process listed in the working document in your scenario. Follow all the steps in the demo. For your situation, you must change the when-validate-Item trigger so that instead of checking the dupicates and omitting the form if a duplicate is found, you check the number of entries to a value in the record group and display a message if the number is 0 or not to display a message if the number is greater than 0. Your modified WVI trigger might look like this:

    DECLARE
       ignore     NUMBER := 0;
       bignore   BOOLEAN := FALSE;
    BEGIN
       IF ( :YOUR_BLOCK.CODE IS NOT NULL ) THEN
          ignore := Rec_Group.Get_Number(Rec_Group.rg_name, :YOUR_BLOCK.CODE);
          IF ( ignore = 0 ) THEN
              -- Display your message
          ELSE
              -- Don't display any message
          END IF;
          /* add the code to the record group */
          bIgnore := Rec_Group.Add_Value(rec_group.rg_name, :YOUR_BLOCK.CODE, :system.trigger_record);
       END IF;
    END;
    

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere March 30, 2011 15:07

Maybe you are looking for