Updating attribute columns
Hi,
we are on oracle applications 11i.
We have a requirement to create a descriptive flexfield in the items form and suppliers form to accept ids generated in another system. update would be from database end.
what is the impact of updating attribute columns in two tables: MTL_SYSTEM_ITEMS_B and po_vendors with a simple procedure, i.e without using existing Oracle APIs?
Regards
Hi,
here is why i think i need to insert a row the value set table : fnd_flex_values .
after i update the record of the table and alter attribute field with value XXX for value set segment GLOBAL_ID, I go to the application and query the record. It gives me error:
Value XXX for the flexfield segment Global ID does not exist in the value set XX_GLOBAL_ID.
this error only goes away when i insert the value XXX to the descriptive flexfield segment values list.
I defined the value set as independent. If you have another mean where i can accomplish this, I will like to know about it.
From ittoolbox forum i had the name of the package, which is fnd_flex_values_pkg. I need more details on the tables that i need to update or insert rows into and about the package; if possible.
thanks
Similar Messages
-
API for RA_CUSTOMER_TRX_ALL to update attribute columns
Hi,
Not sure if this is the right place for this but does anybody know if there is an API for updating RA_CUSTOMER_TRX_ALL table
I'm wanting to update the Attibute columns.
Thanks
MalcolmOracle typically does not provide APIs for ATTRIBUTE columns as these need to be maintained by customers.
HTH
Srini -
Can we update oracle standard table Attributes column by custom trigger?
Can we update the oracle Standard table's Attributes column using custom trigger? Is it allowed by oracle? Is this supported?
ThanksATTRIBUTE columns store DFF information and therefore custom code can be used to update their contents. Care must be taken that such updates do not cause "logical" corruption (an ATTRIBUTE column may be designed to store the color of a product, for example, but an incorrect SQL statement can update the value to a numeric one, thus causing corruption - Oracle does not have a means to check the validity of these update statements). Also, some localizations, such as Brazil and India, reserve some ATTRIBUTE columns for their use - updating such columns is not supported. More information may be found in the Flexfields Guide for your release at http://www.oracle.com/technology/documentation/applications.html
HTH
Srini -
Issues in updating OE_ORDER_HEADERS_ALL attribute columns in trigger
I have the requirement to update the attribute4 of the oe_order_headers_all based on certain data validations. A DFF has been defined on attribute4 as well. When i try to create a before insert trigger on oe_order_headers_all to update the attribute4 values, trigger completes without any errors, but the attribute4 is not getting updated with the data.
Is there any restriction to insert the values on attribute columns of the Oracle base tables? Because when i tried the after update trigger the attribute columns could retain the values.
Can somebody help me out on this issue?Create Or Replace Trigger OE_HEADER_TRIG_TEST
Before insert
ON OE_ORDER_HEADERS_ALL
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
declare
v_customer_number ra_customers.customer_number%type;
v_ship_to_org_id oe_order_headers_all.ship_to_org_id%type ;
v_country_code varchar2(50);
begin
v_ship_to_org_id := :NEW.ship_to_org_id;
select rac.customer_number,
country
into v_customer_number,
v_country_code
from ra_addresses_all raa,
ra_site_uses_all ras,
ra_customers rac
where ras.address_id = raa.address_id
and ras.site_use_id = v_ship_to_org_id
and ras.primary_flag = 'Y'
and raa.customer_id = rac.customer_id;
:new.attribute4 := v_customer_number;
:new.attribute5 := v_country_code;
exception
when others then
raise_application_error(-20202,'Error in trigger'||sqlerrm);
end;
**I have verified that attributes are getting assigned in the trigger but is not stored in the table. -
Updated attribute not showing up in the Front End
Hi,
I have to update an attribute column based on some conditions.
Even though I have updated, the updated value is not showing up in the front end
Moreover if I go to Diagnostics-> Examine and then query the attribute value I can see the updated Result
What can be the reason...
Please Advise
RahulSounds like the Statement is not committed. Maybe you should add a
COMMIT;
at the end of your query. -
Attribute Columns in Table Fnd_Lookup_Values
Hello All, I am trying to update the attribute columns (Attribute1, Attribute2, Attribute3 etc) in the table Fnd_Lookup_Values from the Applications (Forms) side. How do I do it? From Application Developer > Application > LookUps > Common, I can Enter/Update only Lookup Code, Meaning, Description, Tag Effective Dates. I want to enter values in the Attribute Columns too. Please help!!
Thank You, Naveen Gagadam.Hi,
You need to define the DFF first from the application. For that:
1. Go to System Administrator responsibility (or any of the Super User responsibilities in the system)
2. Go to the DFF definition screen: Application > Descriptive > Segments
3. Search your DFF. In your case:
- Application: Application Object Library
- Title: Common Lookups
4. Unfreeze the DFF (if it's frozen)
5. Click on Segments button and define the attributes you want to populate
Once done that, open the lookups screen and you will be able to populate the attributes.
Hope it helps. -
Updating a column when button pressed
Hello,
I have a ADF master detail table and in the detail table and I would like to add a button. When user select a row and presses the button, I need to update a column value to 'Y'. How can I do this?
I need to have a Yes or No prompt as welll before it gets updated in the db table.
How can I acheive this.
Thanks a lot.Hi,
if you use ADF, on the button action method, access the ADF biinding, get a hande to the iterator and call getCurrentRow() on it. The set the attribute that represents the column and set Yes or No to it.
Make sure you use PPR to refresh the table when teh button is pressed
Frank -
Getting errors when updating a column on a table having a primary key
Hi,
I have an application on Oracle APEX that raises the following error after an attempt (through the application) to update a column with no specific constraint on it:
ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignoredUnable to fetch row.
The involved table has a primary key conatraint and the corresponding column can be populated by a sequence (but there is no trigger to manipulate the sequence).
The sequence is mentioned in the involved page definition for populating the primary key.
If I disable the primry key and set to null the corresponding value for the primary of the record to be updated, then it is possible to update that record (thus the above column) through the application.
Did someone encountered this situation before?
If yes, what was then your workaround/solution?
Kind Regards.Dear user8058501 ,
Firstly) Did you check
Auto Row Fetch (After upgrade to 4.0.1)
Automated Row Fetch on Table with Synonym causes ORA-00936: missing expr.
Secondly) If the problem is not resolved, Would you provide a sample on apex.oracle.com with workspace/developer account to be able to help you
Please, if this solves your question, mark it as Correct. Otherwise as helpful.
Best Regards
Mahmoud -
Update a column for a subset of data
Hi all,
I hope you can help me with some suggestions in how to solve the issue i have for the table below
SQL> select * from table1;
NAME ID CONCAT SAME_GR
A 10 100|200|300
B 11 100|200|300
C 12 100|200
D 10 100|200|300
SQL> What i need to do is to flag the rows which have the same ID & Concat value by updating the same_gr column with the same value, something like
SQL> select * from table1;
NAME ID CONCAT SAME_GR
A 10 100|200|300 GR1
B 11 100|200|300 GR2
C 12 100|200 GR3
D 10 100|200|300 GR1
SQL> One important note is that the value in SAME_GR column should have the form of GR<sequence>
I've been trying to use lag/lead functions but i can't succeed in updating the column with the same value for each group of rows where ID & CONCAT are the same.
I forgot to mention i'm on 11gR1.
Any help is very much appreciated.
Cheers,
Dani
Edited by: DanyC on Jun 18, 2010 10:40 AMyes, you can.. all you need to do add is sum operation. after dense_Rank column sepecify + 254 and thus it will add up the value with dense rank output.
sample run...
PRAZY@11gR2> select ename,dense_rank() over (partition by deptno order by empno) from emp;
ENAME DENSE_RANK()OVER(PARTITIONBYDEPTNOORDERBYEMPNO)
CLARK 1
KING 2
MILLER 3
SMITH 1
JONES 2
SCOTT 3
ADAMS 4
FORD 5
ALLEN 1
WARD 2
MARTIN 3
BLAKE 4
TURNER 5
JAMES 6
14 rows selected.
Elapsed: 00:00:00.13
PRAZY@11gR2> select ename,dense_rank() over (partition by deptno order by empno)+300 from emp;
ENAME DENSE_RANK()OVER(PARTITIONBYDEPTNOORDERBYEMPNO)+300
CLARK 301
KING 302
MILLER 303
SMITH 301
JONES 302
SCOTT 303
ADAMS 304
FORD 305
ALLEN 301
WARD 302
MARTIN 303
BLAKE 304
TURNER 305
JAMES 306
14 rows selected.
Elapsed: 00:00:00.01Regards,
Prazy -
How to update a column with default in a tabular form.
We have a tabular form that has a submit button that does a multi row update. We would like to update a column with a defaut like APP_USER = updated user when the row is updated. Is this possible and how?
used lovs and conditions.
-
All, I'm trying fix an issue with transactional replication where replication monitor is showing the push to the subscriber is failing because of the error, "Cannot update identity column." I've tried to use sp_browsereplcmds to pull up the
command that's failing based on the xact_seqno but when I try that I get the error:
Number: 102, State: 1, Procedure: , LineNumber: 0, Server: , Source: .Net SqlClient Data Provider
Message: Incorrect syntax near '┻'.
I'd like to fix the issue without having to rebuild replication during a maintenance window. I know you cannot publish tables with primary keys, but I'm wondering if dropping the identity column on this table might fix the issue. I'm considering
that but I would prefer to be able to pull the command that's trying to update the identity column, throw in SET IDENTITY_INSERT ON and remove the commands from the distribution database, but if that doesn't work I'm open to ideas of just dropping the primary
key on the replicated table. I think that should be fine.
Does anyone have any recommendations on how to view the command that's failing?
Or if dropping the primary key on the subscriber table would create issues with the publisher (since it is also the primary key)?
Or, know of any other ways in which to address this issue? Thanks.Unfortunately, no. The error was a bit of a red herring. In the end the subscriber was missing all of the stored procedures needed to update data in the published tables (i.e., the procedures for performing inserts/updates/deletes were missing
for every table in the subscriber database). Additionally, I could not recreate these stored procedures using sp_scriptpublicationcustomprocs
because another procedure which was required for that proc to work was also missing. In short, there were hundreds of missing stored procedures in the subscriber database on which transactional replication is dependent in order to replicate DML changes and
function normally and this includes system sprocs which would've been used to recreate the missing DML procs. In short, the subscriber was badly damaged and deemed to be unrecoverable within a reasonable time frame.
The solution was to tear down and start over, which we did successfully later in the evening. -
Error when updating blob column
Hello,
im using the SQL-Developer and i have problems with updating blob columns.
I'm getting the following error:
UPDATE "MED400_INSTALL"."AMEDN_INSURANCE_TEMPL" SET WHERE ROWID = 'AAM6j5ABGAAAADpAAJ' AND ORA_ROWSCN = '26019698898'
One error saving changes to table "MED400_INSTALL"."AMEDN_INSURANCE_TEMPL":
Row 15: ORA-01410: Ungültige ROWID
I'm updating different tables and different rows.
This error is not shown in all cases. I can update some rows but not all off them.
Is this a bug?
TIAI made some further investigations and have some more results.
- the problem does not occur all the time
- the problem seems to occur in the following situation
- User A: updates the blob-field using the sql developer menu and commits (-> success)
- User B: updates the blob-field using the sql developer menu and tries to commit (-> error)
- the error stays until User B does a rollback, after the rollback user B can update the blob-field! and user A gets the error.
Here are some extracts of sql developer log. It shows that the same row can be updated in somes cases, in others cases you get an error. After a rollback the field can be updated successfully The rowid ist the same. ora_rowscn is different:
UPDATE "AZUBI2"."AMEDN_INSURANCE_TEMPL" SET WHERE ROWID = 'AAc6TTACEAAAAHQAAC' AND ORA_ROWSCN = '26087686991'
One error saving changes to table "AZUBI2"."AMEDN_INSURANCE_TEMPL":
Row 1: ORA-01410: Ungültige ROWID
Rollback Successful
UPDATE "AZUBI2"."AMEDN_INSURANCE_TEMPL" SET WHERE ROWID = 'AAc6TTACEAAAAHQAAC' AND ORA_ROWSCN = '26087687075'
Commit Successful
I could offer a dump where you can possibly reproduce this issue. Where can I send or upload it.
Best regards,
zebadmin -
ADF 11g Partial Triggers Row Column Update By Column in the Same Row
Hi.
I have a situation whereby I have a checkbox in a table row, which has an eventchangelistener, which upon activation, trys to update another column in the same row. I can not get this to work through partial triggers, even though I have set up my ids up correctly. The row though can be updated by a command button outside of the table using the same coding techniques, but I need it updated via the checkbox.
Is there a limitation in updating a column within a row, from another row column's event change listener.
Thanks.Updating the other rows from the checkbox works fine for me. Here is what I did.
I DnD Emp table with a new column that says if the emp is new hire. If the checkbox is checked, I set Firstname and Lastname for that row as NewHire. I have partial triggers on Firstname and Lastname columns to update whenever checkbox is checked/unchecked and autosubmit on checkbox to true. Hope this helps.
Try adding column selection property to single and see if it helps.
Edited by: asatyana on Jan 16, 2012 12:48 AM
Edited by: asatyana on Jan 16, 2012 12:49 AM -
I have Library having metadata column when a document is uploaded i need update another list with metadata column of
library in list.I have an event reciever to do that,Code is given below
public override void ItemUpdated(SPItemEventProperties properties)
base.ItemUpdated(properties);
SPList saList = properties.Web.Lists["mylist"];
SPListItem item = saList.AddItem();
item["Department"] = properties.ListItem["Department"].ToString();
EventFiringEnabled = false;
item.Update();
EventFiringEnabled = true;
my elements.xml file is as below
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListUrl="Documents">
<Receiver>
<Name>DocumentItemUpdated</Name>
<Type> ItemUpdated</Type>
<Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
<Class>MyDocuments.Documents.Documents</Class>
<SequenceNumber>10000</SequenceNumber>
</Receiver>
</Receivers>
</Elements>
but i did not see the the List column getting updated.But when i use the code to update a column of single line of text
it works fine.But when i do it for multi select metadata column in debug mode i could see its giving null value even though Library had column value.
Any pointers on how to update Multiselect metadata column programatically on itemeadding event in library to a list will
be helpful.You need to use the TaxonomyFieldValueCollection class. The following code is from SP2010 but should still apply in SP2013. It is an example of updating multivalued taxonomy fields.
public static void SetListItemMultiMetaDataColumn(Int32 id)
using (SPSite site = new SPSite("http://basesmc2008"))
using (SPWeb web = site.OpenWeb())
TermSet termSet = null;
TaxonomySession txs = new TaxonomySession(site);
SPList list = web.Lists["Shared Documents"] as SPList;
SPListItem item = list.GetItemById(id);
TaxonomyField field = item.Fields["multimanage"] as TaxonomyField;
if (field != null)
termSet = txs.DefaultSiteCollectionTermStore.GetTermSet(field.TermSetId);
Term term = termSet.GetTerms("sts", false).FirstOrDefault();
if (field.AllowMultipleValues)
TaxonomyFieldValueCollection currentCollection = item[field.Id] as TaxonomyFieldValueCollection;
TaxonomyFieldValue tfv = new TaxonomyFieldValue(field);
tfv.TermGuid = term.Id.ToString();
tfv.Label = term.GetPath();
tfv.WssId = TaxonomyField.GetWssIdsOfTerm(site, txs.DefaultSiteCollectionTermStore.Id, termSet.Id, term.Id, false, 1).First();
currentCollection.Add(tfv);
field.SetFieldValue(item, currentCollection);
item.Update();
Blog |SharePoint Field Notes Dev Tool |
SPFastDeploy -
Update SAME column name in two tables from ONE query
Dear All Seniors
Please tell me is it possible to update a same column name in two tables.
I have two tables in same schema
(1)table name
pem.igp_parent
column name
igp_no.
igp_type
(2)table name
pem.igp_child
column name
igp_no.
igp_type
i want to update igp_no column in one query please tell me how it would be possible.
thanks
yassenYou want to update the data from what to what? Where is the new data coming from?
If you are trying to put the same data in two different tables, that strongly implies that you have a normalization problem that needs to be addressed.
Why do you want a single query rather than updating each table in turn? Can you join the two target tables to produce a key-preserved view?
Justin
Maybe you are looking for
-
Ok. So I have a unibody macbook pro and Toast 10 and suddenly a few months ago it will not burn a dual layer dvd. I've spent a lot of time with the Genius teams in my area and we cannot figure out why I constantly get a "Spindle Servo Error". First,
-
I want to delete SOME of the artists I purchased on my purchase history, so when I'm on my iOS device, I dont have to scroll thru all my purchases to get just the ones I want. Is there a way to control this? Delete a certain artist so it NEVER show
-
An Illustrator error occurred: 1346458189 ('PARM')
Hello everyone, I am trying to open some documents in Illustrator CS4 by javascript, walk through all layers including sublayers, doing something (for now just reading the layernames and showing them at an alert), closing the document and continue wi
-
IMac headphone jack sound drop
Hi everyone, My 27 iMac 3.06 GHz is dropping the sound from the headphone jack after a few minutes of playing audio. If I adjust the volume with the keyboard the sound comes back...for a few minutes again. If I use the on-board speakers for sound out
-
Well, I haven't seen anyone else post this topic, so I guess it's just me. My Late 2001 iBook has, on a couple of occasions, lost its grip on the battery. To be specific, the lock on the bottom of the computer turns to the unlocked position and the b