Creating relational view for an ODBC result set?
Hello,
I'm trying to create a view for the data available from the Siebel Analytics server (SAS) query's result set by executing pass through sql. SAS reads from files and multiple other databases to provide the result set.
The query sent to pass has its own properitary syntax and is not SQL.
ie, I'm trying to achieve something like this :
create view analytics_wrapper_view as
select * from
<
dbms_hs_passthrough('my custom sql understood by SAS')
dbms_hs_passthrough.fetch_rows
>
Cant use a function selecting from dual as there could be several rows returned from this operation. If I retain it as a view, I can avoid data duplication. If this is not possible, a table approach could be considered.
Any thoughts or inputs on this would be highly appreciated.
On your server..
- On the FCS server go to OSX Workgroup Manager.
- Create a group and name it something cool
- save and exit
Final Cut Server Client...
(Logged in as admin)
- select Administration in the client.
- Go to Group Permissions
- click Create New Group and then select cool new group name
and select BROWSER from the PERMISSION SET list
- save and go back to OSX
Back in OSX Workgroup Manager...
- create users and assign them to your cool group
DONE!
Similar Messages
-
AWM Create Relational View for BIEE
Hi Sir/Madam,
I am having trouble trying to create my relation view in the analytical workspace manager. Every time I try and create it, it gives me all this error. The error is as follow;
####ERROR LOG#####
APR-24-2008 03:49:33: **
APR-24-2008 03:49:33: ** ERROR: Unable to create view over cube R_UT_CUBE6428.
APR-24-2008 03:49:33: User-Defined Exception
Regrads,
cbeinsso how we can do with that?You tell us :)
1- Do you want to extract each performance element into separate rows (through a third XMLTable)?
2- Do you want to keep only one of them?
3- Other?
For 1 :
contactPerson3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name',
performance XMLTYPE PATH 'performance'
) detail
, XMLTable(
XMLNamespaces(default 'urn:hl7-org:v3'),
'/performance'
PASSING detail.performance
COLUMNS
code3 VARCHAR2(10) PATH 'actDefinition/code/@code',
codeSystem VARCHAR2(30) PATH 'actDefinition/code/@codeSystem',
displayName VARCHAR2(20) PATH 'actDefinition/code/@displayName'
) perf
...For 2 :
contactPerson3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name',
code3 VARCHAR2(10) PATH 'performance[1]/actDefinition/code/@code',
codeSystem VARCHAR2(30) PATH 'performance[1]/actDefinition/code/@codeSystem',
displayName VARCHAR2(20) PATH 'performance[1]/actDefinition/code/@displayName'
) detail
... -
[ADF Help] How to create a view for multiple tables
Hi,
I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
ex:
Table A has these fields: ID, Name
Table B has these fields: ID, Address
A.ID and B.ID are primary keys.
B.ID has FK relationship with A.ID
(basically, these tables have one-to-one relation)
I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
So I can execute C,R,U,D for both tables.
I create these tables in DB, and create entity objects for these tables.
So there are 2 entity objects and 1 association.
Then I create a view object based on B and add fields of A into the view:
If the association is not a "Composition Association",
when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
If the association is a "Composition Association", and click the insert button, I will get
"oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
If I create a view object based on A and add filed of B into the view:
When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
So... how can I create a view for multiple tables correctly?
Thanks for any advices!
Here are some pictures about my problem, if there is any unclear point, please let me know.
http://leonjava.blogspot.com/2009_10_01_archive.html
(A is Prod, B is CpuSocket)
Edited by: user8093176 on Oct 25, 2009 12:29 AMHi Branislav,
Thanks, but the result is same ....
In the step 2 of creating view object, I can select entity objects to be added in to the view.
If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
If I select B first, and then select A in crating view object, the result is similar ...
Thanks for any further suggestion.
Leon -
Do I need to create a view for this?
Hi Ihave got 2 tables emp and project
In emp tabe:
emp_no
family name
given name
In porgect table:
emp_no
status(assigned,unassigned)
start_date
end_date
emp_no Family_name given_name
1 Smith John
In project table same employee can have many assigement eg
emp_no status start_date end_date
1 assigned 01-may-08 01-july-08
1 assigned 01-sep-08 01-july-09
1 unassigned 01-july-09 01-oct-09
In the form:
there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
retrive records which have end date between field1 and field2.
The following fields are needed to get from database:
emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
Requirements:
1. project.start_date and project.end_date must be the latest project_end_date for the same emp
so in the above sample date
2. No. of time assigned is a count of total of number records which have status='assign'
So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
Smith John 01-sep-08 01-july-09 2
What is the best approach to get:
1 The lastest project(latest end_date) for the emp
2. get No.of time assigned.
Do I need to create a view for this? If yes, any sample sql code this this?
Thanks for your helpHi W1zard,
Thanks for your reply. Could you clarify the following points for me:
1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
Q1: where I pit this code? in pre-query trigger in detail block?
2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
create or replace force view v_emp as
select emp.family_name, emp.given_name, project.start_date, project.end_date
from emp, project
where emp.emp_no = project.emp_no
Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
max(project.end_date) somewhere in create view to make sure only one record for one employee.
Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
where I put this customerised sql so when user click excute query. My sql will run and display one the form?
REally appreciated your help!
Michael -
Create Relational View got error: ORA-19276: XPST0005 - XPath step specifie
Hi expert,
I am using Oracle 11.2.0.1.0 XML DB.
I am successfully registered schema and generated a table DOCUMENT.
I have succfully inserted 12 .xml files to this table.
SQL> SELECT OBJECT_VALUE FROM document;
OBJECT_VALUE
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
<document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd">
<id root="03d6a2cd-fdda-4fe1-865d-da0db9212f34"/>
<code code="51725-0" codeSystem="2.16.840.1.113883.6.1" displayName="ESTABLISHMENT REGISTRATION"/>
</component>
</document>
then I tried to create a create Relational View base on one inserted .xml file I got error:
ERROR at line 3:
ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name: (document)
is there anyone know what was wrong?
Thanks a lot!
Cow
Edited by: Cow on Feb 15, 2011 8:58 PM
Edited by: Cow on Feb 21, 2011 6:59 AMThese kinds of issues, you will have to solve by joining multiple resultsets or passing fragments to the next XMLTABLE statement and building redundancy via the ORDINALITY clause (which results a NUMBER datatype)
For example
A "transaction" can have multiple "status"ses which can have multiple "reason"s
WITH XTABLE
AS
(SELECT xmltype('<TRANSACTION>
<PFL_ID>123456789</PFL_ID>
<PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
<ID>1</ID>
<INSTR_ID>MARCO_003</INSTR_ID>
<E_TO_E_ID>MARCO_004</E_TO_E_ID>
<INSTD_AMT>10</INSTD_AMT>
<INSTD_AMT_CCY>EUR</INSTD_AMT_CCY>
<STATUS>
<PFL_ID>123456789</PFL_ID>
<PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
<TXI_ID>1</TXI_ID>
<ID>1</ID>
<PMT_TX_STS_UTC_DT>2011-02-15</PMT_TX_STS_UTC_DT>
<REASON>
<ID>1000</ID>
<STS_RSN_PRTRY>MG001</STS_RSN_PRTRY>
</REASON>
<REASON>
<ID>2000</ID>
<STS_RSN_PRTRY>IS000</STS_RSN_PRTRY>
</REASON>
</STATUS>
</TRANSACTION>') as XMLCOLUMN
FROM DUAL
SELECT STS_ID as STATUS_ID,
STS_PFL_ID,
STS_PMI_ID,
STS_TXI_ID,
RSN_ID as REASON_ID,
RSN_STS_RSN_PRTRY,
RSN_XML_POS as POSITION
FROM XTABLE
, XMLTABLE ('/TRANSACTION/STATUS'
PASSING XMLCOLUMN
COLUMNS
STS_PFL_ID NUMBER(10) path 'PFL_ID'
, STS_PMI_ID NUMBER(10) path 'PMI_ID'
, STS_TXI_ID NUMBER(10) path 'TXI_ID'
, STS_ID VARCHAR2(10) path 'ID'
, XML_REASONS XMLTYPE path 'REASON'
) sts
, XMLTABLE ('/REASON'
PASSING sts.XML_REASONS
COLUMNS
RSN_XML_POS FOR ORDINALITY
, RSN_ID VARCHAR2(10) path 'ID'
, RSN_STS_RSN_PRTRY VARCHAR2(10) path 'STS_RSN_PRTRY'
) rsnWill give you the following output (in your case DON"T forget to buildin the namespace references)
SQL> WITH XTABLE
2 AS
3 (SELECT xmltype('<TRANSACTION>
4 <PFL_ID>123456789</PFL_ID>
5 <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
6 <ID>1</ID>
7 <INSTR_ID>MARCO_003</INSTR_ID>
8 <E_TO_E_ID>MARCO_004</E_TO_E_ID>
9 <INSTD_AMT>10</INSTD_AMT>
10 <INSTD_AMT_CCY>EUR</INSTD_AMT_CCY>
11 <STATUS>
12 <PFL_ID>123456789</PFL_ID>
13 <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
14 <TXI_ID>1</TXI_ID>
15 <ID>1</ID>
16 <PMT_TX_STS_UTC_DT>2011-02-15</PMT_TX_STS_UTC_DT>
17 <REASON>
18 <ID>1000</ID>
19 <STS_RSN_PRTRY>MG001</STS_RSN_PRTRY>
20 </REASON>
21 <REASON>
22 <ID>2000</ID>
23 <STS_RSN_PRTRY>IS000</STS_RSN_PRTRY>
24 </REASON>
25 </STATUS>
26 </TRANSACTION>') as XMLCOLUMN
27 FROM DUAL
28 )
29 SELECT STS_ID as STATUS_ID,
30 STS_PFL_ID,
31 STS_PMI_ID,
32 STS_TXI_ID,
33 RSN_ID as REASON_ID,
34 RSN_STS_RSN_PRTRY,
35 RSN_XML_POS as POSITION
36 FROM XTABLE
37 , XMLTABLE ('/TRANSACTION/STATUS'
38 PASSING XMLCOLUMN
39 COLUMNS
40 STS_PFL_ID NUMBER(10) path 'PFL_ID'
41 , STS_PMI_ID NUMBER(10) path 'PMI_ID'
42 , STS_TXI_ID NUMBER(10) path 'TXI_ID'
43 , STS_ID VARCHAR2(10) path 'ID'
44 , XML_REASONS XMLTYPE path 'REASON'
45 ) sts
46 , XMLTABLE ('/REASON'
47 PASSING sts.XML_REASONS
48 COLUMNS
49 RSN_XML_POS FOR ORDINALITY
50 , RSN_ID VARCHAR2(10) path 'ID'
51 , RSN_STS_RSN_PRTRY VARCHAR2(10) path 'STS_RSN_PRTRY'
52 ) rsn
53 ;
STATUS_ID STS_PFL_ID STS_PMI_ID STS_TXI_ID REASON_ID RSN_STS_RS POSITION
1 123456789 1 1 1000 MG001 1
1 123456789 1 1 2000 IS000 2
2 rows selected.If I wouldn't have done that then I would have got your result which fails with your error:
- ORA-19279 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
SQL> WITH XTABLE
2 AS
3 (SELECT xmltype('<TRANSACTION>
4 <PFL_ID>123456789</PFL_ID>
5 <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
6 <ID>1</ID>
7 <INSTR_ID>MARCO_003</INSTR_ID>
8 <E_TO_E_ID>MARCO_004</E_TO_E_ID>
9 <INSTD_AMT>10</INSTD_AMT>
10 <INSTD_AMT_CCY>EUR</INSTD_AMT_CCY>
11 <STATUS>
12 <PFL_ID>123456789</PFL_ID>
13 <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
14 <TXI_ID>1</TXI_ID>
15 <ID>1</ID>
16 <PMT_TX_STS_UTC_DT>2011-02-15</PMT_TX_STS_UTC_DT>
17 <REASON>
18 <ID>1000</ID>
19 <STS_RSN_PRTRY>MG001</STS_RSN_PRTRY>
20 </REASON>
21 <REASON>
22 <ID>2000</ID>
23 <STS_RSN_PRTRY>IS000</STS_RSN_PRTRY>
24 </REASON>
25 </STATUS>
26 </TRANSACTION>') as XMLCOLUMN
27 FROM DUAL
28 )
29 SELECT STS_ID as STATUS_ID,
30 STS_PFL_ID,
31 STS_PMI_ID,
32 STS_TXI_ID,
33 RSN_ID as REASON_ID,
34 RSN_STS_RSN_PRTRY
35 FROM XTABLE
36 , XMLTABLE ('/TRANSACTION/STATUS'
37 PASSING XMLCOLUMN
38 COLUMNS
39 STS_PFL_ID NUMBER(10) path 'PFL_ID'
40 , STS_PMI_ID NUMBER(10) path 'PMI_ID'
41 , STS_TXI_ID NUMBER(10) path 'TXI_ID'
42 , STS_ID VARCHAR2(10) path 'ID'
43 , RSN_ID VARCHAR2(10) path 'REASON/ID'
44 , RSN_STS_RSN_PRTRY VARCHAR2(10) path 'REASON/STS_RSN_PRTRY'
45 ) rsn;
</REASON>
ERROR at line 24:
ORA-19279: XQuery dynamic type mismatch: expected singleton sequence - got
multi-item sequenceHTH
Edited by: Marco Gralike on Feb 16, 2011 12:12 PM -
Is it possible to create relational view on Analytic Workspace in Oracle 9i Release1
Hi All,
We are in the initial stages of Oracle 9i OLAP prototype. Since the current version of BIBeans 2.5 does not work with Release 2 of Oracle 9i OLAP, we are planning to use Oracle 9i OLAP Release 1. So can you please answer the following questions.
1. Is it possible to create relational view on Analytic Workspace(like in Release 2) and populate the OLAP catalog, if so can you give me guidance to get the appropriate user guide. The OLAP DML guide in Release 1 talks about creating OLAP catalog metadata for Analytic Workspace using a metadata locator object.
2, Is it advisable to use Oralce 9i OLAP Release 1? Does the Analytic Workspace and the corresponding BIBeans work in Release 1?
Thank you,
SenthilAnalytic Workspaces (Express/multidimensional data objects and procedures written in
the OLAP DML) are new to Oracle9i OLAP Release 2, you cannot find them in Release 1.
BI Beans will soon (within a week) introduce a version on OTN that will work with Oracle9i OLAP Release 2. -
How to create db conn for JDBC-ODBC Bridge for MS Access in ADF APP?
Sir,
How to create db conn for JDBC-ODBC Bridge for MS Access in ADF APP?
RegardsHello Every Body!
I succeeded in getting connect to the ms access database in adf application in jdeveloper as below:
First in control panel to to admin tools and go to data source(odbc) and create system dsn as bellow pic
Then go to jdeveloper resources ide conn and then database and new database conn and then select jdbc-odbc briddge and then give custom jdbc url as bellow pic
Cheers
tanvir -
Creating Classification view for material through Standard Function
hi,
I have created the material code through BAPI_MATERIAL_SAVEDATA. For quality inspection i have used BAPI_MATINSPCTRL_SAVEREPLICA. i have to create classification view for that material code. Can anyone suggest me which standard function helps me to create the classification view.
Thanks in advance.
Senjeyhi,
i have tried that function module. I have mentioned the code below.
i_object = '000000151860630000'.
i_alloc_num-CHARACT = 'THICKNESS'.
i_alloc_num-VALUE_FROM = '5.70'.
append i_alloc_num.
i_alloc_char-charact = 'SHAPES'.
i_alloc_char-VALUE_CHAR = 'PLATE'.
append i_alloc_char.
clear i_alloc_char.
i_alloc_char-charact = 'CATEGORY'.
i_alloc_char-VALUE_CHAR = 'CS'.
append i_alloc_char.
clear i_alloc_char.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
OBJECTKEYNEW = i_object
OBJECTTABLENEW = 'MARA'
CLASSNUMNEW = 'RAWMATERIAL'
CLASSTYPENEW = '001'
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
TABLES
ALLOCVALUESNUM = i_alloc_num
ALLOCVALUESCHAR = i_alloc_char
RETURN = i_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
But i am getting the error 'Assignment exists and is valid '.
Please help.
Regards,
Sengathir.J -
How to create classification view for material?
HI All,
How to create classification view for material? is there any function module?
pls let me know.
Bandicheck the standard include "LCLBPAU14" this is using the following F.M
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = l_object
objecttablenew = l_objecttable
classnumnew = classnum_new
classtypenew = l_classtype
status = status
standardclass = standardclass
changenumber = changenumber
keydate = keydate
no_default_values = no_default_values
importing
classif_status = classif_status
tables
allocvaluesnum = allocvaluesnum
allocvalueschar = allocvalueschar
allocvaluescurr = allocvaluescurr
return = return. -
Hello!
Our tests indicate that fetch size option mentioned makes visible difference in performance for non-scrollable result sets also. In the same time, it seems there is no way to set this option for such result sets at TopLink level, and default fetch size is always used instead.
Can somebody propose a solution for this, I mean a way to specify custom fetch size (for results without any scrolling)?
Thanks,
SergeyTo set the JDBC fetch size for a query, use the following APIs:
int desiredFetchSize = 500;
ReadAllQuery query = new ReadAllQuery(YourClass.class);
CallQueryMechanism queryMechanism =
(CallQueryMechanism) query.getQueryMechanism();
DatabaseCall call = queryMechanism.getCall();
call.setResultSetFetchSize(desiredFetchSize);
If you wish to set the fetch size for all queries, consider using named queries for all queries (see the TopLink documentation for more information on named queries), and then configure them on startup.
Information taking from Metalink Note:237093.1 -
How to create thumbnail view for html files
hi,
I want to create thumbnail view for html files, not for image files.. can we treat html files as images..
Anybody help me..You can right click on your Desktop and select New Folder. In Finder File > New Folder should work too, not in front of my Mac.
Welcome to back by the way. You might find these websites helpful.
Switch 101
Mac 101 -
Hi Everyone,
I am currently trying to create a relational view in the awm to use in the administration tool in BIEE. However, everytime i click on the plug in- create relational view all my dimension is greyed out except measures. and when i click on the create view button i get the following error,
MAY-01-2008 10:25:09: ** ERROR: Unable to create view over cube FINSTMNT_REP_CUBE6428.
MAY-01-2008 10:25:09: User-Defined Exception
has anyone encounted this problem please let me know when you can
regard
cbeinsHi Everyone,
I am currently trying to create a relational view in the awm to use in the administration tool in BIEE. However, everytime i click on the plug in- create relational view all my dimension is greyed out except measures. and when i click on the create view button i get the following error,
MAY-01-2008 10:25:09: ** ERROR: Unable to create view over cube FINSTMNT_REP_CUBE6428.
MAY-01-2008 10:25:09: User-Defined Exception
has anyone encounted this problem please let me know when you can
regard
cbeins -
JdbcodbcDriver uses the wrong charSet for interpreting the result set data
Hi everyone,
I?m having trouble getting results from a MS Access database which uses Greek characters. All the characters in the range 0-127 are returned good but I get ??? for all above 127.
Here is some more details:
OS: win2k
Local setting for current user: Greek (not that it makes a difference)
Default Language setting for the System: English (Astralia). This uses charSet Cp1252 or ISO 8859-1 encoding.
Environment: JBuilder 7.0
JDK: 1.4.1
DB: MS Access
DB charSet: Cp1253 (Greek encoding or ISO 8859-7)
Connection method:
java.util.Properties prop = new java.util.Properties();
prop.put("user" , userName);
prop.put("password" , password);
//driver is "sun.jdbc.odbc.JdbcOdbcDriver";
//none of these work
//prop.put("charSet", "UTF-8");
//prop.put("charSet", "Greek");
prop.put("charSet", "Cp1253");
connection = DriverManager.getConnection(MY_ACCESS_DB,prop);
DataSet Access method:
// run query and get resultSet rs here
char[] cBuff= new char[1000];
// I have tried getString(), getBytes(), getBinaryStream also
Reader rReader = rs.getCharacterStream(3);
BufferedReader fIn = new BufferedReader(rReader);
int res = fIn.read(cBuff, 0, 999);
// contents of cBuff is incorrect here
I have also used -Dfile.encoding=Cp1253 in command line which seems to change the default charSet of the JVM. Tested
String en = new InputStreamReader(System.in).getEncoding();
System.out.println("Default encoding: " + en);
By enabling trace and looking at the content of the resultSet object it shows that
rs.OdbcApi.charSet = "Cp1253"
So I'm absolutely stumped. The only possible problems I can think of is either a bug in the jdbcodbcDriver or in my native ODBC driver. The latter is less likely since I connected to the same datasouce using a different application and get the right result.
One more thing that may be helpful, if I set up the default charSet under Win2K to "Greek" (that is setting default language setting in Regional Options under Control Panel)
Everything works fine.
Is there anyone out there with answer to my problem?
Thanks in advance.Tried your program and it does exactly as I expected. I get a whole lot of '?'s with my OS default language setting on English but it works fine as soon as I set it to Greek. It does not make a difference if I change the "input language" on the language bar (shift+ctrl) to Greek or not. Or if I change the charSet in your program to something else. Which bring up the question what do you use the charSet setting on your program for? If it is for byte conversion, I don't think you need it since the OS default charset is used by ResultSet.GetString and that needs to be set anyway.
Anyhow your program basically behaves exactly the same way as mine does. I am almost 100% sure that the problem is with the properties used (or not used) when creating the connections. There has got to be a (provider) property like "useUnicode" or "charSet" or something that is passed through jdbcodbc bridge to ODBC to MS Access to force it to return the result set in UTF-8 format. I confirmed this by using Visual C++ data access program that i wrote (which has the same sort of problem). All other MS Office products know about this property that why they work when i imort data from them.
This means I don't have a jdbc or even a java problem but my problem is MS Access related. So I�m going to post a question on an MS Access user group (if I find one) and see what I get). Thanks for your help with this.
By the way AOKabc crashed once and froze another time. I think it had more to do with the libraries you are using rather than your code. I have a trace log if you are interested.
Soheil -
How to create a view for all Service Requests that are not approved by reviewer
Hallo,
I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
I couldn't find this when creating the view. Thank you.So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not?
As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar:
<QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
<Criteria>
<FreeformCriteria>
<Freeform>
<Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
</ValueExpressionLeft>
<Operator>Equal</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
</ValueExpressionLeft>
<Operator>Equal</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Criteria>
</Freeform>
</FreeformCriteria>
</Criteria>
</QueryCriteria>
This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$).
You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
Anton's Advanced View Editor (or
the free version) to do the criteria adjustment. -
Creating 'Z' views for Standard ABAP Web dynpro Application
Hi Experts,
I am totaly new to ABAP web dynpro objects.
In our project there were some client requirements which required us to change the properties of the Views related to the Webdynpro. The Client now has said that he needs to apply some enhancement pathces on his system. Due to this, the changes made to the Views i.e all the changes done in standard code are lost.
The client now wants a long term solution where all the changes need to be done in 'Z' implimentataion so that changes are not lost every time the pathces are applied.
Is it possible to create an entire new 'Z' Views for the standard Webdynpro instead of standrad ones?
If Yes how does one link them to the Webdynpro application ?Hi
Have a look at following article about enhancing webdynpro applications.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81?quicklink=index&overridelayout=true
Regards
Manas Dua
Maybe you are looking for
-
I have looked all over itunes for help, please help me figure this out. I just want to sync the music from my itunes accout from my old iPod onto my new one that I got off of ebay. I have registered it but it will still not work. Is there anything I
-
Customer Id while creating project based on Template using create_project
Hello, I am not able to pass customer id, on a template where there is no customer id is attached. It gives message customer id required. when I pass customer id along with bill to , ship to info, it gives message duplicate values. I will appreciate
-
How to know which user has executed which ddl statement
Hi All, Last week i faced some problem, like some one has truncated the table , so luckily i have the schema backup so i restored it till the last backup taken. but i want to know who has executed this ddl statement. i know there are some utilities a
-
How to get shape layer's content parameters in AEGP?
Hi all, I have no idea when I want to export the parameters from the Contents of shape layer. Now I add Polystar Path1, ZigZag 1, and Repeater1, three contents of shaper layer. Content seems not equal to effect. I used AEGP_GetNewEffectStreamByIndex
-
Spool not generated in VL02n though output type is processed
Hello All, I passed control parameters in function module WFMC_PREPARE_SMART_FORM. So when i goto VL02n and process my output type , in further data if i give option 3 - send with application own transaction , the preview of the smartform is fine. In