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

Similar Messages

  • 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

  • I need below fields at my selection screen.From which table we can find the

    Sales Org > only one selection field
    Division > only one selection field
    Channel > from u2013 to fields
    Sales Office Channel > from u2013 to fields
    Sales Rep Channel > from u2013 to fields
    User ID of the CSR Channel > from u2013 to fields
    Customer Channel > from u2013 to fields
    Material Channel > from u2013 to fields
    Date: Channel > from u2013 to fields
    I need these fields at my selection screen.From which tables I find these things.I need this logic also.

    I need help

  • Need Amount column to be Right Aligned in LOV asap

    Hi,
    I have a amount column in a custom LOV which needs to be right aligned. but in LOV, by default all columns come as left aligned..Pls provide a solution asap.
    Thanks,
    Puneet

    The column alignment depends on the type of data it displaying. Number columns are right aligned and string column are left aligned. this is default behaviour.
    Change datatype of column amount to Number. It will allign right.
    Thanks,
    Ram

  • 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

  • Smart form -Right Alignment is not coming properly

    Hi Folks,
    While Printing Smart form for Invoice ,using right aligned Paragraphs  texts are not coming properly.....but  using left aligned paragraphs text  are coming proporly....we want both left aligned and right aligned in same table ...for print preview it showing fine but while taking the print out it comes like this
    for eg:  ---
    Net amount
    1,000.00
          750.00
    2,000.00
            40.00
          100.00
          300.00
    30,000.00
    O/P showing like this ....i have checked all the options in right aligned paragraph but no use
    Kindly help ....
    Edited by: bismilpk on Dec 26, 2010 2:31 PM

    yes .....I solved....got the answer

  • 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

  • Number fields alignment

    Hello, I'm using JDev11.1.1.2
    My requirement is all number fields in the application to be right aligned. Is there a general way to achieve this ?
    Thank you

    Hi John,
    You can try adding some css yourself:
    Add a class to your form field in the fields HTML Form Element CSS Classes attribute, and add a text-allign property for that class in your css file or in your region html header.
    For example  put 'rightAlignField' in the HTML Form Element CSS Classes attribute and add
    <style>
    .rightAlignField{ text-align : right; }
    </style>
    to the form regions html header.
    Regards,
    Vincent

  • Right alignment for number

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped EmployeesVO as a af:table
    In that the salary attribute is left aligned defaultly. But i need Right alignment for Salary attribute as it was number.,
    How can i perform this!!

    did you try to set the Align attribute for the salary af:column to right?

  • Need to see previous account number field in CRM

    Hi Specialist's,
    As part of our implementation project
    There is a field in SAP r/3 ( Customer Master Data Tcode:Xd03) on Company Code Tab called Previous Account Number field ALTKN, table KNB1( Company Code Data ).
    We need this information to go to CRM system.
    I checked the field in table BUT000 in CRM but could not find any field containing this information.
    Can someone let us know how can we see this information in CRM.
    Also it would be helpful if you can tell under which screen,table and field can i get this information in CRM system.
    Useful answers will definitely be rewarded with points .
    Thanks,
    Abhinav.

    Dear RVI,
    when You run the report then You can add by ALV the following two field that are hidden:
    G/L Account     22     10
    G/L Account     23     10
    The first refers:
    General Ledger Account HKONT
        This field contains the number of the G/L account to which the
        transaction figures are updated.
    The second refers:
    G/L Account Number SAKNR
         The G/L account number identifies the G/L account in a chart of
         accounts.
    I hope this helps.
    Mauri

  • Is there a need to use a trim on a number field?

    Hi,
    Sorry if this question is a little basic - is there a need to use trim on a number field? The datatype of underlying columns is NUMBER(23,13). Please advise.
    Regards,
    hena

    One of these things is not like the others :-)
    Frank Kulash wrote:
    Hi,
    As Someonelese said, TRIM only applies to strings, not to NUMBERs.
    The following NUMBER literals are all equivalent:
    9
    9.
    9.0
    9.00000
    09
    009
    000009
    09.0
    009.0
    0.900 <<<--- Oops
    009.00
    If you have one of these literals anywhere in SQL code, you can change it to any of the others without changing the results or performance.

  • 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.

  • 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.

  • 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/

  • Tracking number field in the Default settings for items section

    I need to add the tracking number field in the Default settings for items section in the shopping cart creation transaction.
    Could you please tell me inw hich structure should I add the custom field ?
    thanks,
    Rita.

    Hi Atul,
    I added the code of tracking number in in the html template saplbbp_mon_sc 1200 with reference to the code of purchase org field.
    This added a field in the shopping cart report selection screen but without any description.
    I will further learn html code and try to bring in the description and then try to handle this field in the badi bbp_mon_sc after_selection_screen and after_selection method.
    Is this approach ok?
    <!-- purchase org. -->
        `TR()`
          `TD(class="label", nowrap="X")`<label for="GS_ITEM-PURCHASE_ORG"> `T_PURCHASE_ORG.label`</label>
          `TD(class="label", align = "right", nowrap="X")` <label for="GS_ITEM-PURCHASE_ORG"> </label>
          `TD(class="data",  nowrap="X")` <input type="text" id="GS_ITEM-PURCHASE_ORG" name="GS_ITEM-PURCHASE_ORG" value="`GS_ITEM-PURCHASE_ORG`" maxlength="14" size="14">
          `F4HelpButton(bbpformname, "GS_ITEM-PURCHASE_ORG", jsMaskString(strEnc(#SELECT_TEXT_SHELP_PUR_ORG)), jsMaskString(strEnc(#SELECT_SHELP_PUR_ORG)))`
         `TR()` `Lines(colspan2="2")`
    <!-- tracking no (added) -->
        `TR()`
          `TD(class="label", nowrap="X")`<label for="GS_ITEM-ZZBE_TRACKING_NO"> `T_TRACKING_NO.label`</label>
          `TD(class="label", align = "right", nowrap="X")` <label for="GS_ITEM-ZZBE_TRACKING_NO"> </label>
          `TD(class="data",  nowrap="X")` <input type="text" id="GS_ITEM-ZZBE_TRACKING_NO" name="GS_ITEM-ZZBE_TRACKING_NO" value="`GS_ITEM-ZZBE_TRACKING_NO`" maxlength="14" size="14">
          `F4HelpButton(bbpformname, "GS_ITEM-ZZBE_TRACKING_NO", jsMaskString(strEnc(#SELECT_TEXT_SHELP_PUR_ORG)), jsMaskString(strEnc(#SELECT_SHELP_PUR_ORG)))`
         `TR()` `Lines(colspan2="2")`

Maybe you are looking for