Dynamic Item Attribute
Is it possible to create a item attribute dynamically in oracle workflow?
Yes,
WF_ENGINE.AddItemAttr
(itemtype in varchar2,
itemkey in varchar2,
aname in varchar2,
text_value in varchar2 default null,
number_value in number default null,
date_value in date default null);
Regards,
Alejandro
Similar Messages
-
Dynamically create document type Item Attribute using WF_ENGINE.AddItem API
Hi
Is WF_ENGINE.AddItem API , supported to create document type Item attributes dynamically ? If yes how do we set the display name of the attribute. If no then is there is any other method to dynamically create document tyoe item attribute?
ThanksHi,
If the document is stored on a file system, then I would replace the message body with a PL/SQL document which includes links to the files as straightforward URLs. There would be no need to include them in the Workflow in any way. For example, I recently worked with a client where all the (file) attachments made within eBusiness Suite were then migrated into Oracle Universal Content Management and the attachment was replaced with a URL to the new document. Any notifications now just reference the URL link to the document within the document management system in an HTML notification. While the processing is going on, the user is given the list of files that exist as attachments, but no links because the document is being processed by the management system.
If the attachments are going to be stored in Workflow as documents, you won't be able to change the display name though - display name is set for the attribute on the message, not for each specific notification. Changing the value of the display name for the message would impact all notifications that use that message, which isn't what you want.
What you need is to dynamically build the notification (either using PL/SQL or OA Framework) and include a list of attachments in the notification. This may be a direct link to the document (either in a document management system or on a file system somewhere) that you can render as a URL, or a link to code that can retrieve the document from the database and serve that to the user. This is not a straightforward piece of work.
If this is purely internal, you might be better off having a custom form / screen which displays the different documents, and link to that from the notification. Or you could link to a standard form for the transaction and have the users pick up the attachments directly from the transaction.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Problem with Configurator - Cannot Update Item Attributes for a Config item
Hi!
We configured an item to reproduce the following feature of Oracle Configurator in our business case (Oracle Configurator Modeling Guide - 115czmod.pdf): «For example, if you have raw materials that are ordered by lengths, do not create an item for each length. Instead, define a single item for each raw material with an attribute: Length. Then capture the needed length from the end user by a numeric input or from a List of Options, and associate that input with the attribute.»
However, after we run the AutoCreate Configuration Items program the item was created in the Item Master but no Attribute was updated with the user defined values (within OConfigurator).
We associated Item Attributes to Propoerties and these are associated to Feature Options.
we wish to have the Item Descriptive Element Values (Item Catalog)
transferred from the Configurator run time, after we configure any item.
This is because we are working with item dimensions, such as length and width.
We need to define these dimensions during the Configurator run time and have them transferred into the final configuration so that we can use them later on manufacturing. We wish to display these dimensions on a job.
Support said that "The descriptive element value for the configuration item is copied from the model. This process will not look at the properties in the configurator.
You may consider using the custom hook for catalog descriptions to get the selected attributes from CZ to the descriptive elements for the config item. Please see Custom CTO Packages under Setup page 2-63 in CTO Process Guide for more details."
I'm trying to implement the suggested solution.
I've customized user_catalog_desc procedure on CTO_CUSTOM_CATALOG_DESC package to populate the item catalog values.
I'm failing to find the descriptive element values defined on configuratior for a specific inventory item id.
I have managed to found a relation between "p_params.p_item_id" given in procedure user_catalog_desc and
the configurated item_id in order to update the catalog data on the CTO_CUSTOM_CATALOG_DESC package.
This is what I've done:
procedure user_catalog_desc (
p_params IN CTO_CUSTOM_CATALOG_DESC.inparams,
p_catalog_dtls IN OUT NOCOPY CTO_CUSTOM_CATALOG_DESC.catalog_dtls_tbl_type,
x_return_status OUT NOCOPY VARCHAR2)
is
begin
declare
counter number;
i number;
l_value varchar2(30);
begin
-- Put your logic here in such a way that you populate p_catalog_dtls
-- parameter. p_catalog_dtls is a array of records. The attributes of
-- this record are cat_element_name and cat_element_value.
-- viz. record (
-- cat_element_name varchar2(30),
-- cat_element_value varchar2(30)
-- Example : p_catalog_dtls(1).cat_element_value := 'XYZ';
-- IMPORTANT : DO NOT ALTER THE VALUE OF cat_element_name . Doing so will
-- result in incorrect or inconsistent behaviour.
-- Make sure you set the x_return_status variable to one of the following:
-- FND_API.G_RET_STS_SUCCESS to indicate success
-- FND_API.FND_API.G_RET_STS_ERROR to indicate failure with expected status
-- FND_API.FND_API.G_RET_STS_UNEXP_ERROR to indicate failure with unexpected status
select count(*) into counter from MTL_DESCR_ELEMENT_VALUES
where inventory_item_id = p_params.p_item_id;
for i in 1 .. counter loop
select
distinct to_char(nvl(cz.input_num_val,cz.item_num_val)) into l_value
from OE_ORDER_LINES_V oe
, oe_order_headers_all oeh
, CZ_CONFIG_CONTENTS_V cz
where oe.header_id = oeh.header_id
and oeh.order_number in (
select distinct oeh.order_number
from OE_ORDER_LINES_V oe
, oe_order_headers_v oeh
where oe.header_id = oeh.header_id
and oe.inventory_item_id = p_params.p_item_id)
and cz.ps_node_name = p_catalog_dtls(i).cat_element_name
and oe.config_header_id = cz.config_hdr_id
and oe.config_header_id in (select distinct cz.config_hdr_id from CZ_CONFIG_CONTENTS_V cz)
and cz.ps_node_name in (select element_name from MTL_DESCR_ELEMENT_VALUES where inventory_item_id = p_params.p_item_
id);
p_catalog_dtls(i).cat_element_value := l_value;
end loop;
x_return_status := FND_API.G_RET_STS_SUCCESS;
end user_catalog_desc;
end;
Although the customization seam correct the AutoCreate Configuration Items process
terminates with warning, and the catalog info is not updated as expected.
Can anyone help me on this?
Many thanks in advance.
Paulo SantosHow did you solve this issue? During my testing I found there to be no link to the order lines when I was within this program. Therefore I am having issues getting the configuration information to populate the catalog. Is there a link and I just was doing it wrong? Thanks for any help!
Thanks,
Angela -
why we use line item attributes for account dimension
Line item detail provides a mechanism to collect detailed information about a balance in HFM.
-
Dynamic Items - Restoring values on error
I've got a page with some dynamic items. When I display a error on the page the values do not restore to reflect changes that the user made, rather the values stored in the DB. This makes sense as my code does not check to see if a error occurred.
I'd like to check if a error occurred and if it did I can restore the user changes using the htmldb_application.g_fxx(x) function. So I'm wondering how do I know if a error occurred? i.e. is their a variable like the REQUEST variable which will be set if a error occurred?
Now a bit on a side topic, when dealing with error validation of dynamic items I run into the following issue. I do the validation through one pl/sql check. It checks that all the fields have values in it. Imagine there are 5 fields (1 through 5), and the first 2 are empty. My error message says "Field 1 is empty... Field 2 is empty"... That all works but the page just says "1 error has occurred" and I have to list all the problems under that 1 error. I'd like it say "2 errors have occurred" instead. How can I do that when I only have 1 validation function? Is their a variable that I can increment for each error I find?update
-
Why to use Item Attribute with Event in case of some controls
A question about Event.Item
When i saw the example of MenuBar , i observed that we can get the data of the MenuBar clciked using a Event.Item@label .
I am having a question here , please tell me why Flex Framework is designed in such a way that getting data from the Controls is different for different controls .
I mean to ask why is it different in ncase of a MenuBar we have to use Event.item@label .
CXan anybody please tell me why what significance does an Item attribute have in case of a Event ??
Thanks in advance .It looks like you probably have ProductID setup as your key attribute. The key attribute has to be unique as it defines the granularity of your dimension. So based on the data you have shown ItemID should possibly be the key attribute.
http://darren.gosbell.com - please mark correct answers -
WF item attributes for new workflow versions
Hi All,
I have a query regarding Item Attributes for a particular workflow.
Assuming that for a particular version there are say 100 Item_Attributes for a particular Workflow.
In case a new version is loaded and if the new version is having say 102 Item_Attributes then
2 additional attributes appear in WF_Item_Attributes table for that Item_Type.
What if in the new version the number of attributes gets reduced to say 95.
Will the number of attibutes for that particular Item_Type in WF_Item_Attributes will be 95???workflow creates versions for the new workflows you create(for most of the activities though not all)
satish paul
Hi All,
I have a query regarding Item Attributes for a particular workflow.
Assuming that for a particular version there are say 100 Item_Attributes for a particular Workflow.
In case a new version is loaded and if the new version is having say 102 Item_Attributes then
2 additional attributes appear in WF_Item_Attributes table for that Item_Type.
What if in the new version the number of attributes gets reduced to say 95.
Will the number of attibutes for that particular Item_Type in WF_Item_Attributes will be 95??? -
Hello All,
I'm trying to change item attributes for an ATO Configuration item.
According to the following link, these are Hard Coded item attributes:
http://docs.oracle.com/cd/E18727_01/doc.121/e13692/T426454T426680.htm
Is there anyway to change one of these fields, so the new configured item will be created with a different item attribute, without changing the package?
Thanks,
Tomer.Hi,
It needs customization. But why do you want to change them? If we understand the requirement I believe I can give a try to explain.
regards -
Item attributes not read by IPC
Requirement: Pricing in Web Catalog based on Product Master Attributes. (condition records use fields from product master data. These condition record do not get calculated in the Product price displayed in the produdct catalog).
What we have done so far
1. Implemented BAdI CRM_ISA_HDR_PRICING and its method NEW_ITEM_VALUES_READ for passing additional Product Master Attributes and their values.
2. Activated the call of the CRM_ISA_PRICING_ITMDATA_GET function module for additional data at item level by setting the parameter u2018doItemCallsu2019= TRUE.
This function module calls the NEW_ITEM_VALUES_READ method of the CRM_ISA_HDR_PRICING BAdI. Additional item data is transferred by implementing the NEW_ITEM_VALUES_READ method.
3. The NEW_ITEM_VALUES_READ method returns the additional attributes in the structure ET-ITEMATTRIBUTES.
We have referred the SAP Note: 1004533.
Issue:
1. When debugging, the method NEW_ITEM_VALUES_READ is getting executed and the table structure ET_ITEMATTRIBUTES is populated with all the additional attributes (for e.g. ZZ_VARIETY) and the corresponding values.
2. In the Java Session log, when IPC is reading those values from the structure ET_ITEMATTRIBUTES, just after reading the first attribute it throws an exception as shown below and exits the loop that reads the values from the structure. Thus it does not able to read the additional attributes at all.
<<Snapshot of the error from Session Log>>
May 22, 2009 9:56:40 AM SAPEngine_Application_Thread[impl:3]_23 Error com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC Error occcurred in EAI layer "".
java.lang.ClassCastException
java.lang.ClassCastException
at com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC.readItemDataFromBackend(PriceCalculatorCRMIPC.java:2751)
at com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC.getDynamicPrices(PriceCalculatorCRMIPC.java:830)
at com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC.getPrices(PriceCalculatorCRMIPC.java:1217)
at com.sap.isa.businessobject.webcatalog.pricing.PriceCalculator.getPrices(PriceCalculator.java:117)
Any ideas on why even with the parameter 'doITEMcalls=TRUE', IPC is not able to read the item attributes?
thanks for any useful replies.Is there an adobe accessibility forum where I can check
for? I could not understand your clue.
Do you mean if I use Panel, this problem could be solved? -
Hi All,
I am using HTML DB 2.0. I am a new user of HTMLDB. Please explain the difference between 2 Source Used Item Attribute
1. Always, replacing an existing value in session state
2. Only when current value in session state is null.
If there is already a thread on this, please give me the link.
Thanks in advance
MonikaSo are you saying that this behaviour is different in v1.6?Yes. Otherwise the PPR stuff wouldn't work when those requests referenced uncommitted session state.
You mean, "will NOT be able to ..."No, it will be able to see the value of the item (in uncommitted session state). That's the change from 1.6.
What is an example of a "session-state committing source method"? Code that not only sets the source of the item for display but as a side-effect cause update_cache_with_write to occur for that item or for any other item(s). For example a PL/SQL Function source type that returns the source value and also does :P1_ITEM := 'value'; .
Scott
Message was edited by:
sspadafo -
How to access a dynamic created attribute in a context node?
<i>Hello,</i>
<i>who could help? I can't set a value for a dynamically created attribute which is bind to a table.</i>
<i>My context of the view looks as follow (is defined in NetWeaver):</i>
- Context
- Availability (Node)
- vctxService (Attribute)
- vctxServiceDesc (Attribute)
- ... (further predefined attributes)
- ... (some have to be set dynamically as follows)
<i>Then I have added attributes dynamically in the wdDoModifyView(...) - method, as follows:</i>
for (int i = 0; i < max; i++) {
// some code to dynamically create table columns
// adding attributes dynamically
IWDAttributeInfo attrInfo = wdContext.nodeAvailability().getNodeInfo(). addAttribute("vctxAvailability_" + i, "ddic:com.sap.dictionary.string");
tv.bindText(attrInfo); // bind to TextView in table
<i>In the method onPlugFrom... I tried to set the values for the attributes "vctxAvailability_ + i" as follows:</i>
for (int i = 0; i < max; i++) {
IAvailabilityElement newAvailNodeElement = wdContext.createAvailabilityElement();
// some values will be set for the
// predefined attributes of AvailabilityNode
// newAvailNodeElement.set...( value );
// newAvailNodeElement.setVctxService( xy.getServ() );
// now the values of dynamically created and added
// attributes in AvailabilityNode will be added
// THIS DOESN'T WORK
newAvailNodeElement.setAttributeValue ("vctxAvailability_" + i, "value" + i);
<i>It would be great if someone could help me.
Thanks in advance.
Kind regards,
Carsten</i>Carsten,
Here is a sample code that creates context attributes dynamically and also sets values:
//Creates a node
IWDNodeInfo nodeInfo = wdContext.wdGetAPI().getRootNodeInfo().addChild("TestNode", null, true, true, false, true, false, true, null, null, null);
//If you want to bind the node to a model node then the
//second argument to the above method should be the
//model class.
//Creates an attribute under the node just created.
IWDAttributeInfo testAttrib = wdContext.wdGetAPI().getRootNodeInfo().getChild("TestNode").addAttribute("testAttrib", "ddic:com.sap.dictionary.string");
IWDNodeElement testNode = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION).getCurrentElement();
IWDNode testNode2 = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION);
//Now you can bind testNode with the Model Node
//You can also set a value to the newly created attribute
testNode.setAttributeValue("testAttrib", new String("Value"));
Hope this helps.
Shakeel -
Configuration of Dynamic item proposal
Dear Gurus
Can any one tell me the configuration of Dynamic item proposal
Thnaks in advance
Sneha ReddyHi aneha reddy ,
Dynamic item Proposal is nothing but listing the materials to customers
use t.code va51 and use document type PV
and maintain the list and save system will generate the document number
that same document number u have to assgin to customer master in sales area view , sales tab page : item proposal field and assgn the number
and now raise the order , select the item proposal field insales order u will get the list (ctrl+F11)
hope this helps, if it is pls reward me
Thanks&Regards
Venkat.Dhanemkula -
Handling dynamic item data in VSTS
Hi Team,
Can you please let us know how to handle dynamic item data in VSTS.
Regards
Raghavendra
8105577088Hi Raghavendra,
Based on your previous threads posted by you in the test forum, I doubt that you want to create the coded UI test, am I right?
If so, which kind of app did you want to test, WPF or others? Could you share us a screen shot about the real UI controls you want to test? What real Controls you want to test, list item controls or others?
You know that to find a control in coded UI test, we have to use the unique peoperties as the search properties, so if your controls are dynamic, the real issue would be related to the search properties you use in your code.
Like this case:
https://social.msdn.microsoft.com/Forums/en-US/4c4805f0-230d-459d-a3e5-61e62746c5b9/list-box-item-is-not-get-selected-while-play-back-the-recorded-script-in-coded-ui-test?forum=vsautotest
As Pankaj's suggestion, if the list items are dynamic then you can use the index values instead of the innertext, so the real issue would be related to how to use the search perperties in your side. If you item text value is dynamic, you'd better not
use the text value as the search properties.
About "How does “Coded UI test” finds a control ??", reference:
http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
If I have misunderstood this issue, please feel free to let me know.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
ESYU: MASTER ITEM ATTRIBUTE UPDATE시 발생하는 ERROR 해결
PURPOSE
Master Item Attribute Update 시 발생하는 문제를 Manual Fix 시킬 수 있다.
Problem Description
Master Item Setup 후 종종 Attribute 값을 Update 하는 경우가 발생한다.
이때 특정 Item의 특정 Attribute를 Update시 'FRM-40654' error가 발생하는
경우가 있다. 이는 item attribute 들의 앞이나 뒤에 blank가 들어가 있는
경우 발생하는 문제이며 Regacy System에서 Item Import시 blank가 들어가는데
이것이 문제의 원인이 된다.
아래의 script를 돌려 Item Attribute에 들어가 있는 blank를 remove한다.
Solution Description
set serveroutput on size 1000000
DECLARE
len_var1 NUMBER;
len_var2 NUMBER;
sql_stmt VARCHAR2(450);
ln_cursor INTEGER;
ln_rows_proc INTEGER := 0;
CURSOR mtl_system_columns_cur is
SELECT column_name
FROM all_tab_columns
WHERE table_name = 'MTL_SYSTEM_ITEMS_B'
AND DATA_TYPE = 'VARCHAR2';
BEGIN
for cur in mtl_system_columns_cur
Loop
sql_stmt := 'select nvl(length(' || cur.column_name || '),0),
nvl(length(trim(' || cur.column_name || ')),0)';
sql_stmt := sql_stmt || ' from mtl_system_items_b ';
sql_stmt := sql_stmt || ' where inventory_item_id = ' || &inv_id ;
sql_stmt := sql_stmt || ' and organization_id = ' || &org_id ;
ln_cursor := dbms_sql.open_cursor;
DBMS_SQL.PARSE(ln_cursor,sql_stmt,dbms_sql.native);
DBMS_SQL.DEFINE_COLUMN(ln_cursor,1,len_var1);
DBMS_SQL.DEFINE_COLUMN(ln_cursor,2,len_var2);
ln_rows_proc := DBMS_SQL.EXECUTE(ln_cursor);
IF DBMS_SQL.FETCH_ROWS(ln_cursor) > 0 then
DBMS_SQL.COLUMN_VALUE(ln_cursor,1,len_var1);
DBMS_SQL.COLUMN_VALUE(ln_cursor,2,len_var2);
END IF;
DBMS_SQL.CLOSE_CURSOR(ln_cursor);
sql_stmt := '';
IF (len_var1 != len_var2) then
dbms_output.put_line('Bad Column: ' || cur.column_name);
END IF;
len_var1 := 0;
len_var2 := 0;
END LOOP;
EXCEPTION
when Others then
dbms_output.put_line('Error is' || sqlerrm(sqlcode));
end;
commit;
Update mtl_system_items_tl
set description= trim(description - script 결과값);
update mtl_system_items_b
set description = trim(description - script 결과값); -
Functionality of OE Transactable Item attribute
Hi,
Can anyone explain the functionality of OE Transactable Item attribute.The item can be picked/shipped and interfaced to Inventory module even without enabling this Item attribute.
thanksHi
In your case then the 'shippable' flag would have been enabled.
We can have OE transactable flag as disabled even with 'Shippable' flag enabled.
If both these flags are disabled then inventory interface would not be there.
You can use OE transactable in isolation, for items used in forecasting and planning like product families
Regards
Maybe you are looking for
-
JDeveloper 10.1.3.2 deployment bug
Hello, I am experimenting with JDeveloper 10.1.3.2. When I make any web application it runs fine in the embedded OC4J. When I try to deploy to standalone server however or to war or ear file it fails. I've noticed that the archive in fact contains on
-
Is there ANY way to access the copy/paste history in iphone4 without an app? I have the latest verdsion of ios, and I'm using an iPhone 4... The issue arose when I copied a large, VERY large block of text, and then another before I pasted the huge on
-
PDFs not opening online or in email attachments
Recently my MacBook Air (OS 10.7.5), my iPad, and my iPhone have not been consistently opening PDF files, either from the Internet (informational downloads from a website, for instance) or email attachments, some of which have previously opened succ
-
Unable to cancel/reprocess Messages of status 'HOLD'
Hi all, I m working on a EOIO Scenario. So System Error mesages blocked further processing of messages and all successive mesages after the failed message went to 'HOLD'. So I canceled the 'System Error' message.Its status changed to 'Cancelled with
-
HT201322 How come i cant see the hide buttom in my iphone?
How come i cant see the hide buttom in my iphone? i swipe the item again and again, but nothing comes out, just cant see the hide button......the instuction works in itunes, but in iphone