TextConverter.importToFlow() Vs TextFlowUtil.importFromString() which is better approach ?

Hi,
  I am new to spark library. When i tried to use TextFlowUtil class for handling html text, i found it has some issues with handling some html tags like <b>.
Can any one suggest while using html text with spark components, is it  good approach to use  TextConverter.importToFlow() instead TextFlowUtil.importFromString()?
Thanks in advance,,,,

The XDD extract mapping method is standard support.
The OFFSET.DAT file you mention was a pseudo-custom implementation originally submitted by CSC/PMSC for their customers. It was added to the product as a curtesy and not really promoted as a mainstream feature (if that is a good term). As such, that feature is not specifically targeted by QA testing or included in internal regression results. I'm not even sure it is documented. I doubt you would be able to get much help (or quickly) via Support if you had questions.
Therefore, the official recommendation would be to use the XDD, but if you have experience with the OFFSET.DAT method and are comfortable with the functionality, then the feature should still be available.

Similar Messages

  • Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?

    Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?
    change in sharepoint scripts not require compilation but anything else?

    Yes, PowerShell is great, since you can quick change your code without compilation.
    SP admin can write ps scripts without specific tools like Visual Studio.
    With powershell you can use cmdlets,
    which could remove a lot of code, for example restarting a service.
    [custom.development]

  • XDD Vs Offset file usage -Which is better approach

    Hi,
    We are designing a new workspace (on Documaker 11.5) for a client sending a flat file input. To reduce the impact of offset driven changes we are planning to use either of the below:
    1) XDD
    2) OFFSET.DAT file for which we can update AFGJOB.JDT with folowing rules.
    ;LoadEXTOFFS;1;OFFSET.DAT;
    ;CUSAltSearchRec;1;;
    Based on the copybook/layout of the incoming file we should be able to build a XDD or OFFSET.DAT file.
    The reason I am asking this question is we already have some experience with offset file approach, and we wanted to explore if XDD is a better approach from maintanance perspective.
    Regards..

    The XDD extract mapping method is standard support.
    The OFFSET.DAT file you mention was a pseudo-custom implementation originally submitted by CSC/PMSC for their customers. It was added to the product as a curtesy and not really promoted as a mainstream feature (if that is a good term). As such, that feature is not specifically targeted by QA testing or included in internal regression results. I'm not even sure it is documented. I doubt you would be able to get much help (or quickly) via Support if you had questions.
    Therefore, the official recommendation would be to use the XDD, but if you have experience with the OFFSET.DAT method and are comfortable with the functionality, then the feature should still be available.

  • Proxy or File which is better approach

    Hi
    I am using PI 7.1. I need to pass some informations (approx. 40K records per day) from SAP CRM database to a third party application. The target communication will be file. What is the best approach for source communication? Is proxy the better option or should I write an extraction programme in SAP CRM, generate one file, and then do the transformations required in PI?
    Regards,
    Nirupam

    HI,
    First of all as this is adapter less communication, I think it is better to use in as many senario as possible. Why only for big messages. There is no limit on number of Proxy senario count ;).
    Secondly, You need ABAPer for custom ABAP program to extarct and create file. So in either case you need both ABAP and PI skill.
    Monitoring will be using same tools no extra tool is needed for proxy.
    And If you use Proxy, in future even if you message size increses you dont have to bother.
    If any change is there in the interface then also you need both ABAPer and PI Skill to make the changes.
    Hence I feel, whenever possible, it is better to use Proxy.
    Shweta.

  • TextFlowUtil.importFromString Problems

    Hello,
    With the Halo TextArea, and going back a long time, there was always a nice, simple htmlText property that at least provided some basic HTML formatting automatically.
    This Spark TextArea and associated TextFlow and TextFlowUtil.importFromString() has me completely frustrated.
    If I have this simple little string:
    var string:String = "Hello <b>World</b>";
    and I try to run:
    TextFlowUtil.importFromString(string);
    I get greeted with this error:
    Error: Unknown element b
    What is the trick to getting any arbitrary HTML string to be rendered as HTML so that it can be attached to a Spark TextArea?

    Thank you - this helps.  But my problem now is I have a Spark TextArea incorporated into an ItemRenderer attached to a Spark List.
    The text in the TextArea only becomes visible after the TextArea is clicked on or the List is scrolled.
    Is there an easy remedy for this?
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        alpha.normal="1.0"
                        alpha.hovered="0.5"
                        alpha.selected="1.0">
         <fx:Script>
              <![CDATA[
                   import flashx.textLayout.conversion.TextConverter;
                   import mx.events.FlexEvent;
                   private function init(event:FlexEvent):void
                        description.textFlow = TextConverter.importToFlow(data.description,TextConverter.TEXT_FIELD_HTML_FORMAT);
              ]]>
         </fx:Script>
         <s:layout> 
              <s:VerticalLayout    
                   paddingLeft="5"  
                   paddingRight="5" 
                   paddingTop="5"  
                   paddingBottom="5" /> 
         </s:layout> 
         <s:states>
              <s:State name="normal"/>
              <s:State name="hovered"/>
              <s:State name="selected"/>
         </s:states>
         <s:VGroup percentWidth="100">
              <s:TextArea textFlow="{TextConverter.importToFlow(data.description,TextConverter.TEXT_FIELD_HTML_FORMAT)}" id="description" percentHeight="100" percentWidth="100" creationComplete="init(event)"/>
         </s:VGroup>
    </s:ItemRenderer>

  • Problem with TextConverter.importToFlow

    Hi !
    I am getting better thanks to the first response of Richard on my first post. And now format and applying format is not anymore a problem for me !
    But now I have a little problem with the TextConverter.importToFlow 
    The aim : A user create his own text by editing/pasting, and changing style. Then he save it. So  I convert my textflow in a xml and save an XML file.
    Then he open this file. So I have to convert the xml into a TextFlow type to display it in my AIR application.
    My XML : (details)
      <note>
          <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
            <p>
              <span>Tout animal (l'homme y compris) qui vient de manger depense dans les heures qui suivent une energie</span>
              <span textDecoration="underline">importante consacre</span>
              <span>a  sa digestion stomacale.</span>
            </p>
          </TextFlow>
       </note>
    My problem is :
    I don't know why but i can't do
    myXML.TextFlow
    or
    myXML.child("TextFlow").
    An error compil appears (null reference).
    After few tests, I found that  xmlns="http://ns.adobe.com/textLayout/2008" TextFlow's argument is the source of the error compil.
    But I have to give only the balise <TextFlow> to the method importToFlow without the <note>. What I am suppose to do? I cant access to the <TextFlow> balise...
    public function updateDetails( details:XML ) : void
                if (details != null)
                    var loadTextFlow:TextFlow = TextConverter.importToFlow(details.toString(), TextConverter.TEXT_LAYOUT_FORMAT);
                    _textFlow = loadTextFlow;
                    _textFlow.interactionManager = new EditManager(new UndoManager());
                    _textFlow.interactionManager.selectRange(0,0);
                    _textFlow.flowComposer.updateAllControllers();
                    _textFlow.interactionManager.setFocus();
    Thank you for your help

    This works:
            static public const noteXML:XML = <note>
          <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
            <p>
              <span>Tout animal (l'homme y compris) qui vient de manger depense dans les heures qui suivent une energie</span>
              <span textDecoration="underline">importante consacre</span>
              <span>a  sa digestion stomacale.</span>
            </p>
          </TextFlow>
       </note>
            private function importIt():TextFlow
                var textFlowXML:XML = noteXML..*::TextFlow[0];
                var textFlow:TextFlow = TextConverter.importToFlow(textFlowXML, TextConverter.TEXT_LAYOUT_FORMAT);
                return textFlow;   
    Might want to read the E4X docs if you're planning on doing lots of XML manipulation. Here's a good starting place:
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/XML.html
    MIght add - this is a namespace issue - it seems like it should be simpler than what I wrote above but I haven't been able to simplify it.
    Hope that helps,
    Richard

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus!
    Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
    What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
    Thankful for advice
    Sari

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • Which is better for performance Azure SQL Database or SQL Server in Azure VM?

    Hi,
    We are building an ASP.NET app that will be running on Microsoft Cloud which I think is the new name for Windows Azure. We're expecting this app to have many simultaneous users and want to make sure that we provide excellent performance to end users.
    Here are our main concerns/desires:
    Performance is paramount. Fast response times are very very important
    We want to have as little to do with platform maintenance as possible e.g. managing OS or SQL Server updates, etc.
    We are trying to use "out-of-the-box" standard features.
    With that said, which option would give us the best possible database performance: a SQL Server instance running in a VM on Azure or SQL Server Database as a fully managed service?
    Thanks, Sam

    hello,
    SQL Database using shared resources on the Microsft data centre. Microsoft balance the resource usage of SQL Database so that no one application continuously dominates any resource.You can try the 
    Premium Preview
    for Windows Azure SQL Database which offers better performance by guaranteeing a fixed amount of dedicated resources for a database.
    If you using SQL Server instance running in a VM, you control the operating system and database configuration. And the
    performance of the database depends on many factors such as the size of a virtual machine, and the configuration of the data disks.
    Reference:
    Choosing between SQL Server in Windows Azure VM & Windows Azure SQL Database
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Which is better??????

    which is better?Dam really confused which speaker to buy??
    i currently have a creative m2600.but am not getting enough performance or that feel while watching movies like avatar,step up 3 etc......so am planning to buy a 5.1.......not planning but i have decided to buy a 5.1....so..
    which is better? the 6160 or 6060 or 6100.
    which of these will provide me relly great exprience while playing games and most importantly while whatching hd movies and while listening to music.......
    and other than this what i have to ask is...what is this "db" in speakers. i mean while looking at a speaker specs we can see it..like 65db,85db,75db..etc........
    and when i compared specs of the three speakers i mentioned above i saw that the 6160 has low "db"........why is that?

    The specs is just a guide, you won't be able to tell the slight difference in db using just your ears. Besides, it is just a comparison between the level of a music to the level of background noise, it does not necessary mean which speaker sounds better. If possible, please make a trip to your local electronics store and try out the speakers system yourself.

  • Which is better, Photoshop or Corel?

    Which is better, Photoshop or Corel? I am finding the best one to use for my website [link removed]. Let me know your opinion. Tks all.

    Thank you! I am trying to find the best one for the site [Link removed].
    I used to use Corel before, but now, I am trying to use Photoshop.
    Tk you anyway
    [Removed link]
    Message was edited by: sinious

  • Which is better software for brochures and PDF forms ? Photoshop or InDesign ?

    Which is better software for brochures and PDF forms ? Photoshop or InDesign ? and why ?

    If you are going to be making a lot of brochures, with photos, you probably want both. Photoshop to edit the photos, and InDesign to assemble and layout images with text.

  • Which is better an android or apple

    Which is better getting an android smart phone or an Apple I Phone?

    As the poster Horses 547 said its a matter of personal preference. However I own and use both. Printing via air print is smooth and easy on an iphone. Printing on a android phone is iffy and tedious and you will have to find an app to print since there is no native app to do so. I purchased http://www.printhand.com which costs around $12 from the app store. but it is in my opinion the best printing app out there for android. I use it on my android tablet as well and its great. This company is the maker of the print app on iphones.
    The iphone is a little harder to put your own ringtone on the device. However very easy from the Itunes you put on your computer and hook into.
    Another thing an iphone does is if you use their cloud service or pay for a song it is available on all your ios devices. Iphone, ipad, or ipod or up to five computers registered through itunes on those computers.
    Google play music also can sync with all your android devices.
    Iphone don't have external Micro SD card slots, so the storage on the phone is all you have.
    Iphones use imessage which does not count against your text allotment  to another iphone or ipad user. it send regular text to non iphone users.
    Another thing is Face Time but I found a better program called oovoo at http://www.oovoo.com or in the Google Play Store for free.
    Iphones are paper thin but I have an android that has a larger view area and is also paper thin and light. Depending on the android phone it may have a removable battery, whereas iphones are sealed as are some new androids. I have found the sound for music better on my iphone, and videos are crystal clear. Again on some better androids the music and video is comparable .
    There is really not many differences but it up to the user.
    One last good thing is iphones are updated via Apple, no long waits for OS updates like is done with Android devices, and android devices on Verizon.

  • Which is better for doing animation? Flash 4, 5, MX, CS, or others?

    Which is better for doing animation? Flash 4, 5, MX, CS, or
    others?
    I am used to using brush function more conveniently in Flash
    4 than the other versions I ve tried. However, Flash 4 doesn't have
    pen tool.
    Free News Reader
    http://put.hk
    http://put.hk/reader/forums.macromedia.com/macromedia.flash.html

    1Evan2Wing3 wrote:
    > Which is better for doing animation? Flash 4, 5, MX, CS,
    or others?
    >
    > I am used to using brush function more conveniently in
    Flash 4 than the other versions I ve tried. However, Flash 4
    doesn't have pen tool.
    all pretty identical tho I would go with cs, just because I
    like the GUI much
    more than other versions...
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Which is better for bulk message scenario in sap xi RFC or Proxy

    which is better for bulk message scenario in ( RFC or Proxy ) ?
    Edited by: prabhatxi on Aug 6, 2010 4:44 PM

    Proxy will alwaays be better option in this case, as it is adapter less framework, and communication happens directly with XI central integration engine. So it is always fast communication and gives good performance.
    But still you should consider other factors, you may consider using RFC as well, as sometime we go for RFC/IDOC as this are the standard interfaces already available rather than creating structure...
    May be you can share more info on what type/volume data are you planning to send via XI?
    Hope this cleart your doubt..
    Divyesh

  • Which is better - Add a dimension or create more members in an existing

    Which is better - Add a dimension or create more members in an existing dimension?
    We are trying to figure out which can give us better performance in terms of calculations and retrieving reports - to add another dimension (entity/country) or add about 500-800 more members in an existing location/division dimension?
    Thank you!

    If you have BSO cube i would recommend to add in the same dimension where as ASO you can add members in a new dimension. Adding a new dimension is like creating a new cube you have to change each and every single calc scripts,report scripts,FR reports,Webforms and your rule files .... all the dependencies has to be changed manually . I think 500 members in the exsting BSO dimension will not impact the calc or retrieval times that much .

Maybe you are looking for

  • Open hub destination as ECC table

    Hi All, Is it possible to create a open hub destination to an ECC table? Can only see the option for csv, tabke and thrird party. Thanks, Nick.

  • Straighten tool Adobe Camera Raw

    I am using CS4 and Photoshop is up to date. When I use the straighten tool in ACR it crashes approx 50% of the time. I am currently using Windows 7 but had the same problem with Vista. I have the scratchpad on my D drive and OpenGL is selected. My vi

  • Ram audio playback issue.

    So I was busy trying to sync some cuts effects and clips with some music inside of after effects. when I was going to ram preview it to find the exact times in my clips where I want certain things to happen corisponding with certain beats in the musi

  • JBoss Application server setup with netbeans IDE.

    Hi All, I need to configure the JBoss Application server with netbeans IDE. I have tried this scenario, 1) Unzip the jboss-4.2.2.GA.zip into jboss dir. 2) Selected the JBoss Application server 4. 3) And i have set the Installation location like this

  • Select and update with lock exclusive

    Hello Everybody In our application we have a table autonum     to handle unique keys for all other tables. In Autonum we have a column "SUCHBEGRIFF" char(40) unique KEY and a column "WERT" fixed(10,0). Suchbegriff has values like Rechnungsnr,Auftrags