The assignment of values of Table type error

Hello

I'm trying to insert values for a Collection type, while doing that I am faced with an error.
" PLS-00306: wrong number or types of arguments in call to
 'XXSCP_AVL_CSP_SQR_O_TP' "
My statement of collection type PFB and and assignment.

Object type:
TYPE XXSCP_AVL_CSP_SQR_O_TP AS                  
OBJECT  (                                       
            PLAN_ID             NUMBER,         
            SR_INSTANCE_ID      NUMBER,         
            INVENTORY_ITEM_ID   NUMBER,         
            BASE_ITEM_ID        NUMBER,              
             ITEM_NAME           VARCHAR2(50),       
             SUPPLIER_ID         NUMBER,             
            SUPPLIER_SITE_ID    NUMBER,         
            NORMAL_BUY_USAGE    VARCHAR2(5),    
            AVAILABLE_QUANTITY  NUMBER ,        
            SPL_PEG_FLAG        VARCHAR2(10),   
            SQR_LINE_ID         VARCHAR2(2000), 
            SQR_NUMBER          VARCHAR2(2000), 
            SQR_MOQ             NUMBER,         
            BPA_PO_LINE_ID      NUMBER,         
            SUGG_BPA_NUMBER     VARCHAR2(30),   
            BPA_BUY_PRICE_BASIS VARCHAR2(10),   
            BPA_LINE_NUM        NUMBER,         
            BPA_PO_LINE_LOC_ID  NUMBER,         
            BPA_CURRENCY_CODE   VARCHAR2(10),   
            BPA_PRICE           NUMBER,         
            BPA_PO_HEADER_ID    NUMBER,         
            BPA_EXPIRATION_DATE DATE,           
            BPA_QUANTITY        NUMBER,         
            ORIG_AVAILABLE_QTY  NUMBER          
        );        

Table type :

TYPE XXSCP_AVL_CSP_SQR_C_TP AS TABLE OF XXSCP_AVL_CSP_SQR_O_TP;
Statement:
 l_tab_avl_csp_sqr   XXSCP_AVL_CSP_SQR_C_TP := XXSCP_AVL_CSP_SQR_C_TP();
Assignment to the body:
l_tab_avl_csp_sqr.EXTEND(1);
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT) := XXSCP_AVL_CSP_SQR_O_TP();
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).plan_id           := l_tab_planorders (i).l_num_plan_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sr_instance_id    := l_tab_planorders (i).l_num_sr_instance_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).inventory_item_id := l_tab_planorders (i).l_num_inventory_item_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).base_item_id      := l_tab_planorders (i).l_num_base_item_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).item_name         := l_tab_planorders (i).l_chr_item_name;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).supplier_id       := l_tab_planorders (i).l_num_supplier_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).supplier_site_id  := l_tab_planorders (i).l_num_supplier_site_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).available_quantity := l_rec_pegged_list (j).remaining_aval_qty;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).spl_peg_flag       := 'Y';
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sqr_line_id        := l_rec_pegged_list (j).sqr_line_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sqr_number         := l_rec_pegged_list (j).sqr_number;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sqr_moq            := l_rec_pegged_list (j).sqr_moq;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_po_line_id     := l_rec_pegged_list (j).bpa_po_line_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sugg_bpa_number    := l_rec_pegged_list (j).bpa_number;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_buy_price_basis := l_rec_pegged_list (j).bpb_type;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_line_num        := l_rec_pegged_list (j).bpa_line_num;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_po_line_loc_id  := l_rec_pegged_list (j).bpa_lloc_id;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_currency_code   := l_rec_pegged_list (j).bpa_curr_code;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_price           := l_rec_pegged_list (j).bpa_price;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_expiration_date := l_rec_pegged_list (j).bpa_expiration_date ;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_quantity        := l_rec_pegged_list (j).bpa_quantity ;
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).orig_available_qty  := l_rec_pegged_list (j).remaining_aval_qty ;
Can anyone help with this.

Thanks in advance,
Rakesh

Published by: Vincent Rakesh on April 24, 2013 12:18 AM

You must add a vacuum-arg set constructor to your type to use, user l_tab_avl_csp_sqr (l_tab_avl_csp_sqr. "COUNTY): = XXSCP_AVL_CSP_SQR_O_TP();

create or replace
TYPE XXSCP_AVL_CSP_SQR_O_TP AS
OBJECT  (
            PLAN_ID             NUMBER,
            SR_INSTANCE_ID      NUMBER,
            INVENTORY_ITEM_ID   NUMBER,
            BASE_ITEM_ID        NUMBER,
             ITEM_NAME           VARCHAR2(50),
             SUPPLIER_ID         NUMBER,
            SUPPLIER_SITE_ID    NUMBER,
            NORMAL_BUY_USAGE    VARCHAR2(5),
            AVAILABLE_QUANTITY  NUMBER ,
            SPL_PEG_FLAG        VARCHAR2(10),
            SQR_LINE_ID         VARCHAR2(2000),
            SQR_NUMBER          VARCHAR2(2000),
            SQR_MOQ             NUMBER,
            BPA_PO_LINE_ID      NUMBER,
            SUGG_BPA_NUMBER     VARCHAR2(30),
            BPA_BUY_PRICE_BASIS VARCHAR2(10),
            BPA_LINE_NUM        NUMBER,
            BPA_PO_LINE_LOC_ID  NUMBER,
            BPA_CURRENCY_CODE   VARCHAR2(10),
            BPA_PRICE           NUMBER,
            BPA_PO_HEADER_ID    NUMBER,
            BPA_EXPIRATION_DATE DATE,
            BPA_QUANTITY        NUMBER,
            ORIG_AVAILABLE_QTY  NUMBER,
/*
Constructor
*/
            constructor function XXSCP_AVL_CSP_SQR_O_TP return self as result
        );        

create or replace
TYPE body XXSCP_AVL_CSP_SQR_O_TP AS
/*
Constructor
*/
            constructor function XXSCP_AVL_CSP_SQR_O_TP return self as result
            is
            begin
              return;
            end;
end;        

You can also assign your attributes that you construct your instance:

l_tab_avl_csp_sqr.EXTEND(1);
l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT) := new XXSCP_AVL_CSP_SQR_O_TP(
  l_tab_planorders (i).l_num_plan_id,
  l_tab_planorders (i).l_num_sr_instance_id.
  l_tab_planorders (i).l_num_inventory_item_id,
  l_tab_planorders (i).l_num_base_item_id,
  l_tab_planorders (i).l_chr_item_name,
  l_tab_planorders (i).l_num_supplier_id,
  l_tab_planorders (i).l_num_supplier_site_id,
  l_rec_pegged_list (j).remaining_aval_qty,
  'Y',
  l_rec_pegged_list (j).sqr_line_id,
  l_rec_pegged_list (j).sqr_number,
  l_rec_pegged_list (j).sqr_moq,
  l_rec_pegged_list (j).bpa_po_line_id,
  l_rec_pegged_list (j).bpa_number,
  l_rec_pegged_list (j).bpb_type,
  l_rec_pegged_list (j).bpa_line_num,
  l_rec_pegged_list (j).bpa_lloc_id,
  l_rec_pegged_list (j).bpa_curr_code,
  l_rec_pegged_list (j).bpa_price,
  l_rec_pegged_list (j).bpa_expiration_date,
  l_rec_pegged_list (j).bpa_quantity,
  l_rec_pegged_list (j).remaining_aval_qty );

Gerard

Published by: gaverill on April 23, 2013 12:12

Tags: Database

Similar Questions

  • Pass values of table type (parameter)

    Hi all
    I've written a procedure that has table type among the input parameters. How to pass values from table type while calling the procedure. Please suggest


    Thank you and best regards,
    Mahesh


    -For reference

    -Registration type
    CREATE or REPLACE TYPE lt_rec_type IS (of the OBJECT
    Article VARCHAR2 (2000 BYTE)
    (, quantity NUMBER (10));

    -Table type
    CREATE or REPLACE TYPE lt_tbl_type IS TABLE OF THE lt_rec_type;

    -Procedure
    (PROCEDURE) xxxx
    p_table_type lt_tbl_type);
    SQL> CREATE OR REPLACE TYPE lt_rec_type IS OBJECT(item VARCHAR2(2000), quantity NUMBER(10))
      2  /
    
    Type created.
    
    SQL> CREATE OR REPLACE TYPE lt_tbl_type IS TABLE OF lt_rec_type
      2  /
    
    Type created.
    
    SQL> CREATE OR REPLACE PROCEDURE proc(p_table_type IN lt_tbl_type)
      2  AS
      3  BEGIN
      4     FOR i  IN 1..p_table_type.count
      5     LOOP
      6             dbms_output.put_line(p_table_type(i).item ||'/'|| p_table_type(i).quantity);
      7     END LOOP;
      8  END;
      9  /
    
    Procedure created.
    
    SQL> SET SERVEROUTPUT ON
    
    SQL> DECLARE
      2     l_tbl_type lt_tbl_type := lt_tbl_type();
      3  BEGIN
      4     l_tbl_type.extend;
      5
      6     l_tbl_type(1) := lt_rec_type('Car', 100);
      7
      8     l_tbl_type.extend;
      9
     10     l_tbl_type(2) := lt_rec_type('Bike', 450);
     11
     12     proc(l_tbl_type);
     13  END;
     14  /
    Car/100
    Bike/450
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • The assignment of value to APEX PAGE ELEMENT

    Hi all

    In Javascript I have value assigned to an element on the page P2_NAMES
    $("#P2_NAMES").val(Names);               //(Names is a variable used int he script)                   
    console.log($("#P2_NAMES").val());      //(to print in console of firebug)
                        
    The problem is that the console shows correct but to my surprise, the page output has passed an empty value on the next page during validation.

    When I click on the button 'Session' (Apex bar at the bottom of the screen) after I run the page - I don't see the values reported in the table of elements of page apex. Which means that the assignment of the value was not held, but the console displays the output.

    I also made sure that the Source "used" to the page apex element "Always, replace the value that exists in the session state»

    Masters, Help!

    Hey Shiva,

    There is also a feature in the APEX_UTIL package that will help you to define the session state of
    an Element of Page or an element of the application :

    http://download.Oracle.com/docs/CD/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDBGEEC

    But you must write a PL/SQL process to define the session state:

    BEGIN
        APEX_UTIL.SET_SESSION_STATE('my_item','myvalue');
    END;
    

    If through JavaScript, you can get through: AJAX.

    If default page layout then: dynamic Action advanced type run the PL/SQL Code runs above code block

    I hope that helps!
    Kind regards
    Kiran

  • The assignment of value to the block multi-record in Oracle's 10 g

    Hi all

    I'm new to form of Oracle 10 g.

    I have a block of several recording that does not rely on the database. I need to assign the value to this block multi-record dynamically the ref cursor.

    I'm trying to set the value as below, but its does not work. Please help me on this.

    loop
         fetch cur Into screenval_rec ;
          exit when cur%notfound ;
          first_record;
       
      :BLOCK1.COL1:= screenval_rec.value1;
        :BLOCK1.COL2 := screenval_rec.value2;
        :BLOCK1.COL3:= screenval_rec.valu3;
      
         next_record;
    End loop;
    
    

    Kind regards

    REDA

    Hi Craig,.

    Thank you for your information.

    But I found the exact cause of this "Invalid cursor error' (ORA-01001) in Oracle forms. It is because of the unique enclosed in quotes the select statement of the REF cursor. I found in the paragraphs below Oracle.

    Note 170881.1 - ORA-1001 calling a stored procedure that contains a REF Cursor Oracle Forms

    Once I deleted the quotes, it's working properly now.

    Thanks again for your help.

    Kind regards

    REDA

  • The assignment of value to an element of Application via JS

    Hi guys,.

    I am trying to assign a value to an element of application using javascript. But I can't do that when I try to view with alarm the result is empty. You have an idea how can I assign a value to an element of the application using javascript?

    Another yew (action is "ASSIGN")
    {
    var moname = $(el).children("td[headers='SOURCE']").text ();
    $s ('F10_SELECTED_OBJ', moname);
    Alert ($v ('F10_SELECTED_OBJ'));
    }

    Thank you

    You cannot reference elements of apex in javascript application because they are not rendered in the HTML DOM.

    See what {message identifier: = 10343221}

  • BPEL variable, take the time to 1 min just for the assignment of value in the Assign activity

    Hi all

    We get a strange question in BPEL production environment.
    In the assign activity, there are 3 variable hardcoded with some default values.
    At runtime, a variable is to take more time from 1 minute to initialize just this default value.
    We do not get this problem of time in Dev and Test environments, so we are not able to test this.
    Please look in the Audit trail for the BPEL instance in the Production environment.
    Request to let me know if them work around or fix for this issue.



    Thanks in advance,
    Kumar

    Hello

    Yes, you can get to know the time for the verification that frm trail... u can also make use of activity sensors to calculate the exact time.

  • How to fix the value of table type defined on page of the ofa LOV

    Hello world
    There's a valueset created in the xx_ap_valueset to say front end which is of type table and created on a table xx_ap_table somewhere with cluase and stopped by the clause.

    Is there a way that we can reach this value a page of the OPS LOV? or is it just that I need to create a vo and reproduce the select statement used in the valueset.


    Help, please!

    Thank you
    Sunny

    Sunny,

    You can not attach the Valueset to the Lov directly. You must create a VO for this.

    Kind regards
    GYAN

  • assignment of values of object type

    Hi Experts,

    Try to understand the concept of OBJECT in PL/SQL. When I executed example below I am getting error. Can you please advice on that.

    DB version: 11g

    SQL > create or replace type emp_det is object
    2 (employe_id, number (12),)
    3 first name varchar2 (40)
    4  );
    5.

    Type of creation.

    SQL > create or replace type tb_emp_det is table of the emp_det;
    2.

    Type of creation.

    SQL > declare
    2
    3 tb_result tb_emp_det: = new tb_emp_det();
    4
    5. start
    6
    7 tb_result.extend;
    8 tb_result (1) .employee_id: = 100;
    9 tb_result (1) .first_name: 'Suri '; =
    10
    11 end;
    12.
    declare
    *
    ERROR on line 1:
    ORA-06530: Reference to the composite uninitialized
    ORA-06512: at line 8 level

    See you soon,.

    Suri

    You can do this in

    Select emp_det (eid, ename)

    LOOSE COLLECTION tb_result

    Of

    employees;

  • Calculate the distance using values from table

    Based on the coordinates of two points A(x1,y1) and B(x2,y2) and x 1, x 2, y1, y2 are columns of the table to a table, I need a query (function?) to calculate the distance between these two points of each line of the table...
    Table:
    NRCRT (PK) X 1 X 2 Y1 Y2
    1 10 6 2 4
    2 1 3 0 5

    the mathematical formula is:
    http://www.mathwarehouse.com/algebra/distance_formula/images/distance-formula-image.jpg

    It is complex to me, but maybe someone can help me...

    Wintermute3190 wrote:
    Œuvres, but:
    DISTANCE_BETWEEN
    4.47213595499957939281834733746255247088
    5.3851648071345040312507104915403295563

    How to set to 5,38 just and 4.47

    CYCLE of use or function TRUNC

    SQL> WITH test_tab AS
      2       (SELECT 1 nrcrt, 10 x1, 6 x2, 2 y1, 4 y2
      3          FROM DUAL
      4        UNION ALL
      5        SELECT 2, 1, 3, 0, 5
      6          FROM DUAL)
      7  SELECT nrcrt,
      8         TRUNC(SQRT ((POWER ((x2 - x1), 2) + POWER ((y2 - y1), 2)
      9               )),2) distance_between
     10    FROM test_tab
     11  /
    
         NRCRT DISTANCE_BETWEEN
    ---------- ----------------
             1             4.47
             2             5.38
    
    SQL> WITH test_tab AS
      2       (SELECT 1 nrcrt, 10 x1, 6 x2, 2 y1, 4 y2
      3          FROM DUAL
      4        UNION ALL
      5        SELECT 2, 1, 3, 0, 5
      6          FROM DUAL)
      7  SELECT nrcrt,
      8         ROUND(SQRT ((POWER ((x2 - x1), 2) + POWER ((y2 - y1), 2)
      9               )),2) distance_between
     10    FROM test_tab
     11  /
    
         NRCRT DISTANCE_BETWEEN
    ---------- ----------------
             1             4.47
             2             5.39
    

    Notice the difference in the result. Use the one that works best for you.

    Kind regards
    JO

  • Error creating Absence as "APP-COMPENSATION-51271: the assignment is not eligible for the element.

    Hello

    "APP-COMPENSATION-51271: the assignment is not eligible for the item."

    Hi Nelly,

    You can see below the two things that can be the cause of this error:

    1. the definition of the non-recurring item link which is tagged with such an absence, as a best practice that should be an open link. If the definition of link and the eligibility of the assignment does not match then you may receive this error.

    2. If you have defined a regulation for this type of absence plan, then check if the recurring element of the regime of accumulation is was tagged to the assignment for which you receive this error.

    Thank you

    Sanjay

  • To have the value 'All' in the list of elements of control in the value of array type

    Hi all

    To have the value 'All' in the list of master points.
    Need to create a set of value that shows the items in the inventory template and append the value 'All' in the list, so that the user can select.

    I have the below query that does this. But how can I highlight the value of table type.

    SELECT ItemList segment1
    OF MTL_SYSTEM_ITEMS_B
    WHERE organization_id = 0
    UNION ALL
    SELECT 'All' ItemList
    OF the double

    Please do the needful.

    Thank you.

    Hello
    One way to do, is to create a database for you view query and base your value set on this point of view.
    Hope this helps,
    J.

  • Not able to manage the value 'Table Type' in my procedure, humble need help here

    Hi all

    I am facing a problem with below pl/sql block. The time I run it it works fine, but when I run the procedure only from the exact values (hardcoded), it throws error as below.

    [Error] Execution (38: 1): ORA-06550: line 2, column 1:

    PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.

    ORA-06550: line 2, column 1:

    PL/SQL: Statement ignored

    What I understand problem is, I use a Type of table herewhich works very well with my Pl/Sql block, but do not work when I run the same procedure of the value hard-coded.

    Please guide me how to handle this situation.

    Pl/Sql block [works absolutely well]:

    Declare

    lv_eff_from_dt DATE;
    lv_eff_to_date DATE;
    v_severity_codes_wl param_tbl: = param_tbl();
    lv_algo_id_wl sagedbo.alerts.algo_id%TYPE;

    Begin

    lv_eff_from_dt: = sage_utility.get_transaction_date('EFF_FROM_DATE');  -' 05-Aug-2013. '
    lv_eff_to_date: = sage_utility.get_transaction_date('EFF_TO_DATE');       -' 04-sep-2013. '

    lv_algo_id_wl: = sage_utility.get_code_values('ALERT_MODELS','GRAY_LIST');  -GLABNORMAL

    v_severity_codes_wl: = sage_utility.get_multi_parameter_value(1,'SEVERITY_CODE_WL'); -4.5

    SONARDBO.sage_generate_alert.create_abnormal_by_trader (lv_algo_id_wl, v_severity_codes_wl, lv_eff_from_dt, lv_eff_to_date, 'US');

    End;

    Pl/Sql block [does not] (by the way the same values but hard)

    Begin

    SONARDBO.sage_generate_alert.create_abnormal_by_trader ('GLABNORMAL', '4', 5, 5 August 2013 ', ' 04-Sep-2013', 'US');

    End;

    Error PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.

    I'm sorry that my question is not so generic, you cannot run on your computer. How should just guide me with the concept, I treat the values in table hardcodedly? (For testing of use)

    Thank you very much

    If your passage of type table, then you will need to run as below

    Begin

    SONARDBO.sage_generate_alert.create_abnormal_by_trader ("GLABNORMAL", param_tbl (' 4 ', ' 5'), August 5, 2013 ', ' 04-Sep-2013', 'US');

    End

    Means that you must call with the table type ("' hard coded values"). Here is the simple test. Take a look at this

    SQL > CREATE or REPLACE the TYPE nt_tab IS TABLE OF VARCHAR2 (50);

    2.

    Type of creation.

    SQL > CREATE OR REPLACE PROCEDURE test_proc (p_nttab nt_tab)

    2 AS

    3 v_nttab nt_tab: = p_nttab;

    4 BEGIN

    5 FOR me in 1.v_nttab. COUNTY

    6 LOOP

    7 DBMS_OUTPUT. Put_line (v_nttab (i));

    8 END OF LOOP;

    9 END;

    10.

    Created procedure.

    -Perform the procedure with only one value of type table

    SQL > EXEC test_proc (nt_tab ('KING'));

    KING

    PL/SQL procedure successfully completed.

    -Run procedure with the multi-value table type

    SQL > EXEC test_proc (nt_tab ('KING', 'AAAA', 'BBBB'));

    KING

    ABDELKADER

    BENAMER

    PL/SQL procedure successfully completed.

    Post edited by: 000000

    Post edited by: 000000

  • Error in SQL syntax when inserting data to the table in the form of values using insert record

    Hello

    I was hoping that someone could help me.  I am creating a form of registration on a website to insert data into a database table.  When you try to create the form, I get the following error:


    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ' VALUES (name, regno, reason) leave (has ', 1, 'dddd')' at line 1

    I checked the syntax, but you don't know what's wrong.

    I am running Windows 7 with Dw cs6 and wamp server.

    Leave with the names of column (name, regno, reason) is the name of the table.

    Thank you for your help and please help me.

    The code is as below:

    <? php require_once('Connections/connect.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_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO leave (name, regno, reason) VALUES (%s, %s, %s)',

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

    GetSQLValueString ($_POST ['reg'], "int").

    GetSQLValueString ($_POST ['reason'], "text"));

    @mysql_select_db ($database_connect, $connect);

    $Result1 = mysql_query ($insertSQL, $connect) or die (mysql_error ());

    }

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "content-type" content = text/html"; charset = utf-8 "/ >"

    < title > online form let < /title >

    < name meta = "keywords" content = "" / > "

    < name meta = "description" content = "" / > "

    < link href = "styless.css" rel = "stylesheet" type = "text/css" media = "screen" / > "

    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "header" >

    < div id = 'menu' >

    < ul >

    < class li = "current_page_item" > < a href = "#" > home < /a > < /li >

    < li > < /li >

    < li > < /li >

    < li > < a href = "#" > on < /a > < /li >

    < li > < /li >

    < li > < a href = "#" > Contact < /a > < /li >

    < /ul >

    < / div >

    <!-end #menu->

    < div id = "Search" >

    < / div >

    <!-end #search->

    < / div >

    <!-end #header->

    < div id = "logo" >

    E - SCHOOL of CHRIST < h1 > < / h1 >

    < p > < / p >

    < / div >

    < hr / >

    <!-end #logo->

    <! - end #header - wrapper->

    < div id = "page" >

    < div id = "content" >

    < div class = "post" >

    < h2 class = "title" > leave application online < / h2 >

    < div class = "entry" > < / div >

    < / div >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "form1" id = "form1" >

    < table width = "200" border = "2" cellspacing = "5" cellpadding = "5" >

    < b >

    < scope th 'row' = > name < /th >

    < td > < label for = "name" > < / label >

    < input type = "text" name = "name" id = "name" / > < table >

    < /tr >

    < b >

    < scope = "row" th > Reg No. < /th >

    < td > < label for = "reg" > < / label >

    < input type = "text" name = "reg" id = "reg" / > < table >

    < /tr >

    < b >

    < scope = "row" th > why < /th >

    < td > < label for = "reason" > < / label >

    < name textarea = 'reason' id = cols 'reason' = "45" rows = "5" > < / textarea > < table >

    < /tr >

    < b >

    < scope = "row" th > < /th >

    < td > < input type = "submit" name = "b1" id = "b1" value = "Submit" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    < / div >

    <!-end #content->

    < div id = "sidebar" >

    < ul >

    < li >

    Notice of < h2 > < / h2 >

    < p > students must present the appropriate documents supporting the reason for leave within 3 working days. < /p >

    < /li >

    < li id = "calendar" >

    Calendar < h2 > < / h2 >

    < div id = "calendar_wrap" >

    < table summary = "Calendar" >

    < caption >

    March 2014

    < / legend >

    < thead >

    < b >

    < th abbr = "Monday" scope = "col" title = "Monday" > M < /th >

    < th abbr = "Tuesday" scope = "col" title = "Tuesday" > T < /th >

    < th abbr = "Wednesday" scope = "col" title = "Wednesday" > W < /th >

    < th abbr = "Thursday" scope = "col" title = 'Thursday' > T < /th >

    < th abbr = "Friday" scope = "col" title = 'Friday' > F < /th >

    < th abbr = "Saturday" scope = "col" title = 'Saturday' > S < /th >

    < th abbr = "Sunday" scope = "col" title = 'Sunday' > S < /th >

    < /tr >

    < / thead >

    < tfoot >

    < b >

    < td abbr = "February" colspan = "3" id = "prev" > < a href = "#" title = "" > & laquo; Feb < /a > < table >

    < class td = "pad" > < table >

    < td abbr = "April" colspan = "3" id = "next" > < a href = "#" title = "" > Apr & raquo; < /a > < table >

    < /tr >

    < / tfoot >

    < tbody >

    < b >

    < td colspan = "5" class = "pad" > < table >

    < td > < table > 1

    < td > < table > 2

    < /tr >

    < b >

    < td > 3 < table >

    < td > < table > 4

    < td > 5 < table >

    < td > < table > 6

    < td > < table > 7

    < td > < table > 8

    < td > < table > 9

    < /tr >

    < b >

    < td > < table > 10

    < td id = 'today' > < table > 11

    < td > < table > 12

    < td > < table > 13

    < td > < table > 14

    < td > < table > 15

    < td > < table > 16

    < /tr >

    < b >

    < td > < table > 17

    < td > < table > 18

    < td > < table > 19

    < td > < table > 20

    < td > < table > 21

    < td > < table > 22

    < td > < table > 23

    < /tr >

    < b >

    < td > < table > 24

    < td > < table > 25

    < td > < table > 26

    < td > < table > 27

    < td > < table > 28

    < td > < table > 29

    < td > < table > 30

    < /tr >

    < b >

    < td > < table > 31

    < class td = "pad" colspan = "6" > < table >

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < /li >

    < li > < /li >

    < /ul >

    < / div >

    <!-end #sidebar->

    < div style = "" clear: both; "> < / div >"

    < / div >

    <!-end #page->

    < div id = "footer" >

    < p > Copyright (c) University of Christ. All rights reserved. < /p >

    < / div >

    <!-end #footer->

    < / div >

    < div align = center > < / div > < / body >

    < / html >

    The LEAVE is a reserved word in MySQL. You can try to quote, but you are better to rename it.

  • Value set with the table type

    Hi all
    I use R12.1.3 EBS. I want to create a value set with the posting type "Table". But I must specify what application will be set and the table to use. I want to refer to an another diet/no apps. Is this possible? I have the link of database between this regime to receivables / via SQL Developer, I'm able to query or manipulate the data.

    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    "CORE     11.1.0.7.0     Production"
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Thanks in advance,
    Bahchevanov.

    Create a custom view in the schema of APPS that points to the table in the remote database, and you should be able to create a validated set of values from table based on the custom view. This will require you to create a link of database on the remote database (or a private database link in the APPS schema)

    HTH
    Srini

  • How to get the name of the table/type using the value()?

    CREATE or REPLACE TYPE person_ty
    as an object
    (
    'id' VARCHAR2 (4).
    fname VARCHAR2 (15).
    lname VARCHAR2 (15)
    ) NOT FINAL;
    /
    CREATE or REPLACE TYPE student_ty
    Under the person_ty();
    /
    create the table person_ty all_users;
    /
    CREATE TABLE student OF student_ty;
    /
    INSERT INTO student
    VALUES (1002, 'Joshua', 'David');
    /
    VIEW to CREATE or REPLACE person_ty Person_v
    WITH OBJECT OID ('id')
    AS SELECT * from all_users;
    /
    VIEW to CREATE or REPLACE student_ty UNDER Person_v Student_v
    AS
    SELECT *.
    OF the student;
    /
    SELECT VALUE (p) person_v p;
    /
    OUTPUT
    TESTDB2. STUDENT_TY(1002,Joshua,David)

    How to get 'student_ty' instead of the' TESTDB2. STUDENT_TY(1002,Joshua,David) ".
    I would like to know belongs it to which table the particular line. Yes... It's the idea of value(). but I need only the name of the table or the type name. How can I do?

    If you want to select type name, right? Then use:

    select anydata.GetTypeName(anydata.convertobject(VALUE(p))) typename FROM person_v p
    /
    
    TYPENAME
    -----------------
    SYS.STUDENT_TY
    
    SQL> 
    

    SY.

Maybe you are looking for

  • Passwords for Addons

    Hello I have a lot of addons installed in my Firefox. The question I have is that if I connect on my sync account on another computer of someone else has access to the addons in my account and can uninstall or disable without my permission. This mean

  • notification volume decreases

    Hi guys, have a quick question, on music. It is perhaps a regular feature, don't know not, but when I listen to any music and receive any notification (sms, whatsup, facebook, etc.) my music is muted for a second. Someone can tell me, how can I disab

  • Tecra M2 - VAP for Vista needed

    I upgraded my old M2 to run Vista professional/Ultimate Edition.Any PPV Toshiba compatible, can I use? I have a slow performance probably due to the processor at 600 MHz clock, which is well below the specification M735, or 1.7 GHz running.I'm seeing

  • Keyboard shortcut for the alignment of the window

    Recently, migration from Windows to OS X, I realize account there is no keyboard shortcut for the alignment window to the left or to the right. Or, is it? There are third-party applications that support this feature? Thank you. Using OS X El Capitan

  • Model HP DV6-1304

    Hello I have a Pavilion dv6-1304el model.Two days ago the volume mute button, the volume scroll box and the wireless button. Audio light changes color (red/white) when I activate the windows audio control, but the button and the volume scroll area st