display the value zero
The first query shows that there is no amount present in the warehouseSQL> select sum(received_qty) - sum(transact_qty) - sum(transit_qty) from ship_1 where matid='52616
' and placefrom='Jeddah MC';
SUM(RECEIVED_QTY)-SUM(TRANSACT_QTY)-SUM(TRANSIT_QTY)
----------------------------------------------------
The second query shows the warehouse got about 35 pieces of a specific material.SQL> select sum(received_qty) - sum(transact_qty) - sum(transit_qty) from ship_1 where matid='8521'
and placefrom='Central Store';
SUM(RECEIVED_QTY)-SUM(TRANSACT_QTY)-SUM(TRANSIT_QTY)
----------------------------------------------------
35
In the form for the first query, I want to display the value 0 (zero), how this can be done...?
Hello
Using NVL as
select NVL (sum(received_qty) ,0) - NVL (sum(transact_qty),0) - NVL (sum(transit_qty),0) from ship_1 where matid='52616
' and placefrom='Jeddah MC';
Kind regards
Abdetu...
Tags: Oracle Development
Similar Questions
-
Display the values in a list in a certain way
Hello
I'm looking for a way to display the values in a list by the first value by a slash and the rest with an indentation.
In other words in this way:
/value
Value1
value2
value3
etc...
Please see the attachment for a better reference where data are received and then filled to the window list.
Thanks for your comments
Thanks guys,.
I endend up doing this:
If (i == 0)
{
sprintf (current_log_view, "/ %s", cnfg_display_db [i] "");
}
on the other
{
sprintf (current_log_view, "%s", cnfg_display_db [i]);
}
SetCtrlVal (log_panel, LOG_LOG_TB, cnfg_display_db [i]);
InsertListItem (dir_list_panel, DIR_LIST_RETR_LIST, current_log_view, i, 0);and it works very well!
Thanks again
-
How to display the value of the variable for bottom of pl/sql
How to display the value of the variable for bottom of pl/sql
declare
V_1 number: = 10;
V_2 number: = 20;
V_3 number: = 30;
v_4 number: = 40;
v_5 number: = 50;
test varchar2 (100);
Start
I'm in 1.5
loop
test: = "v_" | I have;
dbms_output.put_line(i||) e > ' | test);
end loop;
end;
/
How to get below output:
1 > v_1
2 > v_2
3 > v_3
4 > v_4
5 > v_5
But I want to output of
1 > 10
2 > 20
3 > 30
4 > 40
5 > 50
Hello
You cannot reference variables as you did and get the value of the variable. Use pretty collection.
set serveroutput on size 2000 declare type number_table is table of number; numbers number_table := number_table(10, 20, 30, 40, 50); begin for i in numbers.first .. numbers.last loop dbms_output.put_line(i || '->' || numbers(i)); end loop; end; / anonymous block completed 1->10 2->20 3->30 4->40 5->50
See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005
-
Hi all
I extend the standard page controller
I try to capture the value of an element on the page, but I get the value zero.
Here are the syntaxes I tried
String s = oapagecontext.getParameter ("EmployeeNumber");
and
String s = (String) oapagecontext.getSessionValue ("EmployeeNumber");
Please suggest me.
Kind regards
Sangu
It does not work like that,
There are two ways to get the value of the entire area of text in code and also depends on in what method (processRequest or processFormRequest) you want to capture the values.
Method 1: -.
OAMessageTextInputBean employeeNumberBean = (OAMessageTextInputBean) webBean.findChildRecursive ("EmployeeNumber"); assuming that the id of the TextField is EmployeeNumber
String EmployeeNumber = employeeNumberBean.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
or the best way is to always get with the original Version instead of the bean - here is the code to browse the vo, you just have to identify the vo that is attached to the input area and where your employeeNumber is present and replace this vo name in the code below
BankAccountsVOImpl BankAccountsVO = (BankAccountsVOImpl) am.findViewObject ("BankAccountsVO");
Line BankAccountsVORowImpl = null;
int fetchedRowCount = BankAccountsVO.getFetchedRowCount ();
RowSetIterator rowIterator = BankAccountsVO.createRowSetIterator ("iteraTor");
If (fetchedRowCount > 0)
{
rowIterator.setRangeStart (0);
rowIterator.setRangeSize (fetchedRowCount);
for (int count = 0; count)< fetchedrowcount="" ;="" count++) ="">
line = (BankAccountsVORowImpl) rowIterator.getRowAtRangeIndex (count);
entity = row.getAttribute1 (); -instead of this line, here you can write to row.getEmployeeNumber if it is an attribute of the vo
majorOffice = row.getAttribute2 ();
Office = row.getAttribute3 ();
}
}
rowIterator.closeRowSetIterator ();
Thank you
Hemant
-
How to display the value of the column
Oracle 10g on Linux
I want to display the value of the id column in the table of www if count (distinct id) is 1. The following query is fine except that it does not display the value of the column ID help, please.
SELECT count(distinct id) FROM www c WHERE C.x_code IN (SELECT D.x_code FROM www_app d WHERE d.y_code = '1151299386') having count(distinct id) = 1
I think you can use MAX in this case
SELECT max(id) FROM www c WHERE C.x_code IN (SELECT D.x_code FROM www_app d WHERE d.y_code = '1151299386') having count(distinct id) = 1
-
Display the values of the Page element in HTML table
Hi all
could you please help me with the below? I want to have a table in the HTML area and to display in the table of elements of the Page of the page.
I got the code like this:
{
< table >
< tr > < td > & P1_ECEMEA_ASSISTANCE < table > < /tr >
< tr > < td > & P1_ECEMEA_WIP < table > < /tr >
< /table >
}
It shows the element of the Page names in the form of text, not the values.
However, this code without the tags table:
{
ECEMEA request for Assistance of the CQT: & P1_ECEMEA_ASSISTANCE.
ECEMEA CQT Work in Progress: & P1_ECEMEA_WIP.
}
Works and Page element values are displayed.
Is it possible to display the values of the Page element in the HTML table at all or should I use a different method to show the values in a table? The above is only an excerpt of the code. I need to display about 30 items in Page, put in shape in a table with headers.
Please let me know what kind of region is the best to use, or if I have to use only a few symbols of escape in the table code...
Thank you and best regards,
VladimirVladimir,
Looks like you're missing the period after the substitution variables.
{
&P1_ECEMEA_ASSISTANCE. &P1_ECEMEA_WIP. -D.
-
Need help displaying the value of field in another!
I have a problem, I'm sure is simple but I can't understand it.
I would like to create a field that displays the value of a field point selecteed in drop down. For example, I created a drop down menu which has 3 times that I have assigned values to each:
Items in drop-down list
point: Unlimited time export assigned value: 4 000,00
point: 8-hours coverage export value assigned: 3,000.00
point: 5 hours Covrage export value assigned: 2,000.00
This drop-down list is named "CoverageTime".
I want to create a text called 'Price' field that will display the value of the selected 'CoverageTime' element drop-down list.
For example, if I chose "Unlimited" (which I have highlighted as 4,000.00) in the drop-down list, the 'Price' of text field should display the value of 'CoverageTime' of 4 000,00.
As you can see in my screenshot, I have selected ' Unlimted Time'. The value that I put to this element from the drop-down list is 4,000.00. But the price text field does not the value of the element "Unlimited time", selected in the drop-down list.
How to make this happen? (Sorry for the picture on the side)
I'm not sure what you mean about #1 (there is nowhere where to put the code in the tab Options), but it's okay because the second is on the right track. But to set the value of the field, assign anything you want event.value. So the correct code for the custom script to calculate the price of the text field:
The value of this field for the price of the value selected from the drop-down list
Event.Value = getField("CoverageTime").value;
-
Display the values of variables
I'm working on a Captivate 5 project in which the values of the variables are assigned and then reassigned. Is it possible to display the value of a variable in a text box or other window to ensure that the value changes? Thank you.
Darin
Hello David,.
It's the way I am especially debugging advanced actions by inserting the variables used in a text of the legend Rick indicates. A long time ago that I wrote two articles on the basic use of variables, perhaps reading could specify:
Use the power of variables without advanced actions
Unleash the power of variables with advanced actions
CAUTION: sometimes the update does not appear immediately. In another thread, I explained how you can refresh the contents of the enhanced TextArea widget that contains a variable that is filled with another widget on the same blade.
Lilybiri
-
Why HBox does not display the value of the label?
I try to display the value of language in HBox (red cloth).
< mx:HBox label = "Tax Code" width = "100 percent" height = "100%" >
< mx:VBox autoLayout = "true" >
< mx:HBox label = "tax detailsborderStyle""" = "solid" borderColor = "#000000" ToolTip = "Tax Details" textAlign = "center" > "
< mx:Form width = "100%" height = "90%" >
< mx:FormItem label = tax "Registered(Y/N)" direction = "horizontal" >
< mx:RadioButtonGroup id = "rbgCreditTaxDetails" / >
< mx:RadioButton label = "Yes" groupName = "rbgCreditTaxDetails" / >
< mx:RadioButton label = "" groupName = "rbgCreditTaxDetails" / >
< / mx:FormItem >
< mx:DataGrid dataProvider = "{status}" >
< mx:columns >
< mx:DataGridColumn headerText = "TaxCode" dataField = "status" / >
< mx:DataGridColumn headerText = "tax registration No." dataField = "description" / >
< / mx:columns >
< / mx:DataGrid >
< / mx:Form >
< / mx:HBox >
< / mx:VBox >
< / mx:HBox >
Hello
This tag will be useful when you add your HBox in a TabNavigator. In tabs label will indicate.
Hope this helps
Rush me
-
How to display the values of the Parent form in the form of child
Hello
I have the order Page and Page element
In the order Page If I select any item and click submit, it should open the article Page and results should display in advance table region. In my article page I have region of header (default double) with 3 fields (dummy) as
Agenda
Description
org
Now my question is, I need to display the value of the item in the item Page header area in the column of the item that I was selecting in the order Page.
I have a prescription 100 point A, B, C, I select B and click on submit it should open on the Articles page and article Page, I have a column called Item and value B sholud be fulfilled.
Thank you
MaheshOAMessageTextInputBean oa = (OAMessageTextInputBean) webBean.findChildRecursive ("ItemNo");
oa.setAttributeValue (SItemNo);There is no such method as setAttributeValue for UI beans, this method is for VO, that is to say if you take a VO and VO a method object to set its attribute.
Bean of the user interface, you will need to use method below,
OAMessageTextInputBean oa = (OAMessageTextInputBean)webBean.findChildRecursive("ItemNo"); oa.setValue(pageContext,SItemNo);
Thank you
AJ -
Display the value in the selection list
Hi all
Any body know how to get the text to display selection list in another text field? Suite of java script displays the value no text, I need another way around. I don't want to change the selection list that the user needs to see the text value.
in the HTML section.
< script language = "JavaScript" type = "text/javascript" >
int f_getText (pThis, pThat) {}
var enter_val = pThis;
var return_val = pThat;
{
gReturn = document.getElementById ("enter_val") .value;
{html_GetElement (return_val) .value = gReturn.toUpperCase ()}
}
}
< /script >
>
in the HTML form element attributes.
onBlur = "javascript:f_getText('P40_LOC_ID','P40_LOCATION')";
"" Thank you
Pascal MChange your JS function
function f_getText (pThis, pThat){ var sel=$x(pThis); $x(pThat).value= sel.options[sel.selectedIndex].text }
CITY
Published by: city has 8 November 2008 17:24
-
Display the value of the element in the HTML area
Is there a way to display the value of an element within an HTML reigion? I know below is not the syntax that is appropriate, but there must be a way to call for the value of an element to display in my HTML code.
<!--
< body >
< p >: P1_ITEM < /p >
< / body >
->
Published by: dsn0wman on August 31, 2008 12:58
Published by: dsn0wman on August 31, 2008 12:59You can use the following syntax in the header, html body, or the footor in your area:
& P1_ITEM.
And commercial front and end point are needed.
If you want to format, you can use the following
< span style = "make-weight: bold;" "color: darkblue" > & P1_ITEM. </span >
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
How do I click on a cell in a table control and display the value in a string?
What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.
Thank you!
Use the property "Change Position".
-
Read integer values to worksheet and display the values in a table
Hi all
I have integer values to read from a worksheet and display them in a table. I uses 'Reading of the spreadsheet file' mode 'integer '. I want to display these values in a table. The problem is the table takes only 2d-array of string as input but not an integer.
It works fine if I change 'Worksheet file playback' mode to 'integer' to 'chain', but I want to read integers and must use integer values for calculations more. Please give suggestions on the display of integers to a table.
Thank you.
Do not take not piece-by-piece just convert as a whole. See the attached example
Good luck
-
Displays the value of double type
Hi - another crazy me today. With the help of v % of the SDK. Memorization of the GPS coordinates in a persistent storage which is fine. So want to show these results on a screen by updating a labelField with the value.
the code below, printLn myTest displays a value of something as 42.1234 gets so thin value. However, with the code so I get Double.toString (myTest) cann't find symbol even though I java.lang. *; imported. If I remove this line of double.toString then it will compile, but throws an exception error when I try to display on the screen. Can someone help a newbie pls...
If (persistentHashtable.containsKey ("LVFLat")) {}
Double myTest is (Double) persistentHashtable.get ("LVFLat");.
System.out.println ("# latitude =" + myTest);
String finalLat = Double.toString (myTest);
displayLVFLat.setText (myTest);
}You must read the documentation of the API and note the use of capital letters and tiny. Capitals: the object, tiny, primitive. Read the API done again and see what I mean.
You want to replace this:
String finalLat = Double.toString (myTest);
with
String finalLat = myTest.toString ();
Maybe you are looking for
-
Re-install windows xp on Satellite M40
When I bought this laptop I have windows xp installed, but Windows XP Home Edition cd has not been included. I noticed that some programs specifically designed for toshiba have also been installedNow I'm having a few problems and I want to install it
-
explain DAQmx WARNING 200035 conversion rates lower clock rate minimum?
I'm sampling of data at 1 kHz on 3 channels using DAQmx read. The DAQmx Read function returns a warning that: "Specified clock rate is lower than the minimum conversion rate of the ADC." Your data may be invalid. The material I have is a Multifuncti
-
Mr President. I have the version of the 2003 window xp. but suddenly everything by opening my programms saved all the time trial 2010 disrtub and made wworked becomes read-only. PL. advice to remove the trial version 2010.
-
Office Jet after upgrade of el capitan 4620: 4620 - not printing black
After upgrade my iMac to El Capitan, the printer does not print black. I tried all the troubleshooting steps I found, and no solution to the problem: 1. replace the ink cartridge 2. check the ink cartridge has ink 3 reset ink system 4. clean the pri
-
notification and instant preview
Hi all is there a sampe notice and overide instant preview? as to prevent them from be triggered?