Report - change of Digital Format

Dear friends

Based on the unit of MEASURE, I want the Qty format should change to ex

If UOM = PCS THEN QTY SHOULD BE ROUNDUP
IF UOM = KGS AMOUNT SHOULD BE WITH 2 DECIMAL PLACES.

Please suggest how to set up the report.

Sandy

Hello
There are two ways to accomplish this requirement.

1.
Create the formula column (say CF_1) in the same group of data model where the amount and use of the Datatype as NUMBER property and use the code inside this column formula like this...

function CF_1Formula return Number is
  vRetVal NUMBER;
begin
  IF :UOM='PCS' THEN
    vRetVal:=ROUND(:QTY,2);
  ELSE
    vRetVal:=ROUND(:QTY);
  END IF;
   RETURN vRetVal;
end;

And in the report where you use field as source using the CF_1 as a source it will work as you requested.

2.
In the layout editor where the field exists. Click the field and call the PL/SQL Editor by pressing F11 on the keyboard and we code inside like that...

begin
  IF :UOM='PCS' THEN
    SRW.SET_FIELD(0,ROUND(:QTY,2));
  ELSE
    SRW.SET_FIELD(0,ROUND(:QTY));
  END IF;
  RETURN TRUE;
end;

-Clément

Tags: Oracle Development

Similar Questions

  • Interactive report, change in color of the text based on the value in another column

    I have a sample report at this url:

    workspace: homeworld

    username: test_report

    password: test_report

    APEX version 4.2.3 database 11 g release 2...

    # Application: 202: IR TEST REPORTS

    Page in question is #2 page

    I have the setup of the report and you must make the following change...

    I have 2 columns: Comm and bonus.

    If the bonus > comm, I need to change the text color of the color of the Red bonus

    If the bonus, comm, I need to change the text color of the bonus in green color

    If the bonus = comm, I need to change the text color of the bonus to black color

    I tried using the code with the select and am NOT wanting that, since he will be delivered with the data when they are downloaded in CSV or Excel... Had thought using the construction by highlighting, but that does not compare one column to another...

    Thought a dynamic action, but not clear on HOW to do this, so any help would be appreciated...

    Thank you

    Tony Miller

    Software LuvMuffin

    Hello

    I think that number with JavaScript conversion may not be good idea because it's difficult manipulating different digital formats.

    Check your example on page 3.

    I have added to the report query

    CASE WHEN COALESCE(bonus,0) > COALESCE(comm,0) THEN
     'red'
    WHEN COALESCE(bonus,0) < COALESCE(comm,0) THEN
     'green'
    WHEN COALESCE(bonus,0) = COALESCE(comm,0) THEN
     '#333333'
    END as fcolor
    

    Then I modify every column Expression HTML to be as

    #EMPNO#
    

    Kind regards
    Jari

  • Workspace: unregistered control/indicator Digital Format

    Hello

    Using VS 2013, I'm not able to maintain the digital format of a digital medium.

    • Open and run the project delay example of Sinewave

    • On the workspace, do a right-click on a digital indicator to open the dialog box change point

    • Go to the tab Format & accuracy, Format has a value other than Decimal (engineering here) click OK.

    • Save (File' Save) and leave the workspace

    • Run the project again

    • On the workspace, do a right-click on a digital indicator to open the dialog box change point

    • Go to the tab Format & accuracy: Format value is decimal (and not the previously defined value)

    I do not think it is the expected (also tested with VS2012) behavior. This applies also to controls.

    I did something wrong? Is this a bug? Am I the only one having this problem?

    Best regards

    Matheiu Hey,.

    It is certainly a bug. It shouldn't work like this.

    We have the question followed internally as CAR #449833. Keep an eye on this number in the section of the fixed a Bug of version of the fix to come/releases readme (similar to this). We should hopefully get it sent soon!

  • Change in video format for the Director of windows.

    When I go to documents, then click on videos I have my 7 videos.  Its a MOD file. (?). I need to have these in windows movie maker, I click Import media, and then the videos, but none of my vedios are there.  How can I make it appear?  and if I need to change the file format, how do I do that?

    When I go to documents, then click on videos I have my 7 videos.  Its a MOD file. (?). I need to have these in windows movie maker, I click Import media, and then the videos, but none of my vedios are there.  How can I make it appear?  and if I need to change the file format, how do I do that?

    ========================================
    The following links may offer a few ideas:

    Use. MOD with Windows Movie Maker files
    http://www.YouTube.com/watch?v=m31Ji4U5jWI&feature=related

    How to edit JVC. MOD files in a few easy steps
    http://www.YouTube.com/watch?v=ZY-cKaCEUJ4

    How to convert AVI files to Movie Maker MOD files
    http://www.ehow.com/how_5854160_convert-AVI-files-Movie-Maker.html

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • change number / Date Format dynamically

    Hello
    With the help of apex 4.2.1. OC4J linux 11 GR 2
    I have several report that shows financial data for a company.
    This report is accessible by people in the United States, the United Kingdom and IND

    We have a static conversion rate, so I change my queries to the multiple based on the selection list parameter (P37_CURRENCY).

    for example
    select REVENUE_V.ANNUAL_REVENUE_BUDGET * :P37_CURRENCY as ANNUAL_REVENUE_BUDGET,
        REVENUE_V.ANNUAL_REV_ACT_YTD_PRIOR_MO  * :P37_CURRENCY as ANNUAL_REV_ACT_YTD_PRIOR_MO
        from REVENUE_V REVENUE_V
    where company_id = :P37_COMPANY_SELECTOR
    and week_number = :p37_week_number 
    Question: How to change the number format in dollar/GBP/RS according to parameters.



    Thanks for help


    NS

    Tony

    I followed your directions and add an element coming stores the value, the value of changes in session state (property).

    I've added two condition of dynamic on the currency action when this USD then symbol = $ other is when GBP £ can

    When I view the item, it shows me the correct currency symbol but not least of the report.
    for example

    
    Revenue
    Annual Rev-Budget     24313387.2
    

    missing symbol

    Column attributes
    Display as text (character option special escape) (also tried with standard column)
    Number / Date Format * & MY_ITEM.*

    Any idea/help what would go wrong.

    Thank you
    NS

  • Why my cadratins split into two quadratins only in digital format (ebook)?  How to stop this?

    I work for a Publisher and we use InDesign to implement our print files can be downloaded (usually in PDF format).

    Then, I create a new file for ebooks, remove pages additional, marking the table of entries contained as hyperlinks, etc. internal.

    Given that the Kindle plugin is still in beta and cannot, for some reason, recognize a table of contents created using hypertext links (even if that's what specify instructions), I convert it to an ePub, check, make all necessary revisions, except that as the upload of ePub.

    Can I convert the ePub in mobi using Calibre.

    In both cases, my cadratins are divided into two quadratins in digital versions.  I use the low InDesign Type menu to select the em dash and it appears as a single symbol or glyph.  Print file seems perfect.  It is only when it is converted to a digital format that the em dash is divided into aligned format.

    I need to find a glyph special to use does not appear in my font (Times New Roman)?  I really need to fix this!  Any help is appreciated.

    Hello

    Thanks for sharing files. In the "OutpassageEbookTextcontent.indd" document, instead of an em dash, two quadratins are used and it is probably the reason why you see in the EPUB. You can use the find/change dialog box to understand when these are used. I sent an email stating in many places where they are used as your files may be confidential and I abstained from publishing excerpts of text on the forum. Please take a look and let me know if I have not understood your problem.

    Kind regards

    POOJA

    InDesign engineering

  • Custom digital format

    Hello

    I'm using OBIEE 11 g.
    I have a report that is as

    A 2345658546
    B 27484094574

    I want to display format lakh
    for ex 2,34,56,58,546

    P.S Using operator thousand doesn't work as expected, it shows as (2,345,658,546)

    How to get there
    Thank you
    Abdul

    Abdul,

    Data format - number of feast as custom
    Custom digital format = [> 9999999]##\,##\,##\,##0.00;] [> 99999]##\,##\,##0.00;##,##0.00]

    What shud give your condition...

    Hope this useful...

  • Right side of the text in the report are cut during report generated in PDF format

    Right side of the text in the report are cut during report generated in PDF format.
    In the report layout text is FLUSH JUSTIFIED. Text block is the same size as the outer frame.
    When the report is generated in PDF format, text is only JUSTIFIED to the LEFT and to the right looks like cut. Text beyond frame is invisible.
    But when I text selection in the PDF report that all the text is selected and I can copy and paste this text into any editor.
    What is a cause of this error and how can I solve this problem? In my view, there is error in report engine.
    Report Server Version: 10.1.2.3.0

    See photo. [http://1.bp.blogspot.com/_tSW8j23gT08/TKXn84zyRMI/AAAAAAAAAGE/KkNibanTSao/s1600/report_error.JPG]

    Don't know what your operating system and it could make a difference. If you're on Unix/Linux, try changing the uifont.ali file. (make a backup first!).

    Here is an example of the changes that I made to correct a similar problem:

    # Mapping of MS Windows

    #Arial = helvetica
    # 'Courier New' = courier
    # "Times New Roman" = times
    #Modern = helvetica
    #"MS Sans Serif" = helvetica
    # "MS Serif" = times
    # "Small fonts" = helvetica

    #Arial = 'arial.ttf '.
    Arial = helvetica.8
    "Courier New" = courier.9
    Arial.12 = helvetica.8
    #helvetica.12.Bold = helvetica.9
    #ArilMT is helvetica.9
    # "Albertus Extra Bold" = helvetica.9

    [PDF]

    #Arial = courier
    #arial = courier

    # Support for the languages of the far East:

    #itcadvantgardegothic = arial
    # "ITC front guard Gothic" = arial
    #itcadvantgardegothic = arial
    # "ITC Avant Garde Gothic" = Arial
    # changed to courier 06-25-2009
    itcadvantgardegothic = Helvetica
    #itcadvantgardegothic = arial
    "ITC Avant Garde Gothic" = Helvetica.11

    # Required
    #itcadvantgardegothic = arial
    # "ITC Avant Garde Gothic" = Arial

    [PDF:Subset]

    #times = "times.ttf".
    #courier = "cour.ttf.
    #helvetica = 'arial.ttf '.
    #arial = 'arial.ttf '.
    #helvetica = 'arial.ttf '.
    # 'Avant Garde' = 'arial.ttf '.
    #arial = 'arial.ttf '.
    #helvetica = 'arial.ttf '.
    #arial = 'arial.ttf '.
    #itcadvantgardegothic = 'arial.ttf '.
    #helvetica = 'arial.ttf '.
    #courier = "cour.ttf.

  • How to set the digital format via the API

    Hello

    I have a utility that imports limit of external resources and that the utility (c#) I would need to change the digital representation so that what is defined as hex in the external resource should appear after imported to TS so hexa.

    Can U help out me if it is possible with the API, and if so, what is the good methods for doing this?

    Thanks in advance.

    Hello

    Only a few minutes ago, we have found this solution work:

    x.NumericFormat = "%#X";  where x is the PropertyObject pointing to the number. It is just not documented anywhere for this method that you can use X for hex.

  • My music files have changed in WMA format in Windows Media Player, and now my MP3 player won't play them.

    My music files have changed in wma format in windows media player, and now my mp3 player won't play them.  can anyone help please.

    original title: Media Player

    Download and install WMA to MP3 Converter, then install it, you can get it here... http://www.WMA-MP3.org/

    Then select all the WMA files you want to convert, and then convert them to the MP3 Format.
    The reason why they are WMA is because when you ripped the files on the disc to your pc, by default, Windows Media Player is configured to save in the Windows Media Audio (WMA) Format.
    This default can be changed by opening Media Player and click on Tools > Options
    Then select the Rip music tab
    Format: select MP3 from the drop-down list.
    Click apply and OK.
    Now the next time you rip a CD on your drive hard it will be automatically saved as an MP3 file.
  • NAS 200 change disc journaled format = &gt; not logged

    Hello

    I read in the forum that change journaled disk format to non logged can accelerate access to the drive, but is less secure.

    I use 2 disk in my nas200 2 years.

    What is the level of appreciation of the speed I could expect?

    How can I change the disc format?

    What kind of titles cannot compensate for the change of format of disc about the integrity of the data?

    Thank you very much

    Will improve the speed by about 50%.

    Worth of security, is that if you have a power failure while writing to a file, this file may be lost. The risk of loss of data because of power failure is much lower in logged mode.

    You can change that by reformatting the drive, which will erase all your files. If you need to back up your files before you do and restore them later. Of course, this will take a very long time (perhaps several days, depending on the size of your discs).

    You can save time by using SystemRescueCD on a PC with the NAS200 disk connected to your PC to copy the data to another drive before we do the reformat. Then you can put the disc into the NAS and reformat. Then put the disc on the PC and use SystemRescueCD to copy files back. Do not use SystemRescueCD to reformat; the NAS will have to do.

    = Jac

  • applications are confused by changing the time format from 24 hours to 12: 00 and return!

    Hello, I accidentally changed my time format phone from 24 hours to 12 hours (am/pm) and now when I switched it back I noticed the phone time got it wrong - 12 hours of rest. I had to manually set it to something like 23 because she thought that it is 11. Now the time has come, but the apps are totally confused and they think that it is at night when it of day and vice versa! It really * beep * when you need to know quickly if a bus is coming or don't use is not some app for it.

    I tried to reinstall an application but he still thinks that it is 12 hours less (or more), then it really is.

    It's crazy because the clock widgets it's 14:26 but the weather widget it's 02:26! What can I do with it?

    Don't know how, but my time zone is wrong! LOL it's UTC-11hours. So I put it to UTC + 1 and it is right now. [Why apps showed these different times I don't know:-]

  • Change the default format for burning discs of this system active files in the ISO image format

    How can I change the default format for burning discs of this system of active files to ISO image format?  I don't want the active file as the default system and really don't want to have to choose what I want to use the default every time.  It's boring. I have Vista x 64 on my computer and have not yet adapted to all the changes in XP.

    Thanks, but it's not useful.  It is more that an 'improvement' Microsoft did that, as I fear, is a total and far failure to be an improvement.  It also means that I'll just use a 3rd party program to burn all my CD/DVDs.  You know if I wanted to be able to remove, reformat, etc.. CD/DVD I would use those rewritable.  That's why they exist.

  • How to change the Date format

    Hello

    I have a question, is it possible to change the date format of a date value that comes from the database, therefore with the settings on the computer?

    I use jdev 12 c with Oracle database

    Thank you

    Hello

    You can use af:convertDatetime to set the date.

    Ref:

    Andrejus Baranovskis Blog: Handling of Format of Date and links of the ADF

    http://jdevadf.Oracle.com/ADF-richclient-demo/docs/tagdoc/af_convertDateTime.html

    date format ADF

    Thank you

    Amey

  • Change the date format. MinValue?

    How can I change the date format. MinValue?

    If you get any solution for this, a work around you can try and update us if it works or not:

    Go to your date attribute in DataControls.dcx (you must first select the control of your data)

    You may need to click on change icon to open the XML.

    Under guidance UI do following changes:

    Type of format - Format of Date Simple

    -The format DD/MM/YYYY

Maybe you are looking for

  • My keyboard navigation lights.

    I used F7, options advanced and checked "use arrows to navigate" and go to about: config to change the navigation with the keyboard from true to false, then again true after I restarted firefox several times. For some reason any the keyboard navigati

  • Lenovo ZTE A2107 pny micro SD card damaged

    I'm new to this forum so I don't know what to say really, but I'll try to give as much information as possible. Recently, I bought a micro SD 8 GB of PNY card with an adapter card. I slipped the upper part of the back of the stand upward and inserted

  • Missing NTLDR and access is denied in the Repair Console

    My main problem is the missing NTLDR.  My secondary problem receives a message access denied while typing instructions at the BACK window in the Repair Console.  Every step of the way has been a 'problem' for me. Any help will be greatly appreciated.

  • no noise in hp mini 1047tu

    I have a hp mini 110-1047TU. I have reloded windows XP prof. used the drivers from the hp site. But do not get sound activation. Audio speakers in the Panel, shows no device. Please help me solve this problem.

  • Wireless disaster

    I have a T60 2007 under XP SP2.  I have trouble with my wireless adapter: it has been impossible to get an IP address, even if many other laptops in my work of fine houseare wireless on the same network / same router.  Then I thought maybe the card d