Adding the unique validation on child vo attribute
Hi, I'm using Jdev 11.1.2.0 I have two tables, master child relationship. In master EO1, I have column Master_Id and in child EO2, I have columns Master_Id, child_id, child_name. i have created the assosiations in beteween EO1 and EO2 with the column Master_Id. and creatd vo's and viewlinks also. and when i drag and drop the master vo and child vo on to the page, if i select master vo first row, the correspodning child records are displayed perfectly. Now I want to apply the unique validation on the child vo columns child_id and child_name. like Child vo data;
Master_Id
Child_Id
Child_name
1
1
A
1
2
B
1
3
C
2
1
A
2
2
B
2
3
C
if I select 1 in master table, then in child table if i create a row and inserting the data, it should check for the duplicate data is there or not under that master_id. I did adding the Custom attribute validation on EO level, like checking the value is existed in the given rowset or not. Instead of adding this custom attibute validation, is there any other way to do it on the EO attribtue level, like selecting the generate unique key constraint. Any suggestion would be appreciated. Thanks.
In this car you only can validate using have methods or groovy. Read http://docs.oracle.com/middleware/1212/adf/ADFFD/bcrules.htm#CIHBBDDB for more info about this.
However, if you have the relationship you should have the pk fk too.
Timo
Similar Messages
-
facetime stopped working on mad. says "failed". works fine on phone and new mini. tried all the troubleshooting, added a unique email to the mac facetime, nothing seems to work. just keeps saying "facetime failed". any ideas???
I Got the same problem. When you change the output to internal speakers again facetime works again in the mac.
I think it may be some kind of incompatibility with the current driver. I used in the past the old tascam Us-122 and worked well but its driver don't work more for the mountain lion system so i bought this newest one.
When i used the old one I could use the volume keys on the mac keyboard to control output volume; now with the us-322 when hearing music you can control volume just from the tascam. -
During receipt validation; the first step ie, adding the files generated by asn1c tool causes errors.. especially with the #include statements
--No such directory or file..
Why this is happening??I am adding one more thing..
Do we need to mention any linkage or frameworks or such while we are adding a .c file to
Cocoa Mac OS Project -
Problem in adding the new column in VO : ADF
Hi,
I am using jdev 10.1.3.2 with ADF.
I added a new column in a table in the database. In my ADF application, I right clicked on the entity object of the changed table, and selected ‘Synchronize with DB’ which added the new column in the entity object also.
I had a jsp which uses this view object’s (VO). I had to change the VO also to add this new column.
After all this, in the jsp page, I dragged and dropped this new column as an input text field.
But while running this page, the field is empty. Also when I drag and drop it, this field doesn’t have the ‘id’ attribute.
Below is the code. Please let me know how I can fix this issue.
<af:inputText value="#{bindings.RebillNumber.inputValue}"
label="#{bindings.RebillNumber.label}"
required="#{bindings.RebillNumber.mandatory}"
columns="#{bindings.RebillNumber.displayWidth}">
<af:validator binding="#{bindings.RebillNumber.validator}"/>
</af:inputText>
Thanks,
VenkiHi Venki,
Please check if the object on the page is bound to the same iterator as the other components. Sometimes dragging and dropping new attributes makes JDev create a new iterator, and the two iterators will not be in sync.
You can check this in the pageDef file and correct any strange things you may find.
Jeroen van Veldhuizen -
Set unique entries in child tables?
Hi,
OIM 11g here. I have built a process form with its attached child table for a custom connector i have made. Now i noticed that the child table accepts duplicate entries. How can i make the child table entries unique, as they are in the AD user groups child table?
thx in advance.I have always coded these checks into my custom code whenever i maninuplate child table data. When adding, i always check the existing and when deleting, i always check if the value exists that i'm removing. I would suggest you write a piece of code that does the same and keep it in your library of re-usable code.
You could try going to the database and making the field for the name a unique field. I don't know what the outcome will be from doing so.
-Kevin -
IDoc should be generated depends on the unique value
Hi friends,
XML file contains multiple Purchase orders which are not sorted. number of idoc should be genereated depends up on the unique purchase order number.
My question is how to create idocs based on the unique purchase order number.It's very urgent my friends if any one faced this type of requriments pls give me complete description and how to sort the purchase order numbers
Edited by: prathima on Oct 9, 2011 12:32 PMHi,
First take the IDoc xsd and change the <IDOC> occurrence to unbounded by adding maxOccurs attribute.
Refer this wiki page,
http://wiki.sdn.sap.com/wiki/display/XI/ChangingtheOccurrencesofStandard+IDOC
Then import this new xsd as an External Definition and use as target structure in Message Mapping.
Sort the unique PO value from source xml and then split by value[value change] to map to <IDOC> node.
You can test the input xml in the message mapping and hope this should work
Thanks,
Zameer -
Interactive Report - is there a way to find and change if necessary the unique column.
While creating an interactive report I accidently entered the wrong "unique column" on the sql query page. Is this a big deal and how can I find and change if necessary.
Query Builder
Link to Single Row View
Yes
No
Uniquely Identify Rows by
ROWID
Unique Column
Unique Column33ac2d45-960f-45af-acba-507f01d18e08 wrote:
Please update your forum profile with a real handle instead of "33ac2d45-960f-45af-acba-507f01d18e08".
While creating an interactive report I accidently entered the wrong "unique column" on the sql query page. Is this a big deal and how can I find and change if necessary.
Query Builder
Link to Single Row View
Yes
No
Uniquely Identify Rows by
ROWID
Unique Column
Unique Column
Yes. You can change this using the Uniquely Identify Rows by/Unique Column properties in the Link Column section on the Report Attributes tab of the interactive report definition. -
Error in adding the deployfile to the archive
Hi,
I am trying to activate a J2EE library but the CBS build fails with the exception:
error in adding the deployfile to the archive (Error adding file to archive. Can't read file: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/META-INF/sda-dd.xml)
An ideas of what is wrong? Created a new activity which contained sda-dd.xml , but still same problem.
complete CBS log
Development Component Build (2006-03-27 07:02:55)
Component name: UserIntegrityLibrary
Component vendor: bouvet.com
SC compartment: bouvet.com_JAAS_LOGIN_MODULES_1
Configuration: JDI_ZEPJAAS_D
Location: JDI_ZEPJAAS_D
Source code location: http://sapJDI.st.bouvet.no:50300/dtr/ws/ZEPJAAS/bouvet.com_JAAS_LOGIN_MODULES/dev/active/DCs/bouvet.com/UserIntegrityLibrary/_comp/
DC root folder: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/
DC type: J2EE Server Component
DC subtype: Library
Host: sap06.st.bouvet.no
DC Model check:
[dcmake] All used DCs are available locally
[dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/addLib"
[dcmake] validating dependency to used DC "bouvet.com/UserIntegrityLoginModule"
[dcmake] validating dependency to used DC "sap.com/security_api"
[dcmake] validating dependency to used DC "sap.com/com.sap.security.api.sda"
[dcmake] validating entity reference from public part "defLib" to public part "api" of DC "bouvet.com/UserIntegrityLoginModule"
[dcmake] DC model check OK
Start build plugin:
[dcmake] using build plugin: sap.com/tc/bi/bp/addLib
[dcmake] starting build plugin from : /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/sap.com/tc/bi/bp/addLib/_comp/gen/default/public/addLib/
Build Plugins Version 6.40.0.111 (AdditionaLibraryPlugin, 630_VAL_REL ) from 04 July 2005 11:31:30
Building development component 'UserIntegrityLibrary', vendor 'bouvet.com', type 'J2EE Server Component', subtype 'Library'
software component 'JAAS_LOGIN_MODULES', vendor 'bouvet.com'.
location 'JDI_ZEPJAAS_D'.
source code location 'http://sapJDI.st.bouvet.no:50300/dtr/ws/ZEPJAAS/bouvet.com_JAAS_LOGIN_MODULES/dev/active/'.
Options:
convert *.xlf to *.properties: yes
include sources for debugging: yes
run JLin tests is available : no
Creating Ant build file..
No 'default' JDK_HOME_PATH defined, will use running VM. Please update your configuration.
Redefining context object 'dc_depend_allDirs' from '[com.sap.tc.buildplugin.util.ComponentDependencies@1570945, com.sap.tc.buildplugin.util.ComponentDependencies@121b59a, com.sap.tc.buildplugin.util.ComponentDependencies@19a37a]' to '[com.sap.tc.buildplugin.util.ComponentDependencies@13bdd36, com.sap.tc.buildplugin.util.ComponentDependencies@1381960, com.sap.tc.buildplugin.util.ComponentDependencies@9fa8f]'
Generating provider.xml
Using velocity macro file: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/sap.com/tc/bi/bp/addLib/_comp/gen/default/public/addLib/macros/build.vm
Creating Ant build file /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/logs/build.xml
Ant build file created in 0.374 seconds
Starting Ant with build file /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/logs/build.xml, target build
Using temporary directory /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/t/4DEAF5E55DDD90D1E9FC40123D749AEB
Ant build started at 2006-03-27 07:02:56 GMT-05:00 (EST)
prepare:
[mkdir] Created dir: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/deploy
build:
[echo] Generating public part defLib [compilation]
[pppacker] Packing compilation public part 'defLib'
[pppacker] Packing entity bouvet.com~UserIntegrityLibrary (SERVER_COMPONENTS)
[pppacker] Packing entity reference UserIntegrityLoginModule (bouvet.com), api
[pppacker] Packed 1 entity and 1 entity reference for compilation public part 'defLib'
[timer] Public part packaging finished in 0.138 seconds
[copy] Copying 1 file to /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/t/4DEAF5E55DDD90D1E9FC40123D749AEB
[echo] creating source code archive
[mkdir] Created dir: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/src/java
[zip] Building zip: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/src/java/src.zip
[echo] Creating bouvet.com~UserIntegrityLibrary.sda
[jarsap] Info: JarSAP version 20041217.1600
[jarsap] Info: JarSAPProcessing version 20050426.1600 / JarSL version 20050426.1600
[jarsap] Property jarsap.info.dir is not set.
[jarsap] Building: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/deploy/bouvet.com~UserIntegrityLibrary.sda with compression
Ant build finished with ERRORS
file:/usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/logs/build.xml:69: error in adding the deployfile to the archive (Error adding file to archive. Can't read file: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/META-INF/sda-dd.xml)
Ant build finished at 2006-03-27 07:02:56 GMT-05:00 (EST), Duration: 0.386 seconds
Build finished with ERROR
Cleaning up.Did a space modification (since the DTR actually check diff for difference before checkin) and activated the new activity.
-
Error while adding the measure to catalog
Hi
After successfully validating the cube , I created one catalog using CWM2_OLAP_CATALOG.create_Catalog , it successfully went on .Then I added the measure which i created to the catalog to the catalog thru ' CWM2_OLAP_CATALOG.Add_Catalog_Entity procedure.
After this is completed, my metadata is getting invalid.
My connection to database is getting succeded but it is not able to retrieve metadata.
Can anybody help me in doing this.Please provide more details. The database version you are running and the SQL scripts used would be very helpful. Thanks.
-
How to find the level of each child table in a relational model?
Earthlings,
I need your help and I know that, 'yes, we can change'. Change this thread to a answered question.
So: How to find the level of each child table in a relational model?
I have a relacional database (9.2), all right?!
O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
/↑\ Fks
O"O O" <-- level 2 for first table (circle)
/↑\ Fks
"o"o"o" <-- level 1 for middle table (circle)
↑ Fk
"º"Tips:
- each circle represents a table;
- red tables no have foreign key
- the table in first line of tree, for example, has level 3, but when 3 becomes N? How much is N? This's the question.
I started thinking about the following:
First I have to know how to take the children:
select distinct child.table_name child
from all_cons_columns father
join all_cons_columns child
using (owner, position)
join (select child.owner,
child.constraint_name fk,
child.table_name child,
child.r_constraint_name pk,
father.table_name father
from all_constraints father, all_constraints child
where child.r_owner = father.owner
and child.r_constraint_name = father.constraint_name
and father.constraint_type in ('P', 'U')
and child.constraint_type = 'R'
and child.owner = 'OWNER') aux
using (owner)
where child.constraint_name = aux.fk
and child.table_name = aux.child
and father.constraint_name = aux.pk
and father.table_name = aux.father;Thinking...
Let's Share!
My thanks in advance,
Philips
Edited by: BluShadow on 01-Apr-2011 15:08
formatted the code and the hierarchy for readbilityJustin,
Understood.
Nocycle not work in 9.2 and, even that would work, would not be appropriate.
With your help, I decided a much simpler way (but there is still a small problem, <font color=red>IN RED</font>):
-- 1
declare
type udt_roles is table of varchar2(30) index by pls_integer;
cRoles udt_roles;
begin
execute immediate 'create user philips
identified by philips';
select granted_role bulk collect
into cRoles
from user_role_privs
where username = user;
for i in cRoles.first .. cRoles.count loop
execute immediate 'grant ' || cRoles(i) || ' to philips';
end loop;
end;
-- 2
create table philips.root1(root1_id number,
constraint root1_id_pk primary key(root1_id)
enable);
grant all on philips.root1 to philips;
create or replace trigger philips.tgr_root1
before delete or insert or update on philips.root1
begin
null;
end;
create table philips.root2(root2_id number,
constraint root2_id_pk primary key(root2_id)
enable);
grant all on philips.root2 to philips;
create or replace trigger philips.tgr_root2
before delete or insert or update on philips.root2
begin
null;
end;
create table philips.node1(node1_id number,
root1_id number,
node2_id number,
node4_id number,
constraint node1_id_pk primary key(node1_id)
enable,
constraint n1_r1_id_fk foreign key(root1_id)
references philips.root1(root1_id) enable,
constraint n1_n2_id_fk foreign key(node2_id)
references philips.node2(node2_id) enable,
constraint n1_n4_id_fk foreign key(node4_id)
references philips.node4(node4_id) enable);
grant all on philips.node1 to philips;
create or replace trigger philips.tgr_node1
before delete or insert or update on philips.node1
begin
null;
end;
create table philips.node2(node2_id number,
root1_id number,
node3_id number,
constraint node2_id_pk primary key(node2_id)
enable,
constraint n2_r1_id_fk foreign key(root1_id)
references philips.root1(root1_id) enable,
constraint n2_n3_id_fk foreign key(node3_id)
references philips.node3(node3_id) enable);
grant all on philips.node2 to philips;
create or replace trigger philips.tgr_node2
before delete or insert or update on philips.node2
begin
null;
end;
create table philips.node3(node3_id number,
root2_id number,
constraint node3_id_pk primary key(node3_id)
enable,
constraint n3_r2_id_fk foreign key(root2_id)
references philips.root2(root2_id) enable);
grant all on philips.node3 to philips;
create or replace trigger philips.tgr_node3
before delete or insert or update on philips.node3
begin
null;
end;
create table philips.node4(node4_id number,
node2_id number,
constraint node4_id_pk primary key(node4_id)
enable,
constraint n4_n2_id_fk foreign key(node2_id)
references philips.node2(node2_id) enable);
grant all on philips.node4 to philips;
create or replace trigger philips.tgr_node4
before delete or insert or update on philips.node4
begin
null;
end;
-- out of the relational model
create table philips.node5(node5_id number,
constraint node5_id_pk primary key(node5_id)
enable);
grant all on philips.node5 to philips;
create or replace trigger philips.tgr_node5
before delete or insert or update on philips.node5
begin
null;
end;
-- 3
create table philips.dictionary(table_name varchar2(30));
insert into philips.dictionary values ('ROOT1');
insert into philips.dictionary values ('ROOT2');
insert into philips.dictionary values ('NODE1');
insert into philips.dictionary values ('NODE2');
insert into philips.dictionary values ('NODE3');
insert into philips.dictionary values ('NODE4');
insert into philips.dictionary values ('NODE5');
--4
create or replace package body philips.pck_restore_philips as
procedure sp_select_tables is
aExportTablesPhilips utl_file.file_type := null; -- file to write DDL of tables
aExportReferencesPhilips utl_file.file_type := null; -- file to write DDL of references
aExportIndexesPhilips utl_file.file_type := null; -- file to write DDL of indexes
aExportGrantsPhilips utl_file.file_type := null; -- file to write DDL of grants
aExportTriggersPhilips utl_file.file_type := null; -- file to write DDL of triggers
sDirectory varchar2(100) := '/app/oracle/admin/tace/utlfile'; -- directory \\bmduhom01or02
cTables udt_tables; -- collection to store table names for the relational depth
begin
-- omits all referential constraints:
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'REF_CONSTRAINTS', false);
-- omits segment attributes (physical attributes, storage attributes, tablespace, logging):
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SEGMENT_ATTRIBUTES', false);
-- append a SQL terminator (; or /) to each DDL statement:
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SQLTERMINATOR', true);
-- create/open files for export DDL:
aExportTablesPhilips := utl_file.fopen(sDirectory, 'DDLTablesPhilips.pdc', 'w', 32767);
aExportReferencesPhilips := utl_file.fopen(sDirectory, 'DDLReferencesPhilips.pdc', 'w', 32767);
aExportIndexesPhilips := utl_file.fopen(sDirectory, 'DDLIndexesPhilips.pdc', 'w', 32767);
aExportGrantsPhilips := utl_file.fopen(sDirectory, 'DDLGrantsPhilips.pdc', 'w', 32767);
aExportTriggersPhilips := utl_file.fopen(sDirectory, 'DDLTriggersPhilips.pdc', 'w', 32767);
select d.table_name bulk collect
into cTables -- collection with the names of tables in the schema philips
from all_tables t, philips.dictionary d
where owner = 'PHILIPS'
and t.table_name = d.table_name;
-- execution
sp_seeks_ddl(aExportTablesPhilips,
aExportReferencesPhilips,
aExportIndexesPhilips,
aExportGrantsPhilips,
aExportTriggersPhilips,
cTables);
-- closes all files
utl_file.fclose_all;
end sp_select_tables;
procedure sp_seeks_ddl(aExportTablesPhilips in utl_file.file_type,
aExportReferencesPhilips in utl_file.file_type,
aExportIndexesPhilips in utl_file.file_type,
aExportGrantsPhilips in utl_file.file_type,
aExportTriggersPhilips in utl_file.file_type,
cTables in out nocopy udt_tables) is
cDDL clob := null; -- colletion to save DDL
plIndex pls_integer := null;
sTableName varchar(30) := null;
begin
for i in cTables.first .. cTables.count loop
plIndex := i;
sTableName := cTables(plIndex);
* Retrieves the DDL and the dependent DDL into cDDL clob *
* for the selected table in the collection, and writes to file.*
begin
cDDL := dbms_metadata.get_ddl('TABLE', sTableName, 'PHILIPS');
sp_writes_ddl(aExportTablesPHILIPS, cDDL);
exception
when dbms_metadata.object_not_found then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('REF_CONSTRAINT', sTableName, 'PHILIPS');
sp_writes_ddl(aExportReferencesPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('INDEX', sTableName, 'PHILIPS');
sp_writes_ddl(aExportIndexesPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('OBJECT_GRANT', sTableName, 'PHILIPS');
sp_writes_ddl(aExportGrantsPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('TRIGGER', sTableName, 'PHILIPS');
sp_writes_ddl(aExportTriggersPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
end loop;
end sp_seeks_ddl;
procedure sp_writes_ddl(aExport in utl_file.file_type,
cDDL in out nocopy clob) is
pLengthDDL pls_integer := length(cDDL);
plQuotient pls_integer := null;
plRemainder pls_integer := null;
begin
* Register variables to control the amount of lines needed *
* for each DDL and the remaining characters to the last row. *
select trunc(pLengthDDL / 32766), mod(pLengthDDL, 32766)
into plQuotient, plRemainder
from dual;
* Join DDL in the export file. *
* ps. 32766 characters + 1 character for each line break. *
-- if the size of the DDL is greater than or equal to limit the line ...
if plQuotient >= 1 then
-- loops for substring (lines of 32766 characters + 1 break character):
for i in 1 .. plQuotient loop
utl_file.put_line(aExport, substr(cDDL, 1, 32766));
-- removes the last line, of clob, recorded in the buffer:
cDDL := substr(cDDL, 32767, length(cDDL) - 32766);
end loop;
end if;
* If any remains or the number of characters is less than the threshold (quotient = 0), *
* no need to substring. *
if plRemainder > 0 then
utl_file.put_line(aExport, cDDL);
end if;
-- record DDL buffered in the export file:
utl_file.fflush(aExport);
end sp_writes_ddl;
begin
-- executes main procedure:
sp_select_tables;
end pck_restore_philips;<font color="red">The problem is that I still have ...
When creating the primary key index is created and this is repeated in the file indexes.
How to avoid?</font> -
Filtering A Dataset Using the Spry Validation Select Widget
Given the code below, how can I filter the rows in the
ds_BestConvertingByCategory dataset (in the spry:repeat area) that
match the product category (prodcat_id) selected in the Spry
Validation select widget?
// product categories table: columns - prodcat_id,
prodcat_desc
var ds_ProductCategories = new
Spry.Data.XMLDataSet("category_qry2xml.php", "product/category",
{useCache:false});
// has prodcat_id column
var ds_BestConvertingByCategory = new
Spry.Data.XMLDataSet("product_qry2xml.php", "special/deals[type =
'Best Converting']", {useCache:false});
// Spry regions inside a TabbedPanel
<div class="TabbedPanelsContent">
<form id="formOffersByCategory" class="frmsprysel"
name="formOffersByCategory" method="post" action="">
<strong>Select a Product Category: </strong>
<span spry:region="dsProductCategories"
id="spryselectProductByCategory">
<select spry:repeatchildren="ds_ProductCategories"
name="offersByCategory" id="offersByCategory"
onChange="ds_ProductCategories.setCurrentRowNumber(this.selectedIndex);">
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
value="{prodcat_id}"
selected="selected">{prodcat_desc}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{prodcat_id}">{prodcat_desc}</option>
</select>
</span>
</form>
<div id="offersbycategory"
spry:region="ds_BestConvertingByCategory"
class="SpryHiddenRegion">
<table id="offersByCategoryTbl" width="100%">
<tr class="colhdr">
<th width="50%">Offer</th>
<th width="50%">Code</th>
</tr>
<tr spry:repeat="ds_BestConvertingByCategory">
<td width="50%">{displaytext}</td>
<td width="50%">{offer_code}</td>
</tr>
</table>
</div>
</div>
// Spry validation select widget
var spryselectProductByCategory = new
Spry.Widget.ValidationSelect("spryselectProductByCategory");Hi flipone01,
To do this, make your region depend on both
ds_ProductCategories and ds_BestConvertingByCategory, then use the
spry:test attribute in conjunction with spry:repeat to weed out
items that don't have the same product id:
<div id="offersbycategory"
spry:region="ds_BestConvertingByCategory ds_ProductCategories"
<tr spry:repeat="ds_BestConvertingByCategory"
spry:test="{ds_BestConvertingByCategory::productcat_id} ==
{ds_ProductCategories::productcat_id}">
</div>
Remember that if you make a region depend on more than one
data set, you need to switch to using fully qualified data
references as the example above does (using the :: notation). If
you don't do that the data references default to the first data set
in the spry:region attribute.
--== Kin ==-- -
Errors in the OLAP storage engine: A duplicate attribute key has been found when processing
Hi dear MSDN Community,
I am facing a problem while processing a cube with a customer hierarchy as follows:
Global Account --> Main Customer --> Master Customer --> Customer
The data comes from a flatted parent child table, that is, I create an extra column for every level of the hierarchy in the customer view. If a level is empty, then the value is filled with the previous value. Then I can use the property:
HideMemberIf = OnlyChildWithParentName for the intermediate levels (Main and Master Customer)
HideMemberIf = ParentName For the leafs (Customer)
HideMemberIf = never for the root (Global Account)
Consider this example:
Then, for the root level I am using as the key the fields in yellow in order to avoid duplicates. However, I am getting the error message "Errors in the OLAP storage engine: A duplicate attribute key has been found when processing" while processing.
I analyzed the query that SSAS issues to the server (select distinct ....) and I think it should work but it is still failing.
I had similar problems with the intermediate levels but I was able to solve it using a similar procedure.
Any help will be appreciated.
Kind Regards.When are you having this error? While processing the dimension or during cube processing?
http://blog.oraylis.de/2013/08/a-duplicate-attribute-key-has-been-found-during-processing-revisited/
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to configure the Oracle XSL Mapper for schemaLocation attribute?
In the Transformation_1.xsl I need to have the schemaLocation attribute defined as such:
<inc:CaseIncidentReport xsi:schemaLocation="http://caseincidentreport.com/1.0.4 CaseIncidentReport.xsd">
This is fine as long as long as I dont switch to the Design tab. When I switch to the Design tab, Oracle XSL Mapper regenerates the XSL file and renders the root element as
<inc:CaseIncidentReport>
Can some one tell me how to configure Oracle XSL Mapper for schemaLocation attribute? I am using BPEL Designer/JDeveloper Version 10.1.2.1.0 (Build 1915)
Thanks,What do you mean by normal import? Where can I include the 'schemaLocation' attribute in the Designer? I have no trouble adding the shemaLocation in the source tab but when I switch to the design tab it always stripe it off.
How do I file an enhancement request? I see the the XSL Mapper needs improvements.
Thanks,
Nathan -
Auto increment the unique index node
Hello,
I dont know if this has already been discussed before - searching the forums did not return anything interesting.
Sometimes you need to have some relational-like functionalities that you would normally have in a hybrid relational/xml DB, where you could have some flexibility in establishing integrity conditions. To illustrate what I mean, consider the following document:
<?xml version="1.0"?>
<document>
<id>12345876988</id>
<year>2007</year>
<name> Ana </name>
<email> [email protected] </email>
</document>
So lets suppose I need to store millions of documents like that - but I'd like them to have a unique ID and that this ID would be generated in an auto-increment fashion. I can do this by counting all docs in the container and then incrementing by one, everytime I insert. Then I'd set the ID index to be unique, in case there's any accidental repetition. But I believe this is not the best solution - is there an alternative to this?
Also, maybe I'd like to express that not only ID should be unique, but the combination of ID and YEAR should be unique. Is it possible to express this in BDB XML? Again, this would be easy in a relational DB, I would just use ID and YEAR as fields and index them in combination.
Thanks in advance.Hi,
You can use a Berkeley DB Sequence to assign a unique number. Here is a pointer to the documentation for C++ for example:
http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/seq_list.html
You can add the sequence database to the same environment you are using for Berkeley DB XML. That will allow the updates to particpate in the same transaction which can be committed or aborted.
Also, maybe I'd like to express that not only ID should be unique, but the >combination of ID and YEAR should be unique. Is it possible to express this in >BDB XML?For this, a common technique is to use Berkeley DB XML metadata. You can create a metadata attribute which represents the concatenation of ID and YEAR.
The metadata is stored with the document, but not as part of the document
content.
You can also create a unique index on that metadata attribute to enforce uniqueness.
Ron -
How adding the u2018Item Overviewu2019 Dynapro in SHD0.
Dears experts;
To create a variant of the ME51N transaction, I use SHD0. The objective is to set the u2018Account Assignment Catégoryu2019 to 'A-Asset' and hide creation button on Tab u2018Account assignmentu2019 .
However, in the SHD0, I do not see the dynapro that contains the u2018Item Overviewu2019 in order to is fixed the value of the column Account Assignment Catégoryu2019.
I tried to set the u2018Account Assignment Catégoryu2019 to the level of details of the item, but it does not work.
Do you have an idea for adding the Dynapro of u2018Item Overviewu2019 in SHD0?
Please, this is very important for continuation and your help is the welcome.
Thanks in advance.Hi,
I don't have a direct answer to your question, but there are two other solutions to your pbm.
1. Table ESDUS
As you probably know, you can set defaults for various fileds in ME51N by using the pushbutton "Personal settings". Well, you don't have to ask everybody to do this for him-/herself. In fact, these defaults are stored in the table ESDUS, that luckily can be updated by own ABAP.
So define a default AA category for yourself, then run SE16N on this table ESDUS and select by your user ID. Locate in the list the line with action = "PurchaseRequisition" and element = "ReqProposer KNTTP". Then you will know what your ABAP shall update in the field "active" for all the users...
But this is unsafe. When you have new users...
2. You can try setting the AA category to "A" in the method PROCESS_ITEM of the BAdI ME_PROCESS_REQ_CUST. This BAdI is called after the input by the user in the line, but as far as I remember, the system performs all the validity checks again with the new data (incl. the AA category A) and will then stop on the AA tab where the asset no. is missing.
I am however unsure if this can work.
BR
Raf
Maybe you are looking for
-
Using Federated Security in BizTalk against custom Token Provider and Custom Token
Hi, I as the topic states, I'm trying to get BizTalk to use a Custom Token Provider with custom tokens. So I thought this would be rather painless using ws2007FederationHttpBinding but got stuck. The problem is that the service expect soap action and
-
Hello I went through the tutorial "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces (http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html). Everything works fine on the localhost. Now I'd like to test the app
-
RunInstaller in command line mode
Hi All Can I runInstaller in command line mode without using the GUI? I download linux_11gR2_examples.zip and upload it onto my Amazon AMI I would like to iinstall the examples but I am not able to set xdisplay so how I can get around this? -Thanks f
-
Install firmware update without simultaneous internet connection
I use a USB modem for internet service. Airport Utility want both air port connectivity and internet connectivity. I therefore can't install the update. Is there a way around this ?
-
hi all, my application uses SQL queries to pull data from Oracle10g. now i'm going to enhance it with OLAP support don know how to use JAVA OLAP APIs to pull data from relational tables after reading documents provided in www.oracle.com/.... i could