display a positive value in a form

I had a table tblshipping who got two col called as send_qty, received_qty where I calculate the amount.

the thing is a few times in the calculation, I get a negative and positive moments, I always want the positive value should appear to the end user

SQL > select sum (send_qty) - sum (received_qty) from tblshiping where matid = '1';
I'll say something (-5)
fom I want to show this-(5) (5). ghoulish any1 help me how it is possible...

I know to change the order in the query, it can be done, but once again for a State, it will show negative value which I did not see it

Use ABS

SELECT ABS(SUM(SEND_QTY)-SUM(RECEIVED_QTY)) ...

Tags: Oracle Development

Similar Questions

  • How to display a positive value with a thinner sign

    I want to display a positive value with a thinner sign and a negative value with a less fine sign. How can I do? Is there any character in the custom format for this? I don't want to convert number to text and use the case statement because I need to two decimal and thousands separator.

    OK, try this...

    You will need to do a "UNION ALL" of three queries, one for positive values, one for the values zero and one for negative values.

    In the query "negative", follow these steps:

    (1) add a filter on the measure of value 'less than 0.
    (This will ensure that all values are negative).

    (2) in the tab Format data, select "Custom" and type #, # 0.00 -
    (This will add the end negative sign.)

    (3) in the tab change the formula, add the function absolute value ABS (able to insert here)
    (This will get rid of the default signing negative.)

    For the query "positive values", change the above as follows:

    (1) change the filter to "0".
    (2) in the format of data, change the custom format #, # 0.00 +.
    Step 3 is unnecessary since all values are positive.

    For the query "values null ', just add a filter 'equal to zero.'

  • Display the first value in a list after sorting

    Hello

    I'm trying to display a single value in a field in a list of values I want to sort in descending order.
    I tried the following code, but it gives me the first record in the list before sorting.
    How can I get the first record in the list after the sorting?

    <? for each: StatusHistory [position () = '1' and the role = "study Manager"]? > <? sort: created; ' descending '; type_donnees = "text"? > <? choose:? > <? When: created! ='' ? > <? xdofx:substr(created,12,2)? >: <? xdofx:substr(created,15,2)? >: <? xdofx:substr(created,18,2)? > <? end when? > <? otherwise:? > <? end otherwise? > <? end to choose? > <? end for each? >

    Thank you

    Try this:



    your online data

    See you soon

    Jorge
    p.s if this answers your question please grant points, and then close the message

  • Help compare the negative and positive values

    Well guys, I do this example to show you what I mean

    With this example, I can get positive and negative numbers in digital

    But for me, the 'negative' mean nothing

    Example:

    If I have "100-200" for me the biggest value is - 200

    But if I compare the values of bouth got 100 as greater value

    I do the same calc for 3 different variables such as A, B, C

    and after that I need to calc whose value is 'more '.

    But my problem is that if I have the values "-350 300-400.

    the largest will be "300", but for me the 'negative' mean nothing

    so I need to the largest value is "-400".

    For all positive values, its works very well!

    I compare A and B, after the highest is on C and have a result!

    but when I have negative and positive values... I had this problem...

    and when I have negative values only I have a problem too.

    '-300-400-500' for me the largest value must be "-500" but labview-watch "300".

    as - 300 is greater than-500 in algebriac.

    And if I use absolute values, I will always have a positive value... but I need to know if the value is positive or negative

    No matter which, can help me with this?

    Thank you

    Ben

  • extract the positive values of a 2D array

    Hello

    I have a table 2D with positive value in column 2.

    What I want to do is to find the positive value of each column.

    For example, I have this table

    A        B

    -1        1

    2         -2

    3         9

    5         4

    -5        6

    6         7

    and I want to get the following

    A          B

    3          9

    5          4

    6          7

    I managed to have the positve in each case, but the value do not match (I have all the positive values of each column) as

    A AND B

    2 1
    3 9
    5 4
    6 6
    7

    can you help me please?

    Just to be clear: you want the output array to contain all rows in the input table that have positive values in the two column A and column B?  Are you using strictly positive (> 0) comparisons or not negative (> = 0)?  Are integers of values?

    RIF answers: Yes and strictly positive, this will do what you want.

    Lynn

  • display the last value

    Hi all

    I have a questions. It is that I create a Subvi to my table and it can display the last value in the upper part. Below attached snapshots of my programming. I use a number random and STOP for control of you guys let see the whole process of what I want.

    but when I change "constant true/false" and using a digital command. and I put it in my program. It won't list down the values and it will not display the most recent value at the top. What is the problem? I was stuck on this problem for a while.

    and another question was how to keep the size of the list is constant? for example, I onli wants to view 30readings on my table. as the program continued to run, the oldest value will be overwritten. because if kept under my table more, means memory increase my programming and registration of cause late development. I do not want to happen. So is it possible to maintain the display of fixed table values?

    Hi Isabelle,.

    I think that the problem causes initialization of a register shift to void / vi. If you initialize a shift register, each time sub vi is called, he will replace value in the registry to offset with initialized value. Uninitialize a registry change to resolve a problem. I've attached a screenshot of my sub vi for your reference.

    Sincerely, Kate

  • Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel?

    Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.

    Thank you

    Tunis

    Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.

  • Is it possible to display the dynamic value in the ToolTip? I tried: this.assist.toolTip.value = this.rawValue; for a text field 'property MouseEnter', but it does not display the current raw value. It displays a previous raw value of the field... Guilty

    Is it possible to display the dynamic value in the ToolTip?

    I tried:

    this.assist.toolTip.value = this.rawValue; for a text field on 'ownership' MouseEnter

    but it does not display the current raw value. It displays a previous raw value of the field...

    I wrote 'YYYY', but is not displaying on the first mouseEnter event

    Capture_1.JPG

    When I show event mouseEnter for the 2nd time it gives good value.

    Capture_2.JPG

    Now, I changed the "BBBB" value but the first mouseEnter event it displays the value previous i.e. "YYYY."

    Capture_3.JPG

    I found the solution. I wrote the script ("this.assist.toolTip.value = this.rawValue ;") on 'property MouseEnter' but the need to write the script to the "Output" of the field event. ")

    Thank you.

  • Display the default value for POPUP LOV

    Hello

    How to display the default value for the element whose type is LOV POPUP?

    Version 4.2 of the apex

    Thank you.

    Hi Sunil,

    Sunil Bhatia wrote:

    Change the default value to "SQL query"

    And set the default value:

    SELECT PERSON_ID PEOPLE WHERE USER_NAME = lower(:APP_USER);

    -Sunil Bhatia

    There is no default Type-> "SQL query".

    BO123 :

    Change the default value--> "Body of the PL/SQL function" Type and value by default to:

    DECLARE
    
      L_PERSON_ID PEOPLE.PERSON_ID%TYPE;
    
    BEGIN
    
      SELECT PERSON_ID
        INTO L_PERSON_ID
        FROM PEOPLE
       WHERE USER_NAME = lower(:APP_USER);
    
      RETURN L_PERSON_ID;
    
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
      RETURN NULL;
    
    END;
    

    Better make a packaged function and just call that work instead of writing all the code by default the value of the item.

    Kind regards

    Kiran

  • Treatment options for form (use the value of a form field to select a shared list or a web redirect page)

    Hello

    I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.

    Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?

    Thank you!

    Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:

    If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.

    I'm glad everything is working.

  • Concatate Date and time values in a form and don't insert

    I try to combine a date and value of a time value to a form in a datetime value submission and then insert it into a table of 8 SQL server data.

    Here are the formats

    Date: 07/03/2013

    Time: 20:07

    So somehow, I need to concatate these 2 elements and then insert the value combined with a SQL server 8 data table. (Datetime data type).

    The inserted value should look like this

    07-03-2013 20:07:00.000

    No help my brothers dear cold fusion?

    You probably want to use ParseDateTime to transform your two strings (concatenate them) into a date object.  See http://www.petefreitag.com/item/569.cfm for a useful example

  • Script where the zero is not displayed when no value is selected, indicates when a value of zero is selected

    How can I write a calculation script where the zero is not displayed when no value is selected, but when a value field null is selected as part of the zero calculation will show?

    Option 1 has a score of 0 value

    Option 2 has a value of 5 score

    When someone chooses option 1, I want the value 0 to appear at the cell of notation.

    Here is the script that I have so far:

    If (event.value == 0 | event.value == ") event.value =";

    OK, the custom calculation script could be:

    Get the value of the checkbox field

    var v = getField("checkbox1").value;

    Set this field value

    V = Event.Value = "Off"? "" : v;

    Replace "checkbox1" with the actual name of the checkbox.

  • Limit a number to a positive value

    Is there a way to limit a numeric positive value?

    For example; a b = c where both a and b must be positive and c numbers cannot be less than 0.

    K

    Hello

    The script seems ok. I used Javascript as well in the script editor, make sure that you have the language dropdown choose JavaScript and FormCalc.

    Niall

  • Treatment of the values not defined forms

    I have a form with 50 frames.

    Sometimes when my users submit it form, if the field value is equal to zero, completely remove the input area.

    For example, when the form is submitted, and they get to the processing page. the value of form field for the field they deleted is «»

    This causes problems as the value of the form is "", where it should be 0.00

    I'm CFPARAM to the processing page. But I guess that, given that the value is set ("'") they are not used.

    Is there a way for treatment in the form of code page so that if one of the fields of the form are "" they have by default a value of 0.00?

    Pat

    You could do it in a loop and | or a function.

    I.E.

    
         
              
         
    
    

    You may need to change this there are some areas that you don't want to test this way.

  • Do not forget the values in the form after the page

    Hello

    IM absolutely new to APEX (as you can see this is my first post ;)), I've read the documentation, I found on the oracle Web site and know at least the basics...
    So I started building my first application and already have my first problem :D Maybe you can tell me if I want to do is possible and how to do it.

    I have several pages by a form on the left side as well as a report of sql on the right side.
    The form contains fields that are the list of values (fields that contain foreign keys so that the user can select only a valid value). I have a button next to each list in the value field. When the user clicks on the button I have a branch to the same page and the sql report is updated. Depending on which button next to the list values with foreign keys was pressed, it shows the complete table list the values of references to (so the user can see that contains the foreign key, it is to select). After I finally made this work.

    But the problem is: when the user enters values in the form and then click on a button to see what the foreign keys contain values that it has already entered disappeared. But I want the values that he went in to stay in shape after he pressed the button. is there an easy way to do this? the only thing I could imagine is to create a variable for each form field, save current in variable values before the page is sent and write the values of the variables in the form when the page reloads. but it seems kind of the beast... I must do this for each page of this kind (which are many). so is there a better way?

    thx a lot :)

    I think you're talking about the region 'filter' on the left side as 'form '.

    Try this... Open the setting page , click on the item to change (to that values stay after submit), goto SOURCE region, here the source value * "only when the current value in session state is null" * this will fix the problem.

    See you soon,.
    Hari

Maybe you are looking for

  • El Capitan ~ Mail

    Since I installed El Capitan, I got e-mail problems.  The most annoying is that my deleted messages reappear.  Sometimes, it happens immediately when I delete a message and I have to delete it again... and sometimes I delete a bunch and they all reap

  • Equium A300D turns off suddenly during use

    I just got an Equium A300D about 3 weeks ago and it suddenly powers off during use.What can be caused this?However it does not do this often but am still very concerned.

  • How to set the volume of the iPhone ringtone

    Miss me calls with my iPhone in a Holster leather inside my coat.  I want to maximize the volume of the ringer.  I can't find a phone ring volume control.  I don't know if the cursor in the flip, the control sets the ringer volume.  I assume that the

  • Laptop HP 15-af075nr: how to add memory

    Hello, I recently bought an HP 15 PC laptop. I use it mainly for the College but also as for the game on it from time to time (basic games as low as minecraft and counter strike), but the memory is a little weak for my gaming needs. IM thinking to bu

  • HP Pavilion OS downgrade

    I have a HP Pavilion E06DX 17 with Windows 8. I would use this work but it takes Windows 7 Professional installed to interact with pcm of GM vehicles. How it would be difficult to change HDD and install Win. Pro 7. ? Is it not possible? Could I find