Right-justify number columns in BC4J

I have several JSP pages that I am using BC4J tags in. I want to right justify all dollar columns. In addition, I want some columns to have a default width regardless of the data in them. For instance, even if a column has 'Test' in it, I want it to have a display width of 50.
How can I accomplish these two things?
Thanks,
Brett

Sounds like you might want to add properties to the attributes in your VO. If you set up some properties to hold values for alignment and width for each column, you can just interogate these values when you render the JSP and writre them into the HTML.
Matt

Similar Messages

  • Pda right justify number WM5.0 and LV PDA 8.0

    Hi :
    I'm trying to Right-justify a number indicator (U32) on my PDA application but I'm having hard time achieveing this ... I have tried what this thread suggests and it doesn't work ... I'm using WM 5.0 and LV 8.0 so that might have something to do with it.  Any suggestions or solutions?  I've thought of converting the display to a string and pad the left side with spaces, but I would rather not do that ... thanks in advance.
    Greycat

    This was reported to R&D (# 3XEBK4G8) and was fixed in LabVIEW 8.2 PDA. Here is a link to the current evaluation software download for LabVIEW.
    Thanks!
    Travis H.
    LabVIEW R&D
    National Instruments

  • Right Justify a column in a JTable

    Hello,
    I formatted a decimal number and want to put it into a column in a JTable. Unfortunately, the value is being left justified. How do I make the data for the column right justitified?

    Thank you both for your answers. I had looked in the tutorial, but could not find the area for justifications. I did have a table model with a getColumnClass too, but didnt realize that I didnt have to use the actual data type's class to render the justification.
    Looking back at the tutorial, I now find that ImageIcon is supposed to be used for centering, but this didnt work. It wiped out the data for the column I tried to use it on rather than justifying it left or right. Any ideas how to get centering to work?

  • Right-justify column name

    Hello Gurus
       I would like to right-justify the column heading. How can I do this? Specifically, this refers to the Quantity field in the Items assignment block in the Opportunities Overview screen.
    Regards,
    Sowmiya

    Try using LPAD like
    select lpad(object_name,30) from all_objects where rownum < 20;

  • Styled Text right justify for numbers

    I have a Sytled Text element in my UI that I use to store numbers and i would like to right justify the column so that the values line up properly. I'm using 11.5.10.

    i see it gets rendered this way
    <td class="x11 x50">
    < span ...... 10.0 </span>

  • How to get search help results in RIGHT-JUSTIFIED column

    I am writing a search help with search help exit. Therefore, I use a table lets say tabA. I don't need all fields of tabA but need some further fields which I fill during exit.
    tabA does not have currency or number fields.
    I need a currency field and use a char20 field of tabA instead. filling of this field and showing results is o.k., but of-course it is shown left-justified.
    I did not find any fields of shlp-fielddescr which sounds like left/centered/right-alignment. Another try was to fill char20 field with leading '_' signs - that looked terrible and was not right-justified either, because of not fixed-size font.
    Let's resume: there is no number or currency field which I can use. The shown results appear in a column of not fixed-size font.
    Any other idea?

    Hi, I have the same problem. Did you get to resolve it? . Thanks

  • How to align Hgrid column(messagestyledtext) header text to right justified

    Hi All,
    I have a Hgrid table and i am using five columns in hgrid table.. I need to display column header text right justified. but by default it is left justified.
    Can any one tell me how to do it..
    Its very urgent.. Please help me out..
    Regards,
    Babu

    Use
    OAHGridBean GeneralHgrid=(OAHGridBean)webBean.findChildRecursive("<hgrid item name>");
    GeneralHgrid.prepareForRendering(pageContext);
    DataObjectList tableColumnFormats =GeneralHgrid.getColumnFormats();
    DictionaryData tableColumnFormat = (oracle.cabo.ui.data.DictionaryData)tableColumnFormats.getItem(pageContext.findChildIndex(GeneralHgrid, "<item id of item attached in hgrid column>"));
    tableColumnFormat.put(COLUMN_DATA_FORMAT_KEY, <enter format>);
    see below:
    �� TEXT_FORMAT (textFormat)- column content is Start justified.
    �� NUMBER_FORMAT (numberFormat)- column content is Right justified.
    �� ICON_BUTTON_FORMAT (iconButtonFormat)- column content is center justified.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Wrting data right justified column

    Hi
    In my application I am using producer consumer loop architechture. In the consumer loop i am writn data from a queue to a file. I want to write data in a certain format to analyze in another program.   Now when i write dat to a file it writes left justified in six columns. I want it to write to file like the one i have attached. Can somebody tell me how?
    Attachments:
    data.PNG ‏53 KB

    Ideally, you would just use a tab as delimiter and change the justification in the other program as needed. For example in MS word you can define how the tabs are justified.
    If you want the data right justified in simple text displays (wordpad, notepad), you just need to ensure that the field width is sufficient for the widest data.
    Try e.g. a format specifier of "%#15_6f' (and make sure that you use a fixed width font for display!)
    Message Edited by altenbach on 10-08-2008 09:53 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    formatRight.png ‏15 KB

  • Left and right justifiation in alv grid

    I m using alv grid to display a tbale.I have to justify one perticular cell depending on value.So i have to first check the value of that field in itab and then justify right or left accordingly.
    Therefore , i cnt use just field of field catalog as im not goin to justify whole column.
    I tried to save justified value in itab  and then display in alv but alv doesnt display white space charaters in start and end.
    Could you help me with this topic.
    regards

    hii,
    i think this is not possible.

  • Sort options right justified in list view

    New to Maverick's, but I can't get my finder window to "stick" with the layout of the "sort options". My biggest beef is that I have the "Name" sort far left followed by "Date modified", etc.. yet every day in every new finder window, the 2nd sort jumps to right justified. I want this sort option to stick to the left alongside name. I use large monitors and scrolling over everytime to drag the sort modifier to the left is frustrating. Is there a solution?

    My guess would be the Images folder (Pictures in English) is designed to have the special, contextual grouping types.
    I don't know why they couldn't make them available in the dropdown menu, also, but they're not.
    I did a little testing and found if I called it Pictures unsorted, the options were available, but if I called the folder unsorted Pictures, they weren't.
    Try naming the folder starting with Images
    Edit: If I select the dimension and resolution column headers in the folder, then change the name of the folder, the columns are retained.

  • My "Messages" are all right justified.  How do I get them left justified?

    My "Messages" are all right justified.  How do I get them left justified?

    Hi,
    To be clear and for other readers,  Messages has dropped the number of Styles to three.
    Compact and Boxes are styles that have you and the Chatee on the left and the messages themselves are left justified.
    Balloons is the default (Speech bubble stylee), as mentioned, and your part of the chat or conversation is on the right but is also Right Justified.
    Part chat example
    9:31 PM      Friday; May 31, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Lpad .. correct use to right justify a char field?

    Hi all,
    I have a column that's a char type, and I'm trying to manipulate justification within it.
    SQL> create table test (test char(14));
    Table created.
    SQL> insert into test values (' 001234567890');
    1 row created.
    SQL> select * from test;
    TEST
    001234567890
    ..I have no probs making it left justified using ltrim
    SQL> update test set test=ltrim(test);
    1 row updated.
    SQL> select * from test;
    TEST
    001234567890
    ...but when I try to right justify using lpad I can't get it to work:
    SQL> update test set test=lpad(test,14,' ');
    1 row updated.
    SQL> select * from test;
    TEST
    001234567890
    ..this should pad the column with blanks to make the string 14 in length right?
    What am I doing wrong?
    Thanks !
    Adam

    Hi, Adam,
    A CHAR (14) column is always 14 characters long. If you insert a shorter string, it is automatically RPADded.
    If LENGTH (test) = 14, then
    lpad(test,14,' ')
    simply returns test. So your UPDATE statement is equivalent to
    update test set test= test;
    Every row will get UPDATEd, but nothing will get changed.
    To have the strings left-padded, use LPAD before INSERTing, or use UPDATE wtih LPAD and TRIM, like this:
    UPDATE  test
    SET     test = LPAD ( RTRIM (test)
                        , 14
                        );

  • Object Version Number  column

    Hi all,
    In the OAF dev guide,they have given some information on object version number column which can be used to store the version of the row data entered.
    This can be achieved by mapping a attribute to ObjectVersionNumber attribute.
    I tried mapping it i didn't see any attribute with the name ObjectVersionNumber in the BC4j EO wizard.
    Can somebody please give more information on this
    And do correct me if i gone wrong somewhere
    Thanks in advance
    Ashwini

    Another use of this column is to maintain the history record. So each time you update the record, another record with same primary key, but with an increased OVN.
    --Shiv                                                                                                                                                                                                                                                                                                                                                       

  • Right justified data into internal table

    **Hello Gurus,**
    I have an Internal table having data
    abc          10.00;   20.00    30.00
    def           20.00    00.00     40.00
    Total        30.00    20.00     70.00
    I want  to align my "Total" word to be right justified.
    and if the particular column is having "00.00"; amount it should not be display.
    and i want to bold the particular row only. i.e. my "Total" should be bold.
    can anybody help me to resolve this problem
    Thanks in adv.
    Kaustubh

    Hi Kaustubh,
    As Vijay said, you can specify your display conditions in ALV as the snippet shows...But, In fact u need not even populate the total field in the third row...
    While creating the field catalog, just assign 'X' to the do_sum option in the field catalog...then simply pass the internal table containing the first two records in to the REUSE_ALV* FMs and the ALV would sum these columns up and show the total in standard formatting...saves you a lot of code
    Eg. Lets say your fieldcatalog structure is wa_fieldcat and its table is it_fieldcat...u will need to do this while preparing the fcat...
      WA_FIELDCAT-FIELDNAME = 'WA_ITAB-COL1'.  --> the field u want to sum.
      WA_FIELDCAT-TABNAME = 'ITAB'.  --> Your Internal Table
      WA_FIELDCAT-DO_SUM = 'X'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-FIELDNAME = 'WA_ITAB-COL2'.
      WA_FIELDCAT-TABNAME = 'ITAB'.
      WA_FIELDCAT-DO_SUM = 'X'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
    The FM would then generate the ALV with the columns summed up at the bottom. The best part is it takes care of the currency and quantity reference too...
    Hope it helps out...
    Regards...Jaison

  • How can the numbers in numbered lists be right-justified?

    In numbered lists, the numbers are by default left-justified. Is there a way to make the numbers in a given list right-justified, so the periods line up? Is there a way to change the default?

    As a writer, I also need to be able to have the numbers in a list line up in an acceptable word processing way, so that the decimal points line up when you get to 2 digits.
    8.
    9.
    10.
    I do not want it to look like this.  I have had to work around by numbering a long list with alphabet letters.
    On another occasion, I created my list using 2 columns in numbers, where the numbers automatically right justify.  Then pasted it into my pages document.
    I don't want to have to do that.  AND I don't want to have to deal with tabs.  I should be able to handle this in Preferences, or Inspector, where I handle most everything else.    If I can, I can't figure it out, and there doesn't seem to be a help in the manual or Help menu.
    Perhaps I'm out of date and it is now proper to not have the decimal point line up????  Don't think so.
    Message was edited by: suzannefrombrooksville

Maybe you are looking for

  • Ipad mini syncing issues with itunes : (x) items could not be synced

    I'm using ipad mini (non retina) 16GB with itunes 11.2.2.3. I had downloaded some games from itunes like asphalt 8, GT racing 2, infinity blade, real racing 3, dead trigger 2, and apps like garageband. When i tried to sync these games with my ipad. e

  • In purchase register i need material wise Gl wise amount in amount

    In Miro transaction when i see line items I.e i can display Material, PO number and amount. If i click on follow on documents i can display GL wise amount. Now my requirement is for each material what is the GR/IR Gl and its amount. Cenvat GL and its

  • Shared vs dedicated server

    Any reason to select one over the other? The reason I'm asking is because two texts that I have which were not written by Oracle suggest using dedicated server processes, while all of the Oracle-written texts suggest shared (although I did finally fi

  • Could not save ".afpDeleted1354638" because write access was not granted.

    Running Cs5.5 on Mac OS X 10.6.8 and I got this message. i get 'this file has been altered ...' messages quite a lot when saving, but have not seen an ".afpDeleted1354638" message before. Anybody else come across it?

  • Two problems after Carbon Copy Cloner use

    After replacing a dead hard drive in my MacBook Pro. I used CCCloner to copy the hard drive from my iMac to the macbook. Everything is great with two exceptions. 1) I can no longer print to my shared printer over WiFi. The printer is hardwired to the