Help with checkbox column layout

Here is the what I need to accomplish:
I need to display a long list(50-200) of checkboxes w/ labels in a multi column format.  They need to be sorted alphabetically downward and accross all columns. If scrolling is needed, then it should only scroll vertically.  Something like the image below.
What I have tried was to use a TileList with a checkbox itemRenderer.  It works great for 1 column and scrolls vertically just fine.  It works great for 3 columns, however when it scrolls it scrolls horizontally and I need it to scroll vertically.  I have attached my code.
One thing I have noticed is when you set 'direction = vertical' for a TileList the list sorts vertically but scrolls horizontally.  If you leave it as default (direction = horizontal), then it sorts horizontally, but scrolls vertically.  I need it to sort vertically and scroll vertically.  I have tried setting the VerticallyScollPolicy and HorizontalScrollPolicy but that just cut off the data instead of changing the scroll direction.
I guess my second question is if this functionality is impossible with a TileList then what component would be a better option.
Thanks in advance for taking the time to answer my questions.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                xmlns:csc="com.facl.uaf.common.shared.widget.*"
                layout="vertical"
                verticalAlign="top"
                horizontalAlign="center"
                backgroundGradientColors="[0x000000,0x323232]"
                paddingTop="20"
                paddingBottom="20">
    <mx:ArrayCollection id="collection">
        <mx:Object label="Alameda"/>
        <mx:Object label="Alpine"/>
        <mx:Object label="Amador"/>
        <mx:Object label="Butte"/>
        <mx:Object label="Calaveras"/>
        <mx:Object label="Del Norte"/>
        <mx:Object label="El Dorado"/>
        <mx:Object label="Fresno"/>
        <mx:Object label="Kern"/>
        <mx:Object label="Los Angeles"/>
        <mx:Object label="Orange"/>
        <mx:Object label="Placer"/>
        <mx:Object label="Plumas"/>
        <mx:Object label="Riverside"/>
        <mx:Object label="Sacramento"/>
        <mx:Object label="San Diego"/>
        <mx:Object label="San Francisco"/>
        <mx:Object label="Santa Barbara"/>
        <mx:Object label="Santa Clara"/>
        <mx:Object label="Santa Cruz"/>
    </mx:ArrayCollection>
    <mx:TileList xmlns:mx="http://www.adobe.com/2006/mxml"
                 color="#323232"
                 textAlign="left"
                 paddingLeft="20"
                 itemRenderer="mx.controls.CheckBox"
                 verticalScrollPolicy="auto"
                 themeColor="#FFFFFF"
                 dataProvider="{collection}"
                 columnCount="3"
                 width="500"
                 height="100"
                 direction="vertical">
    </mx:TileList>
</mx:Application>

A List class like TileList does a couple of important things.  It only creates enough renderers to fill the viewable portion so you don't end up allocating tons of memory for 1000's of data items, and it has a selection model where you can select one or more data items and it draws a rollover and selection colored backgrounds over the entire renderer.
Do you need that?  If not, a VBox with 3 HBoxes with 1/3 of the checkboxes in each HBox is all you need.  You can use a Repeater to generate the checkboxes or just add them in a loop.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Help with three column layout please

    Hello All
    I have been struggling with a three column layout to incorporate inserted images on the right. Please see http://www.greenpatchwebsites.com/ridgeway/index2.html
    At the moment I have resorted to a background image but I am not happy with the quality and lack of positioning in relation to the text.
    I have looked at lots of sites re faux / three columns etc but I can't make it work. As you will see from the attached css there are lot of divs because of the expanding box and I am getting in a muddle.
    Expert help here would be very gratefully received and I thank you in advance.

    Hi There,
    You can refer to 3 column fixed template (with header and footer) provided by DW itself. For reference how to make a 3 column layout use following code. Just save the whole of this as .html file and preview. Go through the structure and css classes in the head to understand the layout.
    <!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">
    <!--
    body  {
         font: 100% Verdana, Arial, Helvetica, sans-serif;
         background: #666666;
         margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
         padding: 0;
         text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
         color: #000000;
    .thrColFixHdr #container {
         width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
         background: #FFFFFF;
         margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
         border: 1px solid #000000;
         text-align: left; /* this overrides the text-align: center on the body element. */
    .thrColFixHdr #header {
         background: #DDDDDD;
         padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    .thrColFixHdr #header h1 {
         margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
         padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .thrColFixHdr #sidebar1 {
         float: left; /* since this element is floated, a width must be given */
         width: 150px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
         background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
         padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
    .thrColFixHdr #sidebar2 {
         float: right; /* since this element is floated, a width must be given */
         width: 160px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
         background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
         padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
    .thrColFixHdr #mainContent {
         margin: 0 200px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
         padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    .thrColFixHdr #footer {
         padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
         background:#DDDDDD;
    .thrColFixHdr #footer p {
         margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
         padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
         float: left;
         margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
         clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    -->
    </style><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .thrColFixHdr #sidebar1 { width: 180px; }
    .thrColFixHdr #sidebar2 { width: 190px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
    .thrColFixHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]--></head>
    <body class="thrColFixHdr">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="sidebar1">
      <h3>Sidebar1 Content</h3>
        <p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the left side of the #mainContent div if it will always contain more content. </p>
        <p> </p>
      <!-- end #sidebar1 --></div>
      <div id="sidebar2">
        <h3>Sidebar2 Content</h3>
        <p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the right side of the #mainContent div if it will always contain more content. </p>
        <p> </p>
      <!-- end #sidebar2 --></div>
      <div id="mainContent">
        <h1> Main Content </h1>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. </p>
        <h2> </h2>
        <!-- end #mainContent --></div>
         <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html>
    Don't be overwhelmed as this is simple code only (much like your own page). You can then divide your background image and put one part in the center column (mainContent DIV) and the other in the right sidebar (sidebar2 DIV).
    Hope this helps.
    Regards,
    Vinay

  • Help with 2 column layout

    I can't seem to quite get the layout to work correctly on this.
    http://www.openrangeimaging.com/Test/Gravity-Test/index.html
    Problem -The Main Content column protrudes into the menu bar space and is not aligned with the top of the sidebar column. I'd like the  MainContent and Sidebar columns to have their tops aligned with each other. I need to keep the Main Content column from protruding into the menu bar.
    I inserted a spry menu bar and then modified the default styling quite a bit. It looks like it should. It is positioned where it should be. All of the css for it is stored in a separate folder that DW created when I add the spry menu. EXCEPT for one css rule, MenyBar1, that is in the other primary css folder. I don't think I added that but honestly I'm not sure. I don't know if the styling of the menu bar is responsible for the trouble. I've messed around with so much of the margin and etc on so many elements that I am now pretty confused.
    I'm hoping someone can take a look at this and help me figure out what I have done incorrectly.
    Thanks in advance for any reply.

    markf12 wrote:
    Hans thanks for your reply! Yes I want the tops of the Sidebar and Main content divs to be aligned. It's hard to tell form your screen grab but using the dashed line that's underneath the orange letter G as a reference it appears the yellow MainContent is lower than the  white Sidebar. The tops are not aligned with each other.
    I put the menu bar into a div and made sure it had 0 margin. I updated the file
    http://www.openrangeimaging.com/Test/Gravity-Test/index.html
    For some reason the Main content is allowed to move up farther than the sidebar. Also there is no top padding on the Main content but it appears the upper most heading is being held away from the top edge of the main content as if there is top padding. Something is not right here and I just can't seem to figure it out.
    I'm afraid I'm starting to get frustrated and somewhat desperate <g>
    Please Help!!!!!!!!!!
    Amend your #nav-menu css selector to as shown below:
    #nav-menu {
    width: 960px;
    overflow: hidden;
    You'll also then need to adjust the margin and padding of the <h1> tag (Main Content). So introduce another css rule for the  h1 as shown below:
    #mainContent h1 {
    padding: 15px 0 0 0;
    margin: 0;

  • Problem with checkbox column in matrix

    Hello.
    I have a little problem with checkbox column in matrix.
    Column is binded to the UserData.
    It has ValOn="Y", ValOff="N".
    I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
    checkcell->PutChecked(VARIANT_TRUE);
    then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
    I tried to use ValOn="Y", PutChecked...
    The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
    My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
    How can I solve it ?
    Sorry for my english.
    Kamil Wydra

    Hello Kamil,
    I am not sure about your problem, but here is an example of how to use checkbox in UI API.
    First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
    - <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
      <databind alias="U_RENTED" databound="1" table="@VIDS" />
      <ExtendedObject />
    Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
    Third, when you open the form, you can check and uncheck the cell.
    BTW, please set the editable of the column to true.
    Hope this helps,
    Nick

  • Help with creating a layout.

    I need help creating a layout for my program, but am having tons of problems. I just an't that good at creating this, and it's been driving me insane.
    Here's the link to how I want it to look like. http://s94182144.onlinehome.us/randomstuff/layout.JPG
    In panel 1... that will be a cartesian plain, so it will pretty much be empty until lines and stuff are drawn in there.
    In panel 2, there will be two drop down menus and a couple of buttons
    In panel 3, there will be a bunch of things, with two buttons on the bottom.... and this section has to be scrollable.
    Any help with the basic layout will be helpful... I can put in the buttons myself. For reference, the whole programs size is 400x800.
    Thanks,
    sachit

    Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers. You can combine multiple Layout Managers to get the effect your want. By default the content pane uses the BorderLayout, so one approach might be:
    JPanel center = new JPanel(new BorderLayout());
    center.add(panel1, BorderLayout.CENTER);
    center.add(panel2, BorderLayout.SOUTH);
    getContentPane().add(center, BorderLayout.CENTER);
    getContentPane().add(panel3, BorderLayout.EAST);
    It turn you would layout panel1, panel2 and panel3 with the appropriate layout manager. Panel2 could be something like:
    JPanel panel2 = new JPanel( new BorderLayout() );
    panel2.add(comboBox1, BorderLayout.WEST);
    panel2.add(comboBox2, BorderLayout.EAST);
    JPanel bottom = new JPanel();
    bottom.add(button1);
    buttom.add(button2);
    panel.add(bottom, BorderLayout.SOUTH);

  • Need help with Fluid Grid Layout and variable column balance.

    I'm using the fluid grid layout.  I have multiple columns that are actually fluid grid layout columns done by Dreamweaver.  I'd like them to extend as high as each other (all to the maximum height of each other) within the same section.  An added catch is that in the desktop layout, I have three side by side under one that takes the whole width of the page.  On tablet size, it's 2x2 in a square grid.  On mobile, they're vertically stacked.  I'm trying to get it so that background colour and/or borders looks decent and is fully balanced, no matter which layout is hit with the fluid layout.  The columns reflow, no problem.  But the height of any background and/or border is variable. 
    Any help on fixing this? 
    Example at:  https://music2help.thoughtburst.net/ 
    The example doesn't have borders or colours, as it looked silly unbalanced.  The music2help.css is the only one I'm modifying manually.
    Love the fluid grid layout, but I need a way to make it behave decently with backgrounds/borders.  Any help would be hugely appreciated!
    Thanks!
    mark->

    I tried the solution Nancy posted.  It altered things, but doesn't seem to do the trick.
    Just some quick background.  I did HTML from 1994 through about five years ago by hand in vi on *nix systems.  I learned HTML through 4.01, and never bothered with XHTML at all.  I learned CSS through most of CSS2.  The CSS3 and HTML5 stuff is all new to me, but it can't be that hard.  I'm not exactly a novice in JS (I've done a fair bit of AJAX programming), but it's not even close to my primary language (I'm a Perl guy).
    I'm "stuck on" wanting to use Fluid Grid Layouts.  It's billed as one of the selling points of DW CS6, and I really like the concept and results.  I just want the results embellished a little, namely with sensible identical heights on grid containers set in the same row, so that you can apply background colours, dropshadows, and borders.  That's really all I want to do that it doesn't already do.
    I have a test page at:  http://music2help.thoughtburst.net/ that you can try with your Quick Columns.  I'd be interested to know if you can get it to work.
    Here's the catch, though...  Resize the browser, shrinking it inwards.  (I suggest Firefox, as Chrome only shrinks so far, and you won't get to Mobile width.)  As you can see, on a Tablet, one of the columns that should be equal height actually moves up a row and should be equal height with the row that, on a desktop, would take the entire width of the page area.  So that's like a 4-up output in printing terms.  At Mobile size, the entire thing is vertical, so none of the columns should be resized.
    If your product works and can accomodate these conditions, I think I would be interested in spending the $35 it costs. 
    Let me know?  Thanks!
    EDIT:  Changed URL to be non-SSL.  The server has multiple vhosts on it, and I keep forgetting that I don't have a cert on this new one.  Sorry about that.  You can just add anything to one of the the three middle columns, if you're pulling it down to test.

  • Minor help needed with four-column layout

    Hello,
    I took a three-column DW template and turned it into a
    four-column layout, and I'm very proud to say that I've figured out
    most of it myself. (CSS is NOT my strong point.) However, I'm
    having some problems with the background in the fourth column.
    http://www.patiastephens.com/new
    How can I make the top of the fourth column/background level
    with the other three columns?
    And how can I get the background to repeat?
    I plan to eventually put ads in the fourth column, and I may
    or may not leave the background in, depending on how it looks.
    Thanks much!

    Hi, thank you, Bonnie.
    I did mess with the repeat properties, but nothing helped.
    However, I ended up moving the background image to the entire page;
    I think it looks better. (See updated page if you're interested.)
    Now I'm trying to figure out why I get float drop when I move
    the main content column above columns 3 and 4 (so it loads first)
    And why the text in columns 1 and 4 is pushed down ....
    Aaargh.

  • Interactive Report with Checkbox column

    Hello everyone,
    our users love the Interactive Report filtering, so they want all forms in apps. to behave like Interactive Reports.
    I need a form where each row consists of 2 columns and a checkbox, that handles some flag. I can create checkboxes using APEX_ITEM, however, the filtering on such column look ridicolous. I would like to have a tabular form (with one editable checkbox column), but with all those Interactive Report filtering features.
    Is there any example (or inspiration) how to achieve such functionality?
    Thanks a lot!
    Adam

    Hello Adam,
    Why don't you just switch off the Filtering option for that column?
    (Go to the Interactive Report, click on your column, then in Column Definition you can (un)check the features for that column).
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Ack!  need help with a CSS layout

    I've been struggling to layout a Dreamweaver template that
    does the following:
    You can see the files here:
    http://northfloridahealthcorps.org/Oct5/index.html
    First, I know there's way to much CSS going on here. I'm
    newer to CSS and there's a lot of code detritus that's probably
    compounding my problems. My apologies. I don't know if you need to
    anywise my code, I just want CSS that will solve the problem. Any
    suggestions that will help me set up a page that will do the
    following will be greatly appreciated.
    The layout:
    A centered 2 and 3 column layout with fixed width columns a
    footer and a header.
    I want to page to fill the browser in IE6 and 7, etc.
    regardless of the quantity of content.
    The footer needs to stay at the bottom; more content pushes
    the footer below the viewport but the footer's at the bottom even
    if the page has no text.
    There's a background image in the wrapper/container that
    helps delineate the columns. This needs to stretch vertically too.
    I've read a lot on Divs that stretch but sill can't see to
    figure out what I'm doing wrong. I have struggled and struggled
    this and I'm going nuts! Some CSS settings work for IE7 allowing
    the page to stretch but it doesn't work in IE6 or vice versa (and I
    can't get the footer to work!). What am I doing wrong?
    Thank's Thank's Thank's Thank's Thank's!
    Greg

    go here for a tutorial on keeping footers at the bottom of
    the page
    Text

  • Please help with checkbox

    HI
    I buildt an image gallery with AS2 and XML, now I want the
    user to be able to check a checkbox next to the image whenever they
    want to select it as one of their favourates...it's kind of like a
    catalouge and it should just write the image info to a seperate
    word file or spreadsheat or even another movie. Is there any way of
    doing this and how do I get started?
    Thanx for any help

    What is your question? You're subject implies you want help
    with a checkbox,
    but then you ask about exporting an image from Flash, and you
    include a
    whole bunch of code with no explanation. Nobody is going to
    look through all
    your code for you. If you want to know how to export an image
    then Google
    'flash export image' or similar. There's a lof of info on
    this subject
    available from various blogs.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Help with dynamic page layouts

    Hello JSP Gurus,
    I'm attempting to dynamically generate the page layout for my site based on the organization a user belongs to. Basically, I'd have certain resources like navigation links, graphics, etc, that are modular. Then I'd like to construct the layout using these "moduls" in a dynamic fashion. Does anyone have any suggestions on techniques or technologies that would be useful? I'm not really looking at the portal/portlet model. Is this something that Cocoon could do by storing the layout for each customer as an XML file or something? Any ideas, suggestions, experiences would be helpful.
    Thanks!

    How does Tiles differ from the JetSpeed apache
    project? They both appear to be portal-like
    frameworks, or am I incorrect about that? Which is
    preferred?Frankly, I can't give you an in-depth answer to that. Maybe someone else can help with more details.
    What I can tell you is that JetSpeed seems to be more of a real portal architecture. Emphasis is placed on the framework portion, interfacing with exisiting applications. Visual layout takes second seat to this.
    Tiles on the other hand puts more emphasis on visual layout and reuse.
    Just looking at JetSpeed's visual interfacing a little bit makes me really dislike it. You build tables and such inside of a servlet, so there's a tight coupling (or at least, much tighter than with Struts/Tiles) between the presentation and logic. (I'm basing this on a JavaWorld article at
    http://www.javaworld.com/javaworld/jw-07-2001/jw-0727-jetspeed.html )
    Based on your initial question, it would seem to me that tiles is much closer to what you're looking for (and likely easier to just pick up and use).
    Anyway, take all this with a grain of salt; I'm not exactly an expert on JetSpeed. =)

  • Help with calculated column formula- combine strings and convert to date

    In my list (SharePoint Server 2013) I have:
    'Invoiced Month' column, type of choice (strings with names of months- January, February, March..., December)
    'Year' column, single line of text (e.g. 2012, 2013, 2014)
    1. I need to create a calculated column which will return combined value of the columns above, but in DATE format e.g. 'Sep-2013' or '01-Sep-2013'.
    I then use that newly created calculated column to do this: http://iwillsharemypoint.blogspot.in/2012/03/sharepoint-list-view-of-current-month.html
    I am rubbish with formulas, can I have some help with my problem please?

    Hi,
    Use the formula, I have tested by creating Months column with choice, Year column as numeric and Calculated column as DateTime returned.
    =DATE(Year,IF([Months]="January", 1,IF([Months]="February",2,IF([Months]="March",3,IF([Months]="April",4,IF([Months]="May",5,IF([Months]="June",6,IF([Months]="July",7,IF([Months]="August",8,IF([Months]="September",9,IF([Months]="October",10,IF([Months]="November",11,12))))))))))),1)
    Before applying the formula few things need to be noted.
    DATE(YEAR, MONTH,DAY) will accepts three parameters all should be type numeric(integer).
    Create the Year column of type numeric
    Create the calculated column of type "DateTime" to return as date
    Please mark it answered, if your problem resolved or helpful.

  • Help with database column

    I have a report with a column that come from table.
    This column is a number and I need change the sign if a condition is true.
    I try do this in a format trigger and in a trigger in Data Model (right clik mouse on this item Program Unit). But in both cases it say me when compile :
    Err 903. A READ-ONLY VARIABLE USED IN OUT OR IN-OUT CONTEXT.
    That mind that I cannot use this variable in this point. Also I try to change the Var and use a User Variable and change the value in the moment of read or print with similar results.
    Any help wellcome.
    Regards Everybody.

    Why do you not use a database function which will have your businesslogic and will return the changes value.
    Create function business1 (p_val in number) return number is
    begin
    <your logic here>
    return(l_modified_value);
    end;
    in your report query just use the function.
    select business1(<your_column> as "my alias" from .....
    That should work
    Marcos

  • Repeat "Detail a" section when using "Format with Multiple Columns" layout

    I am using Crystal Reports for .NET (VS 2008) and I would like to get the "Detail a" section to repeat at top of a second column containing additional data in "Detail b" section. Please see below for example, specifically "Detail a (2)". Any tips or help much appreciated.
    Detail a (1)_____Detail a (2)
    Detail b (1-1)___Detail b (2-3)
    Detail b (1-2)___Detail b (2-4)
    --Detail b (1-3)___Detail a (3)
    Detail a (2)______--Detail b (3-1)
    --Detail b (2-1)
    --Detail b (2-2)
    Thx, Scott

    the format with multiple columns i dont believe will show you the value 2x, but allows you to display the values across instead of down.
    i think you may want to use a sub report

  • Need help with complex column creation command

    Hello, all
    I need help with a complex column creation command and SQL anywhere help is not sufficient for it.
    Here is the situation:
    I need to write a generic DDL "alter table" command, which can add/modify columns without knowing in advance if they already exist in the destination table.
    Is there a command, which looks like:
    alter table "table1" add (on existing modify) column1 <datatype> <default> ?
    Thank you,
    Arcady

    Hi.
    I don't think this is supported in alter table command. But you can code that inside an if statement which queries systables & syscolumns. Your code should be something like that:
    if (select count(*) from sysobjects, syscolumns where sysobjects.id = syscolumns.id and sysobjects.name = 'some_table' and syscolumns.name = 'some_column') < 1
    begin
        alter table some_table add some_column numeric(12) not null
    end
    This is an example..
    Andreas.

Maybe you are looking for

  • Oracle Hyperion 11.1.2.1 configuration problem

    Hi Guru's, I am done with the installation but when i am trying to configure there starts the issue. I have done the installation on windows2008R2,8GB RAM,Oracle11.2.0.2,Java 1.6,.Net3.5 everything matches with the pre requirement sheet. I done succe

  • Can I add a family member from another country to Family Sharing?

    I have been trying to find an answer to this question prior to setting up Family Sharing, but I haven't found anything relevant. I have a US-based iTunes account and my fiancée has a Canadian iTunes account. Can I setup Family Sharing, add her iTunes

  • External monitor connected to new MacBook Pro

    I have a Samsung LED monitor connected to my brand new MacBook Pro with a mini display port adapter and a DVI-D dual link digital male to male HDTV cable. The external monitor flickers, cuts in and out and has static similar to an analog TV that can'

  • BI 4.1 installation in  Red hat Linux 6.5

    Hi Experts, we are planning to have one cluster environment in Red hat Linux 6.5. 1) Two nodes in cluster ( two red hat Linux 6.5 servers) 2) 1 server with Websphere as a web application server. From the last two years i am completely working on wind

  • Strange folder appearing, named with Korean character 삔

    Quite often I have a folder turn up at the bottom of the list on my HD. It is labeled with a Korean character 삔 meaning "sprained" (as far as I can work out). There's never anything in the folder so I just trash it. It's no big deal but it's a curiou