Formula problem in Format Editor

I'm trying to format a field so that it prints in italics if an employee is inactive.  So in Format Editor, Font Tab, in the calculation screen for Style, I enter {Staff.Inactive}="T".  When I check my formula, it says 'The formula result must be a number."  So I change the formula to {Staff.Inactive}=1.  Then, my formula check gives the error 'A string is required here.'  I put the {Staff.Inactive} field on my report and it displays T's and F's.  Am I doing something wrong?  My 'selection' formula for the report includes the line {Staff.Inactive}="F" (subsequently commented out).  And if I use the same formula in the Suppress calculation, I do not get an error.  So this seems to be an issue just with certain areas.  Thanks.

For the font style the return value should be the font style like crItalic or crbold and for suppress condition the return type should be boolean value.
Since the condition {Staff.Inactive}="T" returns true or false the suppress condition works.
for font style try the following
if {Staff.Inactive}="T" then
crItalic
Regards,
Raghavendra

Similar Messages

  • Basic math formula problems, percentage formatting

    Hi!
    I have a table full of data, and I'd like to calculate the percentage change from one row to the next.
    I thought I could use formula like
    =(J3-J2)/J2
    And this works. I get result like 0.31.
    I'd like to format it as percentage. Clicking on the "Format as percentage button" changes my formula and makes it invalid.
    The cell value becomes:
    =(Total 1.6.2009-Total 1.5.2009)/Total 1.5.2009
    "Total" is the name of the column (which is actually a sum of items on the row) and "1.5.2009" is the name of the row.
    Why does Numbers destroy the formula to use the names of the row and column instead of cell reference?
    By the way, I can't just add " * 100" to my formula to have it be 31 instead of 0.31, that will also cause a formula syntax error.
    So I'm trying to calculate percentage change from one sum cell to the sum cell on the next row, but this doesn't seem possible.
    Any ideas?

    Petteri,
    I suppose there is a possibility that when you first attempted to apply Percent format to your result you made some wrong key-press.  It should work correctly that way, and does on my system.
    One tip; If I were you, I would turn off that "Use Header Cell Names as References" Preference.  It's more trouble than it is worth.  Just a gimmick in my opinion.
    Jerry

  • Application Express 3.1 + BI-Publisher + problem with formating numbers

    Hello together!
    I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
    It works well, but I have a problem with formating numbers.
    In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
    In Template-Builder Preview it looks well.
    But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
    That means,
    1.454.234 become 1,454,234 in PDF-Report
    54,80 become 54.80 in PDF-Report
    Other than that, the layout is exactly the same like in Template Builder defined.
    What's wrong?
    Do I have to change any country parameter?
    Juliane

    I also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.

  • Problem in formatting of long text -- line break not recognized.

    Hi ,
    We have a PO smartform in our SRM system and we are facing problem with formatting of long text on the smartform for long texts maintained for the PO.
    for ex, we maintain the long text as --
    "this is long text for item 1.
    1. this is line 1.
    2. this is line 2."
    On the smartform it is displayed as --
    this is long text for item 1. 1. this is line 1. 2. this is line 2.
    So basically, the line breaks in the text are not considered in the smartform .
    Any suggestions on how to fix this issue ??
    Thanks.

    Hello Harmeet,
    Which Std. FM are you using to fetch the PO texts? If the PO doesn't exist in your system, i'm afraid you cannot use Include Texts as mentioned by Harsh.
    As an alternative you'll have to create a table & pass the text lines to it! I don't think SmartForms are not smart enough to identify new-line character.
    BR,
    Suhas

  • Problem in Formatting Total Column in Classic Table

    Hi,
    I am using Classic Table.
    I am able to format the column data but i am unable to format the column total value. I searched in forum and tryed something like in the following thread..
    Problem in formatting Total Value in advanced table
    since i am using Classic Tables i am unable to do it.
    I also tried the following
    OATableBean table = ....
    OATotalRowBean totalRowBean = (OATotalRowBean)table.getColumnFooter();
    System.out.println("Formattotal : "+totalRowBean);
    if (totalRowBean != null)
    oracle.cabo.ui.validate.Formatter formatter = new OADecimalValidater("#,##0.00;#,##0.00","#,##0.00;#,##0.00");
    totalRowBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    in this case the total is not formatted.
    I also refered developer guide. There i found how to set value to total column.. but how to get the value its not given..
    Any body pls help in this regards
    Thanks & Regards

    Hi,
    When i am using Classic Table i am able to format column data but i am not able to format the column Total
    Code i using ;
    OATableBean table = (OATableBean) webBean.findChildRecursive("EmpTestVO12");
    table.prepareForRendering(pageContext);
    OAMessageStyledTextBean totalBean = (OAMessageStyledTextBean)table.findChildRecursive("Salary");
    if(totalBean!=null)
    Formatter formatter = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    totalBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    //Properly formatting column data
    Whe i am using OAAdvance Table bean i am able to format the total but i am unabele to format the Column data. Using following code..
    OAAdvancedTableBean tableBean=(OAAdvancedTableBean)webBean.findChildRecursive("region2");
    tableBean.prepareForRendering(pageContext);
    OAColumnBean c1=(OAColumnBean)webBean.findChildRecursive("column12");
    if(c1!=null)
    c1.setAttributeValue(CURRENCY_CODE,"USD");
    Can anybody pls tell me how can i achieve both (column values and totals formatting) using either Classic Table or Advance Table..
    Thanks & Regards,
    Ram

  • My ipad mini is stil in warranty, but my software has some problem, if format it need to pay?

    my ipad mini is stil in warranty, but my software has some problem, if format it need to pay?

    Restoring the iPad can be done by the owner and doesn't involve or affect the device's warranty. It's free.
    (107649)

  • Problem in opening editor in Oracle 11g release 2

    Hii all
    I have Install Oracle 11g release 2 on my 32 bit windows OS.
    But I am having Little problem while opening editor
    1) when ever i am typing ed in sql prompt I am having error 
       Cannot create save file "afiedt.buf"
       How ever i have tried with the define editor command
       ie define_editor="Notepad"; the command is executing successfully but still i am having same error while typing ed
    2)My second problem is i am not able to select anything for copy and paste even
       right mouse click button is also not working for paste
    Please Suggest any solution soon...........

    Thank Mr.Sharma
    sir i have one more doubt
    suppose my select statement is resulting some 4000 rows but i am only able to see the last
    2500 to 4000 rows by scrolling up and down after the select has been made. I am facing this problem in 11g r2 only.
    In 10g there was no such problem
    so i want to know how to increase the size of sqlplus prompt so that i could see the entire
    selected rows by scrolling up and down
    Please reply sir..................
    Thank You

  • BODI 11.7: Missing Source Information from File Format Editor

    I'm trying to import data from multiple flat files and need to include the file name of each file as an attribute for each row, however, I do not have the Source Information section of the File Format Editor that the DI Technical Manual refers to on page 367.
    I'm sure I'm missing something small in terms of properties to switch this feature on and hoping that someone can help me???
    I'm using Data Integrator 11.7.3.1

    This is a call-property, not a class property.
    When you open the file format editor via the object library you can define the class as such.
    Open the file format reader from within the dataflow, there you can specify the properties specific to this reader call - including the "include filename column".

  • Facing problem in formatting

    hi,
    m having pavilion dv6 6186tx laptop, m facing problem in formatting my lappy i had ordered windows 7 cd ( the genuine OS which was allotted to my lappy by hp ) from HP, i received 3 cd's 2 of my OS and 1 for the drivers, when i start formatting my lappy with the cd's things were fine, first i inserted OS cd's one by one then it ask for the driver cd and i inserted it then the data from the cd's were copied on the disk and all the cd's were back with me then any window with a message appear on the screen saying "Recover preparation is completed & now the installation phase will begin "(snapshot of the message window is shown below) then my lappy restarted and the installation of the OS & the drivers begin, there were two progress bars on the software installation window the first or the above one must be for the individual software's and the second one must be for the over all progress. So now my installation begin every thing was going well until there comes a point where my system just got paused up, the progress stopped of both the progress bars and no further operations were caried out(snapshot os this situation is shown below) i.e my os is not installed, i tried to install my OS many times but the same problem was occurring again and again PLEASE SUGGEST SOME SOLUTION TO THIS PROBLEM.....

    i had also tried keeping my lappy in the same situation for 3-4 hrs but no change .
    The reason for formatting was that my lappy was not shutting down properly i.e. even after shutting it down the led's of the wifi button, power button, light of the touch pad were on and finally I had to shut it down forcefully that means by pressing the power 4 few seconds.  I thought there might b some drivers issue so I should format my lappy one & set all the settings to its factory condition that y i thought of fromatting and this happened.

  • I have a problem in formatting cells in Excel while using OLE method.

    Hi All,
    I have a problem in formatting cells in Excel while using OLE method.
    My requirement is to have certain fields of a cell as text and amount fields should be in number format.
    How to format a cell in Excel in OLE method of downloading data to excel.
    For example I have plant field whose value is 0002 in internal table while coming to excel it is showing as 2 .
    I want that field to be shown as 0002.(text format)
    Material field whose value in internal table is 000000000000000051 is shown as 51 which has to be shown as
    000000000000000051.(text format).
    Amount field should be in number format so that totalling is possible .
    So I need some cells in text format and some in number format.
    Please suggest a sloution.
    Thanks in advance,
    Regards,
    vidyulatha.U

    https://forums.sdn.sap.com/click.jspa?searchID=21931962&messageID=6852860
    hope this helps.

  • I bought the production premium , cs6 , and I download it and registered with out any problem , I formatted my computer then I downloaded the collection , now everything else working only after effect is not working , what shall i do

    I bought the production premium , cs6 , and I download it and registered with out any problem , I formatted my computer then I downloaded the collection , now everything else working only after effect is not working , what shall i do

    did ae install without problem? check the install logs to be sure (Troubleshoot with install logs | CS5, CS5.5, CS6, CC)
    if it did, what do you see when clicking the executable?

  • Is it possible to integrate an RTF format editor in an apex page?

    Hi, guys:
    I wonder if it is possible to integrate an RTF format editor in an apex page? so user can edit RTF document in APEX?
    Thanks.
    Sam

    I don't think so. Browsers may be able to show the content of an rtf file (through extensions, like it does with a .doc or .pdf file), but there is no possibility to directly edit the content.
    Even if it were possible, one rtf is not the other. You can save a Microsoft .doc as a .rtf, but it might contain many rtf features that are not supported in another rtf editor.

  • Can we add any fonts to Infoview format editor?

    Hi Expert!
    Can we add any fonts to Infoview format editor?
    When editing CR file on INFOVIEW, "Format Editor" has just 4 fonts to use,
    How can we add any fonts to "Font Editor" at infoview??
    Could you please give me any advices?
    [A SCREENSHOT|http://zealias.byus.net/bo/addfont.JPG]
    As attached screenshot, we can use just 4 fonts on format editor.
    Thanks in advance
    Tony (Customer Assurance)
    Edited by: Tony Song on Nov 17, 2008 8:10 AM
    Edited by: Tony Song on Nov 17, 2008 8:11 AM

    It's self answering.
    1. I assume, "D:\Program Files\Business Objects" is the install dir.
    Add below line
    D:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\adhoc\res\adhoc_en.js
    D:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\adhoc\res\adhoc_ko.js
    there is an line "var L_IMPACT="Impact";"
    and ADD next new line "var L_ARIAL="(what you want)"; "
    2 Edit below file
    D:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\adhoc\formatfield.html
    1) Add option[5] like below
    fontChoiceElement.options[5] = new Option(getLocalisationStringsObject().L_ARIAL, 'arial', false, false);
    2) Also search similar sentence and add like below
    case 5: // Arial
       previewPaneElement.style.fontFamily = 'arial';
       break;

  • LabVIEW formula to LaTeX format Converter

    Does anyone know if there is a VI available that will convert a LabVIEW formula to LaTeX format?
    e.g.
    (a1+a2)/2   ---->    \frac{a1+a2}{2}
    I wanted to check if something like this is available before venturing off and attempting to make my own.

    This shows the reverse direction, which might give you a push in the direction you want - http://decibel.ni.com/content/docs/DOC-13859
    Try to take over the world!

  • BW - problem with formula variable (date format)

    Hi,
    (sorry if I'm using different term than yours.. this is my 2nd query.. still new with BW)
    I need to create 1 query: Support Message Aging Report.
    Basically it will have 5 columns: Not Due, 0 Day, 1 Day, 2-10 Days, >10 Days.
    and 1 input selection is: key date.
    the formula is: number of aging day = key date - due date.
    I have no issue on the 1st and 2nd column. For that I just create 1 customer exit.
    My problem is on how to separate the over due support message by day (due date < key date).
    I tried create 2 formula variable for key date and due date. Then from these 2 vars, I can get the number of days.
    Problem comes when the calculation is cross month/year. I suspect maybe because the return from the formula var is in number format and not date... yyyymmdd. Then, I change the dimensions from number to date.. it is working for key date.. dd.mm.yyyy.
    but for the due date, I got problem... it keeps give me warning saying: value 'D' invalid for property dimension of element etc.///
    below are details for both formula variable.. please advice which area should I fix or maybe you can suggest any good idea for my query.. thanks so much
    1. ZKEYDATE - customer exit (value  input data) - dimensions date - NO ISSUE (OUTPUT: dd.mm.yyyy)
    2. ZDUEDATE - replacement path (ref char ZBW02C08) - replacement rule: infoobject, key - dimension date - GOT WARNING...
    ZBW02C08: contains due date and the type is date: yyyymmdd

    If I were you, I'd try two things:
    best way - have the infoprovider changed to have a new key figure for the number of days difference
    - to do this with formulae (especially crossing months and years - what about leap years) is hard to maintain and develop
    other way - make a virtual key figure - i did this once but I forget how exactly. There's a userexit or BADI somewhere which can be used for this.
    Either of these ways allows the calculation to be done in ABAP itself where date1 - date2 gives you the number of days difference.
    By the way though, this is in the wrong forum. I'd bet if this was in a BI forum, you'd have an answer already.

Maybe you are looking for