Parameter not returning all values
I have a crystal report built off an oracle DB. For one parameter it is not returning all values. I can display data or the entire table it shows me all values, but when i build a parameter it only shows me through August. It is a date/time field.
check the following thread
[Dynamic Parameter only showing 1000 records when Crystal report is run.;
regards,
Raghavendra.G
Similar Messages
-
Dynamic Prompt not returning all values it should
I am using Crystal Report 2008 CR Developer with service pack 3.1.
I have a report that has a SQL command statement.
Using just the SQL statement, I get all results correctly (all "Events" show up).
When I use the same report and create a dynamic prompt for the "Events", I get some of the values in the results, but not all of them.
Also, the Events that I do get back in my results change randomly (one time I get Court Trial, the next time I don't).
The u201CEventsu201D field is the 2nd Group in the report.
I also have a date time parameter in the report.
The only thing Iu2019ve found so far related to this is the Max Rowset issue.
I have used the registry fix to set the LOV value to 3000, even though there are only 1644 possible values for that particular field in the database. I changed it for all versions 11, 11.5 & 12.
HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV "MaxRowsetRecords"="3000"
My understanding of Dynamic Prompts is that each time the report is run, it first looks at all possible values in that field and return those as values to select in the prompt. For example, if there were 1644 values in the table, it would show 1644 values to select in the parameter to be used in the report. Is that regardless of group level or date parameter or if "Save Data with Report" is selected?
Any ideas on why my parameters are not pulling the correct list of values to select for use in the report?Try connecting to the database directly rather than using a command object.
Or... purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Class not returning all Values of Array
When I send an array with two elements to this class:
public class DrawingList {
public String[] dwglist;
public DrawingList(String[] list) {
this.dwglist = list;
public String[] getDwgList() {
return this.dwglist;
public static DrawingList getList(String[] list) {
return new DrawingList(list);
}It only returns the last element.
Can some one help me with this issue please.This is the class that generates the initial array which contains two elements:
import java.sql.*;
import com.ibm.as400.access.*;
* @author sde
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
public class DrawingConnectionBaseClass {
public String nameofdrawingb;
public String errorStringb;
public String literalerrorStringb;
public String[] dwgNoArray;
public DrawingConnectionBaseClass(String arg0) {
AS400JDBCDataSource datasource = new AS400JDBCDataSource("gvas400");
datasource.setUser("drawchg");
datasource.setPassword("webabc1");
try
Connection connection = datasource.getConnection();
Statement stmt = connection.createStatement();
String sqla = "select Count(*) As dwgcount from webprddt6.drawmstrp Where dm_drawing_number Like '%" + arg0 + "%'" ;
String sql = "select * from webprddt6.drawmstrp Where dm_drawing_number Like '%" + arg0 + "%'" ;
ResultSet rsa = stmt.executeQuery(sqla);
rsa.next();
int rowCount = rsa.getInt(1);
dwgNoArray = new String[rowCount];
errorStringb = "";
ResultSet rs = stmt.executeQuery(sql);
while (rs.next())
for (int i = 0; i < rowCount - 1; ++i)
dwgNoArray[i] = rs.getString("DM_DRAWING_NUMBER");
errorStringb = "";
literalerrorStringb = "NoError";
catch (SQLException sqle)
errorStringb = "Warning!!! The Drawing Number you typed is not valid!";
literalerrorStringb = "Error";
}This is a servlet that calls the above class and then the DrawingList class to create a bean to be used on a JSP:
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.sql.*;
public class DrawingInquiryBaseServlet extends HttpServlet implements Servlet {
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
public DrawingInquiryBaseServlet() {
super();
public static String getliteralErrStringb;
public static String getErrMsgb;
public static String[] drawingList;
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse arg1)
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
this.doPost(arg0, arg1);
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse arg1)
protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
String drawingnumber = arg0.getParameter("dwgnobase");
DrawingConnectionBaseClass conn = new DrawingConnectionBaseClass(drawingnumber);
DrawingList drawingList = DrawingList.getList(conn.dwgNoArray);
ErrorHandling getErrMsgb = ErrorHandling.getErr(conn.errorStringb);
getliteralErrStringb = conn.literalerrorStringb;
HttpSession session = arg0.getSession(true);
if (getliteralErrStringb.equals("NoError")){
session.setAttribute("errorBean", getErrMsgb);
session.setAttribute("dwglist", drawingList);
else{
session.setAttribute("errorBean", getErrMsgb);
session.setAttribute("dwglist", drawingList);
RequestDispatcher disp = getServletContext().getRequestDispatcher("/DrawingDisplaybase.jsp");
disp.forward(arg0, arg1);
}This is my JSP where only one element is in the list:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet"
type="text/css">
<TITLE>DrawingDisplay2.jsp</TITLE>
</HEAD>
<BODY>
<P><IMG border="0" src="Zodiac Z Blue (Hi Res).gif" width="73"
height="76"><B><B><FONT face="Times New Roman" color="navy" size="+2"> WEBER
AIRCRAFT LP</FONT></B></B><BR>
<BR>
<B><FONT size="+1" face="Times New Roman" color="navy"> Drawing Inquiry
Data</FONT></B></P>
<HR>
<P><B><FONT size="+2" color="red"><jsp:useBean id="errorBean"
type="com.ibm.drawinginquiry.rational.ErrorHandling" scope="session"></jsp:useBean>
<jsp:getProperty name="errorBean" property="errMsg" /></FONT></B></P>
<P>
Pick a Drawing number from list to see Details<BR>
<jsp:useBean id="dwglist"
type="com.ibm.drawinginquiry.rational.DrawingList" scope="session"></jsp:useBean><BR><SELECT size="5" name="dwgList">
<%
for (int i=0; i<dwglist.dwglist.length; i++){
%>
<option value="<%= i%>"><%= dwglist.dwglist%></option>
<%
%>
</SELECT></P>
<P><BR>
<BR>
<BR>
</P>
<FORM action="/DrawingInquiry/GetMainPageServlet"><INPUT type="submit"
name="anotherDrawing" value="Look Up Another Drawing"></FORM>
</BODY>
</HTML> -
T-SQL: SET Statement Using a Case Statement is not returning a value
SQL VER: 2008
Please see the attached screenshot from SSMS. The Set statement below is not returned a value or may be returning a zero value. The AllocPercent field is set to zero in code preceeding this Update Statement:
AllocPercent
=
CASE
WHEN AllocBase
IS
NULL
OR AllocBase
= 0
THEN 0
ELSE PM_Input/AllocBase
END
As you can see by the screen shot from the Select Statement that is displaying the results after the Update Statement is completed, the value of AllocPercent is = 0 even though all the values necessary for it to compute a value > 0 are present in the
table. Incidentally, the values in both the AllocBase and PM_Input fields are the same before the Update Statement is ran, as shown in the Select ran after the Update Statement.
I have ran this type of code several times with never a problem. This seems really simple, but I just can't seem to get it to compute.
Any help would be greatly appreciated.
Regards,
bob sutor
Bob SutorYep--This statement is running in a Stored Procedure and inside its own block statement.
I did get a response that suggested I change the SET statement as follows, that worked:
AllocPercent
= CASE WHEN AllocBase IS NULL OR AllocBase = 0 THEN 0.00 ELSE cast(PM_Input*1.0/AllocBase*1.0
as decimal(6,2)) END
Your response did get me thinking which was great! I appreciate your help.
Regards,
...bob sutor
Bob Sutor -
Pl/sql package for use with workflow will not return a value
hi all,
just trying to intercept a requisition being turned into an order if it uses a certain cost code. so i have amended the workflow and created a package to check what cost centre a requisition is using. how over the workflow stops on the function that calls the package witha a status of complete as if the package is not returning any values.
the package is as below:
CREATE OR REPLACE PACKAGE APPS.xxhccWFcapitalcheck AS
procedure XXHCC_CHECK_CAPITAL(itemtype in varchar2,
itemkey in varchar2,
actid in number,
funcmode in varchar2,
resultout out NOCOPY vARCHAR2);
END xxhccWFcapitalcheck;
CREATE OR REPLACE PACKAGE BODY APPS.xxhccWFcapitalcheck AS
procedure XXHCC_CHECK_CAPITAL(itemtype in varchar2,
itemkey in varchar2,
actid in number,
funcmode in varchar2,
resultout out NOCOPY varchar2 ) is
x_progress varchar2(100);
x_resultout varchar2(30);
l_doc_mgr_return_val VARCHAR2(1);
l_doc_string varchar2(200);
l_preparer_user_name varchar2(100);
doc_manager_exception exception;
p_test varchar2(100);
l_req_id varchar2(30);
CURSOR p_line_id IS
SELECT
codes.segment2 cost_center
FROM
po_requisition_headers_all headers,
po_requisition_lines_all lines,
po_req_distributions_all dist,
gl_code_combinations_v codes
WHERE
headers.requisition_header_id = lines.requisition_header_id
AND
lines.requisition_line_id = dist.requisition_line_id
AND
dist.code_combination_id = codes.code_combination_id
AND
headers.segment1 = l_req_id;
line_rec p_line_id%rowtype;
BEGIN
-- Do nothing in cancel or timeout mode
--if (funcmode <> wf_engine.eng_run) then
-- resultout := wf_engine.eng_null;
-- return;
-- end if;
l_req_id := wf_engine.GetItemAttrNumber (itemtype => itemtype,
itemkey => itemkey,
aname => 'DOCUMENT_NUMBER');
--FOR line_rec in p_line_id
---loop
open p_line_id;
fetch p_line_id into l_doc_string;
close p_line_id;
IF p_line_id= 'Q9DEF'
dbms_output.put_line p_line_id;
Then resultout := 'COMPLETE:F';
return;
p_test := 'USE DIFFERENT CODE';
ELSE
resultout := 'COMPLETE:T';
return;
END IF;
END LOOP;
end;
END xxhccWFcapitalcheck;
any help would be great!Hi Community, first of all, english is not my native language and im not sure to use the correct terms for PowerCenter - so if im wrong please help me correct and make clear what we need. We have a kind of 3-steps ToDo. First step: Load data from an external source into a "local" datastore (its an oracle db on a server in our "hands")Second step: Check data against several verifications, this is done with a PL/SQL Package. The PL/SQL Package shall be called with an Interfacename who is set in the First PowerCenter Mapping. Our current thoghts are to do this via a stored procedure, which runs as "Target Post Load" and gets a variable "Interface Name".Is that possible? Im not quite sure about it. About the last part its even more unclear how we can solve it:Third part should be switch back to PowerCenter now - and the package (or to be correct a function in the package) should return a value for "okay everything fine => workflow continue" or "something happened => workflow is stopped" Im not sure how i can handle this. I hope my explanations are good enough so you can provide some help?!If there are any questions please ask! Thank you alot, best regards, Christian
-
Standar ws ProjectByPartyQueryResponse_In is not returning any values
Hi gurus,
I'm trying to use the standar webservice ProjectByPartyQueryResponse_In in our landscape in order to get all the projects related to the person responsible for the project but the web service is not returning any values.
When I execute the service -using soapui- with the following values (or any other value for that matters):
<PartyID>20000143</PartyID>
<PartyRoleCode>ZA</PartyRoleCode>
The web service always returns :
<Log>
<BusinessDocumentProcessingResultCode>5</BusinessDocumentProcessingResultCode>
<MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
<Item>
<TypeID>002(ECC_SE_COMMON)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>No records returned for ZA 0020000143</Note>
</Item>
</Log>
The party Id exists and also de party role code and there is at least one project that has that party with that role. I'm sure because I use other web service to find a project by id and in the result the project has the <Party> section with those values.
I was looking for solutions, notes, threads in forums with no success, then i decided to debug the webservice and I did find the following line in the webservice code.
SELECT objnr INTO TABLE it_data FROM ihpa
WHERE parvw = role_code AND
parnr = party_id AND
obtyp = 'PDN'.
when that line executes the select always returns 0 values, then I look in the table IHPA using the SE16 without any filter and I found that my records exists!! but the select does not get it. I was wondering why the select is not working and then I filter the data in the SE16 using the same values that the query does
for example:
PARVW= ZA
PARNR = 20000143
OBTYP = PDN
And I was surprised when the SE16 did not found any value even I was seeing in the previous screen with no filters!!!! And I supouse thats why the webservice is not working. I started making filters one by one, for example firts filtering just de PARVW = ZA and works, but when I filter just the PARNR = 20000143 the SE16 can't find any value, just when I put an * at the end of the number the SE16 returns all the values expected, Im guessing that the fields in the database has blanks at the end but this is a standar table and a standar program.
Have any of you had the same problem? is there anything that I can do? does anyone knows if this is an unkown bug? becaus I could'n find any note on the marketplace.
Any help would be appreciated.
Gustavo BalboaHi!
The problem were solved but not using the Badi, because the badi only let you change the value of the var party_id and that var is declared as PARNR (of type numeric with length 10), and no mater wat you do the two 00 can´t be removed.
We solved the problem with an enhancement point in the code at the method "party_get_data", look at the beginin and at the end. We just change the type of var used for party_id.. now we use a CHAR one insted the numeric used by the original code.
And we repeat the select...
Thank you very much for the help.
METHOD party_get_data.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(1) Class CL_PRS_PROJECTPRJPARTYQR, Method PARTY_GET_DATA, Start A
$$-Start: (1)----
$$
ENHANCEMENT 1 ZPARTY_GET_DATA. "active version
DATA : WA_PARNR TYPE I_PARNR.
DATA : WA_CHPAR(10) TYPE C.
ENDENHANCEMENT.
$$-End: (1)----
$$
DATA : temp_object_number TYPE ihpa-objnr,
field1 TYPE char50,
field2 TYPE char50,
field_role TYPE char50,
field_party TYPE char50,
st_object_number TYPE TABLE OF bapiprexp.
DATA : it_data TYPE TABLE OF st_data,
wa_data LIKE LINE OF it_data,
itab TYPE TABLE OF st_data,
wa LIKE LINE OF itab,
wa_project_details LIKE LINE OF project_details,
null.
Select Object number based on input Party and Role
SELECT objnr INTO TABLE it_data FROM ihpa
WHERE parvw = role_code AND
parnr = party_id AND
obtyp = 'PDN'.
Select Project ID based on input Object number
LOOP AT it_data INTO wa_data.
SELECT pspid post1 FROM proj INTO CORRESPONDING FIELDS OF wa_data
WHERE objnr = wa_data-pspid. "#EC CI_NOFIELD
ENDSELECT.
MOVE-CORRESPONDING wa_data TO wa.
APPEND wa TO itab.
ENDLOOP.
IF sy-subrc <> 0.
field_role = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/ROLE_CODE' ) .
field_party = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/PARTY_ID' ) .
CONCATENATE field_role role_code_external INTO field1.
CONCATENATE field_party party_id INTO field2.
MESSAGE e002(ecc_se_common) WITH field1 field2 INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ELSE.
MESSAGE s082(ops_se_prs) INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ENDIF.
LOOP AT itab INTO wa.
MOVE-CORRESPONDING wa TO wa_project_details.
APPEND wa_project_details TO project_details.
ENDLOOP.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(2) Class CL_PRS_PROJECTPRJPARTYQR, Method PARTY_GET_DATA, End A
$$-Start: (2)----
$$
ENHANCEMENT 2 ZPARTY_GET_DATA. "active version
WA_CHPAR = party_id.
SHIFT WA_CHPAR BY 2 PLACES.
CLEAR party_return.
REFRESH party_return.
SELECT objnr INTO TABLE it_data FROM ihpa
WHERE parvw = role_code AND
parnr = WA_CHPAR AND
obtyp = 'PDN'.
Select Project ID based on input Object number
LOOP AT it_data INTO wa_data.
SELECT pspid post1 FROM proj INTO CORRESPONDING FIELDS OF wa_data
WHERE objnr = wa_data-pspid. "#EC CI_NOFIELD
ENDSELECT.
MOVE-CORRESPONDING wa_data TO wa.
APPEND wa TO itab.
ENDLOOP.
IF sy-subrc <> 0.
field_role = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/ROLE_CODE' ) .
field_party = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/PARTY_ID' ) .
CONCATENATE field_role role_code_external INTO field1.
CONCATENATE field_party party_id INTO field2.
MESSAGE e002(ecc_se_common) WITH field1 field2 INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ELSE.
MESSAGE s082(ops_se_prs) INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ENDIF.
LOOP AT itab INTO wa.
MOVE-CORRESPONDING wa TO wa_project_details.
APPEND wa_project_details TO project_details.
ENDLOOP.
ENDENHANCEMENT.
$$-End: (2)----
$$
ENDMETHOD. -
RowSetIterator not returning all the rows
Hi,
We have a use-case where we need to create a new row iterator to insert rows(values) in it. Immediately after insertRow(), we are reading the values by creating a secondary row set iterator (createRowSetIterator) but it is not returning all the inserted rows. Here is the code snippet:
Code to insert rows:
public void insertTerrLineOfBusiness(CreateOperation operation, TerritoryVORowImpl newTerritoryRow, TerritoryVORowImpl selectedRow){
if((operation.equals(CreateOperation.CREATE))
|| operation.equals(CreateOperation.COPY)
|| operation.equals(CreateOperation.ADD_EXISTING)){
RowIterator selTerritoryLineOfBusinessIter = selectedRow.getTerritoryLineOfBusiness();
//RowIterator newTerrLineOfBusinessIter = newTerritoryRow.getTerritoryLineOfBusiness();
ViewRowSetImpl newTerrLineOfBusinessIter = (ViewRowSetImpl) newTerritoryRow.getTerritoryLineOfBusiness();
newTerrLineOfBusinessIter.setAssociationConsistent(true);
while(selTerritoryLineOfBusinessIter.hasNext()){
TerritoryLineOfBusinessVORowImpl selTerrLineOfBusinessRow =
(TerritoryLineOfBusinessVORowImpl)selTerritoryLineOfBusinessIter.next();
TerritoryLineOfBusinessVORowImpl newTerrLineOfBusinessRow =
(TerritoryLineOfBusinessVORowImpl)newTerrLineOfBusinessIter.createRow();
newTerrLineOfBusinessRow.setTerritoryVersionId(newTerritoryRow.getTerritoryVersionId());
newTerrLineOfBusinessRow.setLobCode(selTerrLineOfBusinessRow.getLobCode());
newTerrLineOfBusinessIter.insertRow(newTerrLineOfBusinessRow);
Code to read:
public List getTerritoryLobsValues() {
List <String> lobsValues = new ArrayList<String>();
if (this.getTerritory().getCurrentRow() != null) {
TerritoryVORowImpl territoryVORowImpl =
(TerritoryVORowImpl)this.getTerritory().getCurrentRow();
if(territoryVORowImpl.getTerritoryLineOfBusiness() != null){
ViewRowSetImpl territoryLob =
(ViewRowSetImpl)territoryVORowImpl.getTerritoryLineOfBusiness();
RowSetIterator itr = territoryLob.createRowSetIterator(null);
if(itr!=null){
while(itr.hasNext()) {
Row r = itr.next();
String lobCode = (String)r.getAttribute("LobCode");
lobsValues.add(lobCode);
itr.closeRowSetIterator();
return lobsValues;
Can anybody suggest what could be the issue? How to fix it?
Thanks,
AkhilaThanks for your response.
Jdev version:
Primary == FUSIONAPPS_PT.V1REL6INT_LINUX.X64_120719.0800 (Primary Product for the view)
Primary depends on FMWTOOLS == FMWTOOLS_11.1.1.6.0_GENERIC_120112.0037.2
FMWTOOLS depends on label == JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
The above label originated from base label == JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192
Use case: We have a tree table, each record may or may not have Line of Business(LOB) associated with it. On creating a child node in the tree table, the child node copies all the attributes of parent. These attributes are not committed explicitly, if user wants to save the child node only then the attributes are committed.
Giving secondary rowSetIterator a name did not help in resolving this issue.
If I am calling postChanges() before reading from secondary row iterator then its returning all the inserted values. But this.getTransaction().postChanges() is a JAudit violation, so cannot use it:
RuleId: apps-jbo-category.File.AdfModel.54
Rule: insertTerrLineOfBusiness - Review DBTransaction.postChanges call to ensure passivation-safety
Any pointers on this? -
Why is the giving me this error (method does not return a value) PLEASE !!
I have this code and it is giving me this error and I don't know how to fix it
can anyone out there tell me why
I have included the next line of code as I have had problems in the curly brackets in the past.
The error is
"Client.java": Error #: 466 : method does not return a value at line 941, column 3
Please help
THX TO ALL
private Date DOBFormat()
try
if
(MonthjComboBox.getSelectedItem().equals("") ||
DayjComboBox.getSelectedItem().equals("") ||
YearjComboBox.getSelectedItem().equals("")){
else
String dateString = StringFromDateFields();
SimpleDateFormat df = new SimpleDateFormat("dd/mm/yyyy");
Date d = df.parse(StringFromDateFields());
System.out.println("date="+d);
return d;
catch (ParseException pe)
String d= System.getProperty("line.separator");
JOptionPane.showMessageDialog( this,
"Date format needs to be DD/MM/YYYY,"+ d +
"You have enterd: "+ StringFromDateFields() + d +
"Please change the Date", "Date Format Error",
JOptionPane.WARNING_MESSAGE);
return null;
//File | Exit action performed
public void jMenuFileExit_actionPerformed(ActionEvent e) {
System.exit(0);
}Fixed it needed to have a return null;
this is the code
if
(MonthjComboBox.getSelectedItem().equals("") ||
DayjComboBox.getSelectedItem().equals("") ||
YearjComboBox.getSelectedItem().equals("")){
return null; -
Returns all values if the user leaves the valuve empty ?
is there a way to return all values if a user leaves lets say, the 'Project_no' valve empty..
Below is the bit of SQL that I'm trying to get to work..
and upper(coj.CUSTOMER_PO_NO) like upper(('%&Project_No%'))JamesW wrote:
is there a way to return all values if a user leaves lets say, the 'Project_no' valve empty..
Below is the bit of SQL that I'm trying to get to work..
and upper(coj.CUSTOMER_PO_NO) like upper(('%&Project_No%'))And what's not working about it?
SQL> ed
Wrote file afiedt.buf
1* select * from emp where job like '%&job%'
SQL> /
Enter value for job: CLERK
old 1: select * from emp where job like '%&job%'
new 1: select * from emp where job like '%CLERK%'
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
SQL> /
Enter value for job:
old 1: select * from emp where job like '%&job%'
new 1: select * from emp where job like '%%'
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
14 rows selected. -
SelectOneChoice not showing all values from database
Hi!
I have to put a list of values in my select one choice. When I do the query in database, all the values are selected. But, with the same query on JPQL, the select on choice do not show all values in database. Anyone can help me, please?
P.S.: I am using SelectOneChoice with SelectItems, in JDeveloper 11g
Code:
<af:selectOneChoice id="selAction" value="#{row.idCmd}"
unselectedLabel="<Selecione>">
<af:forEach var="alertTypeNode"
items="#{bindings.actionFindAll.iteratorBinding.allRowsInRange}">
<af:selectItem value="#{alertTypeNode.dataProvider.idCmd}"
label="#{alertTypeNode.dataProvider.nmCmd}"
id="si1"/>
</af:forEach>
</af:selectOneChoice>In your page binding check the rangesize setting for the executable you use - set it to -1.
-
XMLTABLE function not returning any values if xml has attribute "xmlns"
Hi,
XMLTABLE function not returning any values if xml has attribute "xmlns". Is there way to get the values if xml has attribute as "xmlns".
create table xmltest (id number(2), xml xmltype);
insert into xmltest values(1,
'<?xml version="1.0"?>
<emps>
<emp empno="1" deptno="10" ename="John" salary="21000"/>
<emp empno="2" deptno="10" ename="Jack" salary="310000"/>
<emp empno="3" deptno="20" ename="Jill" salary="100001"/>
</emps>');
insert into xmltest values(2,
'<?xml version="1.0"?>
<emps xmlns="http://emp.com">
<emp empno="1" deptno="10" ename="John" salary="21000"/>
<emp empno="2" deptno="10" ename="Jack" salary="310000"/>
<emp empno="3" deptno="20" ename="Jill" salary="100001"/>
</emps>');
commit;
SELECT a.*
FROM xmltest,
XMLTABLE (
'for $i in /emps/emp
return $i'
PASSING xml
COLUMNS empno NUMBER (2) PATH '@empno',
deptno NUMBER (3) PATH '@deptno',
ename VARCHAR2 (10) PATH '@ename',
salary NUMBER (10) PATH '@salary') a
WHERE id = 1;
The above query returning results but below query is not returning any results because of xmlns attribute.
SELECT a.*
FROM xmltest,
XMLTABLE (
'for $i in /emps/emp
return $i'
PASSING xml
COLUMNS empno NUMBER (2) PATH '@empno',
deptno NUMBER (3) PATH '@deptno',
ename VARCHAR2 (10) PATH '@ename',
salary NUMBER (10) PATH '@salary') a
WHERE id = 1;
how to get rid out of this problem.
Thanks,
-ManiAdded below one in xmltable, its working now.
XmlNamespaces(DEFAULT 'http://emp.com') -
API Not returning all RTMP ingest endpoints
The web portal shows both URLs for RTMP
rtmp://etcetc.channel.mediaservices.windows.net:1935/live/...
rtmp://etcetc.channel.mediaservices.windows.net:1936/live/...
but the API (ex - myChannel.Input.Endpoints) only returns a single one (...:1935).
Any reason why the web portal and the API don't return the same info?Hi,
According to your post, my understanding is that Search is not returning all STS_Web.
You need to set the Trim Duplicates to false, please follow the steps as below:
Export the Search Results Web Part from your page.
Open the .webpart file in your favorite editor.
Search for “Trim Duplicates”, you will find it as part of the DataProviderJSON property.
Set the Trim Duplicates property to
False.
Upload the web part.
Add the web part to your page.
More information:
SharePoint Online Search Results Duplicates “Trap”:
http://www.hartsteve.com/2013/07/sharepoint-online-search-results-duplicates-trap/
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
I finally need to turn to the forum after trying for a few days to resolve my problem I decide to turn to the Oracle people for help.
The following code below does two things:
1. If I have the get_menu_label in side of it's own loop it never returns
2. If I take the get_menu_label out side of it's own loop it returns but does not return all the data.
DECLARE
-- GETTING THE DATABASE NAME
CURSOR get_db_name
IS
SELECT DATABASE
FROM uaf_mfgp_menus_and_groups_vm
GROUP BY DATABASE
ORDER BY DATABASE ASC;
-- GETTING THE OBJECT_ID FOR EACH DATABASE
CURSOR get_object_id_db (l_db_name VARCHAR2)
IS
SELECT object_id
FROM UAF_FORM_OBJECTS
WHERE object_label_2 = l_db_name;
-- GETTING THE GROUP NAME
CURSOR get_gp_name
IS
SELECT group_name
FROM uaf_mfgp_menus_and_groups_vm
GROUP BY group_name
ORDER BY group_name ASC;
-- GETTING THE OBJECT_ID FOR GROUP WITH GP NAME AND DATABASE
CURSOR get_object_id_gp (l_gp_name VARCHAR2, db_id NUMBER)
IS
SELECT object_id
FROM UAF_FORM_OBJECTS
WHERE object_label_2 = l_gp_name AND parent_object_id = db_id;
-- GETTING MENU LABEL
CURSOR get_menu_label (l_db_name VARCHAR2, l_gp_name VARCHAR2)
IS
SELECT menu_label
FROM uaf_mfgp_menus_and_groups_vm
WHERE DATABASE = l_db_name AND group_name = l_gp_name;
got_object_id_db NUMBER (20);
got_object_id_gp NUMBER (20);
got_db VARCHAR2 (100);
got_menu_label VARCHAR2 (200);
BEGIN
FOR c1 IN get_db_name
LOOP
FOR c2 IN get_gp_name
LOOP
OPEN get_object_id_db (c1.DATABASE);
FETCH get_object_id_db
INTO got_object_id_db;
OPEN get_object_id_gp (c2.group_name, got_object_id_db);
FETCH get_object_id_gp
INTO got_object_id_gp;
CLOSE get_object_id_db;
CLOSE get_object_id_gp;
OPEN get_menu_label (c1.DATABASE, c2.group_name);
LOOP
FETCH get_menu_label
INTO got_menu_label;
END LOOP;
CLOSE get_menu_label;
DBMS_OUTPUT.put_line ( 'GP_OBJECT_ID= '
|| got_object_id_gp
|| ' '
|| 'MENU_LABEL= '
|| got_menu_label
END LOOP;
END LOOP;
END;
/Javier, this the wrong way to use PL/SQL. Oracle SQL can do all this for you using JOINs.
This code, even if it did work, would be terrible slow - unable to scale with data volumes.
This code breaks a few fundamental Oracle rules:
- row-by-row processing using PL/SQL
- huge number of context swicthes per PL/SQL loop iteration
- not maximizing SQL and minimizing PL/SQL
I suggest you trash this code and write a SQL JOIN instead. -
Georaster return all values in array
Hello,
I want to return all values of the raster in a array, to display it in a web page.
Is there a function which return that values in one query ?
ThanksSo far, there isn't a function which returns cell values in an array, but you can call SDO_GEOR.getRasterSubset(*) to get raster data in a blob, and then using functions defined in the dbms_lob package to get raster data.
-
IE/ExternalInterface do not return any value if movie added with appendChild
There is a problem with IE/ExternalInterface if movie is added to DOM f.ex appendChild. JavaScript functions are called but they do not return any value.
MS first response was that this is 3rd party/Adobe problem.
Fixing this with innerHTML is not the solution. Using here Any suggestions ?
Simplified test case has
var flashMovie = '<OBJECT id="testId" codeBase="http://fpdownload..
// Works in IE and FF
document.getElementById("testdiv").innerHTML = flashMovie;
// ExternalInterface.call calls JS but does not return value in IE. Works in FF
var tempDiv = document.createElement("div");
tempDiv.innerHTML = flashMovie;
document.body.appendChild(tempDiv);
Here is complete code
http://pastebin.com/fbc0aa9a
Here is AS3 code in for ajax.swf
http://pastebin.com/d4efd47b
-HYou are right about that duplicate id of the movie in this example, but that is not case here.
I appreciate if you try this and confirm that problem exist or any work-around.
Here is more explanation to original post:
In HTML is JavaScipt
function fromJs()
return "text from js..";
that is called from AS3
var s = ExternalInterface.call("fromJs");
This "s" value and also ExternalInterface.objectID are null in AS3.
Here example again only with non-working case without that duplicate id with innerHTML
http://pastebin.com/f4e33af93
and also movie with AS3 code is attached.
Using plain innerHTML this case works
document.getElementById("testdiv").innerHTML = '<OBJECT..
and with appendChild does not work
var tempDiv = document.createElement("div");
tempDiv.innerHTML = "<OBJECT ..
document.body.appendChild(tempDiv);
Maybe you are looking for
-
Simple Bridge script will not read metadata and triggers Adobe Stock Photos
I have been trying to learn to write scripts for bridge but can't get past the most basic tasks. When I run the script on an open window in bridge it throws an "Uncaught exception metadata" error. The most bizarre thing is it sometimes causes an Adob
-
Second Monitor with 2008 LED Apple Cinema Display?
Hi there I have an Eary 2011 15" MacBook Pro, with Thunderbolt. Last night I purchased an immaculate 2008 LED Apple Cinema Display. It was just far too good a deal to turn down. The resolution is 1920 x 1200. Prior to this I had (and still do have)
-
I want to source my JAAS policy files from a database. I extended java.security.Policy and I can dynamically assign permissions to a codesource. I also have JAAS authorization running without any problems. What I can't figure out is how I can associa
-
JAXB support for "any" attribute
I have a question related to JAXB. Will JAXB be able to handle <xs:any minOccurs="0"/> Tag , when building the java classes. Will there be any defautl type to which this tag will be mapped.
-
One of my children changed my security questions and email address in my AppleID. Is there a way to recover or change this?