Storing Multiple Values in Workflow Attribute
Hi,
I got the requirement where i want to store multiple values into Workflow Attribute. Is there any way to accomplish this.
Thanks
J
Hi,
Do you mean multiple different values in the same attribute at the same time?
If not, then yes - this is standard functionality. Just use the appropriate API to set the new value whenever it changes.
If yes, then possibly, but that would be exceptionally bad design. If you want to store different concurrent values in the same attribute, then the only type this would work for would be a text attribute, and you would need to include a delimiter between the values so that they can be stored. Then, whenever you need one of the values, you need to split the attribute according to the position of the delimiters.
I have no idea when you would have a requirement to store multiple values in the same attribute at the same time - as I said, it is exceptionally bad design, so I'm going to hope that you just mean to hold different values at different times.
If you meant you want to store multiple values into multiple attributes at the same time, then there are also APIs that can be used to accomplish that. I would not recommend using them, as it makes it harder in the long term to maintain and support the application - having multiple calls is no slower, but makes the code easier to read and understand.
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
Similar Messages
-
Storing multipl values for meta data in DOCUMENT_META_DATA
Hi,
We currently have 3 content types in our system: news, announcements, and events.
They are currently stored in 3 different tables. We want to make this content
available via the various CM (select) and PZ tags (contentquery, contentselector).
I'd like to avoid writing my own doc provider (file:///D:/bea7/weblogic700/wlp/docs70/dev/conmgmt.htm#999019)
and instead would like to begin to publish document data directly to the reference
implementation tables (DOCUMENT and DOCUMENT_METADATA).
It seems like I should be able to do that with one exception. It doesn't seem
like we can store multiple values for meta data attributes. If you take the out
of the box p13n example, a lot of the data is tagged with 'genre' = Something
(i.e. Rock, Hip-hop, etc). Then content queries use this genre to personalize
pages.
What if I have a band that has multiple genres? What if I want to tag my band
as Rock and Hip-hop? And then also want that band to appear on both a Rock lovers
and a Hip hop groupies page? Is this possible with the default implementation?
I know when I tried entering multiple 'genre' meta data values for a same document
ID, it gave me a PK constraint violation. Any other trick around this?
Thanks,
Will Young
ps. using weblogic 7...Yes Subler http://code.google.com/p/subler/ does support adding the HD tag.
On the Mac I wouldn't use anything but Subler for tagging, best UI, best metadata lookup, best underlying libraries for mp4 files (I'm biased on the libraries part).
Cheers Ed. -
Multiple values for an attribute ?
Is it possible to accept multiple values for the same attribute ?
(such as a multi-select list, like Portal perspectives)
ThanksIs it possible to accept multiple values for the same attribute ?
(such as a multi-select list, like Portal perspectives)
Thanks -
Storing and retrieving multiple values into one cookie.
Hi Everyone,
I am wondering if anybody knows of any good tutorials involving storing multiple values into one cookie. Any URLs will be greatly apprecated. Thanks heaps.
Regards
DavoThese are normally delimted in HTTP by a semicolon. You can concatenate the string yourself and on the reverse trip use StringTokenizer to get the values back out.
- Saish -
Hey Guys
I'm trying to find a way to get multiple values using the following method
HttpSession.getAttribute(java.lang.String)
Here's the scenerio. Its a already written application and now i'm trying to make some changes. earlier in the jsp page a combo box was used and value was retrieved in the servlet using the getAttribute method of Session. Now I'm using a html multiple selection list and have to retrieve all the values selected in the list in the servlet. Can anyone please suggest me how to do that. HTTPRequest class has a method getParameterValues which will let me do that but i have to do is using HTTPSession.
Thanks for your time to read thisI'm not sure what you are trying to do. You can only use session.getAttribute to retrieve something that has already been stored in the session with a previous setAttribute. If you need to store multiple values under one attribute name using setAttribute, you can store an array, or an ArrayList or whatever type of Collection you want. The request.getParameterValues method is the only way you can retrieve form parameters than can have multiple values. If the servlet hasn't already processed these parameters and put them into the session for you, you have to use request.getParameterValues.
-
Error: Set type Z contains multiple-value attributes
Hi forum,
I have a problem when i try to assign a set type with the same value but diferent name on another set type to the same product category.
This is the detail of the error but i dont know where i have to set this indicator:
If you set this indicator for a particular hierarchy, all categories and set types in this hierarchy are created in the PME.
This gives you the following extended maintenance options at category level:
You can assign set types with multiple-value attributes
You can restrict value ranges and maintain default values for attributes of customer set types.
Any sugerence about this?
Regards and thanks in advance,
MonHi Nelson,
I create two set types, the description is not the problem. I have discover that when i try to assign these attributes in the same set type or in other appears this error.
The set types have the same values. For example:
zcountry1. Values: sp - spain. fr - france.
zcountry2. Values: sp - spain. fr - france.
When i try to configurate the comm_hierarchy in my category appears this error:
Set type zcountry2 contains multiple-value attributes.
Diagnosis
The set type ZGAME5 contains multiple-value attributes. It cannot be assigned to the category as extended maintenance has not been activated.
Procedure
Multiple-value attributes are stored in the PME. If you want to use the set type ZGAME5, you must set the Extended Maintenance Options indicator for the hierarchy.
Extended Maintenance Is Possible for the Hierarchy
Definition
If you set this indicator for a particular hierarchy, all categories and set types in this hierarchy are created in the PME.
This gives you the following extended maintenance options at category level:
You can assign set types with multiple-value attributes
You can restrict value ranges and maintain default values for attributes of customer set types.
Where is this indicator¿? in R3?
So, these are the steps...can anybody help to me?
Regards and thanks in advance. -
Passing single/multiple values to stored proc parameter from crystal report
I tried below solution posted on this forum to pass either a single value or multi-value to a sql server stored procedure parameter (varchar datatype) from crystal report XI R2.
In my crystal report , I am displaying all the available parameter values to the user and the user will select either a single value or multi value.
This worked when I select single value and when I say show sql query in my subreport I see the following:
{CALL "XYZ"."dbo"."storedprocedurename";1('Product 1')}
But this did not worked when I selected multiple values and when I say show sql query in my subreport I see the following:
{CALL "XYZ"."dbo"."storedprocedurename";1('Product 1,Product 2')}
I think it might work if it is as below:*
For multiple values:
{CALL "xyz"."dbo"."storedprocedurename";1('Product 1', 'Product 2')}
Please advise.
Solution Posted on this forum is as follows:
Hi,
As you must be aware of that a crystal report created of a stored procedure will allow only a single value for inserting a multiple value as a parameter in your report and pass those values to your stored procedure please follow the below work around which will be helpful for you.
Symptom
In Crystal Reports, you want to pass a multi-value parameter to a stored procedure. The problem with doing so is that Crystal Reports considers the multi-value parameter to be an array.
How can you pass a multi-value parameter to a stored procedure?
Resolution
Here are the steps to pass a multi-value parameter to a stored procedure:
1. Create a Crystal report, and add a multi-value parameter.
2. Since the multi-value parameter is treated as an array, create a formula that uses the JOIN function. Create a formula as below:
//Formula: @JoinFormula
Join ({?Multi-value parameter array},";")
====================
NOTE:
In the formula above, a semi-colon (";") is the delimiter.
====================
3. Within the main report, create a subreport based on the stored procedure, and include the parameter to be populated with the multi-value list.
4. Link the Join formula in the main report to the stored procedure parameter in the subreport.
Doing so passes a multi-value parameter to the stored procedure.
Regards,
VinayHi Vinay,
First you need to make sure the stored procedure accepts multiple values in the fashion 'a','b','c'.
Then, create this formula in the Main Report:
numbervar i;
stringvar s;
for i:= 1 to ubound({?Parameter}) do
s := s + "'" + {?Parameter}<i> + "'" + ",";
left(s,len(s)-1);
Link this formula to the sub-report's parameter.
Hope this helps!
-Abhilash -
How to set multiple values in one context-attribute
Hi all,
Anybody knows a possibility to set multiple Values to a context-attribute?
I know it how to get it with the following code:
String break[]= request.getParameterValues("break");
Now I want to do something like:
request.setParameterValues(break[no]);
where no is a counter in a loop.
With the Method setAttribute(), I overwrite the previous inserted value.
Thanx
RobertI have not explizit declared break as an array.
It is the Context- Attribute I want to send. I thaught that I can use it as an array in the same way I can do it when I send Data from an HTML- Form (with multiple values) to an servlet.
I don't know how to declare the Attribute explizit as an array.
that it is you wanted to know?
I think my main problem is to get an array from the servlet to the jsp. Is there an other possibility (other than via Context-Attributes) to do that?
thanx
robert -
MULTIPLE VALUES PASSING TO STORED PROCEDURE
Hi,
I have a following stored procedure, I am passing two parameters from the drop down list by using a different dataset. User is selecting multiple values from drop down list in reporting services from
code a drop down and code b drop down.
I have put the JOIN(Parameters!qual_codea.Value,",") in dataset property for both parameters. But it is only displaying first row in the report. In report I have used simple table and Drag Total, Qualification Code A and Qualification Code B in
three columns respectively.
Any Idea why it is not displaying the remaining data for other codes selectedfrom drop down. If i run a query in management studio by using in operation with multiple codes, it display multiple rows which is correct but it is not happening in reporting services.
Any Idea?
ALTER PROCEDURE [dbo].[Multiple_Qualification_Summary]
@qual_codea nvarchar(10),
@qual_codeb nvarchar(10)
AS
select DISTINCT
COUNT(b.PRN) as Total
,A.UKCC_Qualification_Code AS 'Qualification Code A'
,b.UKCC_Qualification_Code as 'Qualification Code B'
from dbo.Practitioner_Register_Part_Status as a, dbo.Practitioner_Register_Part_Status as b, dbo.Qualification_Register_Part as c
where a.PRN = b.PRN
and a.UKCC_Qualification_Code = @qual_codea
and b.UKCC_Qualification_Code = @qual_codeb
AND A.IsLatest = 1 AND B.IsLatest = 1
AND A.UKCC_Qualification_Code = C.UKCC_Qualification_Code
AND C.QUALIFICATION_ACTIVE_SWITCH = 1
group by A.UKCC_Qualification_Code
,b.UKCC_Qualification_Code
order by 1
MHHi Sathya,
Thanks for your reply, do i need to change the stored procedure? According to your link it suggest i have to use XML?
MH
Try this - Passing multi-value parameter in stored procedure
Shahfaisal Muhammed http://shahfaisalmuhammed.blogspot.com -
ORA-35563: Multiple values exist for an attribute of this dimension member
After following the tutorial Building OLAP Cubes I was trying to make a cube with aggregation down to the day instead of down to the month.
I created a times table pretty similar to the one used in the tutorial:
CREATE TABLE EVENT_TIMES (
HOUR_KEY DATE NOT NULL,
DAY_ID VARCHAR2(10),
DAY_NAME VARCHAR2(10),
DAY_END_DATE DATE,
DAY_TIME_SPAN NUMBER,
MONTH_ID VARCHAR2(30) NOT NULL,
MONTH_NAME VARCHAR2(40),
MONTH_END_DATE DATE,
MONTH_TIME_SPAN NUMBER,
YEAR_ID VARCHAR2(30) NOT NULL,
YEAR_NAME VARCHAR2(40),
YEAR_END_DATE DATE,
YEAR_TIME_SPAN NUMBER
As you can see, instead of a DAY_KEY like in the tutorial, I now use an HOUR_KEY.
This is a sample of the data I inserted in this table:
select to_char(hour_key,'YYYYMMDDHH24MISS'),DAY_ID,DAY_NAME,DAY_END_DATE,DAY_TIME_SPAN,MONTH_ID,MONTH_NAME,MONTH_END_DATE,MONTH_TIME_SPAN,YEAR_ID,YEAR_NAME,YEAR_END_DATE,YEAR_TIME_SPAN from event_times;
TO_CHAR(HOUR_KEY,'YYYYMMDDHH24MISS') DAY_ID DAY_NAME DAY_END_DATE DAY_TIME_SPAN MONTH_ID MONTH_NAME MONTH_END_DATE MONTH_TIME_SPAN YEAR_ID YEAR_NAME YEAR_END_DATE YEAR_TIME_SPAN
20140104050000 Y2014M1D4 Y2014M1D4 04-JAN-14 1 Y2014M1 Y2014M1 31-JAN-14 31 Y2014 Y2014 31-DEC-14 365
20140104060000 Y2014M1D4 Y2014M1D4 04-JAN-14 1 Y2014M1 Y2014M1 31-JAN-14 31 Y2014 Y2014 31-DEC-14 365
I then created my TIME dimension with DAY as the lowest level.
When I try the maintain cube option it fails at the 'LOAD NO SYNCH' step with the rejected records having an error message that says:
ORA-35563: (XSRWLD17) Multiple values exist for an attribute of this dimension member.
To me, this is a very cryptic message and the only explanation I find online is:
Cause
Multiple source table rows containing different values for a dimension attribute were found. Only the first of the multiple rows has been loaded.
Action
Fix the mapping or remove the rows with conflicting attribute values..
This confuses me. In the tutorial the lowest level was day and the TIMES table contained 1 record for each day.
In my example, the lowest level is hour and the TIMES table contains 1 record for each hour.
Which attribute has multiple values? And which values?
The rejected records (101) are not very clear:
ALIAS_1 = 'MONTH_Y2014M1' AND ALIAS_3 = to_date('31JAN14') AND ALIAS_4 = 31 AND ALIAS_5 = 'Y2014M1' AND ALIAS_6 = 'Y2014M1' AND ALIAS_7 = 'YEAR_Y2014'
If anyone can help point me in the right direction, it would be greatly appreciated.I have seen this recently. The issue is with the dimension load itself. You have a hour level record table but the rules relating to hierarchy/attribute values etc are checked/reinforced during the load and this error comes up sometimes.
I would guess that the issue seems to be with your month level information present in the higher level month columns. There are many records corresponding to a single month in ur case, month of Y2014M1. Information relating to Month level member Jan 2014 or member MONTH_Y2014M1 is present in these records: 31 (days) *24 (hours) = 744 records. The data in these 744 records for columns - MONTH_ID, MONTH_NAME, MONTH_END_DATE, MONTH_TIME_SPAN need to be exactly the same in order for the single member MONTH_Y2014M1 to have month attributes loaded with valid values.
For e.g: if records #1 to #743 contain month_timespan=31 but for some unknown reason record #744 contains month_timespan=30 then this error will come up. OLAP does not know which value to load (31 or 30), and only 1 value can be loaded onto the month level member corresponding to month Y2014M1.
A quick check of the data should give you the answer. Typically there may be some mistake/invalid assumptions made with the boundary records (in your case, check for values for records corresponding to hour=0 or hour=23/24) which is causing the issue.
HTH
Shankar -
Multiple values in attribute BSA - 'Doc. Type in R3 system'
Dear Experts,
We use SRM7.0 with classic scenario.
We want to define different follow on document for each product group.
- We defined in "Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Order)":
For category ID 1000 u2013 Always Purchase Requisition
For category ID 2000 u2013 PO if item data complete
- We also defined in org. management attributes (BSA) two kinds of 'Doc. Type in R3 system' u2013 one for PO and one for PR.
But we got error message.
If I define only 'Doc. Type in R3 system' for PO u2013 the system creates PO correctly.
If I define only 'Doc. Type in R3 system' for PR u2013 the system creates PR correctly.
If I define the two 'Doc. Type in R3 system' - we get error message.
Does it means that attribute 'Doc. Type in R3 system' cannot have multiple values ?
Thanks !
LoriHello Lori,
Please have a look at wiki below:
[Follow-on document determination (PR, PO,RS)|http://wiki.sdn.sap.com/wiki/display/SRM/Follow-ondocumentdetermination%28PR%2CPO%2CRS%29]
To get more details about transfer process of the Shopping Cart, see wiki below:
[Transfer process of the Shopping Cart|http://wiki.sdn.sap.com/wiki/display/SRM/TransferprocessoftheShopping+Cart]
Check also in BBP_DOC_CHANGE_BADI for Shopping Carts what is the value in field BE_DOC_TYPE at item level.
Regards.
Laurent. -
Multiple values of attributes for Transaction type Bid in the Org Plan
Hello All,
I need to have Multiple transaction types for the Object Bid Invitation in the Org Plan.
As the system is allowing only a single value,I tried maintaining the Table T77OMATTR by setting the attribute 'Tend_type' to take multiple values, but the whole attribute is set to not modifiable!
I am not sure whether I am doing the right thing
Can anybody advise on this please?
Regards,
NagarajanHi
different transactions types, which can be selected in the transaction, are defined in SPRO via
IMG/Supplier Relationship Management/SRM Server/Cross-Application Settings/Define Transaction Types. There you can create new ones as well activate/deactivate transaction types.
The follow on document, PO or Contract, is defined per transaction type there as well.
When you want to influence the transaction type used from Sourcing Cockpit when clicking on "Bid Invitation", this can be accomplished via BADI only in SRM 5.0. Check the BADI section - don't know it by heart.
Cheers,
Claudia -
Storing XMLType object as a Workflow Attribute - is it possible?
Dear Experts,
I have an XML document stored as a PL/SQL 'XMLType' object and I wish to store it in a Workflow Attribute. Is this possible and if so, under what 'Type' option shall I store it as?
Many thanks,
MarkHi,
You can store the payload as a CLOB inside a Workflow Event attribute type (WF_EVENT_T).
If the XML is guaranteed to be short, you could store it in a text attribute of up to 4000 characters, but I'd be inclined to store it in the event.
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://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Determining uniqueness in a multiple value attribute
Are matching rules used in determining whether or not two values in a multiple value attribute are duplicates?
I have an attribute with EQUALITY caseExactMatch as a matching rule, but I can't add two values like:
xxx/AAA
XXX/AAA
I would think that the matching rule would be applied and the two values would be determined to be unique.
If matching rules are not applied when values are added, why not?
Note: IBM corrected this problem in one of their releases.Sorry for the late response. It looks like this is possible without using a matching rule. In DSCC, create an attribute with type IA5String.
$ ldapsearch -p 1111 -D 'cn=directory manager' -w password -b cn=schema -T cn=* | grep -wi csstring2
attributeTypes: ( csstring2-oid NAME 'csstring2' DESC 'ia5string' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'user defined' )
objectClasses: ( customoc-oid NAME 'customoc' DESC 'testing csstring and csstring2' SUP top STRUCTURAL MAY ( csstring2 $ csstring ) X-ORIGIN 'user defined' )
$ ldapsearch -p 1111 -D 'cn=directory manager' -w password -b dc=sun,dc=com uid=a csstring2
version: 1
dn: uid=a,dc=sun,dc=com
csstring2: AAAA
csstring2: aaaa
csstring2: AAAA/qqqqqqqqq
csstring2: AAAA/qqqqqQqQq -
Can "SPML Web Service Complex Data Type field" take multiple values ?
In Generic Technology Connector's -SPML design parameters section, Can we give multiple values in SPML Web Service Complex Data Type field?
If not, how can i call methods directly instead of calling them through a values of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type?
I need 'SPML Web Service Complex Data Type' to hold multiple values.And based on the request it has to initiate appropriate method of action.
Presently i have three methods add,modify and delete which i am calling through a single value of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type.
I want to replace this single value with multiple menthods , so that a direct interaction between the method,OIM and target can be established.
Edited by: 821054 on 16/02/2011 04:23Thanks Robert.
You'll need to create your own interface to the webapp database for those kind of data operations
by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
I'm curious if anyone else has tried this?
Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
Web App item field value (as recorded against the List (Checkbox List) field type:
8294877,8294878
Web App Search value (for this same field):
8294879,8294877,8294885
The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).
Maybe you are looking for
-
Download and re-install Acrobat Pro on a MacBook Pro
When I left my former employer, Pollinate Agency, I bought a MacBook Pro with Acrobat Pro (version 9 or possibly 9.5) installed from the company. I recently had a serious computer crash, and needed to get all contents erased. The support provider did
-
After I have deleted a voicemail, each time my phone goes out of reception (which is most of the time at home) a red icon appears over the phone hone screen icon indicating a voice message. I know there isn't one because I've deleted it!! If I reboot
-
Hi there, I currently use iMovie just to produce slideshows for wedding photographers, and am thinking about upgrading to Final Cut so that I can make them that bit more professional looking and expand a little as a result. One thing I don't yet util
-
Tax procedure & PO document currency
Hi Experts, when we are creating PO with currency in the Header tab with INR and with a tax code V0 ( Tax procedure TAXINN) PO is created. But when we creating PO with currency in the Header tab with USD and with tax code V0 System is showing er
-
Install Mac OS 10.6 over 10.8
My Macbook Pro 15" is not function all on mac os Mountain Lion. i want to back to Snow Leopard from Mountain Lion. When i try to startup my machine using 10.6 bootable Hard Drive it just freeze and don't go ahead. I tried with the disk 10.6.3 that ca