[b]Wrap Problem[/b]

I am experiencing a problem in wrapping a package. When I compile it it gives no errors but on wrapping, the errors are:
LINE/COL ERROR
81/7 PL/SQL: SQL Statement ignored
81/7 PLS-00435: DML statement without BULK In-BIND cannot be used
inside FORALL
81/46 PLS-00518: This INSERT statement requires VALUES clause
containing a parenthesised list of values
289/8 PL/SQL: SQL Statement ignored
289/8 PLS-00435: DML statement without BULK In-BIND cannot be used
inside FORALL
LINE/COL ERROR
289/48 PLS-00518: This INSERT statement requires VALUES clause
containing a parenthesised list of values
The codes for these lines are:
FORALL J IN 1..cnt
INSERT INTO balance_aging_table VALUES AgeBal(J);
( where the definition of agebal is):
TYPE AgingBalArray IS TABLE OF balance_aging_table%ROWTYPE INDEX BY BINARY_INTEGER;
AgeBal AgingBalArray;
So I am calculating and assigning values to Agebal array in a loop and bulk inserting them into the databse table.
I had read somewhere that there is some bug in wrap, ie. it cannot recognize certain syntax.
Let me know the way out.
Thanks

Create Table pTab(no Number(6), Name VARCHAR2(30))
Create Table cTab(no Number(6), Name Varchar2(30))
Declare
     Type tNam is table of pTab%rowtype index by binary_integer;
     tName tNam;
     tName2 tNam;
Begin
     Select *
     Bulk collect Into tName     
     From pTab;
     ForAll i in 1..5                    -     Insert into cTab values tName(i);     
commit;
End;
and its working fine...
Can you please post the code which is giving problem..
thanks...

Similar Messages

  • Text-wrap problem ID CS3 on Intel Mac

    I've recently been upgraded to an Intel Mac workstation running Leopard and for the most part, the transition has been smooth.  However, I just noticed today that I cannot get "detect edges" to work on a text wrap around an object with a transparent background in a placed Photoshop file.  The detect edges only works if I have a white background.  I've never had this problem before, so I wonder if it's a result of my new computer.  I use this function of text wrap constantly, and I'm hoping someone knows if this is a known bug and if there is a work around.

    You don´t have to use detect edges feature for extracted PSD-image.... just select a proper Contour Options Type, Alpha Channel for instance.

  • JEdtiorPane/HTMLEditorKit word wrapping problems

    Hi,
    I have a JFrame component that has a splitPane, on the left side is a JTree and the right side has a JEditorPane that has it's content updated with HTML using a method to generate the HTML via the setText() method . (no url, and no html file)
    The searching I did indicates that word wrapping is the default behavior, and I saw a lot of posts from people trying to get rid of the word wrapping, but it isn't wrapping at all for me. I get the horizontal scroll bar.
    I had the same problem using a JTextPane...anyone know how to wrap text?
    here's the relevant code:
    descriptionPanel = new JPanel(new BorderLayout());
              descriptionEditorPane = new JEditorPane();
              HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
              descriptionEditorPane.setEditorKit(htmlEditorKit);
              descriptionEditorPane.setSize(new Dimension(610,800));
              descriptionEditorPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              descriptionPanel.add(descriptionEditorPane);

    Did you place the components into scroll panes and then put those into the split pane?
    If so, then I guess that calling setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER) on the editor pane's scroll pane might solve your problem.

  • Word wrap problems in 36.0

    When entering text into a web form the text no longer "wraps" at the end of the box. The first part of the text runs off the left side. It is working fine in THIS text entry box but is now a problem on some other sites.
    See: http://www.thedirectoryclassifieds.com. Start placing a listing and then start entering text into the description box. Once you reach the end of the line the text does not wrap, just runs off the left side as typing continues. After this testing, just exit (back out) without continuing placing the listing.
    When encountering this problem I did a test on another computer that had 35.0.1 and word wrapping worked fine. Then I upgraded to 36.0 on that computer and now the problem is there too.
    So this definitely means a problem with 36.0 as it wasn't there in earlier versions.

    That particular form control has:
    <textarea id="main_description" name="b[description]" '''style="white-space: pre;"''' class="editor field"></textarea>
    For the first time in Firefox 36, the white-space property is being honored for textarea controls. So there's your trouble: "pre" means Firefox should emulate the preformatted tag, which requires manual line breaks.
    It would be great if you can convince the site to change this to:
    &lt;textarea id="main_description" name="b[description]" '''style="white-space: pre-wrap;"''' class="editor field"></textarea>
    which is supported by all modern browsers (per the compatibility table here: [https://developer.mozilla.org/docs/Web/CSS/white-space#Browser_compatibility]).
    But that likely will take some time, so what is the best short-term workaround? I need to think about that a bit.
    To manually hack this form control, you can right-click it and choose Inspect Element (Q). This should open the web console to the Inspector in the lower part of the tab. Firefox should highlight the HTML tag I listed first above, and on the right, show the style rules for it. Under "This Element" you can uncheck the box for that rule to have the textarea styled using default rules. But you would need to do this after each time you load the page, which is a hassle.

  • Creating Packages from BLOB field contents, line wrap problems

    Good afternoon,
    we use an in-house developed database-driven update system to update both our databases and filesystems, the system itself performs really well but there is still one problem I can't fix without some expert help:
    the code of to-be-updated Oracle packages is stored inside of a BLOB field, the BLOB field will contain both the package specification and package body and needs to be split into two parts to first execute the spec and then to execute the package body (I tried to execute both in a single step but this didn't work). This works for packages with less than 32767 characters and also works in some other cases but I found one case where the executed code contains an extra line wrap right in the middle of a word.
    To make it more clear (I hope it's comprehensible), imagine the following database content:
    CREATE OR REPLACE Package
    MyPack
    AS
    [... a lot procedure headers ...]
    END MyPack;
    CREATE OR REPLACE
    Package Body MyPack AS
    [... a lot more procedures ...]
    PROCEDURE myTest (intID OUT integer)
    AS
    BEGIN
      SELECT count (*) into intID FROM MyTa[--this is where the dbms_lob.substr() ends --]ble;
    END;
    END MyPack;My code searches for the second occurrence of the "Create or replace package", splits the code into spec and body, executes the specification and keeps on adding the rest of the code to a VARCHAR2A variable called "storedCode" from the BLOB. Now in the above example, after the specification has been removed from the string, the remaining characters (ending with the "MyTa" string) are added to the varchar2a variable, the next line is fetched from the BLOB via "dbms_lob.substr()" and added as long as dbms_lob.substr() does not return a NULL value (end of BLOB). When the code is executed after all has been fetched, the generated Package Body will contain an extra line wrap right in the middle of the "MyTable" word compiling the package invalid.
    This is the procedure code I use (definitely improvable, I'm better in MSSQL and MySQL dialects ...) to load, parse and execute the BLOB content:
       -- to run package code
      procedure runPackageCode (stepRef integer)
      AS
        numLines integer default 1;
        pos     integer default 1;
        storedCode    LOG_CHANGEDOBJECT.STOREDOBJECT%type;
        objectCursor  integer;
        lSqlOut     integer;
        sqlCommand  dbms_sql.varchar2a;
        emptyCommand dbms_sql.varchar2a;
        pIsError integer := 0;
        pErrorMsg varchar2(200) := '';
        updateRef integer := 0;
        currentUpdate integer := 0;
        schemaReference varchar2(20);
        -- required to do string cutting
        strLine varchar2(32767);
        strLeftFromSlash varchar2(32767);
        strRemaining varchar2(32767);
        intDelimiterPos integer := 0;
      begin
        -- retrieve update ID
        SELECT log_update_ref INTO currentUpdate FROM link_update_with_taskstep WHERE log_taskstep_ref = stepRef;
         begin
            select storedobject, change_area
            into storedCode, schemaReference
            from vw_storedobjects
            where step_id = stepRef;
         exception
          when no_data_found then
            pIsError := 1;
            pErrorMsg := 'Invalid SQL ID ' || stepRef;
            pkg_generic.LogError(updateRef, 'LocalUpdater', stepRef, 'Run package code failed: ' || pErrorMsg);
         end;
          if pIsError = 0 then     
            begin
              -- change schema
              execute immediate 'alter session set current_schema = ' || schemaReference;         
              objectCursor := dbms_sql.open_cursor;   
              loop
                strLine := UTL_RAW.CAST_TO_VARCHAR2(dbms_lob.substr(storedCode, 32767, pos));
                intDelimiterPos := regexp_instr(strLine, '\s*Create\s*or\s*Replace\s*Package', 2, 1, 0, 'i');
                while intDelimiterPos > 0
                loop
                  -- '/' found, execute currently stored statement
                  strLeftFromSlash := substr(strLine, 1, intDelimiterPos-1);
                  strLine := substr(strLine, intDelimiterPos);
                  -- execute the extracted part without any '/' in it
                  sqlCommand(numLines) := regexp_replace(strLeftFromSlash, '(^|\s+)/(\s+|$)', '', 1, 0, 'm');
                  if (sqlCommand(numLines) is not null) then
                    objectCursor := dbms_sql.open_cursor;   
                    dbms_sql.parse(objectCursor, sqlCommand, 1, numLines, true, dbms_sql.native);
                    lSqlOut := dbms_sql.execute(objectCursor);
                    dbms_sql.close_cursor(objectCursor);
                  end if;
                  -- reset sqlCommand
                  sqlCommand := emptyCommand;
                  -- reset line counter and store remaining string
                  numLines := 1;
                  -- check for further '/'s           
                  intDelimiterPos := regexp_instr(strLine, '\s*Create\s*or\s*Replace\s*Package', 2, 1, 0, 'i');
                end loop;
                -- add the remaining strLine to the sqlCommand
                strLine := regexp_replace(strLine, '(^|\s+)/(\s+|$)', '', 1, 0, 'm');
       --> I assume this line breaks the code, lpad()'ing the content to move it to the end of a varchar2a line didn't help
                sqlCommand(numLines) := strLine;
                exit when sqlCommand(numLines) is null;
                pos := pos+32767;
                numLines := numLines+1;
              end loop;
              objectCursor := dbms_sql.open_cursor;   
              dbms_sql.parse(objectCursor, sqlCommand, 1, numLines, true, dbms_sql.native);   
              lSqlOut := dbms_sql.execute(objectCursor);
              dbms_sql.close_cursor(objectCursor);
              commit;
              -- reset schema
              execute immediate 'alter session set current_schema = UPDATE_DB';
              -- set state to installed
              pkg_update.setstepstate(stepRef, 'Installed');
        exception
        when others then
              -- reset schema
              execute immediate 'alter session set current_schema = UPDATE_DB';
              -- set state to installFailed
              pkg_update.setstepstate(stepRef, 'InstallFailed');
              pkg_generic.LogError(updateRef, 'Database', stepRef, 'Run package code failed: ' || sqlerrm);
        end;
        end if;
      END;    Thanks if you kept on reading so far, I would really appreciate any feedback!
    Regards, Sascha

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    Thanks for providing an easy-to-understand problem statement and for using code tags.
    >
    the code of to-be-updated Oracle packages is stored inside of a BLOB field
    >
    This should be stored in a CLOB since it is character data. Why are you using BLOB?
    >
    the BLOB field will contain both the package specification and package body and needs to be split into two parts to first execute the spec and then to execute the package body
    >
    Good, clear problem statement. So why doesn't your code do just what you said it should do: 1) split the code into two parts, 2) execute the spec and 3) execute the body.
    Instead of writing code that does these three relatively simple steps your code tries to combine splitting and executing and mushes/mashes it all together. The result, as you found, is code that is hard to understand, hard to debug, doesn't work and doesn't report on what it is doing.
    Code like this doesn't have a performance issue so the code should implement the simple step-by-step process that you so elegantly stated in your problem description:
    1. split the code into two parts
    2. execute the spec
    3. execute the body
    My advice is to refactor your code to perform the above steps in the proper order and to add proper exception handling and reporting for each step. Then when a step isn't working you will know exactly where and what the problem is.
    Here are my recommendations.
    1. Add two CLOB variables - one will hold the spec, the second will hold the body
    2. Add a comment (you have some good ones in the code now) for every step no matter how trivial it may be
    3. Add exception/error handling to EVERY STEP
    Your code for the first step has a comment but no exception handling. What should happen if you don't get any data? Why aren't you validating the data you get? Dynamic SQL using table-driven data is great, I love it, but you MUST validate that the data you get is what you expect to get.
        -- retrieve update ID
        SELECT log_update_ref INTO currentUpdate FROM link_update_with_taskstep WHERE log_taskstep_ref = stepRef;Recommended
        -- step 1 - retrieve update ID - This is the id that determines BLAH, BLAH, BLAH - add appropriate to tell a new developer what this ID is and what it means.
        BEGIN
            SELECT log_update_ref INTO currentUpdate FROM link_update_with_taskstep WHERE log_taskstep_ref = stepRef;
        EXCEPTION
            WHEN ??? THEN -- what should happen if step 1 fails? Do it here - don't default to an exception handler that is several pages away.
        END;Your code
         begin
            select storedobject, change_area
            into storedCode, schemaReference
            from vw_storedobjects
            where step_id = stepRef;
         exception
          when no_data_found then
            pIsError := 1;
            pErrorMsg := 'Invalid SQL ID ' || stepRef;
            pkg_generic.LogError(updateRef, 'LocalUpdater', stepRef, 'Run package code failed: ' || pErrorMsg);
         end;
    Good - except there is no comment that says what this does - I assume that the query above and this block are the 'retrieve update ID ' step?
    You log an error message and set the error flag to '1'. But since you don't want to continue why aren't you exiting the procedure and returning right here?
          if pIsError = 0 then     
            beginSo now you check the error flag and do several pages of code if there were no errors.
    I don't like that 'inverted' logic.
    If you don't want to continue then STOP right now! Don't make a developer scan through pages and pages of code to find out you really aren't doing anything else if there was an error.
    Either put a RETURN statement in the exception handler above or change your code to
          if pIsError = 1 then     
            RETURN;
          end if;Now the rest of the code doesn' t have to be indented; you will never get there if there is an error. Check for errors after every step and exit right then as appropriate.
              -- change schema
              execute immediate 'alter session set current_schema = ' || schemaReference;         
              objectCursor := dbms_sql.open_cursor;   
              loop
                strLine := UTL_RAW.CAST_TO_VARCHAR2(dbms_lob.substr(storedCode, 32767, pos));
                intDelimiterPos := regexp_instr(strLine, '\s*Create\s*or\s*Replace\s*Package', 2, 1, 0, 'i');
                while intDelimiterPos > 0
                loopThis code mixes all of the steps together into one giant mess. You open a cursor, try to split the BLOB into spec and body and try to parse and execute both all within a double nested loop.
    Even if that works correctly another developer will have a hard time understanding what the code is doing and fixing it if it goes wrong. And it will go wrong if you let me test if for you because I will put garbage into the BLOB for the spec, body or both to make sure it breaks and to see how your code handles it.
    I suggest you rewrite this double nested loop to perform the three steps separately.
    1. split the code into two parts
    a. put the spec into one new CLOB variable and the body into the other.
    b. use DBMS_OUTPUT (or a work table) to output the spec and body so you can see what the code is and make sure the 'split' process worked properly. You probably created that BLOB by manually concatenating the SPEC and BODY to begin with so now create a SPLIT process to split them again and give them back to you. This is such a fundamental component that I suggest creating a new SPLIT_MY_BLOB procedure. This procedure would take a BLOB and return two CLOBS as OUT parameters: one CLOB is the spec and one is the body. Then you can reuse this 'split' procedure in other code or more complex versions of code. Modular programming is the key.
    2. execute the spec - Now have a step that executes the spec and does something appropriate if the step succeeds or if it fails. I mean, do you really want to do execute the body if the spec execution fails? What do you want to do? Should you delete the body and spec? If you don't you might wind up with an INVALID body based on old code and an INVALID spec based on the new code you were trying to use. How will anyone, including you, know that the spec and body in the ALL_SOURCE view is really two different versions of things?
    This suggests that for your use case you may want to consider DROPPING the entire package, spec and body, before trying to recreate them both. At least if the package is totally missing anyone will know that the entire thing needs to be put back. Ahhhh - but to do that you need to know the package name so you can drop it. Than may require adding another step to get the package name from your data-driven table and adding a DROP PACKAGE step.
    3. execute the body - This step executes the body. Hmmmm - we have two nearly identical steps. So why don't you create a new function/procedure that takes a CLOB as input, uses dynamic sql to execute it and returns a result code. That would be useful. Then you could execute ANY sql stored in a CLOB and have a generic function that you can use for other things.
    Right now you are using the VARCHAR2 table version of DBMS_SQL.PARSE but you would change this to use the CLOB version.
    The end result of this refactoring is a main function/procedure that acts as the CONTROL - it decides what to do and what data (BLOB) to do it with. But it doesn't actually do ANY of the work. It just controls what is done.
    And you have a couple of generic, reuseable functions that actually do the work. One knows how to split a CLOB into spec and body. The other knows how to use dynamic SQL to execute a CLOB.
    Now you have a modular architecture that is easy to understand, easy to code and easy to test.

  • Endnotes Wrap Problem

    I'm formatting a book for someone in Pages 2.0.2. I'm using endnotes at the end of each chapter. Most of the endnotes are pretty typical short citations. However, a few of them are quite lengthy - a page or longer.
    My problem is that when I create the endnote, instead of wrapping to a new page, the lengthy endnotes simply cutoff at the end of the page. Since I'm not the author, I don't have the option of simply paring down the length of the endnote. Why is this happening and how can I fix it so that the endnotes wrap to a new page if they're longer than one page?

    My wife and I are both having the same problem using endnotes. Pages simply chops them off, thus it cannot be used for scholarly work that necessitates this feature.

  • How to solve text wrapping problem in grid

    I have create a simple ui with grid  and contains a long paragraph text. However the text will not break line to another paragraph and expand the UI width.
    BView.xaml
    <UserControl x:Class="SimpleUI.Views.BView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:resources="clr-namespace:SimpleUI.Properties"
    xmlns:view="clr-namespace:SimpleUI.Views"
    mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="5" />
    <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>
    <GroupBox Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Header="{x:Static resources:Resources.Course}">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto" />
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto" />
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width=".2*"/>
    <ColumnDefinition Width="2" />
    <ColumnDefinition Width=".2*"/>
    <ColumnDefinition Width="2" />
    <ColumnDefinition Width=".2*"/>
    <ColumnDefinition Width="2" />
    </Grid.ColumnDefinitions>
    <UniformGrid Grid.Column="0" Grid.Row="1" Columns="2" Grid.ColumnSpan="6" HorizontalAlignment="Center" VerticalAlignment="Center">
    <RadioButton Margin="0, 0, 10, 0" GroupName="ClassType" Content="{x:Static resources:Resources.ClassA}" />
    <RadioButton Margin="0, 0, 10, 0" GroupName="ClassType" Content="{x:Static resources:Resources.ClassB}" />
    </UniformGrid>
    <Border Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="6" BorderThickness="1" Padding="9" BorderBrush="LightGray">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="2" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width=".3*" />
    <ColumnDefinition Width="10"/>
    <ColumnDefinition Width=".25*" />
    <ColumnDefinition Width="10"/>
    <ColumnDefinition Width=".25*" />
    </Grid.ColumnDefinitions>
    <TextBlock Grid.Column="0" Grid.Row="0" Text="{x:Static resources:Resources.MaterialA}" />
    <TextBox Grid.Column="2" Grid.Row="0" Width="120" />
    <ComboBox Grid.Column="4" Grid.Row="0" Width="120"/>
    <TextBlock Grid.Column="0" Grid.Row="2" Text="{x:Static resources:Resources.MaterialB}" />
    <TextBox Grid.Column="2" Grid.Row="2" Width="120" />
    <ComboBox Grid.Column="4" Grid.Row="2" Width="120" />
    <TextBlock Grid.Column="0" Grid.Row="4" Text="{x:Static resources:Resources.MaterialC}" />
    <TextBox Grid.Column="2" Grid.Row="4" Width="120" />
    <ComboBox Grid.Column="4" Grid.Row="4" Width="120" />
    </Grid>
    </Border>
    <view:MessageView Grid.Column="0" Grid.Row="5" />
    </Grid>
    </GroupBox>
    </Grid>
    </UserControl>
    MessageView.xaml
    <UserControl x:Class="SimpleUI.Views.MessageView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:resources="clr-namespace:SimpleUI.Properties"
    mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <TextBlock Grid.Row="0" Text="{x:Static resources:Resources.Error}" TextTrimming="None" FontWeight="UltraBold" />
    <TextBlock Grid.Row="2" Text="{x:Static resources:Resources.ErrorDescription}" TextAlignment="Justify" TextWrapping="Wrap" VerticalAlignment="Center" />
    </Grid>
    </UserControl>
    MainWindow.xaml
    <UserControl x:Class="SimpleUI.Views.MessageView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:resources="clr-namespace:SimpleUI.Properties"
    mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="10" />
    <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <TextBlock Grid.Row="0" Text="{x:Static resources:Resources.Error}" TextTrimming="None" FontWeight="UltraBold" />
    <TextBlock Grid.Row="2" Text="{x:Static resources:Resources.ErrorDescription}" TextAlignment="Justify" TextWrapping="Wrap" VerticalAlignment="Center" />
    </Grid>
    </UserControl>
    Target Result
    Download Sample Project

    Here is updated code for BView.xaml. It will fix the problem
    <UserControl x:Class="SimpleUI.Views.BView"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:resources="clr-namespace:SimpleUI.Properties"
                 xmlns:view="clr-namespace:SimpleUI.Views">
        <GroupBox Header="{x:Static resources:Resources.Course}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="10" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="10" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="10" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <UniformGrid Grid.Row="1"
                             Columns="2"
                             HorizontalAlignment="Center"
                             VerticalAlignment="Center">
                    <RadioButton Margin="0, 0, 10, 0"
                                 GroupName="ClassType"
                                 Content="{x:Static resources:Resources.ClassA}" />
                    <RadioButton Margin="0, 0, 10, 0"
                                 GroupName="ClassType"
                                 Content="{x:Static resources:Resources.ClassB}" />
                </UniformGrid>
                <Border Grid.Row="3"
                        BorderThickness="1"
                        Padding="9"
                        BorderBrush="LightGray">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="10" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="10" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="2" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="10" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="10" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0"
                                   Grid.Row="0"
                                   Text="{x:Static resources:Resources.MaterialA}" />
                        <TextBox Grid.Column="2"
                                 Grid.Row="0"
                                 Width="120" />
                        <ComboBox Grid.Column="4"
                                  Grid.Row="0"
                                  Width="120" />
                        <TextBlock Grid.Column="0"
                                   Grid.Row="2"
                                   Text="{x:Static resources:Resources.MaterialB}" />
                        <TextBox Grid.Column="2"
                                 Grid.Row="2"
                                 Width="120" />
                        <ComboBox Grid.Column="4"
                                  Grid.Row="2"
                                  Width="120" />
                        <TextBlock Grid.Column="0"
                                   Grid.Row="4"
                                   Text="{x:Static resources:Resources.MaterialC}" />
                        <TextBox Grid.Column="2"
                                 Grid.Row="4"
                                 Width="120" />
                        <ComboBox Grid.Column="4"
                                  Grid.Row="4"
                                  Width="120" />
                    </Grid>
                </Border>
                <view:MessageView Grid.Row="5" />
            </Grid>
        </GroupBox>
    </UserControl>

  • Text Wrap Problems

    Hello,
    I am new to InDesign, and am doing a trial for work. I am trying to create a flyer which involves wrapping text around a background image. I have followed instructions found online but cannot get any further that 'wrap text around image' as for some reason I cannot click on the 'contour options' drop down to select 'detect edges'.
    I am trying to wrap the text around the leaves on the right hand side.
    Any help would be great, thank you!

    i am wondering if it could be something to do with the fact that I had to draw a rectangle over the part of the image I wanted to wrap the text around and work from this? I tried to following the instructions without the rectangle, selecting the whole leaf image, but when I selected 'wrap text around image' the text just vanished!

  • JEditorPane word wrap problems

    I am using a JEditorPane in a chat window that is used, like instant messenger, between two clients. The ability to insert icons and different fonts is available after setting the editor kit to an HTMLEditorKit. However, after using an HTMLEditorKit, the word wrapping is a bit funky in that the words are cut off when wrapping.
    Is there any way to get aroudn this while STILL using a JEditorPane (or something similar that can accept HTML?). I would be able to use JTextPane, which wraps correct (I believe...I'm trying to think back to my first implementation), but the icons begin to get tricky there. I know how to insert them, but if I have multiple icons, I would need to find all of the first occuring icons since the string needs to be printed immediately to the screen.
    Thanks for any help.

    I don't have an HTML document. Maybe you are mis-interpreting what I am trying to do :)
    I am implementing a simple instant messenger (much like AIM). Right now, I have a JEditorPane that is using an HTMLEditorKit to render HTML. This is used to display emoticons and also change the font and font color. So, the HTML I am generating is manually put in there in the code so text will show up differently - say, the senders name will be red and the recipient will be blue.
    Everything is working fine, except the text is wrapping and words are being cut off. In other words, this is happening:
    | This is an exa |
    | mple of some |
    | thing that is ha |
    | ppenning in m |
    | y chat window. |
    -----------------------

  • [solved][bash] PS1 wrapping problem...

    Hello I have my ps1 set to
    # Prompt
    BGREEN='\[\033[1;32m\]'
    GREEN='\[\033[0;32m\]'
    BRED='\[\033[1;31m\]'
    RED='\[\033[0;31m\]'
    BBLUE='\[\033[1;34m\]'
    BLUE='\[\033[0;34m\]'
    NORMAL='\[\033[00m\]'
    if [ "$TERM" = "linux" ]; then
    PS1="${NORMAL}[\u${BLUE}@\h ${BGREEN}\W${NORMAL}]\$ "
    else
    PS1="\e]2;\u@\H:\w\a${NORMAL}[\u${BLUE}@\h ${BGREEN}\W${NORMAL}]$ "
    fi
    However when my prompt displays [pyther@tux world.pyther.net]$ (color) I can only type 3 characters and then it wraps. Please see the screenshot...
    Using a regular prompt (source /etc/profile) works like a charm. Any help would be great!
    Last edited by pyther (2008-10-15 03:06:48)

    Daenyth wrote:Didn't I just answer this question in another thread? You need to escape the colors codes with \[ \] so that bash knows that they are non-printing characters, otherwise they will be counted in the prompt length.
    You're probably confusing this thread with mine a few days ago about using colors in PS1 in bash. ( http://bbs.archlinux.org/viewtopic.php? … 03#p432903 )
    This issue is very similar indeed
    Last edited by Dieter@be (2008-10-15 19:41:56)

  • Livecycle Designer 8.0 word wrap problem

    Here is the link to the application I made
    http://www.nevadajudiciary.us/index.php/view-documents-and-forms/func-startdown/309/
    I am using Full* with script xfa.host.setFocus("FieldName"); to get my form to word wrap, but it is cutting off a letter before it does the word wrap to the next line.  Is there any way to not orphan that letter and just move to the next line?  Is there some better script out there for what I am trying to do?

    You are asking for a world of hurt if you try and handle the word wrap yourself. Not to mention the movement from one line to the next.
    Is there anyway you can change their minds? That technique is more in tune with a printed form as opposed to an online ffillable orm.
    Paul

  • Aloha - I have a Numbers column wrap problem.....

    Aloha - I have a alphabetized song list, 2 columns, that I want to stay on page 1 before going to page 2... right now the list goes all the way down column 1 of each page then jumps to page 1, column 2.  Any suggestions?  Thank You!

    Thanks Wayne - I knew it was simple and didnt want to bang my head for a hour going nowhere!
          Mahalo
        Joe C

  • Text Wraps on Interactive Report

    I created an APEX 4.1.1.00.23 application with some interactive reports. On the interactive reports I had a problem with text wrapping around so a string like this:
    505 EAST 144TH STEEET
    Would display as:
    505 EAST
    144TH
    STREET
    I corrected the problem with the following java script in the Execute When Page Loads page attribute:
    $('td[headers="ADDRESS"]').attr("style","white-space:nowrap");
    The user requested that the report break on two columns. I opened Actions>Format>Control Break, selected the columns, and saved the report. Now the java to format the address column does not seem to take effect. Before I applied the breaks the text would sometimes wrap and I could correct it by pressing the F5 key but this does not work anymore. How do I get the java script to take effect or otherwise correct the text wrapping problem?

    Comet wrote:
    I created an APEX 4.1.1.00.23 application with some interactive reports. On the interactive reports I had a problem with text wrapping around so a string like this:
    505 EAST 144TH STEEET
    Would display as:
    505 EAST
    144TH
    STREET
    I corrected the problem with the following java script in the Execute When Page Loads page attribute:
    $('td[headers="ADDRESS"]').attr("style","white-space:nowrap");
    The user requested that the report break on two columns. I opened Actions>Format>Control Break, selected the columns, and saved the report. Now the java to format the address column does not seem to take effect. Before I applied the breaks the text would sometimes wrap and I could correct it by pressing the F5 key but this does not work anymore. How do I get the java script to take effect or otherwise correct the text wrapping problem?See +{message:id=9208685}+
    With the control break the IR generates different mark-up, so you need to add another selector to the rules so there's a match on the column cells in both the standard and break report views.

  • On Windows 8.1 and Firefox 36.0.1 the textarea in forms has no carriage returns. Earlier versions the forms work. Is there a fix for this?

    Prior to this version of Firefox 36.0.1, the <textarea> in my HTML forms was working; displaying carriage returns. In version 36.0.1 they no longer function properly. Instead when I enter a carriage return, it displays a space instead of a newline. I went to the most basic textarea testing
    &lt;textarea&gt; name="comments" cols=20 rows=10 &lt;/textarea&gt;
    to make sure I wasn't introducing anything with other languages.
    I am using Windows 8.1 Pro. I rolled back to Firefox 35.0 and everything works fine. I install 36.0.1 and it stops working.
    I have access to another Laptop also running the same version of windows and Firefox and it appears to be doing strange things as well. I am suspicious in that I started noticing this immediately after a windows upgrade last night. The laptop also experienced the issues it is having immediately after a windows update yesterday evening.
    I have yet another PC running a different version of windows and Firefox and it too works fine. It looks like the issue is where there is windows 8.1 Pro and Firefox 36.0.1.
    Do you guys have any idea what is going on here?
    Thanks
    JMRAUPE57

    The current release supports the white-space property for a text area and it is possible that the website uses white-space: pre instead of white-space: pre-wrap.
    The former will prevent Firefox from wrapping the text.
    You can check that in the Inspector via the right-click context menu.
    *https://developer.mozilla.org/Tools/Page_Inspector
    See:
    *https://developer.mozilla.org/en-US/Firefox/Releases/36#CSS
    <blockquote>The white-space property is now working on <textarea> HTML elements (bug 82711).</blockquote>
    See also:
    *[[/questions/1050456]] Word wrap problems in 36.0

  • Inconsistency between get-childitem -include and -exclude parameters

    Hi,
    Powershell 2.0
    Does anyone else consider this a minor design bug in the Get-ChildItem command?  
    # create dummy files
    "a","b","c" | % {$null | out-file "c:\temp\$_.txt"}
    # this "fails", returns nothing
    get-childitem c:\temp -include a*,b*
    # this "works", returns desired files
    get-childitem c:\temp\* -include a*,b*
    # this "works", excludes undesired files
    get-childitem c:\temp -exclude a*,b*
    # this "fails", excludes undesired files BUT RECURSES sub-directories
    get-childitem c:\temp\* -exclude a*,b*
    I'm writing a wrapper script around the GCI cmdlet, but the inconsistency between the two parameters is problematic.  My end user will surely just type a path for the path parameter, then wonder why -include returned nothing.  I can't unconditionally
    add an asterisk to the path parameter, since that messes up the exclude output.
    I'm just wondering why Microsoft didn't make the parameter interaction consistent???  
    # includes desired files in the specified path
    get-childitem -path c:\temp -include a*,b*
    # excludes undesired files in the specified path
    get-childitem -path c:\temp -exclude a*,b*
    # combine both options
    get-childitem -path c:\temp -include a*,b* -exclude *.log,*.tmp
    # same as above, the asterisk doesn't matter
    get-childitem -path c:\temp\* -include a*,b*
    get-childitem -path c:\temp\* -exclude a*,b*
    get-childitem -path c:\temp\* -include a*,b* -exclude *.log,*.tmp
    # same as above, but explicitly recurse if that's what you want
    get-childitem -path c:\temp\* -include a*,b* -recurse
    get-childitem -path c:\temp\* -exclude a*,b* -recurse
    get-childitem -path c:\temp\* -include a*,b* -exclude *.log,*tmp -recurse
    If I execute the "naked" get-childitem command, the asterisk doesn't matter...
    # same results
    get-childitem c:\temp
    get-chileitem c:\temp\*
    If this isn't considered a bug, can you explain why the inconsistency between the two parameters when combined with the -path parameter?
    Thanks,
    Scott

    The Get-ChildItem cmdlet syntax is horrific for advanced use. It's not a bug in the classic sense, so you shouldn't call it that. However, feel free to call it awful, ugly, disastrous, or any other deprecatory adjective you like - it really is
    nasty.
    Get-ChildItem's unusual behavior is rooted in one of the more 'intense' dialogues between developers and users in the beta period. Here's how I recall it working out; some details are a bit fuzzy for me at this point.
    Get-ChildItem's original design was as a tool for enumerating items in a namespace -
    similar to but not equivalent to dir and
    ls. The syntax and usage was going to conform to standard PowerShell (Monad at the time) guidelines.
    In a nutshell, what this means is that the Path parameter would have truly just meant Path - it would not have been usable as a combination path specification and result filter, which it is now. In other words
    (1) dir c:\temp
    means you wanted to return children of the container c:\temp
    (2) dir c:\temp\*
    means you wanted to return children of all containers inside
    c:\temp. With (2), you would never get c:\tmp\a.txt returned, since a.txt is not a container.
    There are reasons that this was a good idea. The parameter names and filtering behavior was consistent with the evolving PowerShell design standards, and best of all the tool would be straightforward to stub in for use by namespace
    providers consistently.
    However, this produced a lot of heated discussion. A rational, orthogonal tool would not allow the convenience we get with the dir command for doing things like this:
    (3) dir c:\tmp\a*.txt
    Possibly more important was the "crash" factor.  It's so instinctive for admins to do things like (3) that our fingers do the typing when we list directories, and the instant failure or worse, weird, dissonant output we would get with a more pure Path
    parameter is exactly like slamming into a brick wall.
    At this point, I get a little fuzzy about the details, but I believe the Get-ChildItem syntax was settled on as a compromise that wouldn't derail people expecting files when they do (3), but would still allow more complex use.  I think that this
    is done essentially by treating all files as though they are containers for themselves. This saves a lot of pain in basic use, but introduces other pain for advanced use.
    This may shed some light on why the tool is a bit twisted, but it doesn't do a lot to help with your particular wrapping problem. You'll almost certainly need to do some more complicated things in attempting to wrap up Get-ChildItem. Can you describe some
    details of what your intent is with the wrapper? What kind of searches by what kind of users, maybe? With those details, it's likely people can point out some specific approaches that can give more consistent results.

Maybe you are looking for

  • Problem with second instance of access manager

    Well, after sorting out things with the first install of access manager, I went on to install a second instance on a different host (it's required for delegated admin..) Here are the options I used on install: Access Manager: Administration (1 of 6)

  • How can I set up albums within photostream or flickr?

    I set up photostream on iphoto (thanks for those hints!). Now, I dragged an album of photos into photostream. But I noticed that all the photos are in one long list. Can I create albums within photostream? So that I can then have a lot of photos in t

  • Bluetooth Headphones Audio Delayed after Updating to Yosemite

    Ever since I upgraded to OS X Yosemite my Bluetooth headphones have started having pretty drastic delays on my iMac.  When I first start up the computer it seems normal, but after a half an hour or so, I have more than a 2 second delay. I googled it

  • How to upgrade Single App Photoshop to Complete Cloud membership? [was: upgrade to creative cloud]

    Hi There, I am new to these so please bare with my inexperience, How do i upgrade my single licence of photoshop to the full suite of adobe products cant seem to get this done.

  • Proceedure req. after system failure.

    Can anybody help, please. My old system has failed and I have purchased a new one, at this point I'm not sure I can save my old h/drve. If I can what do I need to do to transfer  PS to my new system. If I can't what do I need to do to install  PS on