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.
Similar Messages
-
Hi,
I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values. The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB. ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
How can I see all the values in the line I select in the return table?
My code is as follows:
DATA: tbl_cawnt LIKE cawnt OCCURS 0,
wa_cawnt LIKE cawnt,
BEGIN OF tbl_list OCCURS 0,
atinn LIKE cawnt-atinn,
atzhl LIKE cawnt-atzhl,
atwtb LIKE cawnt-atwtb,
END OF tbl_list,
wa_list LIKE tbl_list,
tbl_return LIKE ddshretval OCCURS 0,
wa_return LIKE ddshretval,
tbl_fields LIKE dfies OCCURS 0,
tbl_dynp LIKE dselc OCCURS 0.
REFRESH: tbl_list, tbl_cawnt.
SELECT atinn atzhl atwtb
FROM cawnt
INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
WHERE spras EQ sy-langu.
LOOP AT tbl_cawnt INTO wa_cawnt.
CLEAR wa_list.
MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
wa_cawnt-atinn TO wa_list-atinn,
wa_cawnt-atzhl TO wa_list-atzhl.
APPEND wa_list TO tbl_list.
ENDLOOP.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ATWTB'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = tbl_list
return_tab = tbl_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Thanks!Hi,
Use the structure DYNPFLD_MAPPING
With this internal table you can easily define that you want to return
other columns of the hit list in addition to field RETFIELD to the
screen.
In this IT you can MAP the screen fields to the serch help screen fields this has three fields
FLDNAME this is the field anme from the search help
FLDINH This has to be blank which would be field with the field value that you want to map
DYFLDNAME THis is the screen field name.
So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
Regards,
Himanshu -
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.
-
How use "All Values" in the pages of pivot tables
Hi everyone,
I’m using Oracle Bi Answers and I have the following problem:
I’m doing reports based in a datamart with 2 fact table each with about 28 Million records per month and with a medium of 14 dimensions.
The users want to have the choice to select 5 parameters for example (region, district, type of product, month of analysis, subtype of product) where they can select an individual option as well as select an “all values” option. They want this for all the parameters.
We are having problems doing this without having the report to timeout.
Approaches used
We are trying to do this by using pivot tables and combo boxes in the reports (one for each parameter). The combos are in the pages area.
We are trying to do a calculated item with Sum(*) to have a “ALL Values” in the combo box but this makes the report extremely slow.
We also tried to do Sum in the pages section of the pivot table but it only displays the “All pages value” of the first combo box.
So actually I don’t know what to try. Can you help me with the best way to do this?
Thanks
Edited by: user8727081 on Sep 28, 2009 2:45 AMHi,
I had the same problem, and I solved it using the dashboard prompts.
But sometimes users are not happy. I explaine why.
Suppose a dimension Nation:
Italy, Germany, UK, France, USA
1) I create a report with sales quantity.
2) Report has a filter --> "nation" = is prompted
3) I create a dashboard prompt "Nations" based on dimension Nation with All Values
4) I publish the report in a dashboard with the dashboard prompt "Nations"
When user choose the nation from the prompt, all nations are displayed, also if I have NO sales for some of these.
My goal: only nations with sales must be shown
Thanks
Enrico -
How can i get the all values from the Property file to Hashtable?
how can i get the all values from the Property file to Hashtable?
ok,consider my property file name is pro.PROPERTIES
and it contain
8326=sun developer
4306=sun java developer
3943=java developer
how can i get the all keys & values from the pro.PROPERTIES to hashtable
plz help guys..............The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
InputStream is = new FileInputStream("tivoli.properties");
props.load(is); -
How to search two columns and return a value in the same row to a cell?
Identification
Diameter
Soak
3" Tank (inches/kft)
AWG
mils
Code
Strands
Shield
Conductor
Insulation
Semi-Con
Days
SD
Injection
Soak
Total
2
175
00
7
External
0.288
0.692
0.752
60
0.4
3.6
20.0
23.6
2
220
00
7
External
0.284
0.764
0.864
75
0.4
3.6
20.0
23.6
2
260
00
7
External
0.284
0.844
0.944
90
0.4
3.6
21.8
25.4
2
320
00
7
External
0.288
0.964
1.064
110
0.4
3.6
24.3
27.0
2
345
00
7
External
0.288
1.014
1.114
115
0.4
3.6
25.6
29.2
Length
3"
4"
AWG
mils
Soak
SD
Injection (3")
Injection (4")
650
2
320
I want to input two values, AWG and mils and return the value in the Days column.
In the instance of what I am showing .... AWG=2 AND mils=320 so Soak=110 ....
I want to search the columns (AWG) AND (mils) to return a value in the column (Days) for that row into cell H10 (Soak) ...
So far I have toyed with LOOKUP, INDEX and MATCH ....SCW,
I'm sure there is a clever way to cascade functions to avoid adding an auxiliary column in your practice table, but to me it wouldn't be worth the aggravation. I would add a column that concatenates Columns A & B, AWG & mils. This column can be anywhere and would be Hidden. Let's say your new column is Column N.
In Column N, fill the body rows with:
=A&"-"&B
As good Numbers programming form would indicate, let's name the Practice Table Practices and only put the practices in that table. In another table where you do the lookup, let's call it Program, we will have the calculation/lookup.
Based on your example, I'd guess that AWG may be in Column D and mils in Column E of your Program table, and the Soak lookup in Column F. If I'm wrong, adjust the column id.
In Column F, write:
=OFFSET(Practices::I$1,MATCH(D&"-"&E, Practices::N,0)−1, 0)
The hyphen in the concatenated representation of the combination of AWG and mils is just tp make it more readable.
As I'm sure you know, you could use other approaches, but since I had you put your aux column at the end of your Practices table, OFFSET with MATCH is a clean approach. INDEX could be used too.
Here's an illustration:
Regards,
Jerry -
I have a table (basically the same setup in the various dynamic security in tabular blogs) where the table contains WindowsUserName stored as domain\username.
I have a Row Filter on the table: SecurityTable has a filter of =SecurityTable[WindowsUserName]=USERNAME()
When a user connects to the tabular model AND their name is matched in one of the rows they return JUST the rows with their match. Which makes sense.
However, if a user connects and their Windows user name is NOT in a row in that table....they return ALL rows???
That makes no sense to me.
It behaves almost as if it is doing a check and if it DOESN'T find a match it just returns all values.
What am I missing?
--------------EDIT-----------
Found the issue: that use was (unknown to me) a domain admin, so... admin rights trump all :)Resolved:
User had admin rights, didn't realize this at the time. -
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 -
Help with modal dialog returning a value to the calling page
Greetings,
Apex Version: 4.1.0.0.32
What I am trying to do is to create a modal dialog that is called from a form page. The dialog will present the user with an IR report that will allow the him to select a row and return a value from that row to a field on the calling page. I have it working in Firefox, but I get an error using IE 8. I hope someone can show me why it is not working in IE.
Here is how I am doing it:
From the calling page:
Created a button
Action: Redirect to URL
URL Target: javascript:var rc = window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
On the called page:
The called page is an IR report where the query returns this as one of the columns:
*(Note: I had to put a dot '.' in front of the onclick to get it to show in this thread. It is not there in my real code.)*
select
<a href="#" name="z" style="color:blue; text-decoration:underline;" .onclick="javascript:passBack(''' || LOT_NO ||''');">Select</a>' SelectThis
, column1
, column2
from sometablename;This resolves the anchor to:
<a .onclick="javascript:passBack('232158');" href="#">Select</a>Here is the Javascript function that is called from the anchor onclick:
function passBack(passVal1)
opener.document.getElementById("P75_ITEM1").value = passVal1;
close();
}When I run this in Firefox, it works as expected. I click on the button on the parent page. The modal dialog is opened and the IR report is displayed. I click on one of the links in the report and it returns the correct value back to the calling page and closes the modal dialog.
When I run it in IE8, it fails. I click on the button on the parent page. The modal dialog is opened and the IR report is displayed. I click on one of the links in the report and I get this error: “opener.document is null or not an object”.
I hope that is clear and that someone can help.
Thanks
LarryA quick google search determines that window.opener doesn't exists when using window.showModalDialog
Suggestions range from using window.open instead of window.showModalDialog to using dialogArguments instead of window.opener
Try the following:
In the parent page define a getPopupValue() function:
function getPopupValue(){
var dr = window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
if ( (dr != undefined) && (dr != '') && (dr != false) ){
$x("P75_ITEM1").value = dr;
}Change the button url to call the function:
javascript:getPopupValue(); On the popup page change the passback function to:
function passBack(passVal1)
returnValue = passVal1;
close();
} -
LOV doesn't return selected value to the base page
Hi All,
I have created an LOV based on VO. When I select value on the LOV page, it is not returning the selected value to the base page.
I am getting the error when I select any value .
Error
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Can anyone please guide me which property has to be set.
Thanks,
Edited by: user4482525 on Apr 21, 2009 11:49 PM1> Go to the About this page* of the page and check whether page Root AM is extended or not?
If the page root AM is extended then delete the extension by jdr_util.deleteDocument or using functional Adminstartor
or
2> See in the LOV CO, if you are using the method "releaseApplicationModule"
If yes , then remove this.
Thanks,
Kumar -
Help needed in SD VC Assigning Object Dep. for all values at the 1 time
Dear, Gurus
I am successful in achieving pricing in VC the long way example: If Characteristic is Car_Color and values Blue, Red. I assign
$self.Z_CarPrice=u2019Redu2019 and it works. Z_CarPrice is basically the variant condition linkage with tables SDCOM and VKOND.
My question is how can I achieve the above by assigning it to the header so that it automatically enters the code $self into all values without me having to go into it 1 by 1 and assigning the codes? Or what is the best way in achieving the results?
If I have 3 characteristics ex: Car_Model, Car_Color, Car_Size? 100's of values? 4th characteristic is Z_CarPrice inside this I have entered all the Values from the 3 characteristics.
Thanks in AdvanceHi,
Try these steps and hope will definitely resolve your issue
Create one variant table VT_BASE_PRICE with combinations of the char Z_COLOR,Z_MODEL and Z_SIZE as key fields
Table Structure
Z_Color
Z_Model
Z_Size
Z_Car_Price
Table Contents
Z_Color Z_Model Z_Size Z_Car_Price
RED Honda Big BP_RED_HONDA_BIG
RED Honda Small BP_RED_HONDA_SML
Maintain the table values with all possible combinations and for each combination enter a unique key under Z_car_Price column. Remember the variant key length Max is 26 and you can use any unique value which should give a meaning by looking at
Once maintained the table write a dependency
Table VT_BASE_PRICE
(Z_COLOR = Z_COLOR,
Z_MODEL = Z_MODEL,
Z_SIZE = Z_SIZE,
Z_CAR_PRICE = $self.Z_CAR_PRICE)
Thus for each combination no need to write the code to infer the variant key. It will automatically choose from table as per configuration values entered.For each variant key you need to maintain price in condition records for condition type.
Regards,
Brahmaji D -
Passing all values to the child report in OpenDoc - XIR3.1
Hi all
in XIR3.1
iam able to write the open document syntax and also able pass some prompts i wanted like month, year, ID,... etc
am able to pass and open a child report based on parameters when i select one value of those fields from dropdown in drill mode
my requirement is if i select All Months or All Years from the dropdown it should generate a child report based on All Years Parameter can we do this
Any ideas please
Thanks in advanceYou may refer to the article:
http://wiki.sdn.sap.com/wiki/display/BOBJ/WebItrick-drillamongmultiplereports
And you will find out the way to transfer the all value. -
Return multiple values for the popup LOV
Hi folks,
I have one challange. I have a search engine and there is an popup lov and its having three Display and 3 Retun value such as
select
p.A || ', ' || pi.B|| ', ' || km.C|| ' ' d, p.A || ', ' || pi.B|| ', ' || km.C|| ' ' r
from tableA km,tableB p,tableC pi
where km.col1=p.id and km.col1=pi.id and km.C is not null
when i click on the pop lov it will display 3 values shuch as SAP+DBA+HR and in popup lov iteam its will return 3 values
such as SAP+DBA+HR this return values are from 3 cloumn names from same table ie. A column, B column, C column
and when i click on submit button this return values from 3 columns values should assign to the 3 column such as
A=SAP, B=DBA and C=HR and search fetchs the result in a Report.
Its some thing new, is it possible..:)
ok will be waiting for your reply..:D
Regards,
Suri
Edited by: user634694 on Feb 25, 2009 3:14 AMHi Varad,
am facing problems i wrote dynamic sql its working fine for 2 and 3 fields like (SAP+ORCL) and (SAP+ORCL+HRA) but for the single value like SAP the results are not comming properly. my code is
If (:P25_TEST Is not Null ) THEN
V_Sql := V_Sql||q'!
And
(multipleInstr1(R.Pillar,:P25_TEST)>0 )
or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Pillar))>0 ) and
((multipleInstr1(R.Product_Line,:P25_TEST)>0 )
or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Product_Line))>0) and
((multipleInstr1(R.Category,:P25_TEST)>0 ) or (R.Category is null)
or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Category))>0 )
End If;
where multipleInstr1 is a function created to search results even its delimited by '+' it ignors '+' delimiter and
:p25_test is the popup iteam which takes values like SAP+ORCL+HRA or SAP+ORCL or SAP how its possible to get this results.
Its turning too complicated for cheking condetion for a single popup iteam, can we get any solution for this or not..
Hope will do respond
Thanks and Regards,
Suri -
Tachometer in WAD 3.5x - to show Avg of all values in the Data provider
Hi All,
I am creating a tachometer in WAD 3.5x.
Actually the requirement for the tachometer i want to design is that it should display the Average value of the data column that is displayed in the dataprovider(which is a view in this case).
My view (Data Provider for tachometer) contains only one data column, and its Result row contains the Average value for the data column. But when I run WAD, the tachometer doesnot read the result row, instead it reads each of the individual rows and creates a pointer for each record. Whereas as per my requirement, the tachometer should display only a single pointer depicting the average value of all records.
I am trying to suppress all the single value rows and display only the result row in my view, am unable to do so.
Any help would be much appreciated
Thanks
Shikha VermaHi Shikha Varma
Just quick thought just try with the swap axis and do the table cross verification..
[Chart Types and its functions_Spedo meter|http://help.sap.com/saphelp_nw04/helpdata/en/c9/08533b97037963e10000000a114084/frameset.htm]
As per the help in my RnD it is working but it is 7.X Wad just try it in 3.5 hope fully it will works for you..if not please excuse..
Hope its clear a little..!
Thanks
K M R
>
shikha.v3 wrote:
> Hi All,
> I am creating a tachometer in WAD 3.5x.
> Actually the requirement for the tachometer i want to design is that it should display the Average value of the data column that is displayed in the dataprovider(which is a view in this case).
> My view (Data Provider for tachometer) contains only one data column, and its Result row contains the Average value for the data column. But when I run WAD, the tachometer doesnot read the result row, instead it reads each of the individual rows and creates a pointer for each record. Whereas as per my requirement, the tachometer should display only a single pointer depicting the average value of all records.
>
> I am trying to suppress all the single value rows and display only the result row in my view, am unable to do so.
>
> Any help would be much appreciated
>
> Thanks
> Shikha Verma -
Schedule a Webi XIR2 report to run for all values of the prompt ...
Hi there,
Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all 150 different prompt values in the LOV (and have 150 different instances)?
BOXIR2, Java deployment.
Many thanks.You'd be scheduling the document 150 different times, each for one value of the LOV.
You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts. You'd do something similar, but iterate the prompt setting and scheduling:
IInfoStore iStore = (IInfoStore) eSession.getService("InfoStore");
ReportEngine reportEngine = ((ReportEngines) eSession.getService("ReportEngines"))
.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
+ " SI_KIND='Webi' And SI_INSTANCE=0 "
+ " And SI_NAME = '" + reportName + "'");
//============================================================================
// Open Webi document, then get and set Prompts collection
//============================================================================
IWebi webi = (IWebi) objs.get(0);
DocumentInstance di = reportEngine.openDocument(webi.getID());
Prompts prompts = di.getPrompts();
for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
Prompt prompt = prompts.getItem(i);
String name = prompt.getName();
if("Enter value(s) for State:".equals(name)) {
Lov lov = prompt.getLOV();
lov.refresh();
Values values = lov.getAllValues();
prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
values.getValueFromLov(1)});
} else if ("Enter Shop Id:".equals(name)) {
prompt.enterValues(new String[] { "261" });
//===========================================================================
// Copy prompts over to InfoObject
//===========================================================================
PromptsUtil.populateWebiPrompts(prompts, webi);
//===========================================================================
// Schedule Webi report to run once now
//===========================================================================
webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
ISchedulingInfo schedInfo = webi.getSchedulingInfo();
schedInfo.setRightNow(true);
schedInfo.setType(CeScheduleType.ONCE);
iStore.schedule(objs);
Sincerely,
Ted Ueda
Maybe you are looking for
-
How do I sync a "troublesome" voicememo to my mac?
I have a memo that wont go over to my mac. A later recorded memo is send over to iTunes on the mac, but one is still there. I changed the name of the memo on the iphone. Maybe thats the problem..It playes fine on the phone.
-
"Adobe Acrobat 9.0 Type Library " not found in COM list
Hi I was using the "Adobe Acrobat 7.0 Type Library" till yesterday and my program ran prefectly fine i have acrobat 9 pro in my system and to my knowledge i din change anything when i ran my program today it said that acrobat classes not found when i
-
Collection query for computers with windows management framework 3.0
Hi, collection query for computers with windows management framework 3.0, but I cant found a way. I cant see that it is in the inventory data for SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName. So any way to get computers with windows management fra
-
Hi! I have a problem sending data with my phone over GPRS to my server! When I run my code on emulator (netbeans) it runs OK! But when i try it for real, the phone connects via GPRS, but no data is sent. Here is my code if someone could help! Thanks
-
Delete obsolete business rules
Hi experts, I'm currently working with Hyperion Fusion Edition 11.1.1.2. In calculationmanager I created 10 business rules for an application. I then deleted all of them in one step (marked all then right click "delete"). The intenet explorer browser