VC 7.1 View in wizard
Hi all,
I have the following problem.
When I try to integrate a view that contains a data service in a wizard, the data service doesnt get called. When I integrate the view via the navigate option (or as nested view in different application) the data service gets called correctly. The parameters to the data service are the same.
Has anyone experienced this problem before?
Best regards,
v s
resolved.
Similar Messages
-
Blog post : "Bug in Create/Edit View Criteria Wizard (JDeveloper 11g)"
hi
Using steps 1 to 13 from the blog post "Bug in Create/Edit View Criteria Wizard (JDeveloper 11g)" by Andrejus Baranovskis, I have been able to reproduce the issue he describes.
see http://andrejusb.blogspot.com/2008/12/bug-in-createedit-view-criteria-wizard.html
I the blog post comments he writes "... there was no time for me to fill bug in Metalink ...".
Maybe someone from Oracle can pick it up from this forum post and file it as a bug if it is one (and if possible post the bug number here).
many thanks
Jan VerveckenThe mechanism is to create a reproduceable test case, create a Service Request in metalink.oracle.com, post the test case, and convince the analyst to file it as a bug.
It may be not efficient at some time, but this the way it is handled.
--olaf -
DOC BUG: 9.0.3.1 View Object Wizard and a Question
First the question: What is the Passivate property for in the View Object Wizard's Attribute Settings page?
Related Doc Bugs 9.0.3.1
Topic: Define New View Attribute Dialog
(click Help button in New Attribute dialog when creating a view object attribute)
Problems: The description for the "Attribute" property is "foo"; Descrimator, Updateable, and Queriable have single letter descriptions. Key Attribute and Passivate are not listed.
Topic: View Object Wizard - Attribute Settings Page
(click Help button in Attribute Settings page in View Object Wizard)
Problems: Query Column Type and Passivate are not listed. Attribute Settings column lists properties in a strange order (not a bug).
Peter KoletzkePeter,
I've logged doc bug 2814172: BC4J GLOSSARY SHOULD HAVE ENTRIES FOR PASSIVATE AND ACTIVATE.
For more information, you could read the "About Application Module Pooling" topic in the online documentation. Passivation is what happens when the application module's state is saved to the database - and activation happens when an application module instance retrieves passivated state from the database.
Thanks
Blaise -
Unable to view payment wizard report in 8.81
Forum,
From a client machine I am unable to preview the payment wizard recommendation report. The layout that's having issues previewing is the 'Payment wizard recommendation report CR (GB) (System)' It asks for the sa username/password however despite keying this in, it tells me it failed to login.
What would cause this issue?
In addition, when this same report is run directly on the server, it's listing additional BP codes to what's on the actual payment wizard screen. Can anyone shed any light on this also?
Regards,
JuanI doubt this would assist. When logged in on this person's machine as them and logging into SAP as manager or another user, it doesn't come up with that message. This leads me to think it's potentially and authorisation issue but which one?
Regards,
Juan -
Possible bug when creating multiple detail view objects
using jdev 11.1.1.0.0 to build jsf/adf applications. I wanted to report what seems like a bug in 11g. I have a parent table which has two child tables. After creating the appropriate entities, associations, views, and view links, the app module looks like this:
MasterView
--DetailView1
--DetailView2
The two detail view objects are on the same level, they are both direct children of the Master view.
Here's what's happening:
1) I create the master entity/view objects (MasterView)
2) I create one of the detail entity/view objects (DetailView1).
3) I create the association and view link to establish relationship between MasterView and DetailView1. Everything works fine.
4) I create the entity/view objects for second detail view (DetailView2)
5) When I attempt to create a second view link (based off an association) to establish the relationship between MasterView and DetailView2, the query clauses of the Create View Link wizard (screens 4 and 5) do not get created properly. I finish the wizard and save. Not only does this view link not get created properly, but in the process the query clauses that were defined in the first view link between MasterView and DetailView1 are wiped out. This will break any coordination between master and detail views in both the app module tester and runtime. Has anyone seen this problem?fyi, it looks like this issue has been resolved with jdev 11.1.1.0.2 (Update 2)
-
Using SQL view object to create ADF table
Hi,
I have created a column called "Month" (which extracts month from the date column) and another column to count the no. of requests.
i want to create an ADF table with 2 columns, a column showing the month and another is showing the no. of requests for that month.
However, now I only managed to achieve the ADF table to show the overall total requests, which means if i add up all the requests for all the months and i get 500
My ADF table shows this:
Jan: 500
Feb: 500
Mar: 500
How should I create the view or what should I do to make it such that the no. of request is based on the month?
Please advice.
Thanks (:Hi,
For the given situation you can create a Query Based View Object with the following query
SELECT
COUNT(TEMP1.DT) REQUEST,
TO_CHAR(TEMP1.DT, 'Mon') MONTH
FROM
TEMP1
GROUP BY
TO_CHAR(TEMP1.DT, 'Mon')
where DT is the date column and temp1 is the name of the database table.
Following are the steps that i followed to get this query :
i have taken the following sample table :
create table temp1
(srno number primary key,
dt date)
*Note you may use any existing column instead of srno or use dt only (i took an extra column as u know we need a primary key /row id)
the following is the sample data
insert into temp1 values (1,sysdate);
insert into temp1 values (2,sysdate);
insert into temp1 values (3,add_months(sysdate,1));
insert into temp1 values (4,add_months(sysdate,1));
insert into temp1 values (5,add_months(sysdate,3));
insert into temp1 values (6,add_months(sysdate,5));
the table appears as follows
SRNO DT
1 22-JUN-12
2 22-JUN-12
3 22-JUL-12
4 22-JUL-12
5 22-SEP-12
6 22-NOV-12
To start with ADF View Object Creation (Using Jdeveloper 11.1.2):
Create the view object using Create View Object wizard
In Step 1. Name window
set the value for Name : Viewab (you can use any of ur choice)
In the data source section : select query
In Step 2. Query window
a. Click Query builder (it will pop up sql statment window)
b. In the SQL Statement window
in quick-pick objects section -> select temp1 table -> shuttle the columns from available list to selected list
in select clause section -> select srno column from select list-> choose count() function from function drop down list -> insert function -> set alias to REQUEST-> click validate
now select dt column from select list -> choose to_char() function -> click insert function -> alter the function to to_Char(temp1.DT,'Mon') -> set alias to Month -> click validate
in the group by clause section -> Click the green symbol to add -> from the expression palette insert dt column -> insert the to_char function -> alter the function to to_char(temp1.DT,'Mon') -> click validate
in the Entire SQL Query section -> click test query -> in the test query window -> click query result-> you will see the result -> click close -> click ok
Click next
Step 3: Bind Variables
Click Next
Step 4: Attribute Mappings
click Finish
So the view object is ready :) -
Hi, My MDT server no longer works as expected via PXE boot. After the target machine loads the .wim file an empty command windows is shown. I have returned the custom settings.ini and bootstrap files to default and ensured nothing is being skipped within
the task sequence within both files in hope of viewing the wizard.
However from the same target machine if I map drive to my Deploymentshare/Scripts directory and run LiteTouch file I am asked for domain credentials and the Deployment wizard is displayed asking for task sequence to be selected.
I believe this error is a result of two things:
1) I applied some windows updates to my mdt server (running on 2008 r2).
2) I was implementing changes to
ZTIWindowsUpdate.wsf which i have now returned to default settings.
I have also regenerated boot images and re added to WDS.
Any help much appreciated?
Regards,
PaulHi Paul,
This sounds familiar; I only encounter this behaviour with certain kinds of laptops (Latitude E65x0) but I usually just provide the "wpeutil reboot" command in the empty command window to keep things going. All other hardware is deployed with the
same task sequence and this behaviour does not occur anywhere else...
A bit obvious maybe, but did you check if there is still a "Next Phase" step present and enabled following directly after the "Install Operating System" step? -
VO Ext- Error ocurred trying to activate the wizard pageAttribute settings
Hi
I am new to OAF and working on R12.1.3 vesrion. I am facing an issue while extending standard VO CustomerAccessesVO which is in the path
/oracle/apps/asn/common/customer/server. My requirement is to add a new column AS_ACCESSES_ALL.SALESFORECE_ROLE_CODE in the extended view.
This VO uses the entity object CustomerAccessEO(/oracle/apps/asn/common/customer/schema/server) and this entity object extends another EO AccessEO which is having base table AS_ACCESSES_ALL (/oracle/apps/asn/common/schema/server).
While extending this VO, I only select EO CustomerAccessEO and then I will have the attribute in available attribute list and selected attribute list.
Available attribute list is having all the attributes which are in EO AccessEO(As CustomerAccessEO is not having any attribute it only extend AccessEO).
Selected attribute list is having all the attibutes which are present in the query of CustomerAccessesVO.
Now if I include a new attribute as my new column and even I don't include any new attribute and click on Next button. I got error 'Error ocurred trying to activate the wizard pageAttribute settings' java.lang.NullPointerException.
Now If I included my new column by adding new attribute and ignore this error I am able to extend this VO and able to get all the file Server.xml, XXCustomerAccessesVO.xml, Voimpl.java, Rowimpl.java.
But the problem is rowimpl.java file is generated empty.*
However I substitute this extended VO I am able to see the extended VO in application but that says- No entity object used. No attributes are selected.
In short my problem is:-
*1) Getting error 'Error ocurred trying to activate the wizard pageAttribute settings' in Create View Object wizard.
2) If I ignore error why *rowimpl.java file is generated empty even I checked all the check boxes.
3) Why I am getting message in application-- No entity object used. No attributes are selected.*
Please reply as this is have become critical.
Thanks
PiyushHi All,
Problem is still not yet resolved.
Can any one please look into it. -
View Link sql window is non editable
Hi All,
I am creating view link between two views using wizard, but when I reach view link sql window it is blank and non editable. any ideas on this?
Thanks in advance.
HiteshHitesh,
This a very generic case and happens when the source VO join attribute and destination VO join attribute are not of same type, i.e. data type and data length. Make sure that is happening in your case, this will solve your problem.
--Mukul -
500 Internal Server Error in UWL Configuration Wizards
Hi All.
I'm trying to configure UWL view thru wizards options.
Unfortunately it comes with "500 Internal Server Error".
The Root cause section tell me "The initial exception that caused the request to fail, was: java.lang.ClassCastException"
Does any body have a clue how to fix this issue?
ThanksHi Sandy,
I am having the same issue, did you resolve it?
Thanks
Jean -
Query problem in viewobject wizard
I have problem to viewobject creation
In the sql Query of viewobject wizard, I can not use build-in sql function like trunc, nvl to the attribute
if I use function, there is no problem with query test(query is valid). However when I click ok or apply button
it popup message like this:
"the following attributes will be set as transients. Derived expression will be lost"
Does this mean I can not use any build-in fuction in select list in view obect wizard?
Another question is how can I nest sql in the select list?
for instance:
in my select list in Query(viewobject wizard)
I have Query:
select Customer.CUSTOMER_ID,
Customer.BANK_NUMBER,
Customer.TRANS_AMOUNT,
from CUSTOMER Customer
where Customer.CUSTOMER_ID =:0
it works without problem
But if add nested select query:
select Customer.CUSTOMER_ID,
Customer.BANK_NUMBER,
(select sum(c.TRANS_AMOUNT)
from CUSTOMER c
where......
) as "Amount"
Account.FILE_NAME,
from CUSTOMER Customer, ACCOUNT Account
where Customer.CUSTOMER_ID =:0
It did not work.
Can somebody tell me how to solve this problem?
Or is there another way to achieve this?
thankssory i wrote the wrong one
function CF_ITEMFormula return number is
v_item number(30);
begin
IF :P_state ALL then
IF :P_STATE = 'SMALL' THEN
SELECT aa.item
INTO v_item
FROM tableA aa,
tableb bb
WHERE aa.code = bb.code
AND aa.date = :P_date
AND aa.name = :P_name
AND bb.state LIKE '%et%''
AND (case :P_DIV
when ('west') then aa.division = 1
when ('east') then aa.division = 2
when ('south') then aa.division = 3
when ('south & west) then aa.division in (1,3)
else aa.division in (1,2,3)
end);
end if;
IF :P_STATE = 'BIG' THEN
SELECT aa.item
INTO v_item
FROM tableA aa,
tableb bb
WHERE aa.code = bb.code
AND aa.date = :P_date
AND aa.name = :P_name
AND bb.state LIKE '%wa%''
AND (case :P_DIV
when ('west') then aa.division = 1
when ('east') then aa.division = 2
when ('south') then aa.division = 3
when ('south & west) then aa.division in (1,3)
else aa.division in (1,2,3)
end);
end if;
end if;
EXCEPTION
WHEN NO_DATA_FOUND THEN RETURN (0)
end; -
Including additional where clause conditions to view criteria dynamically
Hi,
We have a set of view objects that serves as LOV for various other view objects. All such LOV view objects have three specific attributes, two date attributes namely EffectiveStartDate, EffectiveEndDate and a String attribute namely UserSwitch based on which the LOV list needs to be filtered.
All the view objects are having one or more view criterias with specific where clause conditions.
Apart from those view criteria conditions, invariantly, we need the following conditions also
:bindEffDate between EffectiveStartDate and EffectiveEndDate and UserSwitch = :bindUserSwitch.
We wish not to include the above condition in each and every view criteria of each and every view object (Since we have around 800 view objects and a minimum of 2 view criterias per view object). Instead, we created a dummy view object (BaseViewObject) with two bind variables :bindEffDate and :bindUserSwitch and all the LOV view objects were made to extend this BaseViewObject.
Therefore, whenever a view object atribute is attached with LOV using the above said LOV View Objects, the bind variables of the baseViewObject as well as the view object specific bind variables are available in the view accessors tab of the view object wizard where we can supply values to those bind variables.
Now, we need to construct the view criteria filter clause. To achieve this, we created a class, CustomCriteriaAdapter.java extending oracle.jbo.server.CriteriaAdapterImpl. In the getCriteriaClause() method, we included the follwoing code:
public String getCriteriaClause(ViewCriteria pViewCriteria)
ViewObject vo = pViewCriteria.getViewObject();
String userSelectSwitch = (String) vo.ensureVariableManager().getVariableValue("bindUserSwitch");
String effBgnDt = vo.getAttributeDef(vo.getAttributeIndexOf("EffectiveStartDate")).getName();
String effEndDt = vo.getAttributeDef(vo.getAttributeIndexOf("EffectiveEndDate")).getName();
String customCriteria = " ( :bindEffDate >= " + effBgnDt + " ) AND ( :bindEffDate <= " + effEndDt + " OR " + effEndDt + " IS NULL ) ";
StringBuffer completeCriteria = new StringBuffer();
String criteriaClause = super.getCriteriaClause(pViewCriteria);
if (criteriaClause != null && !criteriaClause.isEmpty())
completeCriteria.append(criteriaClause + " AND ");
completeCriteria.append(customCriteria);
if (userSelectSwitch != null && "Y".equals(userSelectSwitch))
String userSelectSw = vo.getAttributeDef(vo.getAttributeIndexOf("UserSwitch")).getName();
completeCriteria.append(" AND (" + userSelectSw + "='Y' ) ");
return completeCriteria.toString();
Issues:
The LOV list is not filtering the records based on the constructed conditions. Instead it is listing either all of the records considering only the view criteria conditions applied at design time irrespective of the userswitch and effectivedate conditions or the list is empty.
Here, my questions are,
1. Am I in the correct approach? If not, guide me in a more proper approach to achieve the same requirement.
2. If the way I am trying is correct, where things are going wrong and why the dynamic condition is not getting effected?
Kindly help in sorting out the issue.
Thanks in advance.Hi Jobinesh,
Thanks for your response and yes, we have done exactly as what you have mentioned. As explained earlier, a baseViewObject along with its Impl class has been created and it will be extended by all the viewobjects meant for serving LOV. Therefore, the superClass for any such LOV viewObject is the baseViewObjectImpl class. In that baseViewObjectImpl(), we have over-rided the criteriaAdapter() method and returned an instance of our customCriteriaAdapter() class.
Below is the code we are using in the baseViewObjectImpl():
package model.base.vo;
import oracle.jbo.CriteriaAdapter;
import oracle.jbo.server.ViewObjectImpl;
public class BaseViewObjectImpl
extends ViewObjectImpl
* This is the default constructor (do not remove).
public BaseViewObjectImpl()
* Over-rided method of ViewObjectImpl class of the framework.
* Calls the customized criteria adapter so that the default where clauses are added to the view criteria.
* @return CriteriaAdapter.
@Override
public CriteriaAdapter getCriteriaAdapter()
return new CustomCriteriaAdapter();
I'll create a sample in HR schema and share with you shortly.
Thanks and regards. -
BC4J: embedding Special SQL in View Objects
While BC4J allows for easier development because developers do not need to embed a lot of SQL in Java codes, I wonder how I could embed special SQLs either into my Java code or in the View Object Wizard. For example, the following SQL statement could not be entered into the View Object Wizard:
select key1, key2, SCORE(10),SCORE(20)
from table1
where contains (attrib1, 'apple', 10) >0 OR
contains (attrib1, 'orange', 20) > 0
Order by NVL(SCORE(10),0), NVL(SCORE(20),0);
How can I embed the above SQL statement properly in a View Object? Or do I have to write SQLJ code outside of a View Object?As you mentioned BC4J gives the flexibility of using all valid SQL statements.
For you query above, you would have to do the following.
You would need to create caluclated attributes for SCore(10) and score(20)
Select the ViewObject in Navigator and edit it (right mouse button)
Select Attributes Tab
Click on New attribute Score(10) and you can give an alias name for that.
same goes for score(20) also.
Select query tab now
Choose expert mode check box
Paste your query in the text box
and Orderby clause in the orderby textbox
click on the test button to test it
raghu -
Reference entities in View Objects
Hi,
I have several questions related to the use of multiple entities in a View Object.
Suppose I have three entity objects: Product (N) <-> (0..1) Manufacturer (N) -> (1) State.
(In a state there are several manufacturers, and each manufacturer makes several products. Of several products the manufacturer is unknown, so that's why there's a 0..1 on the manufacturer side)
I want to create a view on products, ProductView, and I want to display the manufacturer name and the state name, so I've added these as reference entities to the ProductView.
When doing so, several questions popped up:
1) The View Object Wizard did not generate a where clause. If this is because I use more than one reference entity, then I don't understand why it wouldn't be able to generate the proper whereclause, since I've selected the associations between the entity objects, so it should be able to derive a proper whereclause from that.
2) Left outer joins can only be performed by adding '(+)' to the query. However I would like to use the LEFT OUTER JOIN clause, since that is a bit more flexible (because I can add several expressions to the ON() clause. I can only use a LEFT OUTER JOIN if I create an expert mode query and do it myself. It would be nice if jdeveloper supported this type of query.
3) In the query tab, the query uses weird aliases for the fieldnames. Since there was already an Id attribute in the base view object, the primary key of the second and third entityes had been named Id1 and Id2. I immediately renamed those to manufacturer_id (as I've read in one of the howto's on this forum). Still, the query uses the aliases ID1 and ID2 ('Manufacturer.ID AS ID1'), which makes the whereclause that I must right unreadable. Again, the only way to change this is to write my own query in expert mode.
Thoughts?
Greetings,
Ivo[list]
[*]Would be nice if BC4J supported left outer joins
We do. This is exactly why the Expert Mode Query feature is there.
In addition to LEFT OUTER JOIN there are hundreds of possible
database query tricks that developers want to leverage in their SQL
statements. Expert Mode gives you a generic way to handle all
of them.
[*]Weird aliases in the query
Did you check the attribute settings in your VO to see what aliases are specified there at the bottom of the panel? These are what gets used by the query when BC4J "calculates" the query for you (i.e. when it's not an expert mode query).
[*]The where clause didn't contain the '(+)' thingees, so the view did not perform an outer join
Outer joins require expert mode. BC4J doesn't by default ever generate outer-join queries itself.
[*]Derived view worked in the tester, but JClient master/detail generation didn't work
This is Bug# 2684863 that we're looking at for 9.0.4
[*]ViewLink inherited from base object doesn't show up for inclusion in datamodel
This is Bug# 2684866 that we're investigating for 9.0.4
You can create a new view link between the extended VO and either the existing destination view, or a VO extended from it, and it should work in the data model window.
[list] -
Hello All
I just wish to know how to create a many to many view link. I have created a many to many association. In the view link wizard it is supposed to show me an association in 2 tables which are associated via the intersection table in the association right? Because that does not happen. I can only see the association in one table, while it is just not there in my source table. The expose check is clicked in both the source and the destination but in the destination table it is just not shown.
I do not know if I am approaching this the right way? Should I create a view for the intersection table?
If anyone can shed any light on this I would be eternally gratefullI solved the problem but now have a different one.
The problem was I created some views and then created an association. Unfortunately associations are based on entities and views do no automatically update from the entities, so I had to create a new view, based on the entity AFTER I had created the association. This allowed me to create a many to many view link between the two.
Here is a question. Is it really neccessary to create these many to many relations (which are in my database) if all I need is to create a read only page (for users with only read privileges)? Because after dropping my new view with a many to many view link onto my jspx page and creating a read only form, It did not really work that well for showing what I needed shown, all it did was show the attributes from the one table, not the 3 (the 2 tables and the intersection) I needed.
I am probably not making sense, this is just a web of entangled entanglement.
Maybe you are looking for
-
Problem with non iPhone users receiving my text sent pictures. Can I make them smaller files? I know that is possible for email sent pics.
-
Facebook - Need Option to Change Cover and Profile Photos
Having to use my phone to change them is really a pain. How is there no option? I can upload a photo, but I can't make it my profile or cover photo. Please make this an option in the next update.
-
Installing Oracle 10.2 on Windows 7
Hi all, I'm tryinmg to install the above but cannot get past the initial operating system check. Details below. It says to install the correct service pack...IS that for Windows or Oracle? I need to stick to 10.2 as the rest of the team are using tha
-
Maximum number of pictures in a catalog?
Hi, I'm using Elements 6 with 13.000 pictures in one catalog.This catalog seems to have some problems with the high number of pictures, because it is becoming often inconsistent, Elements crashes and so on. I'm reparing the catalog nearly every week,
-
Swipe bar doesnt work even in shut down mode
I have an ipad that is not working. It still has power but the swipe bar to enter password is not moving and when I try the top button to shut it down and reboot it goes dark and the swipe button appears but it wont let me swipe. Any suggestions?