Right align numeric field in query

How do i embed the html code in the query to right align a query column?
I tried this query
select '<span style="color:red;text-align:right;">' || totals || '</span>' as Totals from mytable
The result is comes as red color but the text is not right aligned.

You have to replace &lt; by & lt; -> remove the space between & and lt;
BTW, why not use the "Column Alignment" property of a report column?
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • Help! Can't type spaces in a right aligned form field

    I am creating a form letter where sales staff can enter their location information at the bottom. Some of the fields are right aligned. My problem is that the right aligned fields do not to recognize the space bar, and all the text entered runs together. Spaces can be entered after the fact, but I doubt every salesperson will be careful enough to proofread the form and make the correction. Below is a screen grab of the results when typing an address in the right aligned fields
    I posted ta question about this issue a while back but did not find a solution http://forums.adobe.com/thread/609678?tstart=0. I'd hoped it would be resolved in the CS5 upgrade. Unfortunately, it wasn't. Maybe it is something with my system.  The pdf is generated from a Word document saved in 97-2004 format (.doc) out of Word 2008. I'm working on a Macintosh in OS 10.5.8. Any insight would be greatly appreciated!!!!
    Laura

    Here is the screen grab - I show the field text as I entered it on top, then an edited version on the bottom where I manually added the spaces after entering the text.
    Thanks.

  • I Cannot seem to type spaces in a right aligned form field

    Well, that's not quite true, spaces can be added , but only after entering the text. For example, if I type 3456 Taylor Ave., what I get is 3456TaylorAve, and then I have to go back in and enter the spaces. Since this form will be used by numerous employees and sent out to customers, I am afried this will result in lots of unprofessional looking documents. Does anyone know of a setting I should be turning on to correct this? It only happens in form fields with right-alined text.
    I'm working in OSX 10.5.8 in Acrobat CS3.
    Thanks in advance!

    Here is the screen grab - I show the field text as I entered it on top, then an edited version on the bottom where I manually added the spaces after entering the text.
    Thanks.

  • Right alignment of Number Field in OAF Page

    Hi,
    I need to right align the column of the table which is of number type in OAF page. I have extended the VO of that page to add new columns. After VO extension i added the column to the page via personalization and gave the reference of view attribute name as per Extened VO. I have set the following properties for that column
    Item Sytle- Message Style Text
    Data Type- Number
    Nowrap=false
    Vertical Alignment=Middle
    View Attribute = Prior (same as Extended VO's column)
    View Instance = XXPayEmpAccrualActionInfoVO
    I need to set the value of this newly added column right align which is currently set as left align by default.
    I have tried the following links from OTN
    Re: Q: How to format number using personalization?
    Right align number field
    but while controller extension i m getting the following error-
    Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = XXPayEmpAccrualActionInfoVO; APPLICATION_MODULE = oracle.apps.pay.selfservice.payslip.US.server.PayPayslipAM;
    The extended controller code is -
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OATableBean tableBean = (OATableBean)webBean.findIndexedChildRecursive("PayPayslip4Ss");
    tableBean.queryData(pageContext, true);
    tableBean.prepareForRendering(pageContext);
    DataObjectList aColFormat01 = tableBean.getColumnFormats() ;
    oracle.cabo.ui.data.DictionaryData ColFormat01 =(oracle.cabo.ui.data.DictionaryData)aColFormat01.getItem(pageContext.findChildIndex(tableBean, "Prior"));
    ColFormat01.put(COLUMN_DATA_FORMAT_KEY,NUMBER_FORMAT);
    Please can anyone provide me some pointer here..this is really urgent.
    Thanks in advance
    Renu
    Edited by: Renu Gupta on Jun 14, 2010 5:15 AM

    Hi Renu,
    Use the following code:
    OAMessageStyledTextBean origContSumBean = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("<FieldName>");
    if(origContSumBean!=null) {
    origContSumBean.setAttributeValue(CURRENCY_CODE,new OADataBoundValueViewObject(origContSumBean,"CurrencyCode"));
    Here CurrencyCode should be a view attribute in the VO associated to the items in the region.
    Regards
    Sumit

  • Barcode right aligned ?

    Dear colleagues,
    I have a barcode which repesents a quantity. As most of the time the value is small I want to right align the field
    to keep a distance from the field left to it. Is there a possibility to right align a barcode ? I already tried the XML clause
    <para hAlign="right" vAlign="middle"/>
    which is normally used for numeric fields. But it does not change anything.
    Any ideas ?
    Thank you for your support
    Rabanus Diehl

    Hi Rabanus,
    What is ADSSAP software component version installed on your Java system where ADS ifigured?
    This is relates to your problem, Please work with your Basis administrator to fix the correct patch level for this.
    Let me know if this helps or not.
    Regards,
    Srinivas Repa

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • Numeric fields not aligned correctly in report preview

    Hi
    I have the next problem:
    On my report, I aligned the numeric fields to the right of a column, but when i run the preview on ASP, the numeric fields are aligned to the left.
    But when I export the report to PDF, the numbers align correctly.
    I figured out a workaround to this, introducing the numeric fields into text fields, since they do align correctly. The problem is that I have too many reports to apply this workaround to all of them.
    Could it be a known issue of Crystal Reports XI?
    Is there any other workaround?
    Thanks in advance

    Hi Poonam
    Maybe I wasn't quite explicit before,
    In preview mode my report displays correctly as well. The problem comes when I run it through an ASP, which is needed for my application.
    I'm running the CR version 11.5.0.313. I was asking if it could be a known issue of XI version because when I had version 9 I didn't have this problem.
    It could also be that through the time, I changed something in the way the report is displayed, and didn't realize about that before, but I haven't been lucky to notice any change related.
    Thanks for your time,
    Gil
    Edited by: Gil Gonzalez on Oct 21, 2008 12:11 AM

  • Need Number fields to be right aligned in ADF table.

    Hi All,
    I have af:outputtext in the column of ADF read only table and view attribute which is associated to this field is fetching numbers (type is Number). But by default in my page data (numbers) is displaying with left aligned.
    But my requirement is to display numbers to be right aligned. I tried by setting Horizontal property to 'right' (text-align = right), also tried by seeting Styledclass property to AFFieldNumberMarker / AFFieldNumber css properties. But still numbers are displaying with left aligned.
    Please tell me how to fix this issue?
    Thanks,
    Sadanand

    Hi,
    try attribute align="right" in af:column....
    Regards,
    Suganth.G

  • Alignment of field values towards left or right???????

    Hi All,
    There is a requirement. I am looping through my outpt table and displaying filed and values line by line.
    This also has a header section. The output will some what look like this
                                                                                    Program: z001   Page: 1/2                                                                               
    Date: yy/mm/dd Time:000000
      Material: xxx
      Plant:     xxx
    Matnr
    1
    MMSTA
    xxx
    Meins
    y yy
    The oposition and lines drawn are fixed. Now my question is there an option to align the field values towards extreme right ( as yyyy shown).
    Rakesh

    Hi
    In Write, u can use like
    WRITE :/ ITAB-FIELD1 LEFT JUSTIFIED/RIGHT JUSTIFIED/ CENTERD
    But it will not print on extreme right
    If u want to print at extreme right, u have to use Position option of write
    write: /50 'aaaa'.  Here it prints 5oth column
    Reward if useful
    narendra

  • Use desformat=spreadsheet output excel,number fields can not right align

    overview and PDF right align,it's ok.but excel all field left align.
    why?

    Be sure you put the heading the same size as your column because otherwise it will not insert the diffent columns in seperate columns in excell

  • Smart Form - Right Aligning of Quantity & Currency Fields

    Hi,
    I have a paragraph set with left aligned. But the Decimals Fields (Quantity & Currency) are to be made Right Aligned. I am using &Structure-Field(R)& to force the respective fields right aligned. But this is not working. I am not sure, what is that I am missing to look into. Can you please suggest me a suitable method to make it work?
    Thanks,
    Kannan

    Kannan,
    I had faced a similar problem and got it rectified by delcaring a paragraph format which is right aligned.
    go to smartstyles.
    create a paragraph format R and click on the INDENTS AND SPACING tab wherein set the alignment as RIGHT-ALIGNED.
    Now come to the smartform
    open the respecitve smartform.
    click on the  text for Quantity and Currency and in the respective windows click on OUTPUT OPTIONS tab and mention the style name ( the style which you have used in smartstyles).
    Come to the General Attributes and give the same Paragraph format  in the Text editor.
    This should solve the problem.If any doubt reverut it.
    Reward points if found helpful.
    K.Kiran.

  • Data display in numeric field

    Is there anyway to center or right align the entered data in a numeric field?
    TIA
    JZach

    Select the Numeric Field, open the Paragraph dialog (if it's not already shown in UI select it under the Window menu) then select center or right align.
    Chris
    Adobe Enterprise Developer Support

  • How to set Right Alignment for a JTable column

    Hi,
    I am using a JTable for displaying database records using AbstractTableModel. It works fine. But, for the numeric fields I want to make records right aligned using setHorizontalAlignment. I tested with TableColumn.setHorizontalAlignment but it ends up with an error. Is there a solution? Please help me. Thanks in advance.
    bhuvana.

    In you table cell renderer you can specify the alignment of the text.
    public class MyTableCellRenderer extends JLabel implements TableCellRenderer
    public MyTableCellRenderer
    setOpaque(true);
    setBackground(Color.white);
    public Component getTable.....(JTable table,Object value,......) //fill all these things
    setFont(table.getFont());
    if(value instanceof Float)
    setHorizontalAlignment(SwingConstants.RIGHT);
    setText(value);
    return this;
    This would set all the Floats to RIGHT alignment.
    Thanks,
    Kalyan

  • Right Align the Currency values in ALV report

    Hi Friends,
    I have developed a report and displayed the output using the ALV. I have columns for currency values in the output table.
    The fields for currency values are character fields. The values in the table for display, is properly right aligned (default for currency values). But in the output, the currency values are left aligned.
    Since I need blank lines in the output table after each entry, I have used the character fields in the output table so that I can clear them and append it to get the blank line.
    Please suggest me to get the currency values right aligned.
    Thanks in advance.

    try with this field in field catalog.
             just(1)        type c,        " (R)ight (L)eft (C)ent.
    for the currency field add this field too in field catalog. it will work.

  • How do I center align the text in my text boxes if they are currently right aligned?

    I created a client questionnaire in Word and then turn it into a PDF and created the text boxes necessary. The problem I am having in Adobe XI Pro is that I want all of the text in my text boxes to be centrally aligned rather than left aligned. However, when creating and editing the text boxes, I see no option to help me do so. When clients fill out the form it looks messy because the information that the fill in tables in not centrally aligned, so it makes my tables look poorly organised. Help would be much appreciated, thank you.

    In Form Edit mode, right-click the field(s) and select Properties - Options, and under Alignment select "Center".

Maybe you are looking for

  • Since updating I tunes, my I phone is no longer recognized. I am using a windows 8.1 system and I phone 5

    Since updating I tunes, my I phone is no longer recognized

  • Unable to install Windows 7 via Bootcamp

    I have an early 2008 Apple Mac Pro Dual 2.8 GHZ processors with 16 GB of RAM. I have a WD Veliciraptor 300 GB hard drive in Bay 1 and a WD 320 GB drive in bay two. After I got the Mac system set up with all of my programs/user accounts/software updat

  • Mac Pro Boot Problems After 10.6.2 Update

    After installing the latest version of snow leopard I am now having boot problems on my mac pro. Symptoms; -Screen resolution is incorrect at apple splash screen. -Takes a lot longer than usual to boot. -Once booted the blue tooth magic mouse isn't i

  • Amber Update not working!!!

    hi all.. i went for the update in my lumia 720, everything went fine till the phone restarted.. After that, i am seeing the processing since 3 hurs, the screen shows two settings icon, rotating.. i am uunabl to do anything, triedhardrestarting, but s

  • I will begin a project with J2me

    I will begin a project with J2me at school.I just have some basic knowledge about J2se,and would you kind enough to give me some advice on how to get the first step?