Programmatic setting of where clause not working.
Hi,
I am using Jdeveloper 11.1.2.2 .
I am trying query some rows from the VO by setting the VO in the programmatic way as given in this documentation : http://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcquerying.htm#CHDEBEAF
But it is returning no rows. While I tried to query through the SQL Command Line it is querying the rows.
Is there any conditions that only bind variables declared in the VO can be queried in the programmatic way ? I tried that also. It is still not returning any rows.
Thanks,
Nigel.
in the line of fire wrote:
The best way to understand sql related issues is to enable debugger logs, where you can see actually what query is then executing. It really helps. Try it.I tried to run in the debugger mode, but there is no query execution seen. It is not throwing any errors, just its not returning the rows in the database.
Similar Messages
-
EQUAL condition on WHERE clause not working
Hi,
Can someone please tell me why the following WHERE clause (marked with ***** below) is not finding any EQUAL conditions?
I know that table i_cust_mast is populated with several thousand rows and that there ARE matching rows in KNVP.
Here is the code as I have it:
TYPES:
BEGIN OF t_cust_mast,
kunnr TYPE kunnr,
name1 TYPE name1_gp,
name2 TYPE name2_gp,
stras TYPE stras_gp,
adrnr TYPE adrnr,
ort01 TYPE ort01_gp,
regio TYPE regio,
pstlz TYPE pstlz,
vkbur TYPE vkbur,
konda TYPE konda,
sortl TYPE sortl,
katr1 TYPE katr1,
katr2 TYPE katr2,
katr3 TYPE katr3,
katr4 TYPE katr4,
katr5 TYPE katr5,
katr6 TYPE katr6,
katr7 TYPE katr7,
katr8 TYPE katr8,
katr9 TYPE katr9,
katr10 TYPE katr10,
bzirk TYPE bzirk,
vkgrp TYPE vkgrp,
kdgrp TYPE kdgrp,
klabc TYPE klabc,
kondaa TYPE konda,
kalks TYPE kalks,
pltyp TYPE pltyp,
hityp TYPE hityp_kh,
hkunnr TYPE hkunnr_kh,
datab TYPE datab,
datbi TYPE datbi,
lzone TYPE lzone,
parvw TYPE parvw,
kunn2 TYPE kunn2,
kunn2a TYPE kunn2,
kunn2b TYPE kunn2,
kunn2c TYPE kunn2,
kunn2d TYPE kunn2,
kunn2e TYPE kunn2,
kunn2f TYPE kunn2,
kunn2g TYPE kunn2,
parza TYPE parza,
ktokd TYPE ktokd,
loevm TYPE loevm_x,
END OF t_cust_mast .
TYPES:
BEGIN OF t_part_func,
kunnr TYPE kunnr,
parvw type parvw,
kunn2 TYPE kunn2,
parza type parza,
END OF t_part_func .
TYPES:
t_t_cust_mast TYPE STANDARD TABLE OF t_cust_mast,
t_t_part_func TYPE STANDARD TABLE OF t_part_func.
DATA: i_cust_mast TYPE t_t_cust_mast,
i_part_func TYPE t_t_part_func.
CONSTANTS: c_type_a TYPE msgty VALUE 'A'.
FIELD-SYMBOLS: <x_cm> LIKE LINE OF i_cust_mast.
Get Customer Master Data
SELECT
hkunnr hname1 hname2 hstras hadrnr hort01 h~regio
hpstlz ivkbur ikonda hsortl hkatr1 hkatr2 h~katr3
hkatr4 hkatr5 hkatr6 hkatr7 hkatr8 hkatr9 h~katr10
ibzirk ivkgrp ikdgrp iklabc ikonda ikalks i~pltyp
khityp khkunnr kdatab kdatbi h~lzone
hktokd hloevm
INTO TABLE i_cust_mast " up to 50 rows
FROM kna1 AS h
JOIN knvv AS i ON ikunnr = hkunnr
JOIN knvh AS k ON hityp = c_type_a " 'A'
AND kkunnr = ikunnr
AND kvkorg = ivkorg
AND kvtweg = ivtweg
AND kspart = ispart
AND k~datab <= sy-datum
AND k~datbi >= sy-datum.
IF sy-subrc = 0.
SORT i_cust_mast[] BY kunnr.
ENDIF.
Get Partner Function Data for each Customer Master Record
LOOP AT i_cust_mast ASSIGNING <x_cm>.
SELECT hkunnr hparvw hkunn2 hparza
INTO TABLE i_part_func
FROM knvp AS h
WHERE h~kunnr = <x_cm>-kunnr. ***** WHERE clause not finding any matches *****
ENDLOOP.
Thanks!!!
AndyTYPES:
BEGIN OF t_cust_mast,
kunnr TYPE kunnr,
name1 TYPE name1_gp,
name2 TYPE name2_gp,
stras TYPE stras_gp,
adrnr TYPE adrnr,
ort01 TYPE ort01_gp,
regio TYPE regio,
pstlz TYPE pstlz,
vkbur TYPE vkbur,
konda TYPE konda,
sortl TYPE sortl,
katr1 TYPE katr1,
katr2 TYPE katr2,
katr3 TYPE katr3,
katr4 TYPE katr4,
katr5 TYPE katr5,
katr6 TYPE katr6,
katr7 TYPE katr7,
katr8 TYPE katr8,
katr9 TYPE katr9,
katr10 TYPE katr10,
bzirk TYPE bzirk,
vkgrp TYPE vkgrp,
kdgrp TYPE kdgrp,
klabc TYPE klabc,
kondaa TYPE konda,
kalks TYPE kalks,
pltyp TYPE pltyp,
hityp TYPE hityp_kh,
hkunnr TYPE hkunnr_kh,
datab TYPE datab,
datbi TYPE datbi,
lzone TYPE lzone,
parvw TYPE parvw,
kunn2 TYPE kunn2,
kunn2a TYPE kunn2,
kunn2b TYPE kunn2,
kunn2c TYPE kunn2,
kunn2d TYPE kunn2,
kunn2e TYPE kunn2,
kunn2f TYPE kunn2,
kunn2g TYPE kunn2,
parza TYPE parza,
ktokd TYPE ktokd,
loevm TYPE loevm_x,
END OF t_cust_mast .
TYPES:
BEGIN OF t_part_func,
kunnr TYPE kunnr,
parvw type parvw,
kunn2 TYPE kunn2,
parza type parza,
END OF t_part_func .
TYPES:
t_t_cust_mast TYPE STANDARD TABLE OF t_cust_mast,
t_t_part_func TYPE STANDARD TABLE OF t_part_func.
DATA: i_cust_mast TYPE t_t_cust_mast,
i_part_func TYPE t_t_part_func.
CONSTANTS: c_type_a TYPE msgty VALUE 'A'.
FIELD-SYMBOLS: <x_cm> LIKE LINE OF i_cust_mast.
Get Customer Master Data
SELECT
hkunnr hname1 hname2 hstras hadrnr hort01 h~regio
hpstlz ivkbur ikonda hsortl hkatr1 hkatr2 h~katr3
hkatr4 hkatr5 hkatr6 hkatr7 hkatr8 hkatr9 h~katr10
ibzirk ivkgrp ikdgrp iklabc ikonda ikalks i~pltyp
khityp khkunnr kdatab kdatbi h~lzone
hktokd hloevm
INTO TABLE i_cust_mast " up to 50 rows
FROM kna1 AS h
JOIN knvv AS i ON ikunnr = hkunnr
JOIN knvh AS k ON hityp = c_type_a " 'A'
AND kkunnr = ikunnr
AND kvkorg = ivkorg
AND kvtweg = ivtweg
AND kspart = ispart
AND k~datab <= sy-datum
AND k~datbi >= sy-datum.
IF sy-subrc = 0.
SORT i_cust_mast[] BY kunnr.
ENDIF.
Get Partner Function Data for each Customer Master Record
LOOP AT i_cust_mast ASSIGNING <x_cm>.
SELECT hkunnr hparvw hkunn2 hparza
INTO TABLE i_part_func
FROM knvp AS h
WHERE h~kunnr = <x_cm>-kunnr.
ENDLOOP. -
NVL in where clause not working with UNIX parameters
Apparently this in a where clause does not work in UNIX scripts...
.... and trans_date between to_date('&1','YYYY/MM/DD HH24:MI:SS')
and to_date(NVL('&2','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
and to_date(NVL('','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
ERROR at line 14:
ORA-01858: a non-numeric character was found where a numeric was expected
How do I get around a null in UNIX? This works fine if both parameters are populated. Thanks.Jason ORCL wrote:
Apparently this in a where clause does not work in UNIX scripts...
.... and trans_date between to_date('&1','YYYY/MM/DD HH24:MI:SS')
and to_date(NVL('&2','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
and to_date(NVL('','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
ERROR at line 14:
ORA-01858: a non-numeric character was found where a numeric was expected
How do I get around a null in UNIX? This works fine if both parameters are populated. Thanks.it's nothing to do with unix at all - your date value doesn't match the format mask that you've entered:
'31-DEC-4712' doesn't map to 'YYYY/MM/DD HH24:MI:SS' in any universe unfortunately. -
Query, where clause not working.
Hi,
Query is:
select vbeln posnr matnr
from vbap
into table it_ivbap.
it_ivbap is internal table. i got records when i executed this query.
gave a where clause
select vbeln posnr matnr
from vbap
into table it_ivbap
where vbeln = '5049'.
it is not returning any records. i tried with all the possile values of vbeln
what I am doing wrong.
Thanks in advance.Hello,
Change like this,
select vbeln posnr matnr
from vbap
into table it_ivbap
where vbeln = '0000005049'. " Check here
Regards,
vasanth -
Two where clauses not working together
Good afternoon,
I have a query where I want to find out all unsorted stock (AA, BA, UP & BS) in certain depot's (Carbide dept, Harryworks and Adwick)
When I run these where clauses seperately they work but when I combine them they don't work where am I going wrong?
SELECT tblGRNItem.GRNPrefix + Convert(Varchar(10),tblGRNItem.GRN) AS GRNNumber, tblGRNItemStatus.ShortDescription, tblStorageLocation.Location, tblGRNItem.GRNItemNo, tblSupplier.SupplierName, tblGRNItem.MaterialDescription,tblGRNItem.NettWeight, tblGRNItem.LocalPrice, tblStaff.Initials, tblGRNItem.EstProductionHoursPerPO FROM tblGRNItem INNER JOIN tblGRNItemStatus ON tblGRNItem.GRNItemStatusID = tblGRNItemStatus.ItemStatusID INNER JOIN tblStorageLocation ON tblGRNItem.StorageLocationID = tblStorageLocation.LocationID INNER JOIN tblGRN ON tblGRNItem.GRNID = tblGRN.GRNID INNER JOIN tblSupplier ON tblGRN.SupplierID = tblSupplier.SupplierID INNER JOIN tblStaff ON tblGRNItem.SorterID = tblStaff.UserID
WHERE tblGRNItemStatus.ShortDescription LIKE 'UP' OR
tblGRNItemStatus.ShortDescription LIKE 'BA' OR
tblGRNItemStatus.ShortDescription LIKE 'AA' OR
tblGRNItemStatus.ShortDescription LIKE 'BS'I don't understand the terminology you are using. Examples would help.
What do you mean by "works?" What does the query do that "doesn't work" and what does "works" mean? "Works" can mean anything from it includes too many rows or it excludes rows.
Give an example of running the where clause separately (and what is the result you get, either with actual results, representative results or describe the results); give an example of running with the where clauses combined (what is the result ...).
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com -
Not able to set the where clause params
Hi,
My version of apps is 12.1.3.
I created a page with a searchRN and resultRN (LinesVO). (Not a query/view link) . I am passing the id from header to the VO to restrict the linesVO
The controller correctly passes the id from searchRN to AM, but in AM, the where clause is not set and I am not getting the desired result:
My AM Code:
public void InvokeGo(String Hdrval)
LineVOImpl LineVO1 = getLineVO1();
LineVO1.setWhereClauseParams(null); // Always reset
System.out.println("AMIMPL:Hdrval = "+ Hdrval);
<prints the header_Value which is passed from CO>
if (Hdrval == null
System.out.println("Inside Null If");
String message = "Please provide atleast one input to any of these search field";
throw new OAException(message, OAException.ERROR);
else
System.out.println("Not All Parameters are Null.Building Where Clause");
< prints the line above>
LineVO1.setWhereClause
("Header_name = :1");
System.out.println("Paremeter Set are: Header_name:"+Hdrval);
<prints the above line like : Paremeter Set are: Header_name:Hdr_Name_1
LineVO1.setWhereClauseParam(0,Hdrval);
System.out.println("Inside MainAM invokeGO Method:"+LineVO1.getQuery());
< prints:Inside MainAM invokeGO Method:SELECT * FROM (select LINE_ID,hdr.HEADER_ID,LINE_NUMBER,LINE_NAME,Attach,hdr.header_name from xxtr_hdr hdr, xxtr_line line
where hdr.header_id=line.header_id) QRSLT WHERE (Header_name = :1)>
LineVO1.executeQuery();
The issue is in the SQL build. I guess after setting the where clause, it should appear like :
QRSLT WHERE (Header_name = "Hdr_Name_1"
ThanksHu Sumit,
I am doing that:
LineVO1.setWhereClauseParam(0,Hdrval);
before executequery. I even hard coded
LineVO1.setWhereClauseParam(0,"XXXX");
but still it din't work. I guess I am missing something small. because I have done this thing a lot of times earlier and it had worked. -
Revision: 4323
Author: [email protected]
Date: 2008-12-15 19:23:10 -0800 (Mon, 15 Dec 2008)
Log Message:
Bug: LCDS-544 - Scenario where two components have seperate channel sets with overlapping channels not working.
QA: Yes
Doc: No
Checkintests Pass: Yes
Details:
* Hunting to a new channel within a channelset never triggered a disconnect from the previous channel(s). This isn't a problem in general, but does becomes a problem when an app defines two distinct channelsets containing at least one shared channel at the head of the list. In this case, the first channelset hunts past it and connects on a later channel. But when the second channelset hunts through (triggering a connect fault when it hits that initial shared channel that can't connect), the fault is processed by the first channelset as well (incorrectly).
Ticket Links:
http://bugs.adobe.com/jira/browse/LCDS-544
Modified Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.asRunning the script by python2 solves it for me:
su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
Best regards,
Cedric -
JSP, Data Web Bean, BC4J: Setting the where clause of a View Object at run time
Hi,
I am trying to develop a data web bean in which the where clause of a View Object will be set at run time and the results of the query then displayed.
My BC4J components are located in one project while the coding for the data web bean is in another project. I used the following code bu t it does not work. Could you please let me know what I am doing wrong?
public void populateOSTable(int P_EmpId)
String m_whereString = "EmpView.EMP_ID = " + P_EmpId;
String m_OrderBy = "EmpView.EMP_NAME";
oracle.jbo.ApplicationModule appModule = null;
ViewObject vo = appModule.findApplicationModule("EMPBC.EMPAppModule").findViewObject("EMPBC.EMPView");
vo.setWhereClause(m_whereString);
vo.setOrderByClause(m_OrderBy);
vo.executeQuery();
vo.next();
String empName numAttrs = vo.getAttribute(EmpName);
System.out.println(empName);
Thanks.<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDev Team (Laura):
Here is how I have usually done mine:
1. In the JSP, use a RowsetNavigator bean to set the where clause and execute the query.
2. Use a custom web bean to process the results of the query (print to HTML).
for example:
<jsp:useBean class="oracle.jbo.html.databeans.RowsetNavigator" id="rsn" scope="request" >
<%
// get the parameter from the find form
String p = request.getParameter("p");
String s = request.getParameter("s");
// store the information for reference later
session.putValue("p", p);
session.putValue("s", s);
// initialize the app module and view object
rsn.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView");
// set the where clause string
String theclause = "presname = '" + p + "' AND slideno=" + s;
// set the where clause for the VO
rsn.getRowSet().getViewObject().setWhereClause(theclause);
rsn.getRowSet().getViewObject().executeQuery();
rsn.getRowSet().first();
%>
</jsp:useBean>
<jsp:useBean class="wt_bc.walkthruBean" id="wtb" scope="request" >
<%
// initialize the app module and VO
wtb.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView");
wtb.render();
%>
In this case, the render method of my custom web bean mostly gets some session variables, and prints various content depending on the session variable values.
Hope this helps.
</jsp:useBean><HR></BLOCKQUOTE>
Laura can you give the code of your walkthru bean? i wna't to initialize a viewobject, set the where clause and give that viewobject back to initialize my navigatorbar.
Nathalie
null -
How to set dynamic WHERE clause to VO from backingBean?
Hi,
Can any one let me know the best way to add the dynamic WHERE clause in to VO query.
I have created AM (with AMImpl.java) & VO (with VOImpl.java & VORowImpl.java) in my model project. I suppose to set the WHERE condition at runtime while the user click the search button. I am handling the user button click at UI layer backingBean. From the backing bean I could able to get the objct of the VO and set the where clause by below code.
ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{bindings.UserSearchVO1Iterator}", Object.class);
DCIteratorBinding dcIter = (DCIteratorBinding)valueExp.getValue(elContext);
ViewObject userSearchVO = dcIter.getViewObject();
userSearchVO.setWhereClause("lower(usr_login) LIKE ':1' and usr_udf_suid like ':2' ");
userSearchVO.executeQuery();But as I fear this is not the right way to do it. So I am creating the cutom method inside the VOImpl.java and triggring that method by creating one more cutom method in AMImpl.java. But I dont know how to invoke this AM method from backingBean.
AMImpl method
public void initDetails()
UserSearchVOImpl vo = getUserSearchVO1();
vo.initQuery();
VOImpl method
public void initQuery()
setWhereClause("lower(usr_login) LIKE 'a%' and usr_udf_suid like '%1144%'");
executeQuery();
}Can any one guide me which is the best way to set the where clause to VO? How to call the AM method from backingBean?
Thanks
klni am new to oracle 11g i writing a stored procedure in which i have made use of case in where clause to pass my parameter value v_toStoreID
i have googled a lot regarding that i found that to use case in where clause it should be like this
where
case column_value
when 0
then value1
else
value2
end
this my query
SELECT ITMID as ItemId,
NVL(OrderDtl.PackageID, 0) PackageId,
OrderDtl.OrdDtlID,
(CASE NVL(OrderDtl.PackageID, 0)
WHEN 0
THEN 1
ELSE 0
END) as PackageFlag,
ivitem.Code ItemCode,
ivitem.ITMNAME AS itemName,
IvPatientIssueMst.IssueNo Issue_No,
to_char(Issuedate, 'DD/MM/YYYY') IssueDate,
OrderDtl.OrdQty,
NVL(OrderDtl.AllocationID, 0) Package,
OrderDtl.ServiceAmount MRP
FROM IvPatientIssueMst
JOIN OrderMst
ON IvPatientIssueMst.OrderId = OrderMst.OrdId
JOIN OrderDtl
ON OrderDtl.OrdID = OrderMst.OrdId
JOIN ivitem
ON ivitem.ITMID = OrderDtl.DrugId
LEFT JOIN IVPatientIndentMst
ON IVPatientIndentMst.IndentID = IvPatientIssueMst.IndentId
WHERE OrderMst.OrdVisitID = 395899
AND
*(CASE IvPatientIssueMst.StoreId*
when NVL(IvPatientIssueMst.StoreId, 0)=0
THEN v_toStoreID
ELSE IVPatientIndentMst.ToStoreID
END)
ORDER BY ivitem.ITMNAME;
it is not working please someone help -
JSP, DataWebBean: How to dynamically set the where clause of query and display record
Hi,
I am reposting this question as per suggestions made by Mr. Dwight.
I have used ViewCurrentRecord web bean to display records from EMP table. I have to use the Dept_Id_FK from the current
record of the EMP table to display corresponding records of Dept table. I have a view object called DeptView in my Business
Components which selects all the records from the Dept table.
How do I get the value of Dept_Id_FK and use it to display the required records of the Dept table?
I tried to declare a variable and get the value of Dept_Id_FK but it did not work. My code is as follows:
<%! String m_DeptId = null; %>
<jsp:useBean id="RowViewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
<%
RowViewer.initialize(pageContext, "EMPApp_EMP_EMPAppModule.EMPView1");
RowViewer.setReleaseApplicationResources(false);
RowViewer.getRowSet().next();
m_DeptId = (String)RowViewer.getRowSet().getCurrentRow().getAttribute("DeptIdFk");
%>
</jsp:useBean>
Thanks.
nullFirst of all, Thank you very much for making use of the new topic format. It is very much appreciated.
As for your question, I think there are several different ways to accomplish what I think you want to do.
1. Create a view object that includes both Emp and Dept entities and join them there. In this case, your query would look something like this:
Select e.empno,e.name,...,d.dname,d.loc from emp e, dept d
where e.deptno = d.deptno
You should be able to create a JSP off of this view object that contains both the employee and department information. In this case, BC4J takes care of the foreign key to primary key coordination.
2. In order to set a dynamic where clause for a view, you need to do the following in your usebean tag:
rsn.initialize(application,session, request,response,out,"DeptView");
rsn.getRowSet().getViewObject().setWhereClause("deptno=" | | m_DeptId);
rsn.getRowSet().getViewObject().executeQuery();
rsn.getRowSet().first();
You will need to do this in a separate usebean tag from the EmpView, since the usebean can only initialize one view object.
In other words, you would have your ViewCurrentRecord bean tag for the EmpView, then a separate one for the DeptView where you use the above code to set the where clause to display just the information for the department you want.
Another option, but one I'm not sure would work as well, is to create a master-detail JSP to do this for you. Usually a master-detail is a one-to-many (one department to many employees). Your request appears to be the reverse, but might still be doable using the same mechanism.
You set up relationships between views in your BC4J project using View Links. If you used the BC4J project wizard and created default views, some of these links may have been created for you. They are created when BC4J detects a foreign key to primary key relationship in the database.
You can create your own View Links using the View Link wizard. Select your BC4J project node and choose Create View Link... from the context menu. You will be asked to select a source view (Emp), and a target view (Dept), then select the attribute in each view that related the two of them (deptno).
Next, you need to reflect this new relationship setting in your application module. Select your app module and choose Edit from the context menu. On the data model page, select the EmpView node in the Selected list. Now select the DeptView node in the available list and shuttle it over. You should see DeptView1 via yourlink appear indented under the EmpView node. Save and rebuild your BC4J project to reflect the changes.
In your JSP project, you can now have the wizard create a master-detail form for you based on DeptView1.
Let me know if the above answers your question, or if I have misunderstood what it is you wanted to do.
null -
Dynamically set ViewObject where clause dynamically from Java bean
I have a requirement to display all of the records from a table when the JSP is first brought up, so my View Object looks like this:
"select emp_name from emp"
Then the users wants to ability to pass paramters to that View Object to refine the list so from by Java class I tried to do this:
ViewObject vo = cpd.findViewObject("EmpViewObject");
vo.setWhereClause("empName = :1");
vo.setWhereClauseParam(1,varEmpName);
vo.executeQuery();
But I am getting JBO errors and I'm not sure what I'm doing wrong. Can anyone offer a hint as to how I can do this?this is exactly how the code is done -
1. emp_name in the View Object
2. emp_name in the where clause
The two are identical. I have tried many variations of this - any time I set the where clause from my bean I get an error.
When I take the SQL stmnt and run it in TOAD it returns expected rows when I run it in the SQL worksheet in JDev it gives an invalid Identifier - but if I hard code the where clause in the View Object it returns the same results as TOAD. -
How to set dynamic where clause in ADF?
Hi,
I have a View object called BillInfoVO. This has
all the information about who created the request, the time , status etc.,
I need to display this VO in a jsp. But before I display, i need to fileter this
VO results with different where clauses according to the role of the user.
For example, if the role is admin, then
where clause should be 'status = 'Completed, and created by = 'Current user'
If the role is requestor, then
the where clause should be
sales manager id = 'Current user' and
Status != Complete etc.,
Could any one please let me know how I can
dynamically set the where clause to filter the appropirate
result row set in the jsp?
Your help will be greatly appreciated.
Thanks,
venkiYou'll create a service method in your AM that will use the setWhereClause method of a viewobject.
Then you'll expose it as a client method.
Then you'll drag it from your data-control onto a button in your JSF page that will call your page for the query.
More about service methods here:
http://download.oracle.com/docs/html/B25947_01/bcservices003.htm#sm0206
http://download.oracle.com/docs/html/B25947_01/bcquerying008.htm#sthref286 -
i have an ipod touch it is either a second or third edition and i have just had to restore it to factory setting as it was not working and now the wifi on the device is no longer working. Is there anything i can do about this?
Is it this:
iOS: Wi-Fi or Bluetooth settings grayed out or dim
One user reported that placing the iPod in the freezer fixed the problem. A trick that works frequently with iPhones:
Settings > AirPlane Mode ON, Do Not Disturb ON
Power down and wait 5-10 minutes
Power up
Settings > AirPlane Mode OFF, Do Not Disturb OFF
If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
Apple Retail Store - Genius Bar
Otherwise:
Does the iOS device connect to other networks?
Does the iOS device see the network?
Any error messages?
Do other devices now connect?
Did the iOS device connect before?
Try the following to rule out a software problem:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on the router
- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
- iOS: Recommended settings for Wi-Fi routers and access points
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
The RAW setting in Bridge is not working. When I open Bridge I can see only icons, no images. The RAW tool icon is grey, not active. I am going on a trip Tomorrow and I need Bridge to be working. It was working earlier.
I never notied that icon before, and I've been using Bridge for 7 years.
Usually, when you have no image previews for raw files, this means that your Camera Raw plug-in is older than your camera. People always come across this problem when they use a new camera with older software.
To be sure, we need to know which camera you are using, and which version of Camera Raw. To save typing this out for the three-thousandth time, please follow this page which I wrote earlier:
http://yphotography.co.uk/articles/get-adobe-camera-raw-acr-open-photos/
This covers the subject, which is by far the most commonly asked question about opening raw files by a country mile.
If everything checks out fine, let us know. If not, give us more information and we may be able to fix this for you.
PS. Please just open one discussion per problem. There are three threads on this now. It makes it difficult to follow. -
My notification tone when set to 'Silent" is not working even when setup on lolipop
my notification tone when set to 'Silent" is not working even when setup .
My notification tone when set to 'Silent" is not working even when setup . It still keeps ringout . This is highly disappointingHello, Yes I have tested this with Android Lollipop and found that when the tone is set to silent within the BBM settings I do not receive any audible notification. Testing summary: Access the More menu - Settings - Tone dropdown and set Tone to BBM
- Send a test message and an audible notification occursAccess the More menu - Settings - Tone dropdown and set Tone to Silent
- Sent a test message and no audible notification occurs To allow us to assist further please follow the steps below to create a support ticket and submit logs. Once submitted someone will contact you to troubleshoot the issue.
1) Browse to www.BBM.com/support/blackberry
2) Locate the Need more help section is the bottom right of the page
3) Select Contact us for additional assistance
4) Complete the web form, provide as much detail as possible such as PINS involved and timestamps
5) Select Submit to create the support ticketOnce the ticket has been submitted you will receive an email with your ticket number. This ticket number can then be used to submit logs. To collect logs use the following KB:
KB35080 - "How to submit logs from BBM for Android, iPhone, and Windows Phone" - www.blackberry.com/btsc/kb35080 Thanks,
Daniel
Maybe you are looking for
-
SWFLoader loded swf and relative path issue
Hi, Before explaining the problem, let me describe the usecase. I have dashboard flex application hosted on Host1. I have another flex application which acts as plugin to dashboard and is hosted on Host2. I am using proxy to load plugin into dashboar
-
How to control margin size between components in Java Studio Creator 2?
Hi, a website layout with hard-coded coordinates (x,y) for component positions cannot adapt to the size of the user's browser window. Therefore, I use a kind of flow layout instead, consisting of components that are grouped in nested GridPanels (with
-
RSR_VARIABLE_F4_RESTRICT_BADI with BO 3.1
Hi, Has anybody any experience using BADI RSR_VARIABLE_F4_RESTRICT_BADI with Business Objects 3.1 SP12. I have found a number of posts from 2012 that say it is not support but I am unsure if this is still the case? I am running my BW query in RSRT an
-
Xorg using 30% cpu when idle,slow performance and video problems
I'm having a problem with Xorg, I don't know what it is but I guess it has something to do with configuration problems because in Ubuntu eerything works out of the box. My problems are these: 1. Xorg is using arround 30% cpu when the computer is idle
-
Core 2 Duo Popping on Left Side
I have a MBP Core 2 Duo (4,1) that keeps popping on the left side. It sounds like it's coming from around the F2. It's getting more frequent and louder over just a short time. This all started maybe a month ago after years without a problem. An Apple