SQL update the context field to table oe_order_lines_all

Hello

Can update us the context field on the order line table using sql update. Can someone please let me know, what would this cause.

I use the same context values that are defined in the form of DFF, but one of the value is missing from the FDF form. What is the next step?

Example:

Update oe_order_lines_all
Set frame = (select...), attribut1 = 'test '.
where header_id = 1101

Hello

Consult the following document and see if it helps.

Note: 746787.1 - process of PLC control in the management of order- UPDATE operation
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=746787.1

Kind regards
Hussein

Tags: Oracle Applications

Similar Questions

  • the form of course update the user field value

    Can experts tell me if we can retrieve the data from the form of courses and update the user field. If so, please could you tell me how to do and a simple example will be useful.

    Thank you very much

    Write an adapter to transfer and pass the value of the form attribute of the user

    How to create a transfer adapter: -.

    Name of the adapter:-adapter task of transfer process
    Adapter type:-treat stains
    Description:-adapter task of transfer process
    Variable:-determination of entry (of Type String) during execution
    Task of the adapter:-logical task... Adapter--> Variable defined return value--> entry
    Save... Build... Compile...
    For example, you have created your adapter generic transfer...

    Suppose that your Mobile is stored in the field of process form Mobile...

    In the process definition, create a task... Set the task to transfer adapter process...

    entry--> process Date--> Mobile
    Return value of--> user definition adapter--> Mobile...

    It is a very convenient way of transmission data Mobile Process to user profile without writing any custom code

    Mark if you find it useful, useful...

  • PL/SQL: Updated with a subquery, two tables * HELP *.

    I've really messed with instructions UPDATE in PL/SQL for awhile, so I'm a little frustrated now to try to get what seems to be a simple UPDATE to work. First of all, I have a SQL statement that produces what might be described as a key value of data matching.

    SELECT distinct i.id, i.code
    FROM the point i, pi product
    WHERE i.ccode = '12'
    AND i.scode = 'ACTIVE '.
    AND i.id IS NOT NULL
    AND pi.id = i.id
    AND IN i.id
    (SELECT DISTINCT ri.item_id
    CATEGORY ri
    WHERE ri.category_code = 'RRR')
    AND pi.new_id IS NULL;

    This produces a list of the ID of the ELEMENT and the corresponding CODES. What I'm trying to do is UPDATE the new_id PRODUCT with a combination of one field string "1212" concatenated with the ARTICLE of the SQL code above.

    So... If my listing above produces:

    IDENTIFICATION CODE
    012331 432412175321
    041234 421412421085
    065645 776545521108

    I need to update the PRODUCT table new_id where the PRODUCT.ID = '012331' to '121243241217532'

    Can anyone offer any help? This seems to be me stumping.

    Which can be also probably cut down to something like...

    update product
    set new_id = (SELECT '1212'||i.code
                  FROM item i
                  WHERE i.ccode = '12'
                  AND   i.scode = 'ACTIVE'
                  AND   i.id IN
                              (SELECT DISTINCT ri.item_id
                               FROM category ri
                               WHERE ri.category_code = 'RRR')
                  AND   i.id = product.id
                 )
    where new_id is null;
    
  • Download massive updated the planned orders in table msc_supplies

    Hi all

    I need your suggestion below requirement:

    For item RM, we planned order suggested that the CPHA; before releasing it, we want to change Date of implementation and the amount of order, then output the last modified scheduled released automatically to create the PR in purchases & Payables.

    In order to change the planned orders of RM, we export order planned the Workbench of the CPSA in the worksheet and then change dates, quantity, etc. in the worksheet. We want this change data to insert in the table msc_supplies automatically with manually intervene them and followed by releasing these planned automatically orders to create a PR

    We want to know how to achieve this requirement. We want to know the available custom hook and script to insert record in to msc_supplies.

    Have a great day.

    Thank you

    Sanngo

    Hello

    We expect steps below:

    (1) export the planned RM command suggested by the CPSA to the spreadsheet or report.

    (2) prepare the csv file with mandorty field as shown below in the table, i.e. date, quantity, etc. and format the data according to the custom intermediate table created.

    (3) custom concurrent requests created, which is used to locate the data file and upload the data to a custom intermediate table.

    (4) of the intermediate table that we are download the same data in the database MSC_SUPPLIES table (make a validation here check) in the same program. After that a manually scheduled commands added to the table of MSC_Supplies and can be found in the CPSA workbench.

    (4) in the same concurrent application of custom, call "automatic rejection" to release these records of the base table of msc_supplies, where release_flag a value of 1.

    We want to know the required fields need to be updated in the staging table custom and the base table:

    ORGANIZATION_CODE

    ORGANIZATION_ID

    ITEM_SEGMENTS

    INVENTORY_ITEM_ID

    ORDER_TYPE_TEXT

    ORDER_TYPE (5)

    New Date

    FIRM_DATE

    New quantity

    FIRM_QUANTITY

    Argument Plan_ID

    Transaction_id

    RELEASE_STATUS (1)

    SR_INSTANCE_ID

    You can test adding the manually planned adhoc decrees on Workbench CAWC namely, which are updating fields in the MSC_SUPPLIES table.

    Have a great day.

    Thank you

    Sannago

  • InStr/substr logic to update the column in a table db 9i / 10g / 11g

    Hi all

    I have a table Test_table with email_address column.
    Please update the table and remove
    [email protected] and
    [email protected]
    email_address column.

    Current values of the Email_address column

    [email protected], ken. [email protected], [email protected], [email protected]
    2.Ken. [email protected], [email protected], [email protected]; [email protected]
    3 ken. [email protected], [email protected], [email protected], [email protected]

    The new value must be
    1 ken. [email protected], [email protected]
    Ken 2. [email protected], [email protected], [email protected]
    3 ken. [email protected], [email protected]


    If email_address to remove is the first email address in the column
    Then, remove the first comma too, otherwise delete the comma above and email address.

    I created a C1 cursor, but I know is not the logic to use to get the new value
    Any help will be greately appreciated.

    Declare
    Cursor c1 is select rowid, email_address
    From Test_table
    Where (at the top (email_address) like ('% [email protected]%'))
    GOLD (superior (email_address) like '% [email protected]%');
    V_new_email varchar2 (200);
    BEGIN
    FOR rec IN C1 LOOP
    -do not know how to handle V_new_email to be able to update the table with the current values.
    V_new_email: = - some function instr/substr here

    Update Test_table
    Define email_address = V_new_email
    Where rowid = rec.rowid;

    END OF LOOP
    END;

    Thank you

    You needn't PL/SQL for such a thing. A SQL should be sufficient.

    with data as
    (
      select '[email protected], [email protected], [email protected], [email protected]' col from dual union all
      select '[email protected], [email protected],[email protected]; [email protected]' from dual union all
      select '[email protected], [email protected], [email protected], [email protected]' from dual
    )
    select col, trim(replace(replace(replace(col, '[email protected],'), '[email protected]'), ', ,', ',')) rep_col
      from data;
    
    COL                                                            REP_COL
    -------------------------------------------------------------- --------------------------------------------------------------
    [email protected], [email protected], [email protected], [email protected]   [email protected], [email protected]
    [email protected], [email protected],[email protected]; [email protected] [email protected], [email protected],[email protected];
    [email protected], [email protected], [email protected], [email protected]   [email protected], [email protected], [email protected]
    
  • Impossible to manually update the password field

    Hello

    I am very frustrated with this issue - I hope that someone can help me please.

    For the check of the user, I would like the following flow:

    (1) insert record with just the name and the email address (no password).

    (2) send an email with the link to a password update page by the way of kt_login_id and randomly generated number in the URL.

    (3) page updated password contains the password and password confirm text boxes

    This seems like it should be very simple, but I get strange results.

    My initial insertion sort page creates an entry for the password field in the database, even if there is no field of password on the Insert page and MySQL initial value must be NULL.

    Page updated password is not updated password field.

    I fear that MEASURE did something in the background because these updates relate to the connection table.

    Thank you!

    Steve

    Steve_2010 wrote:

    My initial insertion sort page creates an entry for the password field in the database, even if there is no field of password on the Insert page...

    When you place your page 'register.php' in Code view, is there still the line...

    $userRegistration-> addColumn ("password", "STRING_TYPE", "POST", "password");

    .. in place, and if so, what happens if you...

    (a) delete this line, or

    (b) change to:

    $userRegistration-> addColumn ("password", "STRING_TYPE", "VALUE", "");

    .. which should include at least a value empty (empty) in the password column.

    See you soon,.

    Günter

  • Better implementation of a callback method to update the various fields?

    Hey everybody,

    I'm developing an application that uses the Google Translate API.  I set it up so that a user can specify a language before you do, and then once they connect, I have wrappers around each piece of text displayed on the screen which will result by the text based on the language selected.

    My problem is that several things must be brought on a given screen.  Therefore, I need to access Google Translate API several times per screen.  To do this, I opened a HTTPConnection on a new thread.  So I turn my screen Interface to the translator class, and then the translator class call my callback methods for the screen (requestSucceeded() or requestFailed()).

    Now, let's say that I have translated the title of the screen and the screen text.  These are two separate HTTPConnections.  So, when the title is translated, I want my requestSucceeded() setText method on my LabelField title.  When the body of the text is translated, I want my requestSucceeded() setText method on my body LabelField.

    What is the best way to have my requestSucceeded() method to differentiate the various fields to be updated?  Currently, I'm passing to the translator two things (via a string [] array): the text to be translated and a 'cookie', which describes the element being translated.  I then use if statements in my callback requestSucceeded() Update method the appropriate field based on the 'cookie' (which the translator will send in return and the text translated).

    I feel like there must be a better way to do this. Does anyone have any suggestions?

    Thank you!

    I don't know I understand your question, but it seems that this is to decouple the the task of translation of background of the user interface element that is being translated. You're already halfway to decouple the background translator of the mechanism that updates the user interface. What you seem to be missing is a nice way to specify the target of the translation without writing a lot of switch / if statements.

    Instead of having a translation callback object that serves several UI elements, you could create a reminder for each UI element. The reminders will always implement the same interface, so the task of the translator background will be not supported. For example, the interface could be something in the sense of:

    interface TranslationCallback {
      void translationCompleted(String translation);
      void translationFailed(Throwable cause);
    }
    

    Your user interface would then create a callback object that encapsulates a user interface element (for example, a text field) and implements the TranslationCallback above. Inside of the translationCompleted and the translationFailed logic will not need to understand which element to update, because the reminder is associated with a particular item in a particular category, for example, TextField.

  • Depends on for Flex Key of the context field

    Hello

    I have a requirement in which I use key Flex Field (field of competence Flex) now the requirement, is that I have two segments. First segment is the name of the skill and the segment is the type of skills. Now I want my my second segment should depend on the first segment. Means that if I take a value in the first segment. All values that are related to the firs segment should be displayed in my second segment. It depends on the context.

    Can someone suggest me a solution for the same.

    Thank you
    Nitin Singh

    Hello

    I think that you must set a load value defined for your second segment based on the value of the first segment. I don't see the need for a context dependent on FF for you condition.

    See you soon
    Arun

  • PL/SQL program that detects fields in tables.

    Hello guys,.

    I have an interesting scenario in front of me, I would paint a picture.

    What I'm trying to conceptualize, this is how I can use a PL/SQL program for each table to find some areas of research. Now, I need a program to do this is because it

    is to many servers + databases to really connect and look at each diagram myself. I want to do this in a procedure or package.

    What is a way I could do it?

    I know that I can access lines using % ROWTYPE, as for example

    DECLARE

    find_fields foundfields % ROWTYPE;

    BEGIN

    SELECT * INTO find_fields

    of insert_table

    dbms_output.put_line ('Fill the void' | find_fields.feildid);

    ECT, ect.

    Can I optimize some how using this type of logic? or should I use a cursor? If someone could just point me in the right direction, I would appreciate it.

    or maybe I can use this type of logic.

    DECLARE

    CURSOR findfields_cur is

    SELECT field1, Field2, field3

    Of insert_table;

    findfields_rec findfields_cur % rowtype;

    BEGIN

    OPEN findfields_cur.

    LOOP

    EXTRACT the findfields_cur in findfields_rec;

    EXIT WHEN findfields_cur % notfound;

    Dbms_output.put_line (findfields_rec. Field1 | ' ' || findfields_rec. Field2 | ' ' || findfields_rec.field3);

    END LOOP;

    END;

    /

    Now, I will close this post by saying this. There is a certain admin on this site, which is astronomically rough and violent and burned each of my posts. You know who you are. I tell you right now, if you're not even so much as a little rough for me this time, I'll report you (like I always do) to be violent, but I'll go a bit further and start calling people on the phone.

    I don't have any of your entry. I mean. I won't take your unnecessary roughness, more.

    It is a legitimate question, it is posted in the right place. SO KEEP YOUR HANDS ON IT. I mean, I'll actually start calling people on the phone about your abuse, and I promise you that you will never regret be rough for me for the love of your own ego once more.

    It of not just me, proof of your bully type admin messages, are all over this site.

    I mean, I'm going to CALL PEOPLE ON THE PHONE if YOU ARE RUDE to this POST.

    XevBellringer wrote:

    Now, I will close this post by saying this. There is a certain admin on this site, which is astronomically rough and violent and burned each of my posts. You know who you are. I tell you right now, if you're not even so much as a little rough for me this time, I'll report you (like I always do) to be violent, but I'll go a bit further and start calling people on the phone.

    I don't have any of your entry. I mean. I won't take your unnecessary roughness, more.

    It is a legitimate question, it is posted in the right place. SO KEEP YOUR HANDS ON IT. I mean, I'll actually start calling people on the phone about your abuse, and I promise you that you will never regret be rough for me for the love of your own ego once more.

    It of not just me, proof of your bully type admin messages, are all over this site.

    I mean, I'm going to CALL PEOPLE ON THE PHONE if YOU ARE RUDE to this POST.

    I went through your previous questions, and I see no 'admin', or indeed any other Member, who has been rude and violent, or burned your messages.  Everyone seems to try to help you, either by providing answers or try to help you to better explain your question or ask for it at the right place (in case you were clearly in the wrong forum).

    It is not advisable to start warning people to keep hands out of your messages.  If you find something reasonable... and I mean really abusive (it's always worth reading things several times to see if the person really is trying to help you)... then you can use the button "Report abuse" against their position and will come and watch the team of moderation, and if this person is truly be abusive, then it will be processed according to the needs.  Updates display in custody and threats to call people, is not a good way to get people to help you... a lot of people is more likely to stay away from your post, because they have better to do that try and help someone who can take their help as being abusive.

    Now, to answer your question of PL/SQL there are various methods to search for the database... but it is not clear exactly what you are looking for.

    There is no distinction between 'fields' on a database. The fields are things about a user interface that the user types their data in.

    Tables on a database have "columns".

    Then, looking for names of columns in the tables?  In this case simply to query the view all_tab_columns on the database that contains information about the table names and the names of columns as well as the schema/owner...

    SQL > all_tab_columns desc;
    Name
    ----------------------------------------------
    OWNER
    TABLE-NAME
    COLUMN_NAME
    DATA_TYPE
    DATA_TYPE_MOD
    DATA_TYPE_OWNER
    DATA_LENGTH
    DATA_PRECISION
    DATA_SCALE
    NULLABLE
    COLUMN_ID
    DEFAULT_LENGTH
    DATA_DEFAULT
    NUM_DISTINCT
    LOW_VALUE
    HIGH_VALUE
    DENSITY
    NUM_NULLS
    NUM_BUCKETS
    LAST_ANALYZED
    SAMPLE_SIZE
    CHARACTER_SET_NAME
    CHAR_COL_DECL_LENGTH
    GLOBAL_STATS
    USER_STATS
    AVG_COL_LEN
    CHAR_LENGTH
    CHAR_USED
    V80_FMT_IMAGE
    DATA_UPGRADED
    HISTOGRAM

    If you are eager to find real data in all the tables to identify existing data tables/columns, then there are several ways to do that too...

    Some examples of my code library (member account "michaels" for most of them)

    for example

    Michaels > var val varchar2 (5)

    Michaels > exec: val: = "Sub".
    PL/SQL procedure successfully completed.

    Michaels > select distinct substr (: val, 1, 11) "keyword."
    substr (table_name, 1, 14) "table."
    substr (t.column_value.getstringval (), 1, 50) ' / value of the column.
    CLO.
    Table
    (xmlsequence
    (dbms_xmlgen.getxmltype ("select" | column_name))
    || 'from ' | table-name
    || ' where upper (')
    || column_name
    || ') as superior (' %' |: val)
    || '%'')'
    ) .extract (' LINES/rowset / * "")
    )
    ) t
    -where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'SERVICES')
    order of the "Table".

    or

    11g upwards

    SQL > select table_name,.
    column_name,
    : search_string search_string.
    result
    from (select column_name,
    table_name,
    "ora: view("' ||) " table_name | "") / LINE /' | " column_name | "[ora:contains (text ()," %' |: search_string | ")]. (%») > 0]' str
    CLO
    where table_name in ('EMP', 'Department')),
    XMLTable (columns str result varchar2 (10) path '.')
    /


    TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
    ------------------------------ ------------------------------ -------------------------------- ----------
    DEPT                           DNAME                          es                               RESEARCH
    EMP                            ENAME                          es                               JAMES
    EMP                            JOB                            es                               SALESMAN
    EMP                            JOB                            es                               SALESMAN

    4 selected lines.

    So, if you are clear in telling people what you want to do exactly, as well as the version of your database (which can certainly get you different answers), then people can help.

    If you are not clear, then do not get offended by people asking you to clarify or to tell you that you're not giving enough information.

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • SQL for the webADI fields

    Hello

    I need a SQL to retrieve the fields and another piece of land to show if it is a line or a header for the WebADI project.

    Can someone provide me with this SQL if you have already worked on it?

    Thank you and best regards,

    Yuvraj

    SELECT DISTINCT fap.application_short_name 'Application Short Name',

    bib.User_Name "integrating user name."

    BLB.user_name "name of the page layout."

    bicb.interface_col_name "name of the field."

    blbb.user_name 'investment. "

    BLC. Default_value 'Default Value ',.

    UPPER CASE (NVL (blc.default_type, 'NONE'))

    WHEN 'NONE', THEN 'none'

    WHEN "FORMULA", THEN "Formula".

    WHEN 'CONSTANT' THEN 'constant '.

    WHEN 'PARAMETER' THEN 'setting '.

    WHEN 'SQL' THEN 'SQL '.

    WHEN 'ENVIRONMENT' THEN 'environment '.

    ANOTHER "UNKNOWN".

    END

    'The Type by default'

    OF apps.fnd_application fap.

    Apps.bne_integrators_vl bib,

    Apps.bne_layouts_vl blb,

    Apps.bne_layout_blocks_tl Boop,

    Apps.bne_layout_cols blc,

    Apps.bne_interface_cols_b bicb,

    Apps.bne_components_b bcb,

    Apps.bne_param_lists_b bplb,

    Apps.bne_param_list_items bpli

    WHERE 1 = 1

    AND fap.application_id = bib.application_id

    -bne_integrators_b | bne_layouts_b

    AND bib.integrator_code = blb.integrator_code

    AND bib.application_id = blb.integrator_app_id

    -bne_layouts_b | bne_layout_blocks_b

    AND blb.layout_code = blbb.layout_code

    AND blb.application_id = blbb.application_id

    -bne_layout_blocks_b | bne_layout_cols

    AND blbb.layout_code = blc.layout_code

    AND blbb.application_id = blc.application_id

    AND blbb.block_id = blc.block_id

    -bne_layout_cols | bne_interface_cols_b

    AND blc.application_id = bicb.application_id

    AND blc.interface_code = bicb.interface_code

    AND blc.sequence_num = bicb.sequence_num

    -bne_interface_cols_b | bne_components_b

    AND bicb.application_id = bcb.application_id

    AND bicb.val_component_code = bcb.component_code

    -bne_components_b | bne_param_lists_b

    AND bcb.param_list_code = bplb.param_list_code

    -bne_param_lists_b | bne_param_list_items

    AND bplb.param_list_code = bpli.param_list_code

    AND blbb.language = 'en '.

    AND fap.application_short_name = 'PA '.

    ORDER BY 1, 2;

  • SQL-modify the columns in a table

    I need to change a column in a table exiciting in production,

    What are the steps I need to follow before using below command

    ALTER TABLE table_name modify column_name data_Type;

    Hello

    If you want to increase the size that existing then you can try what you did...

    You cannot change datatype below what - this current...

    SQL> alter table test modify emptype varchar2(30);
    
    Table altered.
    
  • Casting table PL/SQL for the type of existing table and back ref cursor

    Hello



    I have the problem of casting a pl/sql table for the type of an existing table and turning the ref cursor to the application. Casting a ref cursor back and number of pl/sql table works well.



    Declarant

    < strong > TYPE type_table_name IS TABLE OF THE package_name.table_name%ROWTYPE; < facilities >

    within the stored procedure, fill in a table of this type temp_table_name and returning the ref cursor help

    < strong > results OPEN to SELECT * FROM TABLE (CAST (temp_table_name AS type_table_name)); < facilities >

    generates an error. type_table_name is unknown in this distribution. According to me, this happens because of the declaration of the type locally.



    Statement type_table_name inside the package specification does not work neither. Incredible, cast to the said dbms_sql.number_table to specify ref cursor back and dbms_sql package works very well!



    < strong > CREATE TYPE type_table_name IS TABLE OF THE package_name.table_name%ROWTYPE; < facilities > deals without any error but creates an invalid type complain a reference to package_name.table_name



    I don't want to declare every column in the table in type_table_name, because any change the table_name table would result in an inconsistent type_table_name.



    Thanks in advance!

    Edited by: user6014545 the 20.10.2008 01:04

    In any case you are right that there is a problem around anchorage (or maintaining) types of objects persistent to match the table structures, they may represent.

    In the case you describe, you might be better off just open the refcursor immediately the using one of the techniques described in the http://www.williamrobertson.net/documents/comma-separated.html to manage the delimited list.

    In the more general case where the line of treatment is necessary, you may make the pipeline functions.

    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> CREATE TABLE table_name
      2  AS
      3     SELECT ename column_name
      4     FROM   emps;
    
    Table created.
    
    SQL> CREATE OR REPLACE PACKAGE package_name
      2  AS
      3     TYPE type_name IS TABLE OF table_name%ROWTYPE;
      4
      5     FUNCTION function_name_pipelined (
      6        parameter_name IN VARCHAR2)
      7        RETURN type_name PIPELINED;
      8
      9     FUNCTION function_name_refcursor (
     10        parameter_name IN VARCHAR2)
     11        RETURN sys_refcursor;
     12  END package_name;
     13  /
    
    Package created.
    
    SQL> CREATE OR REPLACE PACKAGE BODY package_name
      2  AS
      3     FUNCTION function_name_pipelined (
      4        parameter_name IN VARCHAR2)
      5        RETURN type_name PIPELINED
      6     IS
      7     BEGIN
      8        FOR record_name IN (
      9           SELECT table_alias.*
     10           FROM   table_name table_alias
     11           WHERE  table_alias.column_name LIKE parameter_name) LOOP
     12
     13           PIPE ROW (record_name);
     14        END LOOP;
     15
     16        RETURN;
     17     END function_name_pipelined;
     18
     19     FUNCTION function_name_refcursor (
     20        parameter_name IN VARCHAR2)
     21        RETURN sys_refcursor
     22     IS
     23        variable_name sys_refcursor;
     24     BEGIN
     25        OPEN variable_name FOR
     26           SELECT table_alias.*
     27           FROM   TABLE (package_name.function_name_pipelined (
     28                     parameter_name)) table_alias;
     29
     30        RETURN variable_name;
     31     END function_name_refcursor;
     32  END package_name;
     33  /
    
    Package body created.
    
    SQL> VARIABLE variable_name REFCURSOR;
    SQL> SET AUTOPRINT ON;
    SQL> BEGIN
      2     :variable_name := package_name.function_name_refcursor ('%A%');
      3  END;
      4  /
    
    PL/SQL procedure successfully completed.
    
    COLUMN_NAME
    -----------
    ALLEN
    WARD
    MARTIN
    BLAKE
    CLARK
    ADAMS
    JAMES
    
    7 rows selected.
    
    SQL> ALTER TABLE table_name ADD (new_column_name VARCHAR2 (1) DEFAULT 'X');
    
    Table altered.
    
    SQL> BEGIN
      2     :variable_name := package_name.function_name_refcursor ('%A%');
      3  END;
      4  /
    
    PL/SQL procedure successfully completed.
    
    COLUMN_NAME NEW_COLUMN_NAME
    ----------- ---------------
    ALLEN       X
    WARD        X
    MARTIN      X
    BLAKE       X
    CLARK       X
    ADAMS       X
    JAMES       X
    
    7 rows selected.
    
    SQL>
    
  • control string unable to update the context when running!

    Hello

    I put a chain control in my front panel. but I found the text I typed in that unable to transfer to my program in real time. for example, I type 5 in the chain box and press a button to transfer the character to be somewhere next time I type 6 in this control again and again press buttong. However, this time the controls still trasfer 5 to my program. To fix the bug, I on the occasion of "Update of the value when you type" property of the control. Why? control does not automatically update its value?

    Ah. Ok.  I had this happen to me a few more times and I think that what is happening, is that the mouse button event triggers until the string is updated after the loss of focus.  I fixed that in the past by forcing a change of focus to another control before trying to read the string (in this case).  Here, I changed your code to be 'change of the value OK' and I added a white case to 'OK mouse down.  I think that the order of events are treated is the mouse down?, mouse down and then value change in making the case until your writing to DB is running, it gives the chain time/reason to update.

    This feels cludgy and probably wrong, but it works.  I hope that someone will be along soon to provide a better way.

    In the process of looking into this I took the liberty of your condensation scheme.  I also created a version that did not try to write to DB or automatically exit.  I have attached two versions.

  • When the need to update the statistics for a table

    In Sybase, we use "delete the statistics', 'update all statistics" and 'sp_recompile', fact Oracle need to do such things anyway? Thank you!

    Given that the V10 by default Oracle collects "necessary" statistics (new) once every 24 hours.

    If you determine that your situation requires a different treatment, so you must do manually what you feel is appropriate.

Maybe you are looking for

  • Why not make "suggestions" when I start typing a Word? Yes, 'Show the Suggestions' is checked.

    I used to get the 'suggestions' until the other day. Now, I get nothing. "Show Suggestions" is checked. I still the same as before search engines (Google, Yahoo, etc.). The most recent update screw something up?

  • Cannot connect to Skype, Windows desktop application

    I can't connect to Skype Windows desktop App Win7, Skype 6.9.0.106. Username and password are good. I can log on with these on skype.com. Also I can log in using my address WP8 and hotmail.com. If I try to use my e-mail for loging hotmail.com address

  • HP Photosmart printer color cartridge error

    I just replaced my color cartridge with a 75xl and the message I get, is that the cartridge is not intended to be used with this printer.  According to the specifications and the user's manual, it is.  Any ideas?  I've only had the printer for a mont

  • address bar disappeared on my gateway with windows xp

    We had a bad Thunder and lighting storm that struck the power works a few times, my computer makes a noise of popin and went. After the storm I restarted up without problems, except without the address bar, and some files are missing.  What should I

  • BlackBerry Smartphones second use of the 8100 Pearl

    I recently bought a Pearl 8100 on Ebay. She is excellent and has all the grouped items. However, I wonder if there are pitfalls I should be aware of a second user.  I need to re-register, etc.? I'm older, but use a laptop without frequently myself!