Code formatting, indenting, and commenting

This question was posted in response to the following article: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-25a895a612e8e9b8c8e-7fff .html

MXML code formatting options are very limited in Flash Builder 4.5. Compare that to the vast amount of options you have to format Java code in Eclipse. I would expect more from a proprietary software.

Similar Messages

  • My auto-indent and code formatting is not working.

    Usually on dreamweaver CS5.5 my code (html) would indent my <div> tags and align them up with the end div </div>. Not only were the <siv> tags formateed but various of others tags were as well.
    How Dreamweaver used to format my code:
    <head>
              <title>Example</title>
              <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    </head>
    <body>
    <div id="outside_container">
              <div id="container">
                        <a href="#"><img src="images/logo.jpg" id="logo" /></a>
            <ul id="menu">
                      <li><a href="#"></a></li>
                      <li><a href="#"></a></li>
                      <li><a href="#"></a></li>                   
                        </ul>
            <ul id="right_menu">
                      <li><a href="#">t</a></li>
                      <li><a href="#">t</a></li>
            </ul>
            <img src="images/panel_home.jpg" id="panel" />
                        <div id="content">
                      <div class="column1">
                          <h2>Text</h2>
                    <p>Text Here</p>
                </div>
    Now it does not even format it so all of my code aligns on the left like so:
    <head>
    <title>Example</title>
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    </head>
    <body>
    <div id="outside_container">
    <div id="container">
    <a href="#"><img src="images/logo.jpg" id="logo" /></a>
    <ul id="menu">
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>                   
    </ul>
    <ul id="right_menu">
    <li><a href="#">t</a></li>
    <li><a href="#">t</a></li>
    </ul>
    <img src="images/panel_home.jpg" id="panel" />
    Can anybody please help me?

    Did you try Edit > Preferences > Code Format > Indent?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Any indent and outdent function for the embedded code editor?

    Is any function for code indent and outdent available? If yes, please let me know.
    Thanks for replying!

    Changes in Accelerator Keys for "Block-Indent" and "Block-Unindent"The accelerator keys for "block-indent" and "block-unindent" have changed in the production release of Oracle9i JDeveloper. (This is a change from JDeveloper 3.2 and the beta and release candidate versions of Oracle9i JDeveloper.)
    They have changed from:
    [Ctrl]-[Shift]-I (block-indent)
    [Ctrl]-[Shift]-U (block-unindent)
    to the more standard bindings of:
    [Tab] (block-indent)
    [Shift]-[Tab] (block-unindent)

  • Code returns "null" and "0"s in main module - why?

    I am coding a program that is in two modules. The main module serves it's standard function. The inventory class/module has three functions - 1) request stock input on 4 data points (1 String and 3 integers, one of which is a double) - 2) calculate the value of the inventory, and - 3) return string which reads out the 4 data points and the calculation showing the total value of the inventory. I've created the 3 functions in the inventory class/module, but obviously don't have them referring to each other correctly because when we come to the end of the program the output is null for the String and "0"s for the int/doubles. The code is below - any ideas about how to overcome the empty output? The code compiles fine and acts like it is going to work, but when it comes to the final command line it outputs
    "null, which is item number 0, has 0 currently in stock at a price of 0.00 each. The total value of inventory in stock is 0.00"
    Main module:
    public class Main {
        @SuppressWarnings("static-access")
        public static void main(String[] args) {
            Inventory inventory = new Inventory(); //call Inventory class
            inventory.inventoryInput();
            Inventory results = new Inventory();
            results.inventoryResults(); //call for inventoryResults in Inventory class
    }Inventory module:
    import java.util.Scanner;
    import static java.lang.System.out;
    public class Inventory
      //declare and initialize variables
       int itemNumber = 0;
       String productName;
       int stockAmount = 0;
       double productCost = 0;
       double totalValue = 0;
       String inventoryResults;
       //initialize scanner
       Scanner input = new Scanner(System.in);
       public void inventoryInput ()
       out.println("Please enter item number: "); //prompt for item number
          itemNumber = input.nextInt();
       out.println( "Enter product name/description: "); //prompt for product name
          productName = input.next();
       out.println("Quantity in stock: ");
          stockAmount = input.nextInt(); // prompt for stock quantity
       out.println("What is the product cost for each unit? ");
          productCost = input.nextDouble(); // prompt for product cost
        } // end inventoryInput
        public double totalValue( double stockAmount, double productCost )
          totalValue = stockAmount * productCost;
          return totalValue; // return stock value
        } // end totalValue
        public void inventoryResults()
        out.printf("%s, which is item number %d, has %d currently in stock at a " +
         "price of %.2f each. The total value of inventory in stock is " +
         "%.2f\n.", productName, itemNumber, stockAmount, productCost, totalValue);
        } // end inventoryResult
    }// end method

    justStartingOut wrote:
    Actually my final solution was quite simple - I moved the calculation and final formated print text statements into the body of Inventory's class code. It now works. "Works" scares me a bit.
    Someone cooking dinner might rummage about in the fridge and the cupboards to see what's there. Do imaginative things with what they come up with. And, with a bit of luck come up with something tasty or, at any rate edible.
    A physician deciding on a medical treatment would do well to try a more cautious approach. A specific aim would be a good thing. And a calculated appreciation of the documented effects of each medicine. And how they interact.
    It's up to you to determine which approach your coding should resemble. But it seems to me that your original Main class had a perfectly good reason to exist. It was a driver class whose purpose seemed to be to create and use an Inventory. (And using an Inventory is a very different thing from being an Inventory, so it made perfect sense to have two different classes.) To me it works or not, depending on whether it fufills that purpose. And what you have done is not so much solve the problem of it not working, as avoid that problem.
    (If by "moved" you mean that the outputting now occurs as part of - or is called from - inventoryInput() then that is not a good thing. The input method should input: just input.)
    I think that is because once the original input was loaded into the program (when I entered product number, name, price and value), the entries were dropped when the code switched to the next step. I think your intuition is entirely correct. In particular look at what your original main() method does (my comments replacing yours):
    Inventory inventory = new Inventory(); // (A) Create an inventory...
    inventory.inventoryInput(); // ... and put stuff into it
        // (B) Create some new entirely different (and empty) inventory...
    Inventory results = new Inventory();
    results.inventoryResults(); // ... and print its contentsInstead of creating a second inventory, try printing the results of the first one.
    Edited by: pbrockway2 on Apr 22, 2008 12:37 PM
    Whoops ... just read reply 2.
    It might sense, though to call totalValue() at the end your input method (because at that point the total value has changed). Or do away with that method - which you worked on getting right in your other thread ;)

  • Code Formatting Instructions for Developer Forums

    Although this topic only applies to the two Developer forums, the need for some upfront code formatting instructions in those forums is desperate. There may be hundreds of threads which include one or more messages on this subject. In my case alone, I've posted at least a dozen messages each containing these three lines:
    Paste your code here.
    Of course a quick search of either Dev forum on the keys +code formatting+ will find the above right away, but those who need help the most don't know code requires special formatting so won't be making that search. For the same reason, neither the excellent instructions in the User Tips Library nor the pertinent threads in this forum are likely to be discovered before they're needed. The +Help & Terms of Use+ FAQ might seem to be a good place for the instructions, but this has been proposed so many times before I'm sure it will never happen. The need is confined to the Dev forums afterall.
    I think the solution would be a permanent post (similar to +How to Post a new Topic+ in this forum) at the top of both Dev forums. I don't think most developers want to see instructions on any other topic at the top of the forums, but a brief note titled +How to Post Code+ might make everyone's life easier.
    Assuming most of the other developers agree, how could we make this happen?

    Thanks so much for helping with this, Nubz!
    Joerg's instructions are excellent. I refer to them often and I've had them bookmarked since I found Apple Discussions last year. The new Code section is great!! Very clear!
    Now we just need to find a way to get users to that page. Our problem has never been with users who are interested enough in Apple Discussions to visit the Tips Library. The unformatted code is coming from first-time users--not necessarily novice coders, but programmers of all skill levels who aren't coming here to learn about the forums or relate to the community. These folks are focused on their current project, may have found no answers anywhere else, and arrive here with tunnel vision. Often there's a language problem as well.
    The newly arrived OP will often start the thread with a page of unformatted code. Those of us with eyes used to filling in the missing brackets, indentation etc. can sometimes decypher the mess, but usually we need to give formatting instructions and ask the OP to repost. The frequency of this scenario has been increasing. Lately I've been posting those instructions almost once every day.
    Of course that's a good sign! We've been giving good service down there and the number of newcomers seems to be reflecting that. A big percentage have turned into regulars, so I think we have a very healthy forum. It's just the formatting cycle gets old, and the time and bytes add up too.
    My suggestion is this:
    One yellow moderator announcement that stays in the first position on the topic page for both dev forums. The subject line is:
    To format code: Paste your code here
    The user doesn't even need to open the message. Only developers will see this. No change to the page header is needed. If the user does open the message, a link will be provided to Joerg's tips.
    - Ray

  • Code formatting problem

    Is the code formatting buggy or is it just that I cannot seem to find the correct mix of settings? I hope it is the latter and that someone here may know how to get it
    After setting the settings I think I want I get a simple SQL formatted like this.
    {noformat}
    select username
    ,sid
    ,serial#
       from v$session
      where sid  = 11
      and(status = 'ACTIVE'
      or status  = 'INACTIVE')
    {noformat}Ignore the fact that the actual query may not be logical...
    The first problem is that the different columns are lined up to the left and not indented lika I would like them to be.
    The second (and much less important) is that the and/or are not indented like the keywords. I'd like to get the SQL to be formatted like this.
    {noformat}
    select username
           ,sid
           ,serial#
       from v$session
      where sid    = 11
        and(status = 'ACTIVE'
         or status = 'INACTIVE')
    {noformat}How can I make the code formatting result in the above SQL (especially the aligning of the columns)?

    Turloch,
    Thank you for the reply. I figured this may be a bug, so it is nice to have it confirmed. I can live with it not being correct as long as a fix will show up eventually.
    The problem with using tabs or large settings for space is that it causes other parts of PLSQL to look to spread out. One thing that happens is that the right justification of the keywords gets messed up. But I can make soem SQL look OK with it, but that is at the expense of getting other ones to not look good. For example if I get the columns to line up with a leading comma, the concatenation is not correct and vice versa. I also get SQL to look better, but then indentation in PLSQL is too agressive and looks very bad.
    I would like to be able to set and/or to be set to be handled as keywords so they too can be right justified. Columns (whether or not concatenated or separated with a comma) should be possible to align with the column in which the first column starts.
    While I'm at it, there seems to be an issue with the formatting of keywords such as inner join. I think inner too should be considered keywords so it can be right justified with other keywords. Same thing with subselects, they end up the the left of the right column of the keywords.
    I think the formatting features are really good now. There is still room for improvement to be able to control it enough to make it look exactly like I want, but it is getting close and flexible enough to allow many different ideas of how the template should be to be configured.
    Thanks,
    Mathias

  • Dreamweaver CS3 Code Formatting broken

    Hello, I am experiencing a huge deal of frustration with the
    way Dreamweaver improperly formats code. In particular, the UL / LI
    tags do not format correctly. Here is what I am trying to achieve:
    <ul>
    <li>
    TEXT
    </li>
    </ul>
    Now this pattern seems to correspond exactly to the preview
    that you see when you go to Preferences > Code Format > Tag
    Libraries, select the LI tag and choose Line Breaks: Before,
    Inside, After and Contents: Formatted and Indented.
    I have done this. I have also manually checked the .vtm file
    in username > Application Data > Adobe > Dreamweaver >
    Configuration etc.... and it corresponds to what I have set in the
    Prefs.
    However, when I use Design View to create the unordered list,
    OR even if I just TOUCH a properly formatted list in Design View,
    everything gets squeezed onto one line. I get this sort of thing:
    <ul> <li>TEST</li> <li>MORE
    TEST</li> </ul>
    Here is what I have tried unsuccessfully to date:
    1. Prefs > Code Formatting > Edit Tag Libraries...
    2. Prefs > Code Format > UNCHECK Do not include a break
    inside TD tag (I know, that's for TD, but I'm just trying
    everything(
    3. Prefs -> line breaks (tried Unix, Windows)
    4. Commands > Apply Source Formatting (messes up my entire
    code by putting everything inside the BODY tag on one line - in
    other words, my entire page goes on one line now!)
    5. Automatic Wrapping After Column 76 - this one is really
    stupid, it just does a HARD break on each line so when you turn it
    back off you have to go in and manually delete all these hard
    breaks now...
    There's a bunch of other small things I have tried, but
    needless to say, nothing appears to be working.
    Has no one else experienced this? Can you get Design View to
    properly format UL / LI tags? If so, then something on my computer
    is messed. But when I look at code generated by DW on some of my
    co-workers' computers, they also have the same problem - I just
    guess their tolerance for crappy code is higher than mine.
    I'm using DW 9.0 (CS3) build 3481.
    Please help! I have no hair left on my head to tear out and I
    may have to go further afield.... ouch!
    Thanks,
    Tom

    I just checked on DW CS4 and it's working as expected. If I
    change my LI
    entry in the Tag Libraries to Line Breaks: Before, Inside,
    After and
    Contents like you, I get your desired effect. Moreover, it
    doesn't revert -
    or worse if any changes are made, whether in Design or Code
    view. I know
    this doesn't help you verify or correct your CS3 issue, but
    at least you
    know there is an upgradeable light at the end of the tunnel.
    Best - Joe
    Joseph Lowery
    VP of Product Management, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    "tomaugerdotcom" <[email protected]> wrote
    in message
    news:[email protected]...
    > Hello, I am experiencing a huge deal of frustration with
    the way
    > Dreamweaver
    > improperly formats code. In particular, the UL / LI tags
    do not format
    > correctly. Here is what I am trying to achieve:
    >
    >
    > TEXT
    > </li>
    >
    >
    > Now this pattern seems to correspond exactly to the
    preview that you see
    > when
    > you go to Preferences > Code Format > Tag
    Libraries, select the LI tag and
    > choose Line Breaks: Before, Inside, After and Contents:
    Formatted and
    > Indented.
    >
    > I have done this. I have also manually checked the .vtm
    file in username >
    > Application Data > Adobe > Dreamweaver >
    Configuration etc.... and it
    > corresponds to what I have set in the Prefs.
    >
    > However, when I use Design View to create the unordered
    list, OR even if I
    > just TOUCH a properly formatted list in Design View,
    everything gets
    > squeezed
    > onto one line. I get this sort of thing:
    >
    TEST</li>
    MORE TEST</li>
    >
    > Here is what I have tried unsuccessfully to date:
    >
    > 1. Prefs > Code Formatting > Edit Tag Libraries...
    > 2. Prefs > Code Format > UNCHECK Do not include a
    break inside TD tag (I
    > know,
    > that's for TD, but I'm just trying everything(
    > 3. Prefs -> line breaks (tried Unix, Windows)
    > 4. Commands > Apply Source Formatting (messes up my
    entire code by putting
    > everything inside the BODY tag on one line - in other
    words, my entire
    > page
    > goes on one line now!)
    > 5. Automatic Wrapping After Column 76 - this one is
    really stupid, it just
    > does a HARD break on each line so when you turn it back
    off you have to go
    > in
    > and manually delete all these hard breaks now...
    >
    > There's a bunch of other small things I have tried, but
    needless to say,
    > nothing appears to be working.
    >
    > Has no one else experienced this? Can you get Design
    View to properly
    > format
    > UL / LI tags? If so, then something on my computer is
    messed. But when I
    > look
    > at code generated by DW on some of my co-workers'
    computers, they also
    > have the
    > same problem - I just guess their tolerance for crappy
    code is higher than
    > mine.
    >
    > I'm using DW 9.0 (CS3) build 3481.
    >
    > Please help! I have no hair left on my head to tear out
    and I may have to
    > go
    > further afield.... ouch!
    >
    > Thanks,
    >
    > Tom
    >

  • Searching for deailed info on code formatting rules

    SQL Developer 3.2.20.09
    Am looking for some detailed explanation of the various options for the SQL Formatting rules. The help, under 'Database: SQL Formatter' is pretty thin. I'd like to see something that explains the behavior of each discreet formatting option. While some may seem self-evident, not all are and even those that appear to be don't seem to behave the way someone might think or want. It would be nice if there were some detailed document to help with "that's not what I wanted" types of questions.

    Hi EdStevens,
    There is currently an option to put in newlines *"Line Breaks->More Newlines"* after the format (around blocks/loops)
    (and after the formatter has stripped the users original newlines). (The option is off by default)
    I added newlines where it seemed best and achievable in the time available.
    See the example below for formatted output
    I have not received any feedback on this - it is off by default.
    The code below(1) shows output before and after this option is applied uses the test PLSQL code already in the screens for setting the formatter options.
    -Turloch
    SQLDeveloper Team
    (1)Code after and before formatting follows:
    After:
    /* Comment... embedded in double quotes "select embedded_double_query from mytable" */
    /* Embedded in single quotes 'select embedded_single_query from mytable' */
    CREATE OR REPLACE
    PACKAGE BODY test1
    IS
      g_column1               VARCHAR2(17) := NULL;
      g_column2               VARCHAR2(52) := NULL;
      g_column3_from_column22 VARCHAR2(25) := NULL;
      g_column_4711           VARCHAR2(11) := NULL;
    FUNCTION testfunction(
        p_column12 IN VARCHAR2)
      RETURN VARCHAR2
    IS
    BEGIN
      IF NVL(g_emplid1,'X') <> p_emplid THEN
        BEGIN
          FOR emp_rec IN c_empl
          LOOP
            --Align on comments example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1, -- first field
                longcol2,   --second field
                midcol3,    -- 3rd field
              FROM tble1
              WHERE ((1 +1)=2)
              AND (22222*3 = 44)
            -- align || at end of line example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1 || longcol2 || midcol3 || col4 , col1 FROM tbl
            IF emp_rec.empl_rcd# > 0 THEN
              INSERT
              INTO table1
                  col1,
                  col2,
                  col3,
                  col4,
                  col5,
                  col6,
                  col7
              SELECT price.col1 AS col1,
                price.col2      AS col2,
                price.col3      AS col3,
                MAX(price.col4) AS col4,
                MAX(price.col5) AS col5,
                MAX(price.col6) AS col6, -- comment1
                MAX(price.col7) AS col7
                /*  comment2 */
              FROM
                (SELECT store.column1,
                  -- =========================================
                  -- =========================================
                  CAST (store.column2 AS INTEGER) AS column2,
                  store.column3,
                  store.column4,
                  store.column5,
                  SUBSTR(store.column6,11,1) AS column6,
                  store.column7              AS column7
                FROM
                  (SELECT library.column1,
                    library.column2,
                    library.column3,
                    CASE library.column4
                      WHEN cheap
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column4,
                    CASE library.column5
                      WHEN expensive
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS library.column6,
                    CASE column7
                      WHEN free
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column7
                  FROM
                    (SELECT INTEGER(SUBSTR(onelibrarysales.column1,11,10)) AS column1,
                      SUBSTR(onelibrarysales.column2,21,10)                AS column2 ,
                      onelibrarysales.column3,
                      onelibrarysales.column4,
                      SUBSTR(onelibrarysales.column5,31,6) AS column5,
                      SUBSTR(onelibrarysales.column6,37,2) AS column6,
                      SUBSTR(onelibrarysales.column7,39,6) AS column7
                    FROM
                      (SELECT alllibrarysales.column1,
                        alllibrarysales.column2,
                        MAX(alllibrarysales.column3)                                                                                                                            AS alllibrarysales.column3 ,
                        MAX(CHAR(alllibrarysales.column4,iso) concat CHAR(alllibrarysales.column5,iso) concat digits(alllibrarysales.column6) concat (alllibrarysales.column7)) AS column5
                      FROM
                        (SELECT libraryprod.column1,
                          libraryprod.column2,
                          libraryprod.column3,
                          libraryprod.column4,
                          libraryprod.column5,
                          libraryprod.column6,
                          libraryprod.column7
                        FROM
                          (SELECT tv.column1,
                            tv.column2,
                            MAX(digits(tv.column3) concat digits(tv.column4) ) AS librarymax
                          FROM db1.v_table1 tv
                          WHERE tv.column1 <> 'Y'
                          AND tv.column1   IN ( 'a' , '1' , '12' , '123' , ' 1234' , '12345' , '123456' , '1234567' , '12345678' , '123456789' , '1234567890' , '1 12 123 1234 12345 123456 1234567 12345678' , 'b' , 'c' )
                          AND tv.column2   >= DATE(tv.column4)
                          AND tv.column3    < DATE(tv.column15)
                          GROUP BY tv.column1,
                            tv.column2
                          ) AS libraryprod,
                          db1.table2 th
                        WHERE th.column1 =libraryprod.column1
                        AND th.column2   =libraryprod.column2
                        ) AS alllibrarysales
                      GROUP BY alllibrarysales.column1,
                        alllibrarysales.column2
                      ) AS onelibrarysales
                    ) AS library
                  LEFT OUTER JOIN db1.v_table3 librarystat
                  ON librarystat.column1    = library.column1
                  AND librarystat.column2   = library.column2
                  OR ( librarystat.column4  = library.column4
                  AND librarystat.column5   = library.column5 )
                  AND ( librarystat.column5 = 'I'
                  OR librarystat.column4    = 'Gold'
                  OR librarystat.column5    = 'Bold' )
                  AND librarystat.column6  <= 'Z74'
                  ) AS x
                ) AS price
              WHERE price.column1 < 'R45'
              OR ( price.column2  = 'R46'
              AND price.column3   = 6 )
              GROUP BY price.column1,
                price.column2,
                price.column3,
                price.column4,
                price.column5,
                price.column6,
                price.column7 ;
            END IF;
          END LOOP;
        END;
      END IF;
    END testfunction;
    /*  Multi line comment */
    -- ** Several single line comments -
    END
    PACKAGE;
    Before:
    /* Comment... embedded in double quotes "select embedded_double_query from mytable" */
    /* Embedded in single quotes 'select embedded_single_query from mytable' */
    CREATE OR REPLACE
    PACKAGE BODY test1
    IS
      g_column1               VARCHAR2(17) := NULL;
      g_column2               VARCHAR2(52) := NULL;
      g_column3_from_column22 VARCHAR2(25) := NULL;
      g_column_4711           VARCHAR2(11) := NULL;
    FUNCTION testfunction(
        p_column12 IN VARCHAR2)
      RETURN VARCHAR2
    IS
    BEGIN
      IF NVL(g_emplid1,'X') <> p_emplid THEN
        BEGIN
          FOR emp_rec IN c_empl
          LOOP
            --Align on comments example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1, -- first field
                longcol2,   --second field
                midcol3,    -- 3rd field
              FROM tble1
              WHERE ((1 +1)=2)
              AND (22222*3 = 44)
            -- align || at end of line example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1 || longcol2 || midcol3 || col4 , col1 FROM tbl
            IF emp_rec.empl_rcd# > 0 THEN
              INSERT
              INTO table1
                  col1,
                  col2,
                  col3,
                  col4,
                  col5,
                  col6,
                  col7
              SELECT price.col1 AS col1,
                price.col2      AS col2,
                price.col3      AS col3,
                MAX(price.col4) AS col4,
                MAX(price.col5) AS col5,
                MAX(price.col6) AS col6, -- comment1
                MAX(price.col7) AS col7
                /*  comment2 */
              FROM
                (SELECT store.column1,
                  -- =========================================
                  -- =========================================
                  CAST (store.column2 AS INTEGER) AS column2,
                  store.column3,
                  store.column4,
                  store.column5,
                  SUBSTR(store.column6,11,1) AS column6,
                  store.column7              AS column7
                FROM
                  (SELECT library.column1,
                    library.column2,
                    library.column3,
                    CASE library.column4
                      WHEN cheap
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column4,
                    CASE library.column5
                      WHEN expensive
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS library.column6,
                    CASE column7
                      WHEN free
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column7
                  FROM
                    (SELECT INTEGER(SUBSTR(onelibrarysales.column1,11,10)) AS column1,
                      SUBSTR(onelibrarysales.column2,21,10)                AS column2 ,
                      onelibrarysales.column3,
                      onelibrarysales.column4,
                      SUBSTR(onelibrarysales.column5,31,6) AS column5,
                      SUBSTR(onelibrarysales.column6,37,2) AS column6,
                      SUBSTR(onelibrarysales.column7,39,6) AS column7
                    FROM
                      (SELECT alllibrarysales.column1,
                        alllibrarysales.column2,
                        MAX(alllibrarysales.column3)                                                                                                                            AS alllibrarysales.column3 ,
                        MAX(CHAR(alllibrarysales.column4,iso) concat CHAR(alllibrarysales.column5,iso) concat digits(alllibrarysales.column6) concat (alllibrarysales.column7)) AS column5
                      FROM
                        (SELECT libraryprod.column1,
                          libraryprod.column2,
                          libraryprod.column3,
                          libraryprod.column4,
                          libraryprod.column5,
                          libraryprod.column6,
                          libraryprod.column7
                        FROM
                          (SELECT tv.column1,
                            tv.column2,
                            MAX(digits(tv.column3) concat digits(tv.column4) ) AS librarymax
                          FROM db1.v_table1 tv
                          WHERE tv.column1 <> 'Y'
                          AND tv.column1   IN ( 'a' , '1' , '12' , '123' , ' 1234' , '12345' , '123456' , '1234567' , '12345678' , '123456789' , '1234567890' , '1 12 123 1234 12345 123456 1234567 12345678' , 'b' , 'c' )
                          AND tv.column2   >= DATE(tv.column4)
                          AND tv.column3    < DATE(tv.column15)
                          GROUP BY tv.column1,
                            tv.column2
                          ) AS libraryprod,
                          db1.table2 th
                        WHERE th.column1 =libraryprod.column1
                        AND th.column2   =libraryprod.column2
                        ) AS alllibrarysales
                      GROUP BY alllibrarysales.column1,
                        alllibrarysales.column2
                      ) AS onelibrarysales
                    ) AS library
                  LEFT OUTER JOIN db1.v_table3 librarystat
                  ON librarystat.column1    = library.column1
                  AND librarystat.column2   = library.column2
                  OR ( librarystat.column4  = library.column4
                  AND librarystat.column5   = library.column5 )
                  AND ( librarystat.column5 = 'I'
                  OR librarystat.column4    = 'Gold'
                  OR librarystat.column5    = 'Bold' )
                  AND librarystat.column6  <= 'Z74'
                  ) AS x
                ) AS price
              WHERE price.column1 < 'R45'
              OR ( price.column2  = 'R46'
              AND price.column3   = 6 )
              GROUP BY price.column1,
                price.column2,
                price.column3,
                price.column4,
                price.column5,
                price.column6,
                price.column7 ;
            END IF;
          END LOOP;
        END;
      END IF;
    END testfunction;
    /*  Multi line comment */
    -- ** Several single line comments -
    END
    PACKAGE;

  • AS3 Auto Format not recognizing comments

    Something is corrupt with my Flash Professional CS5 Actionscript Auto format:
    Comments within a block, such as ' // ' or block comments ' /* ... */ ' are tripping up the Auto Formattor, which returns this error: ' Error with autoformat near line: }  '.
    Comments before package block don't cause an error.
    When I remove comments within package block, Auto format works correctly.
    How can I fix my Flash CS3 ActionScript editor Auto format?

    the problem you're seeing is the least of the known problems with auto-formatter.  the worst is the auto-formatter change change well-written code to be mal-formed code.
    so, while i don't think you can fix your auto formatter, what you can do is copy chunks of code to a new fla or as file and auto-format that chunk.
    then check that it's been formatted correctly and nothing essential has been changed.  (ie, at least, check for errors.)  if everything looks ok, replace the unformatted chunk in your original file with the formatted chunk.
    that's the wisest way to use auto-formatter.   it's also good to know and use the undo so you can always undo an auto-format botch.

  • JavaFX source code formatting (pretty print)

    I'm just starting to use JavaFX with Eclipse and I was wondering if there was something, either internal or external to eclipse that would format the JavaFX script 'code'. It gets tiresome hand indenting every line.

    AFAIK the eclipse plugin is about 3 weeks old. Code formatting was probably not #1 on their list of features. Netbeans aint 1/2 bad... I'm traditionally an Eclipse user too but I think you are gonna have to either contribute or wait patiently.

  • How to achieve Indenting and Issuing of raw materials in Oracle 11i

    Hi
    We have an issue with indenting and issuing of raw materials between stores and shop floor.
    Business Process is:
    1) Shop Floor should send a requisition of raw material to stores department i.e., (Indenting) with authorization of Production Manager.
    2) Then based on the requisition, stores needs to issue the raw material to Shop floor with Stores Manager authorization in report format.
    Work around:
    we have created Flexi Fields (DFF) in the Batches window under context value,
    through which we can indent quantity of that item datewise required.
    But the trouble is, it is time consuming and data entry is more.
    Also we have RM Pick List report, which is not useful for us for this process.
    Can any one please give me any idea how to do this process with minimal data entry in optimal time without new customization.
    Thanks in advance for your valuable ideas
    Prem.

    Hi Gordon,
    My SBO version is 8.8 PL 10, Indian Database. I want to see the "Raw Material" G/L Account's opening balance in the Opening Balance Column of Trial Balance or similar report of SBO. The technical problem behind this is - the mentioned reports shows the the amounts in OB column if that amount is entered by the OB Transactions (in Administration -> System Initialization). But how to manage the Raw Material / Inventory G/L through this concept, as the OB amount for this is entered through Inventory Initial Quantity. We can do the entry one day before the expected starting date of the financial period, is that can be a standard practice? For. e.g. entering the opening balance for 1-1-06 on 31-12-05.

  • Opening PDF in browser using Adobe API - with mark up and comment features

    Hey,  
    Here is the scenario :   Firstly, the user has to review the file (say pdf) before approving it. I would like to open the pdf file in the browser directly for reviewing. Also, I want to add some mark up (sticky notes, etc) and comment features while reviewing. Using these features, the user can pin point the mistakes directly in the file and revert the file for changes if any.  
    And as part of implementation, I would like to use Adobe java API to do the same. But I couldn't find any code snippets for using this API.  
    Any kind of help would be appreciated. Thanks in advance.

    This forum is only for discussions on the forums themselves. I would suggest that you start from the Acrobat forum,
    http://forums.adobe.com/community/acrobat

  • Need help with adding formatted text and images to Crystal Report?

    Here's my scenario:
    I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
    Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
    1) Pass HTML or RTF to the report
    Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
    2) Create each add as a subreport and append it programatically
    I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
    3) Pass an Image to the report
    I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
    Thank you.

    Hello Pavel,
    I would got the third way.
    You can use dynamic images in your report.
    Just by changing the URL to the image the image can be changed.
    Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
    or directly here
    [Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
    [Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
    [codesample for .NET|https://boc.sdn.sap.com/node/6000]
    Please also use
    [Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
    [Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
    Hope this helps
    Falk

  • Code Formating after Forum Software Upgrade

    Hello SCN Forum Administrators,
    it seems that all code formating which was done with the
    [code]
    Tags was not automatically converted during the Forum Software Upgrade. What can I do to correct my code in the Forum Topic Re: Display ALV GRID with PHP? The message was posted by myself but I can't edit it.
    Best regards
    Gregor

    Hi all,
    the new forum version does contain a filter that can handle the old &#91;code&#93; tags. The problem was that we had to turn it off because it permanently ran into Stackoverflow errors and thus bringing the whole landscape into trouble.
    Now we have to convert all the old &#91;code&#93; markup in all messages with the new &#123;code&#125; markup. We are currently testing this.
    In other words: &#91;code&#93; is no longer supported, the usage of &#123;code&#125; is recommended.
    Regards,
    Michael

  • How to store the rich formated text and screendumps in Oracle database

    Hi,
    I will create an FAQ management system. Users can log into the system, search and view the FAQ and answers. To be intractive, the users can also create new FAQ and add the comments on FAQ answers.
    The FAQ answers have rich formated text and the screendumps in the mid part of the answer. It should be presented in one page during user read/update the answers. How can I store the FAQ answer to Oracle database?
    Best regards,
    Ning

    I used blob to store pictures.
    The FAQ answer is the combination item of formated text and pictures. Can I use it to store?
    If I decided to use blob, how can I present the FAQ answers to the web. How can I edit the answer on the web?
    Thank you very much!

Maybe you are looking for

  • How can i get my emails in the hotmail POP folder, to reload into Mac Mail?

    On the hotmail page, it has the 'inbox/ but it also has a folder named POP.  In this folder it saves months worth of emails, older than the ones in the regular inbox.  I keep whats important and often refer back to the old ones in this POP folder.  T

  • Product key not valid error while installing CRXI

    Post Author: JSC CA Forum: Upgrading and Licensing I purchased CRXI a few months ago, but waited till I had my new hard drive in place before. At the "user information dialog I entered the only product key code I could find in the case, attached to t

  • PI Export(PI_INRUN) - picking up few extra employees who are not suppose to

    Hi, PI Export - ADDL_PAY_DATA Data Export through PI Export. I am exporting ADDL_PAY_DATA Data through PI Export Process for earning codes defined in Definition Table. PI Process picking up few extra employees in export file who are not suppose to be

  • Zen V Plus, froz

    Hey I left my zen v plus, 4 gig, connected to my computer for the whole night because I didn't want to wait for all my songs to download before I went to bed. Anyway, in the morning I disconnected it and started checking out my new song lists to see

  • Picking up in store tomorrow??

    Of course there is not anyone I can talk to on the phone - Apple is not accepting phone calls. I had set up to pick up my iphone 4 in the store tomorrow and now I won't be able to due to a death in a fellow nurse's schedule and I have to cover for he