Handling Lists in an editable TextArea

I'm in the process of creating an internal app that has a WYSIWYG component (build on TLF2.0).  The SimpleEditor and TextLayoutEditor sample apps have been a great help in this area.  The feature I'm really struggling with is Lists.  They're an absolute requirement (and the main reason we're using tlf 2.0).  I found the EditManager.createList method which has made creating lists incredibly simple and gives exactly the UX I wanted for creating a list.  However, removing the list (without removing its content) is turning out to be a huge pain.  Is there an easy way that I'm missing?  What would you suggest?

The MoveChildrenOperation was designed for this use case.
Richard

Similar Messages

  • Please tell me how to handle list item in this concern

    please tell me how to handle list item in this concern
    My problem is:
    i have a category table with column categoryname(varchar type)
    I want to display the records of categoryname in a drop down list (i.e., list item )
    So ..please tell me how to do it
    Thanks in advance..

    This code is just a sample from the Help documentation. It won't work until you modify it for your form.
    Why do you have "steps" in your code? You are suppose to do what the steps tell you. You don't place the steps in your code. The steps must be removed from your code.
    Step 1 code goes in a program unit, not in a trigger.
    Step 2 and 3 code usually goes in a trigger.
    You will have to replace the names of the items and record group with your own names as you have defined them in your form.
    step 1: create a procedure in your application
    procedure load_list(itm in VARCHAR2, rg in VARCHAR2) is
    group_id RecordGroup := Find_Group(rg);
    list_id Item := Find_Item(itm);
    Begin
    if Populate_Group(group_id)<>0 then
    Message('Unable to populate record group');
    Raise Form_Trigger_Failure;
    end if;
    Clear_List(list_id);
    Populate_list(list_id, group_id);
    end;
    step 2: create a record group named rg_cat and assign Record Group Query to something like "select categoryname from category"
    step 3: call this procedure as
    load_list('categoryname','rg_cat');

  • [JS CS3] Can a dropdown list be made editable?

    Hello,
    I would like to have a dropdown list that is editable. The list I have is a list of existing xml tags. I have a script that creates new xml tags and I would like to include the now existing tag names and the ability to create new names.
    If a dropdown list cannot be made editable I can always create two fields, one a dropdown list, the other a textEditbox. But I'd like to just have one.
    Thanks,
    Tom

    Hmmmm...I thought I was using ScriptUI, but I now see in the ScriptUI Classes that there is an element called "ListItem" that appears to foot the bill. It appears that one can add to its drop down list.
    I'm not sure I want to rewrite what I have in "classical" just to eliminate an extra field. It is working fine now. Maybe next time I'll experiment with this.
    Thanks.

  • Handling list box in alv

    hai all
    please check the code and tell how i can call in both open and close sales orders
    NAME = 'CATEGORY'.
      VALUE-KEY = 'OPEN'.
      VALUE-TEXT = 'OPEN'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'CLOSE'.
      VALUE-TEXT = 'CLOSE'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.

    Reported to SCN Moderators for multiple postings:
    handling list box in alv
    The specified item was not found.
    pk

  • IPhone not listed under iTunes/Edit/Preferences/Devices

    Why is my iPhone not listed under iTunes/Edit/Preferences/Devices ?

    iOS: Device not recognized in iTunes for Windows
    Since you are using a Windows based computer, could be anti virus software preventing iTunes from "seeing" the iPhone.
    iTunes for Windows: Troubleshooting security software issues
    You can also try turning off the Firewall.
    And try iPhone:  Restarting the Apple Mobile Device Service (AMDS) on Windows

  • Sharepoint 2013 list view quick edit does not work with out remote API permissions

    sharepoint 2013 list view quick edit does not work with out remote API permissions.
    When I give Use Remote Interfaces  -  Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site it works which is not an ideal situation..
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    This is true. If you use Fiddler to watch the requests from the list view quick edit you can see CSOM calls. For example when changing a value in a cell, when you tab out you will see the SetFieldValue and Update method calls on the list item.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Editable Textareas in Flash Catalyst

    Hi all,
    I'm brand new to Flex and Flash Catalyst, and I'm having some major issues doing what would seem to be a very simple task. In Flash Builder, I can add an <s:textarea> to a page and get an editable textarea, but I can't seem to find any way at all to add an editable textarea to Flash Catalyst so that I can add interactivity to it.
    I've spent hours pushing buttons and searching Google, and I can't seem to make this happen at all. Am I missing something? Is it just not there?
    Thanks,
    Adobe Noob

    Hey Sumit,
    In the public beta we'll be releasing with the most up to date version of the Flex SDK. There's no way to actually change the SDK in the MAX build unfortunately.
    =Ryan
    [email protected]

  • BSP runtime node got deactivate automatically after changing Handler list

    Hi folks,
    We made a change in Handler list of BSP node ( Default_host/sap/bc/bsp) in SICF T code. So basically we added our own Z  BSP HTTP Request Handler class into the Handler List just before the standard class CL_HTTP_EXT_BSP.
    Everything worked fine in Developement, but after moving the change to Quality system, the BSP node automatically got deactivated and we had to activate it again manually.
    What we are wondering is that, why the node got deactivated? Dit it get deactivated  because of the change in Handler list or it might had happend because of some other reason?
    Please provide your openion on this issue.
    Thanks
    PG

    Hi Joaquin
    Thanks for your reply.
    So does it mean, when we will move this new TP request to Production system, there also BSP runtime node will be deactivated automatically?
    And does thtis issue occurs only when there is a transport touching the BSP runtime? Since it did not occur before with other Transports!
    Thanks
    PG

  • Linking Editing TextArea with Button Handler

    Java newbie here,i am trying to create a program to display a keyboard on screen and display the the letter in a text area when the character letter is pressed. And the complete sentence when return is pressed.
    I have the GUI up, the problem is the letters are dispayed in a JOptionPane and i want them to be written to the TextArea.
    Any help would be appreaciated
    Here is the code in full so far.
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    * Alphabet is a program that will display a text pad and 27 buttons of the 25
    * Letters of the Alphabet and display them when pressed and display all buttons
    * when Return button is pressed..
    * version (V 0.1)
    public class Alphabet extends JFrame
        private JPanel buttonPanel  ;
        private JButton buttons[];
        private JButton SpaceButton;
        private JButton ReturnButton;
        //setup GUI
        public Alphabet()
        super("Alphabet");
        //get content pane
        Container container = getContentPane();
        //create button array
        buttons = new JButton[122];
        //intialize buttons
        SpaceButton = new JButton ("Space");
        ReturnButton = new JButton ("Return");
        //setup panel and set its layout
        buttonPanel = new JPanel();
        buttonPanel.setLayout(new GridLayout (7,buttons.length));
        //create text area
        JTextArea TextArea = new JTextArea ();
       TextArea.setEditable(false);
       container.add(TextArea, BorderLayout.CENTER);
       // set a nice titled border around the TextArea
        TextArea.setBorder(
          BorderFactory.createTitledBorder("Your Text is Displayed Here"));
      //create and add buttons
        for (int count = 96; count <buttons.length; count++ ) {
        buttons[count] = new JButton( ""+ (char)(count +1 ));
        buttonPanel.add(buttons [count]);
        ButtonHandler handler = new ButtonHandler();
        buttons[count].addActionListener(handler);
        buttonPanel.add(SpaceButton);
       buttonPanel.add(ReturnButton);
       ReturnButton.setToolTipText( "Press to Display Sentence" ); 
         container.add(buttonPanel, BorderLayout.SOUTH);
        // set a nice titled border around the ButtonPanel
        buttonPanel.setBorder(
          BorderFactory.createTitledBorder("Click inside this Panel"));
            // create an instance of inner class ButtonHandler
              // to use for button event handling              
              ButtonHandler handler = new ButtonHandler(); 
              ReturnButton.addActionListener(handler);
            setSize (625,550);
            setVisible(true);
    }// end constructor Alphabet
    public static void main (String args[])
        Alphabet application = new Alphabet();
        application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // inner class for button event handling
         private class ButtonHandler implements ActionListener {
              // handle button event
             public void actionPerformed( ActionEvent event )
                 JOptionPane.showMessageDialog( Alphabet.this,
                    "You pressed: " + event.getActionCommand() );
    }//END CLASS ALPHABET

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class Alphabet extends JFrame
    private JPanel buttonPanel ;
    private JButton buttons[];
    private JButton SpaceButton;
    private JButton ReturnButton;
    JTextArea TextArea;
    String str="";String stt="";
    //setup GUI
    public Alphabet()
    super("Alphabet");
    //get content pane
    Container container = getContentPane();
    //create button array
    buttons = new JButton[122];
    //intialize buttons
    SpaceButton = new JButton ("Space");
    ReturnButton = new JButton ("Return");
    //setup panel and set its layout
    buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout (7,buttons.length));
    //create text area
    TextArea = new JTextArea ();
    TextArea.setEditable(false);
    container.add(TextArea, BorderLayout.CENTER);
    // set a nice titled border around the TextArea
    TextArea.setBorder(
    BorderFactory.createTitledBorder("Your Text is Displayed Here"));
    //create and add buttons
    for (int count = 96; count <buttons.length; count++ ) {
    buttons[count] = new JButton( ""+ (char)(count +1 ));
    buttonPanel.add(buttons [count]);
    ButtonHandler handler = new ButtonHandler();
    buttons[count].addActionListener(handler);
    buttonPanel.add(SpaceButton);
    buttonPanel.add(ReturnButton);
    ReturnButton.setToolTipText( "Press to Display Sentence" );
    container.add(buttonPanel, BorderLayout.SOUTH);
    // set a nice titled border around the ButtonPanel
    buttonPanel.setBorder(
    BorderFactory.createTitledBorder("Click inside this Panel"));
    // create an instance of inner class ButtonHandler
    // to use for button event handling
    ButtonHandler handler = new ButtonHandler();
    ReturnButton.addActionListener(handler);
    SpaceButton.addActionListener(handler);
    setSize (625,550);
    setVisible(true);
    }// end constructor Alphabet
    public static void main (String args[])
    Alphabet application = new Alphabet();
    application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // inner class for button event handling
    private class ButtonHandler implements ActionListener {
    // handle button event
    public void actionPerformed( ActionEvent event )
              if((event.getActionCommand()).equals("Space")){
                   TextArea.setText(event.getActionCommand());
                   str+=" ";
                   //TextArea.append(" ");
              else if((event.getActionCommand()).equals("Return")){
                   stt+=str;
                   stt+="\n";
                   str="";
                   TextArea.setText(stt);
                   //TextArea.append(str);
                   //TextArea.append("\n");
              else {
                   TextArea.setText(event.getActionCommand());
                   str+=event.getActionCommand();
                   //TextArea.append(event.getActionCommand());
    }//END CLASS ALPHABET
    Ok?

  • A way to "re-connect" bezier handles and other path editing techniques

    I've searched and rummaged through tutorials for days but I haven't found a way to do a few things that I've come to think of as essential when it comes to path manipulation.
    I'm using Illustrator CS4 (on Windows XP SP3) and I'm coming from a background of Inkscape. Within Inkscape, there are several handy tools that are missing from Illustrator that I haven't found workarounds for. Here's a list of these tools and a brief description for each of how they work within Inkscape:
    ]- "Shift + C" with anchor point selected: this will make the bezier handles of the point move independently of each other.
    ]- "Shift + S" with anchor point selected:
    b this will "connect" the bezier handles
    so that moving one side moves the other side relatively (and opposite to each other so that the bezier handles form a straight line).
    (note: in Inkscape there is no way to make the bezier handles relative and not form a straight line, which is something I know would be useful)
    ]- "Shift + Y" with anchor point selected: this will make the bezier handles collinear (like shift + S) plus make the lengths of both handles the same.
    (note: another possible feature would be to make the handle lengths relative, but not the same)
    ]- "Shift + Click + Drag" on a selected anchor point with the path selection tool: this creates one bezier handle in the direction you drag. This is very useful if you don't want to change the curve of the other side.
    With these functions (preferably including the suggestions I've noted), path editing in Illustrator would be much easier.
    On the topic of Inkscape's path editing abilities, there is also a way within the program to delete anchor points in two ways:
    ]The default way is to press "Del," which deletes the anchor points and makes the anchor points around the deleted points attempt to fill the area as close as possible to how it was with points.
    ]The second way is to press "Ctrl + Del," which deletes the points and does nothing to the surrounding points.
    Inkscape's default deletion method is a huge time saver when you simply have a surplus of anchor points; you can the excess and the shape maintains itself (often the result is for the shape to smooth itself out).
    I hope that these suggestions are described well enough to be understood. I also hope that, in understanding these potential techniques, you can see their potential usefulness within Illustrator.

    Lee,
    All those functions are present in Illustrator. I personally think their interface stinks in some ways, but they are there.
    > "Shift + C" with anchor point selected: this will make the bezier handles of the point move independently of each other.
    Convert AnchorPoint Tool. Press Alt to invoke it when the Pen tool is active. Otherwise, switch to it with Shift C. Use it to drag a smoothPoint's handle, and it will convert the point to a cornerPoint, letting you move the handle you click independently.
    > "Shift + S" with anchor point selected: this will "connect" the bezier handles so that moving one side moves the other side relatively (and opposite to each other so that the bezier handles form a straight line).
    Again, the Convert tool. Mousedown on an anchorPoint and drag. The point will become a smoothPoint and both handles will extend symmetrically.
    There are also buttons to convert selected points between smooth and corner in the Control Panel when anchorPoints are selected.
    > (note: in Inkscape there is no way to make the bezier handles relative and not form a straight line, which is something I know would be useful)
    In my musings about Bezier drawing interfaces, I've often imagined a metaphor of "joints" rather than points. (That's really what they are: two adjacent Bezier curves with coincident endpoints.) Joints can be "hinged" or "locked"; "bent" or "straight". They can also be "dislocated". Joints can be locked bent or locked straight, and can be moved either way.
    > "Shift + Y" with anchor point selected: this will make the bezier handles collinear (like shift + S) plus make the lengths of both handles the same. (note: another possible feature would be to make the handle lengths relative, but not the same)
    See second item, above.
    > With these functions (preferably including the suggestions I've noted), path editing in Illustrator would be much easier.
    They are there; thier interface is just different.
    > On the topic of Inkscape's path editing abilities, there is also a way within the program to delete anchor points in two ways:
    > The default way is to press "Del," which deletes the anchor points and makes the anchor points around the deleted points attempt to fill the area as close as possible to how it was with points.
    Not present in AI. (Not associated with a direct point manipulation tool, anyway. Commands like Simplify try to remove points while retaining the shape.)
    > The second way is to press "Ctrl + Del," which deletes the points and does nothing to the surrounding points.
    The Delete AnchorPoint Tool. Invoke it by pressing the minus key. Similarly, there is an Add AnchorPoint Tool, invoked by pressing the plus key. By default, the Pen Tool does that automatically to selected paths, but you can turn it off in prefs (unlike the infuriating auto join behavior, which affects UNSELECTED paths.)
    > Inkscape's default deletion method is a huge time saver...I hope that...you can see their potential usefulness within Illustrator
    Just about every user of programs like Illustrator, FreeHand, Draw, Canvas know very well the advantages of keyboard modifiers for such things, and all such programs provide them. (Although I do consider AI's treatment considerably more tedious than FreeHand's.)
    You need to spend some time looking at the keyboard shortcuts described in the Help files, and carefully practicing them. You need to know how to invoke them while in the process of drawing paths with the Pen.
    JET

  • I am having an issue where whenever I am at the document list and do edit, to copy or delete a document the iPad locks up. Happens for both pages and numbers. Also happens on my iPhone, but only once in a while. Help.

    I am having an issue with both Pages and Numbers on my iPad. Whenever I am at the document list page and use "edit" to make a copy of a document or delete it, the iPad locks up. Happens almost every time. Also happens on my iPhone but only once in a while. Thought of completely redoing the iPad, but if it happens on the phone as well, won't help. ???

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Image List For Button Edit Type Field

    By reading the document in Sybook i came to know there is one button edit type. In that it says "An image can be defined for display in place of one of the available button controls. In this situation, the image referenced can be an image list, with each image in the list being a square and the same size".
    Image list i want to use because i want to show two different image one for the normal and one for the selected.
    By reading this line i came to know that there is image list but i don't know how to assign. In the button column there column for action where we can assign the action, after that there is another column for image there i can assign one one image. I don't know how to assign image list.
    Please help me in this regard.
    Amitoj
    Tags edited by: Michael Appleby

    Amitoj,
    What platform are you developing for?  I believe you are trying to add dynamic images to a push button on a detail screen?  The Button control on a detail screen has a Button tab.  On the button tab, there is a button image property.  Create a rule here rather than picking a static image.  In the rule, set up your logic any way you require, always returning an image name to be used.  So you could do something like this:
    IF
         EQSTR
              MyObject -> Status Property
              Started
    START (image)
    DEFAULT (image)
    The above rule says that if the current object's status property is "Started", use the START image, otherwise use the DEFAULT image.  These image names must be defined as images in your application.
    The rule will run and the correct image will be displayed on the button.  Image Lists were used initially on Windows clients to add dynamic images to list rows (not buttons), but this technique is not really used anymore.
    Jason Latko - Senior Product Devloper at SAP

  • ALV list which is editable ?     :-)   :-)

    Hi Team,
             Can you please guide me on how to Create an editable ALV list output (step by step,, Please).
    I am only familiar with normal ALV list.
    Thanks...Aby Jacob

    Hi Sükrü
            Thanks,that was a really fast answer.   
    Your suggestion ( BCALV_EDIT_**)
    was really helpful in solving my problem.
    warm regards......Aby

  • Control List Item creation/edit with SharePoint Groups

    I have a SharePoint Site that holds two SharePoint Groups Clerks and
    Accountants
    I have a List Called Customer
    This list contains columns Name, Surname, Balance.
    Clerks
    Create Customer and can fill the form except Balance field
    Edit customer fields Name and surname but not Balance.
    Accountants
    Can only Edit Balance and Surname.
    NB I do not mind a different solution to this as this is just a scenario I invented to understand how to do things. Nonetheless, I am after no code OOTB solutions and the target is to make things efficient for the users.

    Hi.
    SharePoint does not support Field level security.
    There are some custom solutions (e.g. https://sppex.codeplex.com/) that allow to you to use this functionality.
    If you perform a bing search using the key sharepoint field level security you can find some free or commercial solution to solve this issue.
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

  • Can we have a choice list (lookup) while editing a report.

    I have created a report and it has one editable field. BAM shows an input field which user can update but to avoid typing mistakes we want to make it choice list.
    Can I do it? Source data for choice list is fixed for time being but I would like to know if its possible to query data for choice list from other data objects.
    Thanks
    Sanjeev

    That is not going to happen.

Maybe you are looking for