Align to Right

Hi,
I have some OAMessageTextInputBean (READ ONLY) fields containg a numbers, I want to have them all aligned to the RIGHT. I've written the following code (for one of them) on the Controller:
amtText = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("Subsistence");
amtText.setAttributeValue(H_ALIGN_ATTR, H_ALIGN_RIGHT);
but it does not work.
Could yopu kindly help me ?
Thanks a lot,
Rosanna.

Are these beans in a table or some other container?
Check thread column formatting in a table to make numeric value right aligned for a similar issue.
--Shiv                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • OWB export flat file with align to right

    Hi All
    I want to know if is possible to configure a metadata POSITIONAL FILE (Flat File) where every data is align to right, in a Mapping.
    I don't want to use a oracle function RPAD with Paletta Expression.
    Regards

    Hi,
    Based on my test, I can reproduce the similar issue in my environment. When we create the Flat File Connection Manager with the default settings, the data in flat file stops when goes to the Chinese characters.
    To fix the issue that makes the Chinese characters to actually get written into the flat file, we should check the Unicode checkbox on the right hand side of Locale property in Flat File Connection Manager. In this way, the flat file can display Chinese
    characters.
    The following screenshot is for your reference:
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • TextBlock does not aligns to right in DataGridTemplateColumn

    Hello guys here:
    I am currently running into a nasty issue. What I wanna achieve is to put two text blocks horizontally in a DataGridTemplateColumn and I wanna align the right text block text to the right. Here is my code:
    <DataGrid ItemsSource="{Binding Path=DVHParameters}"
                                        AutoGenerateColumns="False" 
                                        CanUserResizeColumns="False"
                                        CanUserSortColumns="False"
                                        CanUserReorderColumns="False"
                                        CanUserResizeRows="False"
                                        CanUserAddRows="False"
                                        CanUserDeleteRows="False"
                                        IsHitTestVisible="False"
                                        Visibility="{Binding DVHParametersVisibility}"
                                        Margin="0,0,0,8"
                                        Background="Transparent">
                                    <DataGrid.Columns>
                                        <DataGridTemplateColumn Header="                  ">
                                            <DataGridTemplateColumn.CellTemplate>
                                                <DataTemplate>
                                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch"
    >
                                                        <TextBlock Text="{Binding Parameter}" HorizontalAlignment="Left"/>
                                                        <TextBlock Margin="1,0,0,0" Foreground="Gray" Text="{Binding
    ValueUnit}"
                                                            HorizontalAlignment="Stretch" TextAlignment="Right"/>
                                                    </StackPanel>
                                                </DataTemplate>
                                            </DataGridTemplateColumn.CellTemplate>
                                        </DataGridTemplateColumn>
                                        <DataGridTextColumn Header="{x:Static local:TextResources.Prescribed}"
                                            Binding="{Binding Prescribed}"/>
                                        <DataGridTextColumn Header="{x:Static local:TextResources.Actual}" 
                                            Binding="{Binding Actual, StringFormat=F1}">
                                            <DataGridTextColumn.CellStyle>
                                                <Style TargetType="DataGridCell" BasedOn="{StaticResource DataGridCellStyle}">
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{Binding IsConformObjective}" Value="false">
                                                            <Setter Property="Foreground" Value="Red"/>
                                                            <Setter Property="FontWeight" Value="Bold"/>
                                                        </DataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </DataGridTextColumn.CellStyle>
                                        </DataGridTextColumn>
                                    </DataGrid.Columns>
                                </DataGrid>
    Any hints on how to fix this problem and control the width of the textblock in a DataGridTemplateColumn? Thanks in advance!
    Best regards

    I suggest you consider dockpanel because I think you can dock one textblock left and one right.
    Horzontalalignment stretch tries to stretch it to fit the container, don't use that.
    Bear in mind though that you could conceivably end up with one on top of the other if they don't fit.
    A grid with 2 columns might be safer.
    That'd look roughly like
    <DataGridTemplateColumn.CellTemplate>
    <DataTemplate>
    <toolkit:DockPanel >
    <TextBlock .... toolkit:DockPanel.Dock="Left"/>
    <TextBlock .... toolkit:DockPanel.Dock="Right"/>
    </StackPanel>
    </DataTemplate>
    You need a reference and xmlns 
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    or
    xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls"
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • XML Import is left aligning my right alignment style with an override, how do I force it to left?

    I'm importing an XML file, using the Import XML menu item, using InDesign CS4.
    In the document I've got a table, with an XML structure in the structure tree, matching in the incoming file. Everything works fine, except that after the 4 "template rows" that I've set up Indesign adds new rows automatically, and for all InDesign auto added rows, InDesign is not using the right alignment that I've set up in the paragraph style applied to the first rows... The style is kept, but overridden by a flush left. (Why?)
    How do I deal with this? I need the right column to go on right aligning
    Best regards, Andreas

    Map tags to styles took care of the problem.

  • CSS Drop down menu; how to align the right edge of drop down and parent menu?

    Hello everyone,
    I have a drop-down menu that is currently working well.
    The only change I need to make is to have the right edge of the  drop-down menu to align with the right edge of the parent menu. When you  hover over the menu, it currently "drops" down and to the right, with  the left edges aligned.
    I want the menu to "drop" down and to the left, so the right edges are aligned.
    I have tried fiddling with floats and absolute/relative positioning. I'm not sure what needs to be changed.
    Any help you can provide is greatly appreciated! I'm learning via "cut and paste", so please go easy on any terminology you may use.
    Thank you!
    Here is my code:
    .chromestyle{
         width: 100%;
         font-weight: bold;
         float: left;
         height: 29px;
    .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    .chromestyle ul{
    border: 0px solid #BBB;
    width: 100%;
    background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 4px 0;
    margin: 0;
    text-align: right; /*set value to "left", "center", or "right"*/
    .chromestyle ul li{
    display: inline;
    .chromestyle ul li a{
    color: #000000;
    padding: 4px 7px;
    margin: 0;
    text-decoration: none;
    border-left: 1px solid #DADADA;
    .chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
    background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
    /* ######### Style for Drop Down Menu ######### */
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    width: 200px;
    visibility: hidden;
    .dropmenudiv a{
    width: auto;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
    padding: 2px 5px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    * html .dropmenudiv a{ /*IE only hack*/
    width: 100%;
    .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
    background-color: #0000ff;
    color: #fff200;

    Try this:
    .chromestyle{
         font-weight: bold;
         height: 29px;
    .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    .chromestyle ul{
    border: 0px solid #BBB;
    width:100%;
    background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 4px 0;
    margin: 0;
    text-align: left; /*set value to "left", "center", or "right"*/
    .chromestyle ul li{
    display: inline;
    .chromestyle ul li a{
    color: #000000;
    padding: 4px 7px;
    margin: 0;
    text-decoration: none;
    border-left: 1px solid #DADADA;
    .chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
    background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
    /* ######### Style for Drop Down Menu ######### */
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    visibility: hidden;
    text-align:left;
    .dropmenudiv a{
    width: auto;
    display: block;
    border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
    padding: 3px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    * html .dropmenudiv a{ /*IE only hack*/
    width: 100%;
    .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
    background-color: #0000ff;
    color: #fff200;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Graph legend width change - Left aligned or right aligned

    Hello all,
    when I place an XY-Graph with Plot-Legend shown in LV2012, the text of the plot name is left aligned, wich is, what I want. With this behaviour the little pictures, representing the plot attributes, are fixed. After migrating to LV2014 I realized, that the text is now right aligned, which means, that the little pictures are moving to left & right, depending on the plot name length.
    I found no property controlling this behaviour.
    As a workaround I could set the plot legend position depending on its width, when the plot name is changed, but there is no event, firing when the plot name is changed by the user. So I would have to poll the plot names in the timeout case of my event structure. Btw. I have to show six XY- graphs on my FP, so polling can cause a remarkable CPU load (when I do it 1000 times / s ).
    Any suggestions?
    Greets, Dave

    Hello Dominik,
    thank you for your reply.
    I'd like to show you the problem with some pictures:
    The left picture shows the original situation, the right picture demonstrates the behaviour with LV2012, the legend is right aligned.
    The same situation in LV2014, the legend is right aligned.
    Greets, Dave

  • JTabbedPane tab alignment top - right hand side

    Hi all,
    On a JTabbedPane, I would like to force the tab alignment on the top right or left hand side. This is because on a mac the default alignment is centered. So I would like to force the alignment on top - right or top - left, which one ever comes easier.
    Any help or hints are appreciated
    Thanks
    Oscar

    The right, or the left? AFAIK, every platform other than the Mac aligns the tabs to the left. If you want Macs to behave the same way, you might be able to subclass MacTabbedPaneUI (or whatever they call it) and force it to use the LayoutManager from BasicTabbedPaneUI. Try this:
    import java.awt.LayoutManager;
    import javax.swing.UIManager;
    import javax.swing.plaf.basic.BasicTabbedPaneUI;
    import /* whatever the package is */MacTabbedPaneUI;
    public class LeftAlignedTabbedPaneUI extends MacTabbedPaneUI
      public static void initialize()
        String key = "TabbedPaneUI";
        Class cls = LeftAlignedTabbedPaneUI.class;
        String name = cls.getName();
        UIManager.put(key, name);
        UIManager.put(name, cls);
      protected LayoutManager createLayoutManager()
        return new BasicTabbedPaneUI.TabbedPaneLayout();
    }In your app's startup code, call LeftAlignedTabbedPaneUI.initialize(); if the L&F is set to Mac. If this doesn't work, you'll probably have to write your own LayoutManager. And if you really want the tabs right-aligned, you'll definitely have to write your own LayoutManager.

  • Preview image aligns to right!

    please help! (how dramatic) - my preview image aligns to the right, and I can't do nothing with it!
    I have a single monitor, and the options for the second one is grayed out but says "secondary viewer - desktop". I don't know if that's the problem, or something else.
    the viewer also set to "show one".
    how can I revert it to be aligned to center?
    please, any suggestions?

    anyone?!
    reinstalled aperture, but still aperture thinks I have another monitor / viewer, but won't let me change how it's used, as it grayed out.
    is there a way to completely remove all aperture prefs. and reinstall cleaner? after last reinstall the welcome splash screen doesnt show, as I previously marked it not to show, meaning the re installation wasn't clean and there were leftover data. how can I clean up all the data regarding aperture?
    anything?

  • Orientation change button align from right to left

    Hi,
    On vertical view I want the button to be aligned to the right,
    and when is horizontal, align the button to the left
    I have put this code in the orientationchange event:
    if(window.innerHeight > window.innerWidth){
        sym.$("btnDeal").css('right', '10px');  // vertical
    } else {
       sym.$("btnDeal").css('left', '80px');  // horizontal
    I open the site in vertical mode, button looks good,
    change orientation to horizontal then the button change position, looks good
    now I put vertical again, this time the button is wrong, it stayed to the left, should go to the right.
    any change in the orientation the button keeps to the left
    please help, What Im doing wrong?
    thanks

    Please don't do that: https://wiki.archlinux.org/index.php/Fo … te#Bumping

  • Why buttons are not aligned in right way

    Hi HTMLDB Team,
    I am facing the similar problem when add buttons for the form in rounded template region.How can align them in a row .
    Plz help me at your earliest,
    Eman

    Hi,
    If your are using same profit center group(which is used in standard hierarchy) in alternate hierarchy,you will see change.
    if your using different groups in Standard hierarchy and Alternate hierarchy you will not see change in alternate hierarchy.
    hope this helps you.
    Thanks,
    Rau

  • Placing a JButton inside a JTextfield aligned to right

    hi,
    i would like to add a JButton inside a JTextField. Actually the textfield shows the current path to which image is saved. So to get a file browser, user will click a small button present inside the textfield and selects the file and simultaneously the text of jtextfield is updated.
    i tried of using jTextField1.add(jButton1); but it has no effect. Neither button was displayed nor any error message was displayed.
    So plzz help me out. thanx

    You shouldn't try to put the JButton in the JTextField. A JTextField isn't meant to hold other components.
    Create a JPanel and add the JTextField and the JButton to it.

  • Align right in PDF file

    I am very confused by the right alignment of the PDF file.
    When we display a number, generally we will align it right. It looks fine on the report preview. But when I generate a PDF file from the report server, the data will not be aligned right very well. The data with one~two numbers indents a little comparing with the data with six or more numbers. Even these data comes from the same repeating frame.
    Please let me know if you have any suggestion or ever resolved it. Thanks in advance!
    Best regards,
    Stev.

    Have you made sure that the Reports Server is running not as 'LocalSystem', but instead as a user that has access to a printer driver in the services panel. This type of issue is frequently caused by using screen rather than printer information to render the output.
    Hope this helps,
    Danny

  • 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

  • Column's Right Alignment goes out with CR in format Mask like NNN,NN0.00CR

    I am working in Reports 6i. For a numeric calculated column, I give format mask NNNN,NNN,NNN,NN0.00CR. Due to CR, right alignment of the column goes out. That is rows for which CR is NOT printer are also aligned at right. A blank space should be left at the end of every row when no CR is printer. In this way numeric data is right aligned and readability is not disturbed.
    Pl. help.
    Thanks in anticipation.

    I am working in Reports 6i. For a numeric calculated column, I give format mask NNNN,NNN,NNN,NN0.00CR. Due to CR, right alignment of the column goes out. That is rows for which CR is NOT printer are also aligned at right. A blank space should be left at the end of every row when no CR is printer. In this way numeric data is right aligned and readability is not disturbed.
    Pl. help.
    Thanks in anticipation.
    Muhammad,
    I tried this on 6.0.8.14.2 version of Reports 6i and it aligned properly (i.e., spaces where present for those values without CR). I originally had the Arial font which as you know is not a fixed font and in this case, the spacing was not exact. I switched to Courier and the output was much more readable for the numeric values, especially with the spacing.
    Regards,
    Jim Safcik
    Thanks Jim Safcik. I changed the font of that column to Courier and it resolved the problem. But I am using Times New Roman font which creates above alignment problem.
    It would be nice if we have an other solution which is NOT font dependent.
    However I appreciate your guidance and knowledge.
    Pl. guide.
    Thanks.

  • Right alignment for OO tree column

    Hi experts,
    how can i align the data of type characters in the OO tree alv display? i want to align it to the right.
    Thanks.

    Hello,
    Set Alignment of the Text in the Column
    You are able to set where the content of a column will be put:
    ·        Left aligned
    ·        Centered
    ·        Right-aligned
    You are able to change the alignment of text in the design object (header and footer area of page or list) and in the ALV output.
    Use the method CL_SALV_COLUMN SET_ALIGNMENT
    Check
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

Maybe you are looking for

  • Regarding activation of windows 8 single language 9200

    I recently bought LENOVO g580 lappy with windows 8 os but now it is showing an alert that its gonna expire on 5-12-2013 i couldn't understand why  it is showing an error message of named file doesnot exist(error---0x8007007B i have bought it recently

  • Adobe Bridge CC crashes on OSX Mavericks

    Adobe Bridge CC consistently crashes on OSX Mavericks. Crashes soon after launch. Tried uninstall and reinstall and to no avail. Crash log generated below. Thanks. Process:         Adobe Bridge CC [586] Path:            /Applications/Adobe Bridge CC/

  • Strange problem when using custom authentication schema

    Hello, I'm building a custom authentication system for the application. Basically, I followed the blog post from Martin: http://www.talkapex.com/2009/03/custom-authentication-status.html However, the authentication seems working fine at the beginning

  • How to make reason code compulsory while processing F-53

    Hi Boss, Can u plz. tell me How to make reason code compulsory while processing F-53. this is because I have defined differnet reason code and one is having blank text. Thanks S

  • I installed Photoshop CC on my iMac, where did it go?

    I installed Photoshop CC on my iMac, added it to my dashboard, and when I restarted my computer, all I had left was a semi transparent question mark, instead of the Ps icon.  Went into my applications folder, and Photoshop is not there.     I logged