When the state change, my StyleableTextField html formatting is lost

Hello,
When the state change, my StyleableTextField html formatting is lost (mobile project)
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          addedToStage="ats(event)">
          <fx:Script>
                    <![CDATA[
                    import spark.components.supportClasses.StyleableTextField;
                    protected function ats(event:Event):void
                              StyleableTextField(txt.textDisplay).htmlText="<i>test</i>";
                    public function ok(e:Event):void{
                              currentState = "state2";
                    ]]>
          </fx:Script>
          <s:states>
                    <s:State name="initialState" />
                    <s:State name="state2" />
          </s:states>
          <s:VGroup>
                    <s:TextArea width="100%" id="txt" includeIn="initialState, state2" skinClass="spark.skins.mobile.TextAreaSkin"/>
                    <s:Button label="add" click="ok(event);" includeIn="initialState, state2"/>
                    <s:TextArea width="100%" text="state2" includeIn="state2"/>
          </s:VGroup>
</s:Application>
Thanks

How are you doing this?
The text area of a web app has HTML encoding and is all fine.
If you make a multiline custom text field the encoding remains.
You need to provide a bit more information because the above do keep their encoding.

Similar Messages

  • How to change properties of an image when the state changes? (normal, rollover, mouse down, action)

    I want to enlarge image (photo) while rolling over.

    Sure, This works but copying back the button does not replace the original, it just adds a new button, so for every change, there is a new copy added. I did notice this when I wanted to change the size of the button, they were both visible !
    Pierre

  • How to catch an event when the user change values in the project information dialog

    hi,
    i would like to know how to catch an event in my C# code when the user change values in the project information dialog?
    taskChange doesn't catch these changes.
    thanks.
    Thanks, Sharon.

    You need to write save button event handler for project information dialog. Link is having same functionality described. 
    http://blogs.msdn.com/b/husainzgh/archive/2011/08/01/hooking-into-the-project-detail-page-ribbon-save-button-without-overriding-out-of-box-functionality-in-project-web-access-for-project-server-2010.aspx
    http://www.projectserver2010blog.com/2010/01/sharepoint-2010-webpart-client-server.html
    kirtesh

  • Update manager in IdM automatically when the manager changes in SAP HR

    Hi Experts
    I have been given a requirement where the manager of a user in IdM should be updated automatically when the manager changes in SAP HR.
    The HR extraction job is currently in place and runs every 30mins.
    Please could you give me some ideas on how to implement this.
    IDM 7.2 SP 6
    Thanks
    Ran

    Hi Deepak
    I have been discussing this a bit more in detail with the client. So, the issue is as follows
    When a new/replacement manager is hired
    When people are moved from one org unit to another
    The scheduled extraction job (RPLDAP_EXTRACT_IDM with a variant with the delta tick on) does not update the new manager info in IDM for the relevant users who report to that manager. The client has to run the program (RPLDAP_EXTRACT_IDM with a variant with the delta tick off) manually each time for the affected users which updates the manager info successfully in idm.
    I investigated the query LDAP_IDM_QUERY from user group /SAPQUERY/L1 and want to know if the below should be ticked as well. Your thoughts please?
    Please advise.
    Thanks
    Ranjit

  • [svn:fx-trunk] 11112: DatGroup and SkinnableDataContainer dispatch a " dataProviderChanged" event when the dataProvder changes.

    Revision: 11112
    Author:   [email protected]
    Date:     2009-10-23 12:35:31 -0700 (Fri, 23 Oct 2009)
    Log Message:
    DatGroup and SkinnableDataContainer dispatch a "dataProviderChanged" event when the dataProvder changes.  Fixed a ScrollerLayout typo.
    QE notes:
    Doc notes: none
    Bugs: sdk-23489
    Reviewer: Ryan
    Tests run: DataGroup
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-23489
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayo ut.as

  • Sales Order Updation when the delivery changed

    Hello Experts,
                           I am working an object where I need to update the sales order when the delivery changed.
                             Actually when the remote system rejected the delivery an IDOC will come to R/3
    Sooner the delivery changed in R/3 I need to update few fields in sales order.
              When I am trying to code in the exit in the FM attached to the IDOC it is first updating the sales order and calling ws_update_delivery  next.
    Even if I am trying in mv45afz1 also same thing is happening.
              Can anyone let me know how to solve this problem.

    Hi,
    you can see the work center capacity situation for manufacturing an item in the salesorder. But it needs Assemble to Order strategy. Anyway u can see the material details in the sales order.
    Kiran.

  • How to deal with the situation when the database change into ms-sqlserver ?

    Hi,dear all,
    How to deal with the situation when the database change into ms-sqlserver or other database?
    Now, i want to build a j2ee project with ORACLE ADF bc,but this project may be used in several diffrent databases for example oracle db,ms db,mysql and so on.however,if i have developer this project in jdeveloper and this project connection was config as a oracle database,and then,can this project be reused for other databases espasially including the model codes? if yes,how should i do?
    all who know how to resolve this,tell me pls,thanks.
    bruce Li,
    China
    Message was edited by:
    user526724

    Hi Paulbin,
    Do you want to supply a function-pointer to a DLL so it can call[back] your VI?  Here's how it can be done with .NET, though, that solution requires a C compiler.   A single "VI_to_function-reference" utility could handle all cases where the callback passes no parameters.  Maybe someday somebody will share that dll.
    Did you know that LabVIEW can use Events for some COM-signals change?  See pic.  (Note: DTR is not listed - - )
    Another question is another function's prototype is WORD SetTestType(WORD comHandle, bool type1, bool type2, bool type3),   I tried to use a boolean control and a Boolean to (0,1) node in labVIEW to pass parameters to CLF, I config the bool input value as U8(according to C++ bool type) and U32(according to WIN32 BOOL type), it dose not help, when I execute the VI, LabVIEW will be disappeare, it seems to be closed, I must start it again.
    Could someone has similar experience on this points?
    It's easy to crash LabVIEW misusing CLF - maybe there's another reason for the crash besides bool mis-match(?)  Do you know which "Calling convention" is required?  What type is comHandle? (where does comHandle come from?) 
    Cheers!
    Message Edited by tbd on 03-23-2007 09:34 PM
    Message Edited by tbd on 03-23-2007 09:35 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    evt.jpg ‏7 KB

  • The Sound stop when the movie change

    Hello,
    I am doing a Director movie that calls another movie.
    How can I do to the sound do not stop when the movie
    change?

    Chrome has its own Flash Player plugin called "PepperFlash". It functions independently of the ActiveX plugin for IE. ActiveX causes more problems for IE than it will ever solve... and for that reason, I don't use Microsoft's pathetic excuse for a browser. It's pure garbage.
    I recommend using any other browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • When calling report in forms, only html format can show chinese characters

    To all experts,
    When I run report by calling run_report_object() in forms, only html format can show chinese characters. If I choose pdf format, garbage characters were shown instead of chinese characters. My settings on server are as follows:
    NLS_LANG=TRADITIONAL CHINESE_HONG KONG.UTF8
    FORMS60_REPFORMAT=PDF
    Do you know why? I hope to print report in PDF format as PDF turned out to be more regular in format. Is there any additional settings required?
    May experts here broaden my mind?
    Richard

    Assuming that you are using version 6i, try using Oracle9i Reports it has support for multi-byte in PDF.
    By the way, Reports questions will get better response if you send them on the reports forum.

  • When calling report from forms, only html format report can show chinese characters

    To all experts,
    When I run report by calling run_report_object() in forms, only html format can show chinese characters. If I choose pdf format, garbage characters were shown instead of chinese characters. My settings on server are as follows:
    NLS_LANG=TRADITIONAL CHINESE_HONG KONG.UTF8
    FORMS60_REPFORMAT=PDF
    Do you know why? I hope to print report in PDF format as PDF turned out to be more regular in format. Is there any additional settings required?
    May experts here broaden my mind?
    Richard

    You have two different ways of generating Japanese PDF files from Reoprts. One is font aliasing and the other is font subsetting.
    <font aliasing>
    You will need to have the following entries in uiprint.txt (example).
    [ PDF ]
    .....JA16SJIS = "KozMinPro-Regular-Acro"
    "MS UI Gothic".....JA16SJIS = "KozMinPro-Regular-Acro"
    You may need to download and install Japanese Font Pack from Adobe's web site (if your Acrobat is non-Japanese version).
    <font subsetting>
    You will need to add C:\WINNT\Fonts (or wherever your TTF/TTC fonts are installed) to your REPORTS_PATH.
    You will also need to have the following entries in uiprint.txt (example).
    [ PDF:Subset ]
    "Andale Duospace WT J" = "Aduoj.ttf"
    "Albany WT J"="AlbanWTJ.ttf"
    "MS UI Gothic" = "msgothic.ttc"

  • How to automatically let the video getting scaled when the browser changes size

    Hi,
    I'm using a f4v file with dimension 1200x720 and I might upload a 1920x1080 version.
    You can see it at work on www.etmotionpictures.com
    I want to the movie to automatically (down)scale in the browser.
    So when I resize the browserwindow and refresh the page, I thought the movie would be resized to the new dimension of the browser-window but it didn't do it.
    Maybe I misunderstood what scalemode=letterbox is doing.
    By the way I used to generate the code and then paste it in a html file.
    Here is the code:
    I just realized it might have something to do with the fact that the width and height are added in the parameter and at the beginning when the object is declared. Do I need to change that in order for the video to automatically scale.
    Thanks for any help.
    I really appreciate it!!!
    Regards,
    Gosa
    ps: sorry for my english but I'm not a native english speaker. thanks for understanding.

    Hi,
    Thanks for helping me on the right track.
    I used swffit to accomplish what I wanted.
    Here is the link: http://swffit.millermedeiros.com
    Here is the code I used for anyone who want to do the same thing:
    <script type="text/javascript" src="swfobject.js"></script>
              <script type="text/javascript" src="swffit.js"></script>
              <script type="text/javascript">
                   /* swfobject.embedSWF("example.swf", "my_flash", "550", "400", "8.0.0"); */
                   var flashvars = {};
                   var params = {};
                   params.bgcolor = "#000000";
                   params.menu = "false";
                   params.quality = "high";
                   params.scale = "no_scale";
                   params.bgcolor = "#FFFFFF";
                   params.allowFullScreen = "true";
                   params.AllowScriptAccess = "always";
                   /* params.movie ="http://osmf.org/dev/1.5gm/StrobeMediaPlayback.swf"; */
                   flashvars.src="http%3A%2F%2Fwww.etcmotionpictures.com%2Fetc.f4v";
                   flashvars.playButtonOverlay="false";
                   flashvars.controlBarMode="none";
                   flashvars.controlBarAutoHide="false";
                   flashvars.autoPlay="true";
                   var attributes = {id: "my_flash"};
                   swfobject.embedSWF("http://osmf.org/dev/1.5gm/StrobeMediaPlayback.swf", "my_flash", "800", "450", "8.0.0", "", flashvars, params, attributes);
                   swffit.fit("my_flash"); //Since v2.3 swffit use the same size of swfobject by default (but you can set a new size if you want)
              </script>
    And of course a div tag in the body:
    <div id="my_flash"> </div>
    Greets,
    GoSa

  • How to send the body of mail in html format using servlet

    Hi
    i developed an servlet using sun.net.smtp.SmtpClient package,my servlet receiving data from an form,i can able to send mail successfully,but my mail body part is in the text format,but i would like to send it as an html format,for ex <input type="text" size="25" name="Name"> as an input field with value received from the form instead of showing tags as i mentioned<input type="text" size="25" name="Name"> ,any help would be appreciated.
    Regards.

    See this program
    But here whats the problem is ,
    some maiservers doesnot support html code if u send this mail to yahoo account it will show html code as it is,
    hotmail account encodes the html and shows proper fonts and headings
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import sun.net.smtp.SmtpClient;
    public class SendMail {
              public static void main(String args[]){
              int i = 0;
              //while (true) {
              SmtpClient mail;
              try{
                   i++;
                   String email = "[email protected]";
                   String from="[email protected]";
                   mail=new SmtpClient("bizpivot.com");
                   mail.from(from);
              mail.to(email);
                   PrintStream msg=mail.startMessage();
                   msg.println("To: " +email);
                   msg.println("Subject: Hai" i "!!!");
                   msg.println("<html><head><title>Untitled</title></head><body bgcolor='red' text='#00ffff'><font face='Courier New' size='+3'>Hai How are you Man!!!</font></body></html>");
                   mail.closeServer();
              System.out.println(i);
              catch(Exception e){e.printStackTrace();}

  • DefaultCellEditor in JTable can not update itself when the value changes

    Hi,
    I have a JTable which has 4 columns. The 3rd column has a comboBox. whenever I select an item from the first row, the cell at (currentrow, 4thcolumn) will be updated according to the item selected.
    Now the problem is, after selecting the item in any cell with 3rd column, the row is updated correctly, but then all comboBox in column 3 are gone! I cannot figure out what causes this. Please help! Any suggestion will be greatly appreciated!
    Jing

    Thanks! Could you give more details on how to use the second approach?
    I have a table with two columns, one called ID and the other called Value. I'm using JComboBox for the Value column. Whenever I select an item from the comboBox, I want the value in the cell under the ID column to change value to the value selected in the comboBox.
    The problem I'm having now is although I can change the value in the comboBox and which triggers the event to change the value under the ID column, when I click the comboBox of another row, the cell under ID of the previous row changed also, before the value under ID of the current selected row.
    I think the problem is there is no distinct comboBox for each row of the table. Seems like when one box change and trigger an event, that event performed in every other rows in the table.
    Following is the code:
    public class Test extends JPanel{
         DefaultTableModel tm;
         JTable table;
         JScrollPane nscrollPane;
         public int total=4;
         public Vector datavec, thvec;
         public Test(Vector datavec, Vector thvec){
              this.datavec=datavec;
              this.thvec=thvec;
         tm = new DefaultTableModel(datavec,thvec);
              table = new JTable(tm);
              table.addMouseListener(new PopupListener(table));
    // table.addMouseListener(new PopupListener(table));
    //tm.setTableHeader(table.getTableHeader()); //ADDED THIS
    int height = table.getRowHeight()*table.getRowCount();
    table.setPreferredScrollableViewportSize(new Dimension(500, height));
    //Create the scroll pane and add the table to it.
    nscrollPane = new JScrollPane(table);
    setUpNNColumn(table, table.getColumnModel().getColumn(1));
    //Add the scroll pane to this panel.
    add(nscrollPane);
    public void updateLabel(Integer size)
         int r=table.getSelectedRow();
         if(r!=-1)
         ((Vector)datavec.elementAt(r)).setElementAt(size, 0);
         repaint();
    public void setUpNNColumn(JTable table, TableColumn nnColumn) {
              //Set up the editor for the sport cells
              JComboBox comboBox = new JComboBox();
              comboBox.addActionListener(new ComboBoxListener());
              int num=total/2;
              for(int i=0; i<2; i++){
                   comboBox.addItem(new Integer(num*(i+1)));
              comboBox.setSelectedIndex(1);
              nnColumn.setCellEditor(new DefaultCellEditor(comboBox));
    private class ComboBoxListener implements ActionListener{
         public void actionPerformed(ActionEvent e)
              JComboBox cb = (JComboBox)e.getSource();
    Integer size = (Integer)cb.getSelectedItem();
         updateLabel(size);
    private static void createAndShowGUI(Vector a, Vector b) {
    \ JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("Nearest Neighbor Fact Table");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    Test newContentPane = new Test(a, b);
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
         int patidx, hitnum=2;
         Vector a=new Vector();
         Vector a1=new Vector();
         Vector a2=new Vector();
         a1.add(new Integer(1));
         a1.add(new Integer(4));
         a.add(a1);
         a2.add(new Integer(2));
         a2.add(new Integer(4));
         a.add(a2);
         Vector b=new Vector();
         b.add("ID");
         b.add("Value");
         //StatTableGUI.createAndShowGUI(gd);
         Test.createAndShowGUI(a,b);
    Any suggestions? Thanks!
    Jing

  • How to perform an autocheck event when the field changes in ALV

    Hi everybody,
    how can I build an event or something which would make my 'wa_fieldcat-checkbox' set to 'X' (auto checked) everytime an editable field in the ALV is changed manually by the user?
    I want to perform this task in order to avoid asking the user to manually check the "check box" field everytime wants to make a change, since after the user's changes in the ALV I want to sort the itab with the check box column of the edited items.
    Thanks,
    Denis M

    Hi Denis,
    For ALV a FM REUSE_ALV_GRID_DISPLAY is available.
    The FM, has events as importing option.
    SLIS_T_EVENT
    EVENT - Basically this is the FM to handle Event's. When the user needs to do
    some event operation like when double clicking the a particular field we need to
    perform some operation.   These events are captured by this FM.
    slis_ev_data_changed -- To capture user command
    slis_ev_user_command -- To capture data changed.
    Also please refer the below link in scn. This shows sample code to capture ALV grid data changed.
    http://scn.sap.com/thread/261210
    Hope this will solve the problem.
    Thanks,
    Soundarya.

  • Why do filler colors change when the orientation changes?

    Hi, I'm working with a template but don't like the colors of the fill boxes, so I have manually changed them.  I've noticed, however, at least when look at a proof that when I change the orientation of the iPad, the filler color reverts to the original.  The color change screws with the styles.  Anyone else have this problem?  Any fixes?

    Thanks for your reply.  I was fuzting with the "book" again.  It was the simplest -- and therefore easiest to modify stylistically -- template, which was supposed to work in both orientations.  I created it in landscape.  Last night I reallized that when I changed the orientation when working in iBook, if I applied the color change to the boxes [again], the color change stayed when viewed in either orientation. 
    BUT I also saw that the box placement in the portrait view is "wrong."  It covers part of one of the headlines.  While I have changed the headline font manually [not via paragraph styles, which I am finding difficult to manipulate], I have not moved the text.  It is where the template placed it but simply using a different font. 
    Thanks for any insight you might have.

Maybe you are looking for