Right aligning one item in a VerticalLayout container?

Hi All,
I've got a container with a VerticalLayout.  I want all of the items to be left-aligned, except for the first one, which I want to be right-aligned.
Is there a way to make that first item right-aligned?  If this were HTML I might put float:right on the item and make the following items clear:both, and that would do it.  But I'm not sure how to do it in Flex.  Can anyone give me some insight?
Thanks!
  -Josh

You can put it inside another container and right align that.

Similar Messages

  • Align page item to region right edge.

    Hi gurus
    I have a region that has just one page item and I want to align it to right edge of its region.
    How can I do that?
    Thanks in advance
    Oscar

    Maheswara,
    Thanks for your answer.
    Really my region is a reports region of item-above-region-content type.
    And the only page item has to be right-aligned to match rigthmost columns.
    Can this info helps you?
    Oscar

  • "one or more of the items in your selection contains Aperture albums that are not supported in iphoto".

    I have some folders in iPhoto called 'Recovered Folder'. When I try to delete them I get this message: "one or more of the items in your selection contains Aperture albums that are not supported in iphoto".
    I don't use Aperture (did install it to try it out), and have deleted Aperture App from my Mac.
    How can I get rid of these fodlers?

    i finally figured this out:
    fyi, iphoto and aperture can now share (i.e., access) the same library. apple details it here:
    http://support.apple.com/kb/HT5260?viewlocale=en_US&locale=en_US
    i use both iphoto and aperture, and i suspect something went amiss, at some point, while aperture was accessing my iphoto library.
    this is how i fixed the problem:
    i launched aperture, then (per the instructions linked above) switched to (i.e., accessed) my iphoto library. i was then able to delete the "recovered folder" and the album it contained. i then quit aperture and relaunched iphoto.
    NOTE: at that time, although i expected the "recovered folder" to be gone, it was still present. but this time, i was able to delete the folder from within iphoto without the "contains aperture items" error message.
    (Sparky030405, i realize you've since deleted aperture. while i can't say my method is the *only* way to solve this problem, it's the way i was able to solve it. so, you might consider reinstalling aperture in order to delete the folder, then uninstalling aperture, once again.)

  • HT204088 Refer to Invoice: 116048258795, Order: MGX5VZ00Q9, Date 23/02/13 02:52 Kindly pls. check I was double charged the item twice. I had ordered one item at $5.99. not $11.98 to charged me. please correct the right number too, thx.

    Refer to above detail;
         please correct the right item to charge me. I order only the one item cost $5.99 not two items.
    yours sincerelys
    Thanon Vi.

    We are itunes users just like you.  We can do nothing
    You need to contact itunes support.
    Apple - Support - iTunes - Contact Us

  • Is it possible to use tabs to right align text in Muse, as you can in InDesign?

    Can I use tabs to right align text in Muse, as you can in InDesign?
    I have a beauty treatment followed by a price and I want to right align the price, keeping the treatment on the left of the text box.
    Thank you!

    For what would typically be a two column tab stop layout, I'd generally use inline text frames and the Wrap panel.
    Put the price in it's own text frame. Then cut and paste the text frame BEFORE the item name so it's an inline text frame within the text frame containing the descriptions.Using the Wrap panel set it to float to the right. Then select it and set the right offset so it floats outside the right side of the original text frame.
    Start with this.
    Cut and paste the text frame at the start of the item paragraph.
    Choose the third icon in the Wrap panel to cause the item to float to the right of the text frame.
    Turn off the lock for the 4 wrap offset values.
    Adjust the right offset to a negative value so the item is outside the text frame to the right (to wherever you want it).
    Repeat the same steps above for the other items.
    Note that once it's set up this way you can freely edit the descriptions or change the width of the original text frame and the prices will adjust accordingly. This will also result in things lining up in the browser even if the text layout engine of a specific browser line breaks the text differently.
    This approach is tedious, but the end result will continue to line up as you make changes in Design view and will line up in every browser/OS/device.
    Someday Muse will support tables, which would be the more natural way to achieve this style of layout on the web. Until then, inline items with wrap is usually the best approach for this type of two column layout.

  • Right aligned text in textfield

    Hi,
    I'm trying to set the text in a textfield to be right-aligned, as it is a number textfield. I'm trying to do this with awt only (as opposed to Swing).
    As our number system is Arabic, I figured on doing the following:
    <code>
    txtfld.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
    </code>
    However, that didn't do the trick, though I'm deuced if I know why!
    Any other suggestions?
    Cheers

    DrClap wrote:
    ...Arabic numerals are the ones like 0, 1, 2, and so that are used all over the Western world...Actually, no. I always thought that, too, but I just learned that most Arabic nations use "Arabic-Indic" digits to represent numbers, not the so-called Arabic digits we use in the West (I think I'll just call those "ASCII digits" from now on). However, they are written left-to-right, not right-to-left like the rest of Arabic script. @OP, if this textfield is to contain only digits, you may want to change its internal alignment instead of its orientation. Unfortunately, I don't know how to do that with an AWT TextField.

  • How To Right Align Images In A Cell?

    I am a very amateur (i.e. occasional) web site developer using Dreamweaver CS3 and would be very grateful for any advice on the following.
    Several years ago I put together a very simple one page web site using HTML 4.01 transitional and consisting of a single table (width=100%) with several rows. This web site is number one in Google for it's keywords, takes lots of hits every week and because of it's simplicity and the version of HTML used displays well in most web browsers.
    The top row of the main table contains a logo which is displayed left-aligned. The web site owner has given in three more images which he would like to go in to the same row but right-aligned. Could anyone point me to info on how to do implement this very simply, preferrably without CSS (although I have a feeling I will probably have to use CSS in the end).

    ...or you could just modify the <td> tag in your stylesheet: td { text-align: right; }
    Of course that would affect all the <td> tags throughout your document or your site, depending on where your stylesheet is (embedded in the head of your document or in an external css file). So, mostly contextual selectors are used to specify which <td> tags your want to modify. For example,
    #content td { text-align: right; }
    will modify only the <td> tags in the content section.
    With this method, you do not add any markup to your <td> tags in your html document, so your code remains uncluttered.
    Also, the align attribute is still frequently used with the <td> tag. For example, <td align="right">. This attribute is deprecated and will not validate with a strict xhtml doc type. It's not a great sin to use it, but keeping up with standards is a good goal. Again, it adds unnecessary markup to your document. Presentation should be handled with css.

  • How do I right align the component af:navigationPane?

    First I should say that I use Jdeveloper Studio Edition Version 11.1.1.0.1.
    I have a template that in one place in the template contain these components
    <afh:cellFormat halign="right">
    <af:navigationPane>
    <af:commandNavigationItem/>
    <af:commandNavigationItem/>
    <af:commandNavigationItem/>
    <af:commandNavigationItem/>
    </af:navigationPane>
    </afh:cellFormat>
    I want to right align the cellformat and navigationPane which has the hint property set to bar. I have tried to set the Halign property of the cellFormat to right and if I have an outputText inside the cellformat it gets right aligned so I guess that works but I cant get the commandNavigationItems to right align inside the navigationPane. I have tried to set the the text-align:right; in the navigationPane but that doesn´t work. The only thing that seems to work is to set the width of the last cellformat but since the width of one of the commandNavigationItems varies it isnt a good solution either. Can´t right alignment be done with a navigationPane? Should I choose some other component instead? In case I could use another component instead, which component has similar functionality and can be right aligned?
    Atlantic Viking
    Edited by: Atlantic Viking on Feb 3, 2009 7:22 AM

    Hi,
    I have tried the sample for this :
    <af:panelGroupLayout id="pgl41" layout="horizontal" halign="right">
    <af:navigationPane id="np1" hint="tabs">
    <af:commandNavigationItem id="cn1" text="Test1"/>
    <af:commandNavigationItem id="cn2" text="Test2"/>
    <af:commandNavigationItem id="cn3" text="Test3"/>
    <af:commandNavigationItem id="cn4" text="Test4"/>
    </af:navigationPane>
    </af:panelGroupLayout>
    It works fine.
    Is it af:navigationPage(new tag) or af:navigationPane.

  • Tabs Won't Work Right Aligned JPanel

    Hello
    I'm tring to setup a JPanel using a style object for formating, JPanel.setLogicalStyle(styleimade);, and I haver everything working beautifuly for a left alligned panel, but when I attempt to work with tabs on a panel that is right aligned, StyleConstants.setAlignment(styleimade, ALIGN_RIGHT), I can't seem to get tabs to work at all. Using StyleConstants.setTabSet(styleimade, atabsetimade) to set the tabs. When I make my tabset it doesn't matter what I have my tabstops set to the indention doesn't change. When I set the alignment back to left, the tabs start to work.
    When I try to do a search on documentation I naturally get a huge list of tabpanels, and can't seeem to find anything on this particular subject.
    Any suggestions or links to other forums would be a huge help.
    Thank you in advance!

    Ok, I had thought it meant I need to be able to compile and execture the code.
    Here it is...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.lang.Object.*;
    import java.util.*;
    //enxtends JFrame because it is a window, Implements KeyListener, ActionListener
    //so it can accept keyed input.
    public class testGUI extends JFrame {
        //stores the device that this window is using to display itself.
        GraphicsDevice device;
        //both are used to store the height and width of the screen
        int ScreenHeight;
        int ScreenWidth;
        //create a bool to hold if the screen should be fullscreen or not
        boolean fullscreen = true;
        //create colors to hold default colors
        Color Blue;
        Color Orange;
        Color Black;
        //create text panels that will be displayed on the screen
        JTextPane TopLeft;
        StyledDocument DocTopLeft;
        //pass a graphics device so it knows which screen to take, the number of the
        //current display so it knows what to name the window, the height of the
        //current screen, and width so it can use that to set objects
        public testGUI(GraphicsDevice device, String NumberOfDisplay,
                              int WindowHeight, int WindowWidth) {
            //set the name and size of the screen.
            super("Screen " + NumberOfDisplay);
         setSize(800,600);
            //set the screenheight and width data types
            ScreenHeight = WindowHeight;
            ScreenWidth = WindowWidth;
            //start up everything is Design view
            //initComponents();
            //set the screen up
            setScreen();
            //setLocationRelativeTo nothing so the screen will center
         setLocationRelativeTo(null);
            //set the device for this window to the device passed to the class
            this.device = device;
            //when a close is initiated, exit
         setDefaultCloseOperation(EXIT_ON_CLOSE);    
            //as default show the screen
            setVisible(true);
        }//end default constructor
        public void setScreen() {
            //What happens when the X is clicked
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            //set the colors for this window
            Blue = new Color(0, 0, 204);
            Orange = new Color(244, 143, 0);
            Black = new Color(0, 0, 0);
            //change backgruond color of screen
            this.setBackground(Orange);
            this.getContentPane().setBackground(Orange);
    //....................................................Settings for TopLeft Pane
            //create the setup the panel
            TopLeft = new JTextPane();
            TopLeft.setEditable(false);
            TopLeft.setFocusable(false);
            TopLeft.setBackground(Orange);
            TopLeft.setPreferredSize(new java.awt.Dimension(((int) (ScreenWidth * .6)), ((int) (ScreenHeight * .6))));
            TopLeft.setDisabledTextColor(Black);
            //set Document to TopLeft
            DocTopLeft = TopLeft.getStyledDocument();
            //Create a list to hold tabstops
            java.util.List TabListLeft = new ArrayList();
            //create a tabstop, using the screen as a reference
            TabStop tstop = new TabStop(((int) (ScreenWidth * .25)), TabStop.ALIGN_CENTER, TabStop.LEAD_NONE);
            TabListLeft.add(tstop);
            //create another tab stop
            tstop = new TabStop(((int) (ScreenWidth * .33)), TabStop.ALIGN_CENTER, TabStop.LEAD_NONE);
            TabListLeft.add(tstop);
            //creating tab stop
            tstop = new TabStop(((int) (ScreenWidth * .41)), TabStop.ALIGN_CENTER, TabStop.LEAD_NONE);
            TabListLeft.add(tstop);
            //create a tab
            tstop = new TabStop(((int) (ScreenWidth * .49)), TabStop.ALIGN_CENTER, TabStop.LEAD_NONE);
            TabListLeft.add(tstop);       
            // Create a tab set from the tab stops that were made above
            TabStop[] TabStopsLeft = (TabStop[])TabListLeft.toArray(new TabStop[0]);
            TabSet TabsLeft = new TabSet(TabStopsLeft);
            // Add the tab set to the logical style;
            // the logical style is inherited by all paragraphs
            Style StyleTopLeft = TopLeft.getLogicalStyle();
            StyleConstants.setAlignment(StyleTopLeft, StyleConstants.ALIGN_RIGHT);
            StyleConstants.setTabSet(StyleTopLeft, TabsLeft);
            TopLeft.setLogicalStyle(StyleTopLeft);
            //add styles to document, in this case, it is just fonts formating
            addStylesToDocument(DocTopLeft);
            //insert text into the JPanels
            try{
                    //start with text pane at top left
                    DocTopLeft.insertString(TopLeft.getCaretPosition(), "Test", DocTopLeft.getStyle("titles"));
                    DocTopLeft.insertString(TopLeft.getCaretPosition(), ("\n\t" + "test\ttest\ttest"), DocTopLeft.getStyle("maintext"));
                    DocTopLeft.insertString(TopLeft.getCaretPosition(), "\n Test", DocTopLeft.getStyle("subtitles"));
                    DocTopLeft.insertString(TopLeft.getCaretPosition(), ("\t" + "test\ttest"), DocTopLeft.getStyle("maintext"));
                    }//end of try block for string insertion
            //I know I'm cheap there is no exception catch here
            //but the user doesn't edit anything so how can it be at the wrong location?!
            catch(Exception e) { }       
            //Make a layout that is based on things added to it
            GroupLayout layout = new GroupLayout(getContentPane());
            //set the layout for MenuDisplayGUI to the layout created above
            getContentPane().setLayout(layout);
            //Left and right                                    left and right
            layout.setHorizontalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createParallelGroup()
                    //create a sequential group that will hold all text boxes
                    .addGroup(layout.createSequentialGroup()
                        //create a paralle group to hold everyting on the left
                        .addGroup(layout.createParallelGroup()
                            .addComponent(TopLeft)
                            )//end of parallel group holding everything on left of screen
                        //.addContainerGap(1, Short.MAX_VALUE)
                    )//end of parallel group holding everything horizontally
            ));//close of layout.setHorizontalGroup
            //UP AND DOWN!!!                                      UP AND DOWN
            layout.setVerticalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    //create a sequential group to contain the items vertically
                    .addGroup(layout.createSequentialGroup() 
                        //create a paralle group to hold the items at the top of the screen
                        .addGroup(layout.createParallelGroup()
                            //add the item at the top left
                            .addComponent(TopLeft)
                            )//end of parallel group holding the two top items
                            //.addContainerGap(1, Short.MAX_VALUE)
                        )//end of sequential group holding everything vertically
            );//close of setVerticalGroup
            pack();
        }//end member function setScreen
        protected void addStylesToDocument(StyledDocument doc) {
            //create the defualt style that all other styles will build off of
            Style def = StyleContext.getDefaultStyleContext().
                            getStyle(StyleContext.DEFAULT_STYLE);
            //create the baseline for your style type
            Style regular = doc.addStyle("regular", def);
            StyleConstants.setFontFamily(def, "Sans");
            StyleConstants.setBold(def, true);
            //create a style used for titles, set the font
            Style titles = doc.addStyle("titles", regular);
            StyleConstants.setFontSize(titles, ((int) (ScreenWidth * .05)));
            StyleConstants.setForeground(titles, Blue);
            //create a style for subtitles
            Style subtitles = doc.addStyle("subtitles", regular);
            StyleConstants.setFontSize(subtitles, ((int) (ScreenWidth * .025)));
            //create a style for all of the rest of the text
            Style maintext = doc.addStyle("maintext", regular);
            StyleConstants.setFontSize(maintext, ((int) (ScreenHeight * .025)));
        }//end of member class addStyleToDocument   
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 400, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 300, Short.MAX_VALUE)
            pack();
        }// </editor-fold>                       
        * @param args the command line arguments
    public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    try {
                            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                    }//end try block
                    catch (Exception ex) {
                            System.out.println(ex);
                    }//end catch block
                    //get the graphics enviroment for this local computer
                    GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
                    //create an array of graphics devices for all the "screen devices"
                    //in the env Graphics enviroment
              GraphicsDevice[] devices = env.getScreenDevices();
                    //create an integer for looping
                    int loop = 0;
                    //create a vector to hold multipe MenuDisplayGuis for systems
                    //that use multiple screen
                    Vector DisplayWindows;
                    DisplayWindows = new Vector();
                    //create a display mode which will later pass the height
                    //and width of the window to the MenuDisplayGUI object
                    DisplayMode DM;
                    //loop through all of the display devices on the local computer
                    //create a window for each screen
                    while( loop < devices.length ) {
                        //change the displaymode to the current display mode
                        DM = devices[loop].getDisplayMode();
                        //put a MenuDisplayGUI Window into the DisplyWindows vector
                        //for each display device that is on the computer. Pass the
                        //current iteration in this loop to the MenuDisplayGUI
                        //that is being created so it can name itself according to
                        //number, send the screen height and width to handle
                        //position of objects.
                        DisplayWindows.addElement(new testGUI(devices[loop],
                                                  String.valueOf(loop + 1),
                                                  DM.getHeight(), DM.getWidth()));
                        //iterate the loop
                        loop++;
                    }//end while loop
                }//end run block
        }//end static main
    }

  • Right alignment with SpringLayout

    I've just started playing with SpringLayout. I've been using mostly BoxLayout up to now but I thought it was time I gave an alternative a go. BoxLayout has it's own erratic sizing problems.
    Anyway I'm trying to generate a sub panel like:
    Title (centered)
    Quantity1 888
    Quantity2 99
    <Table> <PieChart>
    With the numbers against the RHS of the box
    First thing I've found is that putting a zero length Spring between the NORTH of the lable and the value doesn't work, I have to set both relative to the previous line or (mysteriously) no vertical separation happens at all.
    Here's the code that adds a lable/value pair:
        private static Component addPair(Component prev, String label, JLabel value) {
            Container c = prev.getParent();
            SpringLayout l = (SpringLayout)c.getLayout();
            JLabel nameLab  = new JLabel(label);
            c.add(nameLab);
            c.add(value);
            l.getConstraints(nameLab).setHeight(Spring.constant(12));
            l.putConstraint(SpringLayout.NORTH, nameLab, 2, SpringLayout.SOUTH, prev);
            l.putConstraint(SpringLayout.WEST, nameLab, 10, SpringLayout.WEST, c);
            l.putConstraint(SpringLayout.EAST, c, 10, SpringLayout.EAST, value);
            l.putConstraint(SpringLayout.NORTH, value, 2, SpringLayout.SOUTH, prev);
         //   l.putConstraint(SpringLayout.SOUTH, nameLab, 0, SpringLayout.SOUTH, value);
            l.putConstraint(SpringLayout.WEST, value, Spring.constant(10, 10, 500),
                    SpringLayout.EAST, nameLab);
            return nameLab;
        }prev being the label from the previous pair.
    It refuses to right align the value lable. It looks like the constraint between the EAST of the value and the EAST of the container has no effect. I've also set the alignment in the JLabels to RIGHT, which has no effect.
    If I take out the constraint between the WEST of the value and the EAST of the lable It plonks the lable and value on top of one another.
    Furthermore, though the hieght of the pie chart is set explictly by a constraint, the LayoutManager seems incapable of producing a sensible minimum height for the overall box.
    All of which makes me wonder if SpringLayout is worth persevering with or if there are just tricks and gaps I have to learn to deal with.

    I think I've cracked it. Some things they don't tell you about SpringLayout, which I found out mostly by reading the source.
    putConstraint is not symetrical. Logically
    putConstraint(SpringLayout.WEST, container, 10, SpringLayout.WEST,
    valueLab);might be expected to imply:
    putConstraint(SpringLayout.WEST, valueLab, -10,  SpringLayout.WEST,
    container);But it doesn't. Only the first object in the call is actually constrained.
    Secondly the "overconstraint" thing is very arbitary. Setting the NORTH or WEST clears the EAST or SOUTH wherease setting the EAST or SOUTH clears the height or width. Hence if you set, for example, EAST and WEST then it's essential to set EAST first, otherwise WEST will be ignored and the WEST will be set from EAST - width. There seems to be no way of clearing a constraint once set, and constraints are intialised from the objects bounds, so NORTH and WEST are always set to zero initially. If seems like the contraints are almost always going to be treated as overconstrained.
    Parallel constraints don't get combined, the last one specified predominates so there doesn't seem any sensible way of, for example, setting the width of a container based on the maximum of the widths of fields contained.
    There seems to be no use of the springiness of Spring objects. They are merely treated as min, pref and max values. Logically stretchiness should be used to distribute space, and to cope with springs in parallel. It doesn't appear any of that stuff is done.

  • How do you delete more than one item from download folder at a time?

    I have been trying to clean out my downloads folder which has gotten too full.  Mostly audiobooks which are now in iTunes and photographs that I have received from family and friends.  I can drag them one at a time into the trash, but was hoping there is a faster way.  If not, I will do this slowly.  My understanding is that if the file is saved somewhere else, deleting it from the downloads folder doesn't delete it from my mac, right?
    Thanks,
    Laverne's Mom

    One more question, am I correct in assuming that if I delete something from the downloads folder, even an application I have downloaded (I have a program that converts photos to cross stitch patterns and I don't want to delete it) that the application will not be deleted from my computer?
    Laverne's Mom
    That is probably a correct assumption. However it's always a good idea to double check before trashing something. Let's use the App (that's what programs are called on Macs) for cross stitch patterns. Check the Applications folder and if you see the app there it's fine to trash it from your downloads folder. Even if you goof once it's in the trash  you can get it out of the trash assuming you haven't emptied the trash. Open the trash folder, right click the item and select Put Back. If you are not using Snow Leopard (10.6.x) then you can drag the item back to where it was originally.

  • "A script is already running" while attempting to run more than one item

    We upgrade recently to ODT 11.2.0.3.20. Since then, attempting to run more than one item from the Solution Explorer (by selecting the items, right-clicking, and selecting "Run") results in a popup error of "Oracle Developer Tools. A script is already running". If many items are selected it results in many error messages and only a random few of the items are actually executed on the server. Also, choosing "Run On" now results in it prompting for the target database for each item selected (rather than once for all items selected like it used to). This all used to work fine in the earlier release we were using. Has anyone else run into this? Any fixes? We used to use multi-select and "Run" or "Run On" to deploy multiple items at once, but this no longer works -- doing one at a time works, but if you have hundreds of items to run, this quickly becomes unusable.
    Thanks for any insight.
    - Josh

    cshay wrote:
    I don't believe that the intention was for you to be able to run a bunch of scripts one after the other. Often there are dependencies between scripts anyway and so you you have to order them. Because we're generally deploying a large set of stored procedures (and not just one-time scripts) the order doesn't really matter -- even if a stored procedure gets created before one it depends on, once all the SPs are on the server, the ones that are "invalid" will compile correctly once you execute them.
    I think a lot of people are creating master scripts that references child scripts using the "@" sql plus syntax.... have you tried that?
    I'll give that a try as a work around. Only issue I have with that solution is every time we add or remove something from the solution, we also have to update the script.
    We are doing a lot of enhancements to our script generation in the coming year. Keep an eye out for a beta to test.
    Like I said, this used to work fine in the older versions of ODT. It seems like the new version is attempting to execute multiple items at once on the same connection simultaneously, thus resulting in the "A script is already running" error. The old version used to be smart enough to execute them one at a time -- so something changed in a more recent version to completely break "Run" and "Run On" when you have more than one item highlighted (even just highlighting 2 items and choosing "Run" runs the first item, but then gives the error for the second item).
    Christian- Josh

  • Can't add a goods-issue with more than one item and one is serial managed.

    Hi,
    We are trying to issue more than one item to a production order using the DI API.  If none of the items is serial managed, they all are accepted and the goods-issue Add is successful.  If one the items is batch-managed, the goods-issue Add is also successful.  I am able to add the goods-receipt if I it contains only one item and it is serial-number managed.  However, if I’m issuing more than one item and one or more of the items is serial number managed, then the DI API will not add the goods-issue.  The error message that appears refers to an item that is not among the items being issued.  The message is:
    -10: (IGE1.WhsCode)(line: 3), ‘Item ‘A00006        ‘ with system serial 1 is not in stock.’
    Again item A00006 is not even in the group of items being issued.
    The code I am using for the serial number part is:
    With oGoodsIssue.Lines.SerialNumbers
              .SystemSerialNumber = rs.Fields.Item("SysSerial").Value
              .ManufacturerSerialNumber = rs.Fields.Item("MfrSN").Value
              .InternalSerialNumber = rs.Fields.Item("IntrSerial").Value
              .SetCurrentLine(n)
              .Add()
              rs.MoveNext()
              n += 1
    End With
    The rs is a recordset that the code is looping through as the serial numbers are being added.
    The error message does not occur during this code.  It occurs when it tries to add the full goods-receipt.  Does anyone have any idea how I can fix this?
    Thanks,
    Mike
    Edited by: Mike Angelastro on Mar 31, 2008 8:43 AM

    Hi Mike,
    Try to do the ".Add" only if you need it. Doing a ".add" without assignation may cause the error you have.
    I guess your n variable start at 1 or 0, so you could put code like this :
    With oGoodsIssue.Lines.SerialNumbers
    if n = 0 then (or 1, also I don't the correct syntax of your programming language)
    .Add()
    end if
    .SystemSerialNumber = rs.Fields.Item("SysSerial").Value
    .ManufacturerSerialNumber = rs.Fields.Item("MfrSN").Value
    .InternalSerialNumber = rs.Fields.Item("IntrSerial").Value
    .SetCurrentLine(n)
    rs.MoveNext()
    n += 1
    End With
    HTH
    Jodérick

  • 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

  • Issue with right aligning of Character Styles in my TOC

    Hello all!
    I'm working on my very first book project and I have been reading soooo many threads on here for the past hour, but i either just don't get it, or i didn't find what i needed still, so i already apologize in case this very question has been answered before ...
    ok, so ... i am building my TOC and have set up the corresponding TOC styles to the paragraph styles used throughout the book.
    what i want is for the page number to appear before the entry. so for the page number i have set up it's own TOC page number character style.
    NOW
    the page number appears left aligned. I have checked the character styles palette and there i can't set a tab for the page number to appear right aligned ...
    how do i get this page number to be right aligned? and THEN, how do i specify the distance between the page number and the entry? there is "tab character"mentioned on the TOC dialogue box to specify the distance between page number and entry, but then do i have to go in manually every time something changes? that can't be it? i have seen in the paragraphy styles palette there is a tab section ... tried to input the tabs so the number would appear right aligned and the distance to the entry, but nothing happened, then the number is stuck right on the entry once the TOC is generated ...
    does this make any sense?
    will attach a screenshot to try to clarify the issue ...
    hope you can help me out.
    thanks a lot in advance!
    cheers
    sta-cy

    sta-cy wrote:
    sorry to have bugged you.
    Seriously, if we didn't enjoy this stuff we wouln't be here. It's not like we even get T-shirts. :-P
    An awful lot of what I know and am able to pass on comes from having spent waaaaay to much time here reading about odd problems and trying to figure out ways to solve them. I'd never seen a requst like yours until the other day, but then up pops Joel with a similar story, and what do you know, this may not be such a strange thing to want at all. Hopefully your question, and the work we put into trying to find an answer, has not only helped you, but some other users who come along next week or next year.
    Everybody starts someplace and at some point in time. There's no shame in being a beginner, and less in asking for help when you need it, especially after you put in the effort you did on your own to try to find a solution. It's also true that some folks are more design oriented and others more process oriented, and that's just the way it is. This forum has many, many, followers who are expert in different areas of InDesign (even the engineers who write the program are not experts in all the various parts) and are here to share what they know as volunteers. You are always welcome here, especially when the question is as intersting as this one.

Maybe you are looking for

  • TestStand Error -17300 while deleting a step

    Hi All, I have created a custom step which gives a LabVIEW pop up on dropping it in the sequence editor. The pop up has an OK and Cancel button. If I hit OK, the step is placed in the sequence and if I hit Cancel, the step is deleted from the sequenc

  • Want to scan an image from oracle forms -- Is it possible??

    Hi all, I want to scan an image from oracle forms through a scanner. I have not found any help on this topic. Pls help with example or code or with demmo form. BR Tarik. Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM Edited by: Tarik_kuet on Sep 9, 200

  • Material Determination and IDOC/EDI

    Hi Gurus, I'm wonder if someone can help me on this: 1) Material Determination is already configured. 2) Master Data already there, to convert EAN codes into Material ones. 3) If I execute VA01, everything is ok, and the EAN code will be substituted

  • How do you eliminate pauses betweens songs?

    Hello Group, This is a question I have pondered for a while now....It seems that when I import my music to the ipod the importing process seems to add a second or two to the song. How can one eliminate that? And secondly, CD's like The Beatles - Abby

  • Best practice to transport KANK parameters?

    Hi all, My point is about Number ranges for CO document. SAP help indicates (for KANK transaction - number ranges for CO document) that i is preferable not to transport the number ranges parameters from the source environment to the cible. I guess th