Flex form layout - add first child vertically aligned with label

Hi all..
In flex form layout
<mx:Form id="form">
        <mx:FormItem label="horizontal:">
            <mx:Text text="test"/>
        </mx:FormItem>
</mx:Form>
the output will be
horizontal 'test'
But my constraint is i want to align the textbox(first child of the  form item ) vertically with the label. How can i do this ?Any inputs  invited

Hi,
You can specify the direction as vertical for FormItem and inside the formitem you can add another text for the header.
Check the code below.
<mx:Form id="form">
        <mx:FormItem direction="vertical">
            <mx:Text text="horizontal:"/>
            <mx:Text text="test"/>
        </mx:FormItem>
    </mx:Form>
Regards,
Anitha

Similar Messages

  • Basic questions about word spacing and vertical alignment with CSS

    I'm sill very new to Dreamweaver and web page designing. I've
    read the entire manual SC3, one book, and starting another but I
    have almost 0 practice.
    Q1. so far I haven't been able to produce the effect of the
    Word Spacing property. I tried all kinds of tests and I don't know
    in what scenario this effect will show. Can someone give me a
    simple example that shows the effect of this CSS property.
    Q2. Vertical Alignment: this works well with images inserted
    into text but I also expected this to work with text against other
    text. For example I typed TEST© and assigned a different SCC
    style to the © so that I can make it smaller and put it up
    with the Vertical Alignment property. Surprisingly this propery
    didn't produce any effect. How is htis suppose to be done?

    > This is some text. This is some text.
    You forgot to wrap your text in <p> tags so the style
    rule you created
    doesn't apply.
    Walt
    "emil emil" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > i don't know about Q1. but for Q2. just delete what you
    already have for
    > the copyright symbol, and then insert the copyright
    special character.
    > there's a couple ways to do it: on the main menu at the
    top of the
    > window, go to Insert, then HTML, then Special
    Characters, and select
    > Copyright. or you can also find it in the Insert panel,
    which is below
    > the menu, under Text. ...
    >
    >
    > Thanks courtney, but that was exactly the way I created
    the © character
    > and
    > like in this text here it needs to be scaled down and
    moved up
    > independently
    > from the surrounding text. Can someone please post a
    simple code showing
    > the
    > effect of the vertical alignment of text in relation to
    surrounding text.
    >
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Q1
    >
    > <html>
    > <head>
    > <style type="text/css">
    > p
    > {
    > word-spacing: 30px
    > }
    > </style>
    > </head>
    > <body>
    >
    > <p>
    > This is some text. This is some text.
    > </p>
    >
    > </body>
    > </html>
    >
    >
    > Thank you Ken, your code works but not the code
    generated from
    > Dreamweaver
    > when I type in the Design View and assing CSS style to
    the p tag. Does
    > Dreamweaver have trouble generating properly working
    HTML or I'm missing
    > something here? Here is the code that Dreamweaver
    generates and the word
    > spacing doesn't work with it.
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > p {
    > word-spacing: 50em;
    > }
    > -->
    > </style>
    > </head>
    >
    > <body>
    > This is some text. This is some text.
    > </body>
    > </html>
    >
    >
    >

  • Tables - Column vertical alignment

    Good day for everybody,
    I have a table with two columns. The first one has an inputText with 1 line. The second one has an inputText with 3 lines.
    So the row height is calculated to fit the multiline object and, by default the inputText of the first line is bottom aligned.
    I tried to change the first columns vertical alignment by setting the InlineStyle - vertical-align property (setting it to top or middle) but nothing happend.
    So, the question is: How can I change the vertical alignment of the inputText of the first column so it is center or top aligned in its table cell? (Unfortunately I couldn't find this out by myself).
    Thanks in advance for any help.
    A.Gurisatti

    Try nesting your text in a CellFormatted. You can also try nesting it with in a panelGroup. If you are attempting to algin you text with css there is some browser dependencies in play.

  • Graphic and title vertically aligned

    I'm trying to set up graphic images with numbered titles (captions) aligned to the left of the image. I have a single column layout with a side head. I'd like the graphics to go in the column and the title to go in the left side head, vertically aligned with the top of the graphic.
    My graphic title format has side head alignment and is in the right place. The anchor for the frame that holds the graphic is at the end of the title paragraph. I've tried different anchoring positions, but can't seem to get the frame in the column, vertically aligned with the title. Has anyone done this?

    You need to adjust the settings in the respective paratgs.
    For the Figure Caption paratag, set the Side Head-Alignment to be "Top Edge".
    For the Anchored frame in the next paratag set it to be at insertion point.
    Having a paragraph between the graphic title and the frame, breaks the "Keep with Next" between the two, leaving the possiblitly of having the title on one page and the graphic on the next.
    The anchored frame should be in that next paratag. There shouldn't be anything in between.
    If I follow your requirements, it looks something like this:

  • Vertical alignment in text form

    Been trying set vertical alignment so that text will align with the top of the form box, and having a frustrating result. It will only align if the box is one line only.
    A multi-line box will not expand vertically to accomodate long text; an expanded (vertically) box will result in text beginning below top alignment. Anyone working on a fix for this? It seems to be a new problem, as I have used this feature with in the past with old versions of Acrobat.

    If I understand your issue correctly, you can achieve this by playing witht the Left and Right values under Layout tab of the object properties.
    Let me know if this is not what youare looking for..
    Thanks
    Srini

  • 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

  • How to add 2 rows in the form layout?

    In the detail page,form layout only one row pick up from database and it displays please anyone have idea about how to display 2 rows or 3 rows in a page?
    how to add 2 rows in the form layout?
    It's very urgent
    Thanks in advance

    No. You can only achieve this with smart custom templates. Here is sample code which will display multiple employees in form layout:
    <af:forEach items="#{bindings.EmployeesTable.rangeSet}" var="row">
    <af:panelForm rows="1" maxColumns="2" width="10%" id="RegionsFormItems">
    <af:inputText id="EmployeesEmployeeId" value="#{row.LastName}" label="EmployeeId" .... />
    <af:selectInputDate id="EmployeesHireDate" value="#{row.HireDate}" label="HireDate" ...... >
    <af:convertDateTime pattern="#{nls.datepattern}"/>
    </af:selectInputDate>
    </af:panelForm>
    </af:forEach>
    Steven Davelaar,
    JHeadstart Team.

  • Align Components how a panel Form Layout

    hi,
    I have the panel form layout with components, fine perfect, but...
    when I want to put a LOV such an output the text
    the center together the alignment of the components is lost i have the picture :)
    http://img100.imageshack.us/img100/7164/perfectoif.png
    but i want put the output text join component , example:
    http://img525.imageshack.us/img525/4543/asiquiero.png
    the logic solution, i group component with panel group layout but the form i see:
    http://img97.imageshack.us/img97/1096/erroryd.png
    Any idea?? i use jdev 11.1.1.2
    Joaquin
    Edited by: ADFboy on 03-may-2010 10:54
    Edited by: ADFboy on 03-may-2010 11:43

                  <af:panelFormLayout id="pfl1" labelAlignment="start"
                                      maxColumns="2" rows="1">
                    <af:panelGroupLayout id="pgl2" layout="horizontal"
                                         valign="bottom" halign="start"
                                         inlineStyle="text-align:left;">
                      <af:inputListOfValues label="ghdghd ghdghdf"
                                            popupTitle="Search and Result Dialog"
                                            id="ilov2"/>
                      <af:outputText value="outputText2" id="ot2"/>
                    </af:panelGroupLayout>
                    <af:inputListOfValues label="Label 1 fgs d"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov1"/>
                    <af:inputListOfValues label="Label 2"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov4"/>
                    <af:panelGroupLayout id="pgl1" layout="horizontal">
                      <af:inputListOfValues label="dghd ghdhd"
                                            popupTitle="Search and Result Dialog"
                                            id="ilov3"/>
                      <af:outputText value="outputText3" id="ot1"/>
                    </af:panelGroupLayout>
                    <af:inputListOfValues label="Label 3"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov5"/>
                    <af:inputListOfValues label="Label 4"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov6"/>
                    <af:inputListOfValues label="Label 5"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov7"/>
                    <af:inputListOfValues label="Label 6"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov8"/>
                  </af:panelFormLayout>

  • Question regarding Form layout in Flex

    Hi guyz. Today had a look at form layout
    <mx:Form id="form">
            <mx:FormItem label="horizontal:">
                <mx:Text text="test"/>
            </mx:FormItem>
    </mx:Form>
    gives the output in the format 'label' - 'textbox'. But i want to change the orientation like
    label
    checkbox
    How can i do that. Please explain in detail.
    Thanks and Regards,
    Karthik Jayaraman

    savmoy wrote:
     Since php files are run on the server side, can I assume that my JavaScript validations (which are part of  a php file) will be done on the server side as well, and therefore are secure?
    No. The PHP server processes the PHP only, and then sends the output to the browser, which is where the JavaScript will be executed.

  • How do I vertically align paragraphs in a page?

    I am new to Pages, and I've run across a problem that is really aggravating because it should not be rocket science... but it seems to be, at least for me.
    I need to center the text on the page so there is equal white space above and below it.
    In Word, you select File --> Page Setup --> Layout --> Vertical Alignment and choose "Center." Done.
    How do you do this Pages? I've scoured the manual and online help and can find nothing on this.
    Thanks in advance!

    Note that the Vertical Alignment does not apply to the Text Layer of a Word Processing document, just to the text in objects that accept text within the shape. For your application you would probably want to add a text box, centered on your page, to hold the text that you want to center.
    Regards,
    Jerry
    Message was edited by: Jerrold Green1

  • Vertical alignment is middle regardless of setting

    Running LiveCycle Designer ES 8.2 and Adobe Acrobat Pro 9 on Windows 7.
    I'm designing a form with many text fields.  Most of them work great.  However, I several text fields--some standalone, some table cells--where the vertical alignment of the user-entered value always shows as middle. 
    For example, this text field has the vertical alignment set to bottom, using the paragraph pallette:
    This is the same field with the alignment set to top:
    And this is the same field again, with the alignment set to middle:
    You will notice that they all look the same--always middle.  I'm able to set the caption alignment fine, and I'm aware of the way to distinguish between adjusting the caption and value properties in the paragraph pallette. 
    I can't determine any pattern as to why some of my text fields align fine according to the settings I specify, and some of them are always, always middle-aligned. 
    Are there any other settings or conditions which may be overriding my alignment settings for these specific fields? 
    It first started happening with table cells, so I assumed some table setting was causing the problem (although I never found it). Once standalone text fields started doing it too, though, I was extra stumped. 
    I am able to adjust all the horitzonal alignment settings fine.  I have tried deleting the offending cells and starting from scratch, but it hasn't helped.
    Any suggestions or help would be appreciated!
    Thanks,
    Marybeth

    This seems odd, but you need to also set the property JAVASE_DB_INTERACTION to false.
    <p>
    propertiesMap.put(EntityManagerFactoryProvider.JAVASE_DB_INTERACTION, "false");
    <p>---
    <br>James Sutherland
    <br>Oracle TopLink, EclipseLink
    <br>Wiki: Java Persistence, EclipseLink

  • Form layout issue

    Hi,
    I have to modify the Form layout of an existing application (Application Express 4.0.2.) where the data for each field is retrieved using SQL statements
    Presently the form looks something like this and the Data for each field is rendered properly in this layout:
      UNIT # :         123456
      ADMISSION #: 2012101510         DISCHARGE DATE:                 ADMISSION DATE:
      FIRST NAME:   JON                     LAST NAME: DOEFIRST NAME, LAST NAME and UNIT # are all "Display Only" item type.
    What I'm trying to do is to move "FIRST NAME" underneath "LAST NAME" and "UNIT #" next to "LAST NAME"
    This part is very simple. However, the issue I'm having is as soon as the "UNIT #" is moved next to "FIRST NAME", the data for "FIRST NAME" and "LAST NAME" simply disappear
    This is how it looks
      ADMISSION #: 2012101510         DISCHARGE DATE:                 ADMISSION DATE:
      FIRST NAME:                             UNIT #: 123456
      LAST NAME:    I have played around for hours and even created from scratch a new page with a new form using SQL statements to pull the data for each field, only to get the same result.
    Has anyone ever had this issue?
    Thank you
    Ruben
    Edited by: Ruben_920841 on Feb 22, 2013 9:24 AM

    This sounds very odd.
    Is the data for First Name and Last Name fetched from the database with the standard built in fetch process for the page? What about the Unit field?
    Or are they "calculated" based on the data on the Unit field?
    If they come from different tables, perhaps you need to add a computation to the page so that everything happens in the correct sequence.
    >
    Hi Jorge,
    "First Name" and "Last Name" are fetched from a different table.
    I did create a Computation Page for those 2 items as you suggested but it did not fix the issue.
    Any other idea what it could be?
    Thanks again
    Ruben

  • Vertical alignment

    <div class="content">
      <div> (css attribute float : left)
        <img>
      </div>
      <div> (css attribute float : left)
        <table>  (I need this table to align vertically with the image.)
                     (vertical-align : middle   doesn't seen to do anything)
      </div>
    </div>
    I've tried encasing the table in another div and set THAT element to vertically align.
    What am I missing?
    Dana

    Copy & paste this code into a new, blank document.   This layout uses CSS display:table properties to which you can add vertical-alignment.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Layout with Display:Table Properties</title>
    <style>
    body {
    font-family:Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    font-size:100%;
    font-weight:bold;
    background: #FFF;
    width: 90%;
    margin: 45px auto;
    display: table;
    border: 4px solid #90F;
    /**optional rounded borders**/
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    section {
    display: table-row;
    background: #FFF;
    margin: 0;
    width: 100%;
    aside.one {
    width: 33%;
    padding: 0 2%;
    background: #F60;
    color: #FFF;
    display: table-cell;
    vertical-align: top;
    aside.two {
    width: 33%;
    padding: 0 2%;
    background: #9F0;
    color: #000;
    display: table-cell;
    vertical-align: bottom;
    aside.three {
    width: 33%;
    padding: 0 2%;
    background: #F09;
    color: #FFF;
    display: table-cell;
    vertical-align: middle;
    </style>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <body>
    <header>This is header</header>
    <section>
    <aside class="one">
    <p>Aside .one has vertical-align:top. </p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Vestibulum gravida metus eu metus elementum in rhoncus nisi cursus.
    Donec hendrerit condimentum ipsum, in sodales dui rhoncus non?
    Nulla facilisi. Nulla porta, dolor et suscipit elementum, sem sem viverra
    arcu, et aliquam elit leo porttitor urna. Praesent tristique lacus a metus
    pharetra quis pharetra sapien laoreet. Nam tempor pharetra magna nec luctus.</p>
    </aside>
    <aside class="two">
    <p>Aside .two has vertical-align:bottom.</p>
    </aside>
    <aside class="three">
    <p>Aside .three has vertical-align:middle.</p>
    </aside>
    </section>
    <footer>This is footer</footer>
    </body>
    </html>
    Here's a screenshot:
    Nancy O.

  • Vertical Alignment Issue

    I have a problem. I've browsed through existing solutions and
    haven't found anything that works for me.
    I am working on a site that has lots of nested tables. The
    navigation bar and some other text are in a column on the left (in
    a nested table) and the page content is in a table on the right (in
    a nested table). However, the image and text in the left column
    continue to migrate down whenever I add too much content in the
    right column.
    This happens only on page where the height of the content in
    the right column exceeds the height of the content in the left.
    ALL properties for all tables have the vertical alignment set
    to "top" not to "default". Any help would be greatly appreciated. I
    am attaching the code for my style.css file.
    The page in question is located at
    http://www.ssc.coop/science/news.html.
    Thank you in advance ... Amy
    Text

    Yes. I stand corrected. Thanks Murray.
    valign="top" is the correct HTML syntax. valign:top is some
    invalid hybrid
    of HTML & CSS. Regardless, it can't/won't/doesn't work.
    Walt
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Actually valign:top is nothing. But it's certainly
    invalid!
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Walt F. Schaefer" <[email protected]> wrote
    in message
    > news:[email protected]...
    >>> valign: top;
    >>
    >> This is invalid CSS. It is HTML. Yu can't use HTML
    code in CSS. Change it
    >> to vertical-align: top;
    >>
    >> Walt
    >>
    >> "AGrover" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>>I have a problem. I've browsed through existing
    solutions and haven't
    >>>found
    >>> anything that works for me.
    >>>
    >>> I am working on a site that has lots of nested
    tables. The navigation
    >>> bar and
    >>> some other text are in a column on the left (in
    a nested table) and the
    >>> page
    >>> content is in a table on the right (in a nested
    table). However, the
    >>> image and
    >>> text in the left column continue to migrate down
    whenever I add too much
    >>> content in the right column.
    >>>
    >>> This happens only on page where the height of
    the content in the right
    >>> column
    >>> exceeds the height of the content in the left.
    >>>
    >>> ALL properties for all tables have the vertical
    alignment set to "top"
    >>> not to
    >>> "default". Any help would be greatly
    appreciated. I am attaching the
    >>> code for
    >>> my style.css file.
    >>>
    >>> The page in question is located at
    >>>
    http://www.ssc.coop/science/news.html.
    >>>
    >>> Thank you in advance ... Amy
    >>>
    >>>
    Text
    >>>
    >>> td {text-align: left;
    >>> valign: top;
    >>> font-family:tahoma;
    >>> font-size:10px;
    >>> color:#919191;
    >>> line-height:13px;}
    >>>
    >>> a {text-decoration:underline;
    >>> color:#298EAA;}
    >>>
    >>> body { margin:0px;padding:0px;}
    >>>
    >>> ul {margin:0; padding:0; list-style:none}
    >>> li {background:url(images/a.gif) center left
    no-repeat; margin:0 0 0
    >>> 0px;
    >>> padding:0 0 0 10px; line-height:16px }
    >>> li a { color:#54A5BB}
    >>>
    >>> .usa span { color:#298EAA}
    >>> .copy { color:#BABABA}
    >>> .copy a { color:#BABABA; text-decoration:none}
    >>> .copy a:hover {text-decoration:underline}
    >>> .education { color:#757575}
    >>> .team span { color:#54A5BB}
    >>> .privacy a { color:#54A5BB}
    >>>
    >>> .white {color:#ffffff; text-decoration:none}
    >>> .arrow_right { margin-right:6px;}
    >>>
    >>> .form { width:205px;
    >>> height:29px;
    >>> font-family:tahoma;
    >>> font-size:10px;
    >>> border-style: solid;
    >>> border-width: 1px;
    >>> border-color:#9E9E9E;
    >>> background-color:#ffffff;
    >>> color:#919191;
    >>> margin-left:0px;
    >>> margin-right:0px;
    >>> padding-top:8px;
    >>> padding-left:8px;}
    >>>
    >>> .textarea { width:190px;
    >>> height:119px;
    >>> font-family:tahoma;
    >>> font-size:10px;
    >>> border-style: solid;
    >>> border-width: 1px;
    >>> border-color:#9E9E9E;
    >>> background-color:#ffffff;
    >>> color:#919191;
    >>> margin-left:0px;
    >>> margin-right:0px;
    >>> padding-top:8px;
    >>> padding-left:8px;}
    >>>
    >>> a:hover{text-decoration:none;}
    >>> .a:hover{text-decoration:underline;}
    >>>
    >>
    >>
    >
    >

  • Printing Cyrillic in Adobe Forms Layout Misaligned

    Hi There, we are developing some forms for our Russian business that uses Cyrillic Characters. The build has been complete and the layout looks good in Print Preview. However, when we try to print the form to a LOCL printer, the layout doesn't match what we see on Print Preview and is mis-aligned.
    I had seen similar problems before when printing to LOCL so I asked Basis to setup my laser printer on the SAP system (CP01) and I tried to print directly CP01, but when I did that, the first page came out with a number of Wingdings characters, and then 20 more blank pages.
    Some interesting points to note, if I print it directly to CP01, the print comes out garbled, but if I then go to SP02 and view what was sent to the printer it appears fine. However, if I set my LOCL printer as my CutePDF printer (which basically converts output to PDF format) the output doesn't get rendered properly either. So I'm not sure it's fair to say that the issue is with the printer.
    I have seen a number of posts on the forums regarding this issue but none of them have provided a clear resolution. My ideal solution would allow us to print to LOCL with the layout rendered exactly as it is on print preview.
    Many Thanks for any help
    Colm

    Hi Folks,
    Our team solved this issue by doing the following:
    1) Changed Device type to SAPWIN (SAP recommended) in SPAD transactions for Output Device.
    In SE73 Tcode we can see that SAPWIN supports TIMECYR (Cyrillic Characters).
    2) In Tcode SCOT -> Settings -> Device types for Format Conversion
    Changed PDF format conversion from PDF1 to PDFUC.
    Thanks for your help

Maybe you are looking for