Modify deleteSelectionState of InsertTextOperation of TextOperationEvent possible?

Hi,
I have a spark textarea component listening to TextOperationEvent.CHANGING inside creationCompleteHandler.
text_area.addEventListener(TextOperationEvent.CHANGING, textChangingHandler);
What I want to do is when the user inputs "a" the InsertTextOperation text is changed to devanagari "अ" so the user effectively inputs "अ" by typing "a" on the keyboard. This is no problem and I get the result as expected using the code similar to below:
protected function textChangingHandler(e:TextOperationEvent):void {
     if (e.operation is InsertTextOperation) {
          var flowInsert:InsertTextOperation = e.operation as InsertTextOperation;
          var current_char:String = flowInsert.text.charAt(0);
          if (current_char == "a") {
               flowInsert.text = "अ";
Problem that I have been trying to figure out is next when the user again types "a", I want the text to change to "आ" replacing the previous "अ". Now, it looks like this can be achieved by using a variable to hold previous character typed, examine if it is "a", delete the previous "अ" using deleteSelectionState property of flowInsert(see above code) along with god knows what and, similarly(as above) replace the flowInsert.text with "आ".
How can this be achieved? I have tried manipulating the deleteSelectionState without result please help!!! Your help is deeply appreciated.
Thankyou,
Yalamber Tamot

Hi Frank,
For some reason I don't have the "write to data file" icon at left panel as one of my data targets. I found the document below and on page 3 it illustrates that I should have the PC icon as one of my data targets so I may write to file however it is not available. I am currently working in a APO version 4.1.  Is there any way to add/create this similar to the way a BI source system is created?
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20b22245-0828-2c10-54b1-a2ddb167df01
Regards,
David

Similar Messages

  • I have an existing Ibook that I created.  I wanted to copy the whole book and rename it.  Then modify several pages.  Is that possible?

    I have an existing Ibook that I created.  I wanted to copy the whole book and rename it.  Then modify several pages.  Is that possible?

    Sure. Right click on the book in the left hand pane and choose 'Duplicate'. Then work on the duplicate.

  • NTSC project  modified to PAL project is this possible?

    I have a project that i am working with that has 3 menus, 7 tracks & 17 scripts.
    there are two DVD's in the "set" each one is the same... just different video tracks... essentially its a 2 disc set that i need one version of NTSC (done) and one PAL version.
    I have created the NTSC project first, but before I create the PAL versions i wanted to know if anyone had come up with a way of just replacing the project assets & video assets to PAL?
    I have tried removing all the video off all the tracks and deleting them from the project (this works with no menus & no scripts to convert to PAL) Next I figured it was the menus so I changed out the video assets of the menus and transitions to PAL.mov's but they are lower quality and the project still will not switch to PAL.    
    any ideas before i recreate all of those scripts and menus in PAL?
    as a side note just to make sure... Dolby files do not matter right? I dont think i need to make PAL versions of audio.. i couldnt find a way to do it anyway... just wanted to double check that thought.
    Thank you.
    -bryan

    if anyone is wondering... the answer is no... rebuild it from scratch.

  • Is it possible to use the iMac display as en external monitor?

    I want to connect my powerbook up to an iMac using the display as an external monitor for the laptop. Is this even possible? Any feedback would be appreciated.

    Hello,
    I've seen this post at least a hundred times. Has
    anyone actually had the gusto to try this idea?
    I don't remember where the page was. But, I posted it's link several months ago in the forums during another discussion.
    But, the guy who had done it to his iMac G3 had very poorly documented his conversion.
    Basically, he took and wired signal to same signal on the monitor, and adapted his power supply and other items to work properly in the modified setup.
    So, it is possible. You just need to sit down with the schematics and wire signal to same signal, and make sure you account for all the variables. It may take some resistors, etc. to get the adaptation just right.
    I don't have any reason to do it myself, so I'm not going to tinker with it.
    If I remembered the link, I'd post it. But, it wouldn't do much good anyway since his HTML formatting was severely messed-up. The end-result was accurate information that was scrambled around on the screen in such a way that you couldn't decipher it anyway. If he had done the HTML work properly, it would be in a formatted table. But, instead the information was scattered all over the screen in an illogical format. So, it wasn't of much real use.

  • Adding existing field to a UI Search and Modifying UI Query

    Hello.
      I want to add the "central archiving flag" to the Contact search BP_CONT_SEARCH/Search. I've added the field into the SEARCH node via BSP_WD wizard but the field created does not appear as available in the Search because it is not into the context structure. ¿Is there any solution to this? ¿I must append a new field to the standard structure?
      Although I get the "archiving flag" available I think I will need to modify the selection query ¿Is that possible? If it's possible ¿How can I do it?
      I have another problem with a result field of another search for activities (BT126S_APPT/ApptSR). I would like to know how can I reach the selection ( based on BOL result model BTQRAct ) and how can I modify that selection/quety.
    Thanks in advance.
    Kind regards.

    You can create a copy of the standard design layer, add your field and define it as dropdown listbox 0 coding is required
    Otherwise you will need to code in the GET_V method and the GET_P, there's a lot of information about this if you have a little of patience to search
    If fits your requirement (dropdown listbox) I would go for the design layer approach, of course there's info about this through scn too

  • Compile error: How to modify .ini in 2010 SP1

    Hello,
    I am using the attached VI to stack cycles of data.  Ideally, I would like to stack 200-300 cycles, but anytime I get above 100-125 shift registers/cycles, the VI will not compile.  After 20-30 minutes, the error "out of memory exception caught in llvm gencode" appears.  
    Follow past searches, I have increased the virtual memory as detailed below, which did not solve my problem.
    http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/enable_lrg_ad_aware/
    I see this posting detailing modifying the .ini file as another possible solution.
    http://digital.ni.com/public.nsf/websearch/BA4B9038D01F3C99862577CA004BE1AD?OpenDocument
    Being unfamiliar with modifying the .ini file, how do I exactly do this?  Is it as simple as adding a line "LLVMLargeVIThreshold=12000" ? (or something greater than the standard 7500 value).  I have adding this line to the .ini file and still get the compiler error llvm issue.
    Any other suggestions or thoughts?  I dont want to have to roll back from 2010SP1 in order to be able to run this vi and get around this issue...
    Thank you
    Attachments:
    cyc_.vi ‏513 KB

    I can get it above 200 shift register elements and still get it to compile, but that may be due to system differences.
    However, that design does not scale well.  Any time you want to change the number of elements you need to modify the program.
    Have you considered a queue of datatype Array of Double?
    If you look at buffer allocations in your program you get one buffer for each shift register element and one for the 2D array. Each must have contiguous memory due to the way arrays are stored in memory.  If the input array array grows in length, then all of the buffers need to be reallocated.  This should be a run time problem rather than compile-time, but the compliler may try to do some optimizations, particularly since it knows all the shift register buffers will be the same size.
    The Queue stores each array separately and the arrays can be different lengths.  To get all the data, use Get Queue Status with return elements? set True.  This will return an array of clusters with each cluster containing one of the input arrays.
    Lynn
    Attachments:
    cyc_3.vi ‏7 KB
    test Array of Queues.vi ‏10 KB

  • Is it possible raise a trigger for particular user

    hi,
    i have oracle user zil,i want to write trigger for this user..
    with out writting trigger for each table .
    for ex:
    i have 2 tables in this user
    1.emp
    2.audit_log
    suppose i m inserting values into emp table at the same time insert into audit_log with action as insert,like that suppose i m updating any row in emp then insert one row into audit_log with action as modify,
    my question is is it possible to write a trigger for the user zil,not for table emp
    so i can maintain audit_log..
    pls give me a solution
    regards
    singh

    It depends upon how you are connecting to the Oracle database, if you are connecting through CITRIX then it is difficult to identify the user or the other option for you is to have a field USER in each table and pass the user name form the front end.
    To captures the changes in the table EMP and insert into the AUDIT table you may need to write a trigger in the EMP table and before you INSERT into AUDIT check the user.
    Or why dont you use AUDITING provied by Oracle.
    Thanks

  • Seeking to Modify the /boot partition size

    I need to enlarge the /boot partition from its default 100 MB to 300 MB for OEL 5.6.
    I am OVM_OL5U6_X86_64_PVM_10GB.tgz from Oracle edelivery.
    Examining the modifyjeos manpage there is no function for extending and/or modifying /boot that I can locate unless it is an undocumented feature.
    I have located a Brute Force Method (BFM) on the Internet for modifying /boot on a running OS image but I would rather modify the template if at all possible thank you.
    Mark E. LLoyd
    Data Center Technology
    Accenture

    Target DisK Mode may be your best bet.
    Another alternative. Remove the hard drive. Buy one of these hard drive adapters. http://www.ebay.com/itm/USB-2-0-to-IDE-SATA-S-ATA-2-5-3-5-HD-HDD-Adapter-Cable-/ 180550148600?pt=US_Drive_Cables_dapters&hash=item2a09a0a1f8&_requireRaptorProxy= false Then connect the hard drive to another computer.
     Cheers, Tom

  • Can I just limit user can only modify the x value of a point?

    In my effect, I add a point by using PF_ADD_POINT. But I just want user can only modify the x value, is this possible? How can I do it?

    hello shibin.chris! welcome to the forum!
    well, there's no switch you can flip to have such behavior, but you can:
    1. supervise the param, so whenever the user changes the value you can keep
    the X and restore the Y. (won't hold water in case of keyframing or
    expression)
    2. set an expression that would do the same.
    3. check the param at some events (such as the render call), and modify the
    keyframes and values if necessary. (won't handle expressions)
    that's all i can think of.

  • Find all Z programs which are being modified in last month

    hii all,
    I want to find all Z programs which are being modified in last months.Is this possible??.is there any standard or z-program which can give me the detail of all Z-program which are modified.
    It is possible if i get last month Request but suppose if there are more than 100 request per month then it is not possible to go through each individual Request and find Z-programs.
      Waiting for ur reply.
    <removed_by_moderator> ... read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]!
    Thaking You.
    Edited by: Julius Bussche on Jul 17, 2008 7:16 PM

    Hello
    REPORT ZCHPROG.
    TABLES: D010SINF.
    DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
    DATA: PROGTXT1(72) TYPE C OCCURS 0 WITH HEADER LINE.
    DATA:
       BEGIN OF MT OCCURS 0,
    PROG LIKE D010SINF-PROG,
    EDTX LIKE D010SINF-EDTX,
    R3STATE LIKE D010SINF-R3STATE,
    UNAM LIKE D010SINF-UNAM,
    CNAM LIKE D010SINF-CNAM,
    UDAT LIKE D010SINF-UDAT,
    UTIME LIKE D010SINF-UTIME,
    END OF MT,
    N(4),
    PROG(20) TYPE C,
    MIN(10) TYPE C.
    RANGES: UDAT1 FOR D010SINF-UDAT.
    RANGES: UTIME1 FOR D010SINF-UTIME.
    SELECT-OPTIONS: PROG1 FOR D010SINF-PROG,      "
                    UNAM1 FOR D010SINF-UNAM,      "
                    CNAM1 FOR D010SINF-CNAM.      "
    PARAMETERS DEN(4) TYPE C DEFAULT '1'.
    PARAMETERS SEC(5) TYPE C DEFAULT '30'.
    PARAMETERS DOP AS CHECKBOX DEFAULT ' '.
    START-OF-SELECTION.
    IF DOP NE SPACE.
    MIN = SEC * 60.
          UTIME1-SIGN = 'I'.
          UTIME1-OPTION = 'BT'.
          UTIME1-LOW = SY-UZEIT - MIN.
          UTIME1-HIGH = SY-UZEIT.
       APPEND UTIME1.
    ENDIF.
          UDAT1-SIGN = 'I'.
          UDAT1-OPTION = 'BT'.
          UDAT1-LOW = SY-DATUM - DEN.
          UDAT1-HIGH = SY-DATUM.
       APPEND UDAT1.
    SELECT PROG UNAM UDAT UTIME R3STATE EDTX CNAM
    INTO (MT-PROG, MT-UNAM, MT-UDAT, MT-UTIME, MT-R3STATE, MT-EDTX,MT-CNAM )
             FROM D010SINF  WHERE PROG IN PROG1
                                         AND UDAT IN UDAT1
                                         AND UTIME IN UTIME1
                                         AND CNAM IN CNAM1
                                         AND UNAM IN UNAM1.
    APPEND MT.
    ENDSELECT.
    N = 1.
    WRITE: / 'from', UDAT1-LOW, 'to', UDAT1-HIGH.
    SORT MT BY UNAM UDAT UTIME.
    LOOP AT MT.
    WRITE: / MT-CNAM,MT-PROG,MT-UNAM,MT-UDAT, MT-UTIME,
    MT-R3STATE, MT-EDTX.
    N = N + 1.
    ENDLOOP.
    WRITE: / N.

  • Difference between modify , append and update

    Hi,
          Give me diffference between modify , append and update?
           If possible give me with example.
    Thanks & regards
    venkravi

    Hi,
    Syntax Diagram
    MODIFY itab
    Syntax
    MODIFY { itab_line | itab_lines }.
    Effect
    This statement changes the content of one or several itab_line or itab_lines lines that can be specified using the table key or the table index.
    System fields
    sy-subrc Meaning
    0 At least one line was changed.
    4 No lines were changed, since no suitable line was found for the insertion using the table key, or the specified index was greater than the current number of lines for the insertion using the table index.
    Note
    Apart from using the MODIFY statement, the content of an individual table line can be changed using assignments to field symbols and dereferenced data references that point to the table line.
    Exceptions
    Non-Catchable Exceptions
    Cause: Illegal dynamic specification of a line component
    Runtime Error: ITAB_ILLEGAL_COMPONENT
    Cause: Illegal key component in the TRANSPORTING list.
    Runtime Error: ITAB_ILLEGAL_TRANSP_COMP
    Syntax Diagram
    APPEND
    Syntax
    APPEND line_spec TO itab [SORTED BY comp] [result].
    Addition:
    ... SORTED BY comp
    Effect
    This statement appends one or more rows line_spec to an internal index table itab. If itab is a standard table, you can use SORTED BY to sort the table in a specified way. Use result when appending a single row as of release 6.10 to set a reference to the appended row in the form of a field symbol or a data reference.
    For the individual table types, appending is done as follows:
    To standard tables, rows are appended directly and without checking the content of the internal table.
    To sorted tables, rows are appended only if they correspond to the sort sequence and do not create duplicate entries with unique table key. Otherwise, an untreatable exception is triggered.
    To hashed tables, no rows can be appended.
    The APPEND statement sets sy-tabix to the table index of the last appended row.
    Addition
    ... SORTED BY comp
    Effect
    This addition is allowed only if you specify a workarea wa and if you use a standard table, where wa must be compatible to the row type of the table. You can specify component comp as shown in section Specifying Components, however, you can access only one single component and no attributes of classes using the object component selector.
    The statement is executed in two steps:
    Starting at the last row, the table is searched for a row, in which the value of component comp is greater than or equal to the value of component comp of wa. If such a row exists, the workarea wa is included after this row. If no such row exists, the workarea wa is included before the first row. The table index of all rows following the included rows increases by one.
    If the number of rows before the statement is executed is greater than or equal to the number specified in the definition of the internal table in the INITIAL SIZE addition, the newly-created last row is deleted.
    Note
    When using only the statement APPEND with addition SORTED BY to fill an internal table, this rule results in an internal table that contains no more than the number of rows specified in its definition after INITIAL SIZE and that is sorted in descending order by component comp (ranking).
    The SORT statement should usually be used instead of APPEND SORTED BY.
    Example
    Creating a ranking of the three flights of a connection showing the most free seats.
    PARAMETERS: p_carrid TYPE sflight-carrid,
                p_connid TYPE sflight-connid.
    DATA: BEGIN OF seats,
            fldate TYPE sflight-fldate,
            seatsocc TYPE sflight-seatsocc,
            seatsmax TYPE sflight-seatsmax,
            seatsfree TYPE sflight-seatsocc,
          END OF seats.
    DATA seats_tab LIKE STANDARD TABLE OF seats
                   INITIAL SIZE 3.
    SELECT fldate seatsocc seatsmax
           FROM sflight
           INTO seats
           WHERE carrid = p_carrid AND
                 connid = p_connid.
      seats-seatsfree = seats-seatsmax - seats-seatsocc.
      APPEND seats TO seats_tab SORTED BY seatsfree.
    ENDSELECT.
    Exceptions
    Non-Catchable Exceptions
    Cause: Including a row with identical key (target table defined with UNIQUE)
    Runtime Error: ITAB_DUPLICATE_KEY_IDX_OP
    Cause: Violation of the sorting sequence due to an APPEND to a sorted table
    Runtime Error: ITAB_ILLEGAL_SORT_ORDER:
    Cause: Unallowed index value (<= 0) for a FROM, TO, or INDEX specification
    Runtime Error: TABLE_INVALID_INDEX
    Syntax Diagram
    UPDATE dbtab
    Syntax
    UPDATE target source.
    Effect:
    The statement UPDATE changes the content of one or more lines of the database table specified in target. The entries in source determine which columns of which lines are changed, and how they are changed.
    System fields
    The statement UPDATE sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one line has been changed.
    4 At least one line was not able to be changed, either because no appropriate line was found, or because the change would generate a line that leads to double entries in the primary key or a unique secondary index in the database table.
    The statement UPDATE sets sy-dbcnt to the number of changed lines.
    Note
    The changes are definitively copied to the database with the next database commit. Until that point, they can still be undone using a database rollback
    The statement UPDATE sets a database lock up to the next database commit or rollback, which may lead to a deadlock if used incorrectly.
    For the specific database, the number of rows that can be changed within a database LUW in the database table is restricted by the fact that a database system can only manage a certain amount of data in the rollback area and from locks.

  • Custom overlays and modifying Safe Margins?

    Hi folks,
    I had a quick question and haven't been able to find proper information when researching... but would creating custom overlays and modifying the safe margin be theoretically possible within the SDK? If so what approach would be taken to do so?
    If there is documentation on creating things such as this, and I've missed it, I apologize for wasting your time - however pointing me in the right direction would be much appreciated!
    Thanks in advance.

    Hi Ian,
    You can modify the Safe Margin in the Project Settings > General > Action and Title Safe Areas.
    There's no plug-in type for creating custom overlays for the Source and Program Monitors.  I'm not sure what your idea is, but perhaps could achieve something similar using an effect plug-in.  Effect plug-ins built using the After Effects SDK can have "Custom Composition UI", so that when the effect is applied to a clip and its header is selected in the Effect Controls Panel, it can draw over the video in the Monitor.  You could create an adjustment layer and apply the effect to that clip, so that you could have an overlay over the entire timeline.

  • Modify style elements ...

    hi,
    I'd ideally like to modify a style -
    (a) to rename - e.g. Heading1 to HeadlineCopyText
    (b) to add more elements
    any ideas on if this is possible?
    clearly would require modify db table content - is this
    possible for a single style?
    thanks
    kev

    You can define your own styles and override the Portal styles by using the unstructured UI template feature. The names and element list of the Portal styles cannot be modified.
    Regards,
    Jerry
    PortalPM

  • MyRIO FPGA FFT Express VI timing analysis for multiple input mode - trying to perform fft's on a 3-axis accelerometer

    Hi Everyone!
    Project Background:
    I've been working with the myRIO FPGA in an attempt to generate an application capable of sampling a tri-axis accelerometer and performing an fft on each axis. I've successfully developed an application for a single axis, but attempting to duplicate the code to sample the second and third axes in parallel results in an estimated 150% resource utilization for the tiny FPGA's LUT's. Additionally, I'm looking to avoid sequentially processing each accelerometer input using triggers and a single fft block because that reduces my fft update frequency significantly (e.g. I can't calculate another fft for input 1 until I calculate an fft for inputs 2 and 3).
    After reading up on the fft vi, I'm thinking that I can use the M-interval input indexes / Continuous output indexes Input/Output Index Pattern mode. My thought is that I can edit the vi to remove any math that "recombines" these three vectors into a single fft, resulting in 3 separate fft's. I'm also hoping that this process requires less time than using the sequential method described above. 
    The Questions:
    1. Has anyone done an fft on three inputs using the myRIO at sampling rates > 20kHz and fft sizes of 1024 or larger? If so, I may just be lacking some proper resource management.
    2. Does anyone know where to find timing information on the M-interval input indexes / Continuous output indexes Input/Output Index Pattern mode? The manual only provides timing diagrams for singel channel / single input modes. I don't want to waste my time modifying the vi if it will still take 3x as long (assuming modifying the vi is even a possibility).
    Further Information:
    I already have an application written that samples the accelerometers at >20kHz and then performs the fft on the main processor, but now I'm looking to see if it is possible to perform all signal processing on the FPGA side. The processor performs decently enough, but the timing is not as consistent as I would like it to be. Lastly, I am aware that the myRIO itself has a built in accelerometer, but I need to mount the accelerometer in an environment where the myRIO would probably be damaged and definitely cannot fit.
    Any thoughts are much appreciated! The excessive FPGA compile times for this thing make the old guess and check method less appealing.
    -Chris 

    Hi Chris,
    Thanks for posting and the detailed background on the project! To answer some of your questions:
    1. The FFT Express VI does use a significant amount of space. The FPGA on the myRIO is somewhat limited space-wise. Your best option may to implement the FFT for 1 channel on the FPGA and the other two on the RT side.
    2. I converted the FFT Express VI to a subVI and I am not sure if you can trim too much code from it. The subVI is also very complex so re-working it would be a significant amount of work. I could not find much documentation on M-interval input indexes / Continuous output indexes Input/Output Index Pattern mode timing. 
    I hope that this helps!
    Thanks,
    Frank
    Application Engineer
    National Instruments

  • REMOTE UPDATE IMG

    Hello Experts
    I try to update the banks customizing (tcode FBZP, FCHI) of FI source system in HR target system, with a program.
    I would like to use a RFC function module , but I don't know what  alternative I have to use for IMG's update (batch input, etc).
    What option is more suitable for this issue?
    Thanks in Advance.

    Hi,
    IMG customization steps are generally table updates only.
    Direct table update (MODIFY/INSERT/DELETE) may be a possibility.
    Regards,
    Dilek

Maybe you are looking for

  • Job  ZINF_TRANS_ACK_FILE_CITI is not active- Cancellation not possible!

    hi, one job is in ready state from long time and unable to stop/delete. Error is like job is not active- cancellation not possible. Kindly someone suggest me how to cancel the job on priority. Thanks in advance!! Regards, Jeevan Reddy

  • What is mevio? Suddenly need to log into mevio to get podcasts. ???

    Subscribed to multiple old time radio podcasts for years. Suddenly, iTunes is telling me I have to sign in to something called "mevio" in order to access my podcasts. What is this? What do I do? Thanks, George

  • Help with HTTP protocol.

    Hi every body. How can I get HTML code from some page in the internet with GET data and POST data? OR How can use on the usualy sockets like TelNET? I saw the MXLsocket class, this is the same thing? TNX all.

  • English definitions of Japanese words in iPhone email

    I sometimes receive email messages written in Japanese (even though my native langauge is American English and that is the language to which I set my iPhone).  I read some Japanese, but need to look up many of the words in these email messages.  It u

  • Help i need somebody help

    Understanding JVM Is JRE the same as JVM or is JVM a part of JRE and if so how do i get only the jvm part I have a created a bean which i can only call if i install JRE on all clients What is the easy way