Copy user-selected HTML textfield

AS3 targeting Flash 9. Using regular old textfield with htmlText and a stylesheet. The text content has some links, bullets, bold, etc.
The user may want to select all or part of the text in the textfield and copy the text to paste into Word, email, etc.
As it is only the text gets copied and not the htmlText. But what I really want to do is do some formatting on the htmlText to make it more readable when they paste it into Word or e-mail. Like replace the <li> tags with bullets, display both the friendly text and the href for links, etc.
I've figure out how to use RegExp to format the entire htmlText into what I want on the clipboard and that all is working with a "copy" button.
But I want the user to also be able to use rightclick, menu, or keyboard commands.
First problem: Is there a way to detect rightclick copy event and/or menu copy event? I'm guessing the answer is no.
Second problem: Is there a way to align the selectionIndex with the htmlText?
Anyone have any clever ideas? Thanks.

You should probably ask in the LiveCycle Designer forum.

Similar Messages

  • How to update a bound textField with user selection ?

    Hi all,
    I'm following an Update Database example from the JSC tutorials and have the following situation.
    I have a page displaying a row of data for a selected person (first_name, last_name, title) bound to a data provider. I have made the "title' field a TextField. I want to enable the user to edit the title field and update the information in the database.
    If I simply type a new title on the text field and click on Update, everything works fine. However, I want to make the user choose from a list of titles (in a drop down list) instead of manually editting the 'title
    field to avoid spelling errors.
    However, the textfield (title) does not display the selection from the Drop Down list.
    titleField.setText(rankdropDown.getSelected());
    It seems to me that the reason is that each time the drop down event value change event handler is executed, the Pre-render methd kicks in and restores the 'title' field to its original value (from table rowset). And the user selection is not displayed.
    public void prerender() {
    try {
    getSessionBean1().getStudent_infoRowSet1().setObject(1, getSessionBean1().getLoginBean().getUsername());
    student_infoDataProvider1.refresh();
    } catch (Exception e) {
    Can someone please suggest a solution?
    Thanks.
    Nakul

    Are you submitting the page after selecting the data from the drop down?
    The drop down does not seem to have an option of submiting the page when the value is changed. Only if you submit the page, will the data be processed and the text field updated.
    From what i see in the doc for the prerender method, this method is invoked during the renderResponse phase. Whereas the value change event is processed during the process validation phase itself of the jsf life cycle.

  • Customizing user selection fields of Logical database PNP

    Dear Gurus,
    I had made a z-copy of payslip program for incorporation of Logo. Now we need to put this report in Enterprise Portal (EP). Now since we would not want any user to view any other person's payslip, I need to disable the selection field (PERNR) for user selection.
    Problem is this field for user selection is coming from standard Logical Database (LDB - PNP) used in the program. So how can I make this field hardcoded as sy-uname and non-modifiable without making z-copy of LDB-PNP.
    Also I wish to harcode Payroll Area writing some code (from table PA000) but again I cannot write this in std. PNP LDB and writing it in driver program will not help.
    Thanks in advance.
    Regards,
    Amit

    Write the highlighted coding in initialization ...
    initialization .
    select single pernr from pa0105
           into pernr-pernr
           where usrid = sy-uname.
    if sy-subrc = 0.
      PNPPERNR-sign = 'I'.
      PNPPERNR-option = 'EQ'.
      PNPPERNR-LOW = pernr-pernr.
      Append PNPPERNR.
    endif.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW' or
    screen-name = 'PNPPERNR-HIGH'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.
    at selection-screen output.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW' or
    screen-name = 'PNPPERNR-HIGH'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.

  • How to send a copy of my .html without it coming up blank

    Hi,
    Sorry I’ve tried having a look around for this but can’t find the answer anywhere, possibly because of the way I am wording it.
    I don’t really know what I’m doing to be honest, first attempt at making a webpage.
    I’m trying to send a copy of my .html files to my brother over dropbox so he could maybe help me out. However when I send it the file just opens up as lots of blank slices, i.e. the images have disappeared. I was wondering if there was a way to save the webpage so that the images are saved with it, rather than being linked to it??
    An apology if this has been asked a million times before.
    Cheers,
    Ben

    I have found that the best way to send websites or set them up is to do it in an organized way.
    When you're in Dreamweaver, you set up a site as a folder on your local hard drive and everything should be stored there.
    Windows and Macs both have "user" areas and your "user" would be you. If you created a user file with your Adobe handle, it would be "iwontbuythis."
    So, within "iwontbuythis" you have folders, such as "Documents" and "photos" and so on. In my user area, which is "Mark," I created another folder called "Sites." That's where my websites I create in Dreamweaver go and I have an "alias" or "shortcut" on my desktop to that.
    Whenever I create a new website, it's in a folder underneath "Sites." So my website for my company, Hollis Internet Marketing, LLC, is in a folder under "Sites" called "HIM."
    If I need to send that website to anyone, I simply zip up my "HIM" folder and send everything within it. If it's too big for an email, I use Dropbox, or I place it on my server for download.

  • Execute a DML process after user selects a column link in a report

    APEX 3.2 / RDBMS 10GR2
    I have written a non IRR report that displays several rows of data. The first column of each row has a defined column link uniquely identifying the row. When a user selects one of the rows via the column link, a "hi fidelity" report is generated for that displayed row using a (RTF) report layout created in the shared components section of APEX.
    This is working well but I also need to execute a DML process after the user selects a row but prior to displaying the hi fidelity report using the selected column link value of the displayed row.
    As a URL is used to call hi fidelity report via the column link, it does not appear that the process section of the APEX page component is available to execute the DML prior to displaying the report.
    Any ideas on where to define the DML process?
    Thanks in advance.
    Barry D

    Hi Barry,
    Not knowing exactly what your URL calls, this is what I do for PL/SQL procedures that create HTML output:
    Create a blank page with no template and call the procedure inside a PL/SQL region with no template.
    Alternatively, if your URL opens in a new window:
    run some javascript for your link and pass a unique request through.
    The javascript needs to find the ApEx form, update it's target attribute and submit it with the unique request, then set the target back to blank.
    The form will submit into a new window.
    You can then have a process and branch allocated to this unique request to do what you want.
    Hope this helps
    Regards
    Michael

  • If i have a form with check boxes. Can I add a button that will display the boxes that the user selected on a new page?

    For example, there are 10 check boxes and the user selects 5 of those boxes. Then they click a submit button. Just the information from those boxes would be displayed so they can print it. Is this possible? Any help pointing me in the right direction would be appreciated.

    That is definitely possible.
    Option 1: checkboxes are all named differently.
    In the click event for the submit button, add some code like this...
    if (cbChoice1 == "1") p2.tfChoice1.presence = "visible";
    else p2.tfChoice1.presence = "hidden"; //can use "invisible" if preferred
    if (cbChoice2 == "1")...
    Option 2: checkboxes are named the same
    In the click event for the submit button, add code like this...
    var checkboxes = xfa.resolveNodes("cbChoice[*]");
    var textfields = xfa.resolveNodes("p2.tfChoice[*]");
    for (i=0; i<checkboxes.length; i++){
        if( checkboxes.item(i).rawValue == "1") textfields.item(i).presence = "visible";
        else textfields.item(i).presence = "hidden";

  • Copy user setting

    Hi,
        I used this query for copy user setting from Manager to all other users. This query running successfully but problem is this all the setting is copied but manager user lost all settings i.e all udf's come under general category which is previously distributed to different category. Which is fine for rest of the users.
    ALTER PROCEDURE [dbo].[CopyUserSettings] AS
    Declare @ManagerId int
    Declare @MaxId int
    Declare @NextId int
    Declare @TempId int
    -- Change value below if copying from other than Manager(1)
    Select @ManagerId = 1
    Select @MaxId = max(UserID) + 1 FROM OUSR
    Select @TempId = 1
    Select @NextId = @ManagerId
    if exists (select 1 from sysobjects where name = 'temp_dev_sup')
    Begin
    drop table temp_dev_sup
    End
    select * into temp_dev_sup from cprf where usersign=@ManagerId
    Delete from cprf where usersign= @ManagerId
    WHILE @TempId < @maxid
    BEGIN
    If @tempid <> @managerid
    BEGIN
    Update temp_dev_sup Set usersign= @TempID where usersign=@NextId
    Insert into cprf Select * from temp_dev_sup where usersign= @TempId
    END
    Select @NextId = @TempId
    Select @TempId = @TempId + 1
    If @TempId >= @maxid
    BREAK
    Else
    CONTINUE
    END
    Thanks
    Rahul

    Hi Rahul,
    Change Select @ManagerId = 1 from 1 to some other user id having correct form settings and execute belwo procedure again.
    ALTER PROCEDURE [dbo].[CopyUserSettings] AS
    Declare @ManagerId int
    Declare @MaxId int
    Declare @NextId int
    Declare @TempId int
    -- Change value below if copying from other than Manager(1)
    Select @ManagerId = 1
    Select @MaxId = max(UserID) + 1 FROM OUSR
    Select @TempId = 1
    Select @NextId = @ManagerId
    if exists (select 1 from sysobjects where name = 'temp_dev_sup')
    Begin
    drop table temp_dev_sup
    End
    select * into temp_dev_sup from cprf where usersign=@ManagerId
    --Delete from cprf where usersign= @ManagerId
    WHILE @TempId < @maxid
    BEGIN
    If @tempid <> @managerid
    BEGIN
    Update temp_dev_sup Set usersign= @TempID where usersign=@NextId
    Insert into cprf Select * from temp_dev_sup where usersign= @TempId
    END
    Select @NextId = @TempId
    Select @TempId = @TempId + 1
    If @TempId >= @maxid
    BREAK
    Else
    CONTINUE
    END
    Thanks,
    Neetu

  • Retrieving user selected values in drop down

    Hello
    I am in trouble again
    I am trying to set the user selected values in the dropdown list but whatever i tried i always either get the default values or just the last selceted value or the first selected value
    Can anyone help please
    heres the code
    String values = request.getParameter("selectHeaders" + i++);
        while (values != null)
            selectedValues.add(values);
            values = request.getParameter("selectHeaders" + i++);
    [INSIDE HTML]
    <%
      for (int j = 0; j < headerList.size(); j++)
             String selectedHeaders = "selectHeaders" + j;
       %>
        <TD><%=headerList.get(j)%></TD>
        <TD><SELECT name="<%=selectedHeaders%>">
         <%
               for (int k = 0; k < sheetHeaders.size(); k++)
                       int m = 0;
                       int val = 0;
                       boolean isSelected = false;
                       if(selectedValues.size() != 0)
                            while((!isSelected) && (m < selectedValues.size()))
                                     String valueStr = selectedValues.get(m).toString();
                                      val = Integer.parseInt(valueStr);
                                     // logger.debug("THE USER SELCTED VALUE : " +val);
                                       // logger.debug("THE LOOP value k: " +k);
                                       if (val == k)
                                            isSelected = true;
                                        else
                                            m++;
                                    } //end of while
                                    logger.debug("THE BOOLEAN VALUE IS: "+isSelected);
                                    %>
    //this line is the one where all my confusion is
    <OPTION <% if(isSelected) {%> selected <%}%> value = '<%=k%>'><%=sheetHeaders.get(k)%></OPTION>
                            <% } //end of if(isSelectedValues.size())
                            else { %>
                                 <OPTION <% if (j == k) { %> selected <%}%> value="<%=k%>" ><%=sheetHeaders.get(k)%></OPTION>
                           <% } //end of else (selectedValues == 0)
                            } //end of for(k)
    [END HTML]

    I got the solution
    Thanx for your time
    have a nice day

  • Can iBooks Author hide sections of a book to be revealed only after the user selects a correct choice?

    Can iBooks Author hide sections of a book to be revealed only after the user selects a correct choice?

    K T wrote:
    'downside'....really?
    Well, yes, in the sense that simplicity has a price: it comes at the cost of reduced functionality. (If all the functionality were still there, things wouldn't be as simple; it's an inevitable trade-off.) It looks like IBA was designed with the iWeb philosophy: make simple things really simple, and leave out the stuff that's too complex to control for non-experts. The upside of course is that non-experts can use the tool really easily.
    K T wrote:
    No pain - no gain. You didn't come up with the content for your books without putting in fair time
    Sure. But almost all that effort went towards creation of the content, not towards laying it out with IBA (which was remarkably easy). So, in that sense, IBA more than met my expectations. The things it does do, it by and large does really well, and without much expertise needed on my part. The only thing that was complex was the HTML widget, which took some programming. But that's entirely my own fault, not IBA's
    Michi.

  • Copying user specific reporting variants to other users

    Hi,
    Does anyone have experience in copying user saved variants to other users?
    We'd like to create a few complex variants for reporting and then distribute them to all of our users.
    Thanks!
    -Miikka
    Edited by: Miikka Åkerman on Nov 18, 2009 2:40 PM

    Hi,
    In reports input Screen you have this option,
    In selection screen you can find, Save as a New varient, give some name and save , don't select Save as User Varient and save it.
    Note: Check with the select Save as User Varient & Use as default Varient options.
    Thanks
    Reddy

  • Keep the entering data in korean or english which user selected.

    Dear all.
    An user enter the data into the form in Korean in the second column. Then
    move next field of second field, a character is changed in English again automatically.
    how to keep the character set which user selected.
    Thanks.

    You dont have to download anything, just duplicate the current tab and reset your numbers. (tap the tab once and you get a choice of duplicate or delete.) You could then summarize across tabs if you liked.
    It is just set up as a way of tracking a period, your choice of duration.
    I get paid on the 1st and 15th, with distinct budgeting concerns for both periods (times are tight.). So we would do one for each two weeks to see how we did. Maybe double the budget numbers to get monthly numbers on another tab to track that month. Maybe then  copy paste that data into a YTD tab at the end of the month.
    Whole bunch of ways to handle it. You dont have to stick with month by month tabs or files. Using some creative thinking, You can make it so on the YTD tab you type in a month or quarter and it shows that information through equations.
    Jason

  • Copy User to User

    When setting up a new user, is it possible to 'copy' the settings from another user?

    Only if you're an admin user. Login to the user account you want to transfer from. Double-click the boot volume icon, open up Users and the user account you want to transfer to. Select the ~/Library/Preferences folder in the transfer from user's account and drag it to the transfer to user's Desktop. You'll get a dialog box stating you have to authenticate, click OK, next you'll get a "you won't see the results of this operation" dialog box, click OK, enter your password in the authentication window, and the folder should be copied to the transfer to user's desktop. Login into that account, select the copied folder, CMD+I, and change the ownership & permissions to the new user, select "apply to enclosed items." That should do it. Now you can replace the appropriate plists (settings files).

  • Select (html option list) data not showing up on server

    Okay, I have a select option list, which is implemented as a list box, like so:
    <SELECT NAME="myList" MULTIPLE SIZE=10>...and I add stuff to this list, and it grows and grows, but then when I submit the form, no data comes over. Here's an example of what the HTML looks like before submitting:
    <OPTION VALUE="PW1868J76006">PW1868J76006 / Vane Segment W501G Row 1</OPTION>
    <OPTION VALUE="PW1868J73G01">PW1868J73G01 / Vane Segment W501G Row 3</OPTION>... and i have other form elements that get populated and the data makes it back and forth no prob. So I know that EVERYTHING is working fine except that when the form is populated (automagically via struts), it completely ignores the data in the list box.
    How can I capture this data?

    Why do you want all sent across ? Okay, I explained this above. You search for stuff, you get 100 results in a list box. Then you select say 10 of them and hit the ADD button which adds those 10 to a DIFFERENT list box. The list box you are adding to here represents the search results you care about. So you search, add some, search again, add some, etc. Finally, you submit and EVERYTHING in the 2nd list box should be sent to the server, because those represent the users' choices.
    What if the user
    selects only 2 (or 3). If you do want all sent
    across, maintain them in a session or something on
    the server, why bring it over to the browser ?TWhen they search, the submit happens and thier search results are lost unless I persiste them back and forth. Remember, it's not a single search, it's as many as they want. If I don't bring it to the browser, then how can they remove stuff if they change thier mind?
    OK, even if your requirements are such, you could
    write a script that selects all on submit which would
    ensure that all data does get through to the server.
    But then what if the user selected say 3 options and
    want only that to be 'selected' and not the whole set
    ? Your script would still cut in on submit and select
    all irrespective of user selection - the ui and the
    flow wouldnt be too intuitive, IMO.Good point!!! :-)

  • Copy users with their Org assignments

    Hi,
    I'm working in a SAP system in which SAP Users are directly linked to Positions (for indirect role assignment need).
    Is it possible to copy users with all assignments ?
    All tests done using SU01 only copy User's data without their assignments.
    Thanks and regards.

    Srihari Rao wrote:>
    > > When I create a user copy, in the popup window I can choose to copy or not user's reference but I do not see how to include Organizational Assignment links
    >
    > Hi,
    >
    > When the roles are copied from the user, the org levels are copied too (if maintained in the roles of the user).
    >
    > ex: user1 has roles assigned to him which have Org levels maintained for it.Now when you copy the user1 data, say for user2, and you select "Roles" from the copy options... the user2 will get the same org levels that are available / restricted for user1.
    >
    > Hope am clear.
    Clear yes, relation with the original question, no.
    Gaetan  is talking about the position in the organization to which the USERID is linked. I personally think there's no way to copy that along with the user.
    You can link the copied user to the same position the original user had/has. But that would always be an extra action as far as I know. (This is another one were I'd love to be proven wrong....)
    If you have to copy a lot of users maybe you can ask in the HR forum(s) about automating the organizational assignment with ecatt.

  • Trying to set attribute value based on user selection of another attribute

    I am trying to set an attribute value based on the user's selection of another attribute using JSP EditCurrentRecord. When the user chooses the AreaId from the combo box I want to look up the value of the RgnID, preferrably without the user seeing this field at all. Below is my code which does not work. When I run it I get Error Message: null. Any suggestions are appreciated!!
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(pageContext, "MyProject2_package1_SRSecurityModule.UsrAreaWhView");
    RowEditor.setTargetUrl("UsrAreaWhView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setDisplayAttributes("OracleId, RgnId, RegionKey, AreaId");
    RowEditor.useEditField("OracleId");
    RowEditor.getFieldRenderer("OracleId").setPromptText("Oracle ID");
    RowEditor.useEditField("AreaId");
    RowEditor.useComboBox("AreaId","AreaWhView","Area","AreaKey");
    RowEditor.getFieldRenderer("AreaId").setPromptText("Area");
    RowEditor.useEditField("RgnId");
    RowEditor.getFieldRenderer("RgnId").setPromptText("Region");
    RowEditor.getRowSet().getViewObject().getCurrentRow().setAttribute("RgnId",RowEditor.getRowSet().getViewObject().getCurrentRow().getAttribute("RegionKey"));
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.render();
    %>
    </jsp:useBean>

    ok, sorry everyone for making it confusing; this is what I am
    trying to acheieve;
    I would like the user to populate my database with thier
    username AND userID. I have a dropdown box with thier username
    dynamicly populated already, what I am trying to achieve, is a way
    of when the user selects thier username either another dropdown or
    a hidden field is automatically populated with the appropiate
    userID (to match thier username). Now I could just have two
    dropdowns and they select both, but i'd rather avoid the
    possibility of mismatches, and that is why I would like it to be
    automatic and based on thier username selection...
    Does that make sense....?

Maybe you are looking for

  • Can no longer see PDF pdfs in Safari

    I installed the demo version of Acrobat XI when it was first released. I did not have the money to buy the update at that time, so after the demo trial period I uninstalled it. Now I am "NO" longer about to see, print or examine any pdf file that is

  • Dw cs3 Mac 10.5.2- 10.5.3 update

    Greetings! This is my first post here. I generally get along great with Dreamweaver but after updating my OS from 10.5.2 to 10.5.3 the Split Code/Design View and Design View are no longer available in the document window. Has anyone else experienced

  • I pad mini with retina display

    The safari app. in my I pad mini with retina display crashes several times per a day . Is there any solution for this problem ?

  • How to recover game, removed by accidently?

    I Accidently remive my Clash of King gand from game center and i want it back. My game data is lost but my profile is still In gsme center. Is there is a way to get it back?

  • WebLogic Portal 4 unattended install.

    I can't find this info in the install docs, and passing command line options to the wlportal400_win.exe program doesn't seem to do anything. Anyone know where I can find this info? Thanks