Flex xml and field text

hello,
somebody has it a piece of code allowing me in a canvas to
read a file XML and automatically to add as much field text than of
information contained in my file xml
thank you in advance

Try changing the xml structure by using CDATA instead of having the russian part as an attribute and see if that makes any difference.
What I meant is use something like this:
<?xml version="1.0" encoding="utf-8" ?>
   <Autoparts>
    <autopart>
       <description><![CDATA[Барабан]]></description>
  </autopart>
</Autoparts>
instead of the current xml.

Similar Messages

  • XML and scrolling text

    Hi,
    My flash movie contains a text field and a scrollbar, when i
    simply write the text in the text field and then publish the movie
    the scrollbar works fine. However i need to read in the text
    through XML but when i do this the scrollbar does not work. Is
    there code that i need to implement to make the scrollbar
    automatically scroll....
    All help is appreciated,
    Thanks

    Okay found this:
    [Dynamic Text Box Name].autoSize = "center";
    [Dynamic Text Box Name].wordWrap = true;
    however, the height really doesn't adjust when the copy does.
    If I start
    off with the dynamic text box at 50 pixels high, it remains
    that way
    when calculated in ActionScript using the [MovieClip]._height
    even
    though it is much taller than 50 pixels with the copy in
    there.
    So I'm back to the drawing board. I want to have an XML file
    with
    Headline, BodyCopy, and disclaimer copy. I want to call the
    nodes into
    Flash and stylize them.
    I DO NOT want to use CSS since I am using funky fonts that
    will not be
    available on all machines. Want those fonts embedded in Flash
    so it
    shows the same on any computer.
    -Kirk
    W. Kirk Lutz wrote:
    > I am brand new to XML and pulling in text to Flash from
    it. So far so
    > good. The text shows. The only thing I'm having trouble
    with is the
    > height of the text box the imported text sits in. I want
    it to
    > dynamically expand if the text is long.
    >
    > How can I go about importing text into a text Dynamic
    text box and have
    > the box expand if the text is too long for the manual
    setting?
    >
    > -Kirk

  • Flex, xml, and non-English characters

    Hello! I have a Flex web app with AdvancedDataGrid. And I use httpService component to load some data to grid. The .xml file contains non-english characters in attributes (russian in my case) like this:
    <?xml version="1.0" encoding="utf-8" ?>
       <Autoparts>
        <autopart  DESCRIPTION="Барабан">
    </Autoparts>
    And when i run app, AdvancedDataGrid display it like "Ñ&#129;ПÐ". How can i fix it? I try to change encoding="utf-8" with some another charsets, bun unsuccesfully. Thank you.

    Try changing the xml structure by using CDATA instead of having the russian part as an attribute and see if that makes any difference.
    What I meant is use something like this:
    <?xml version="1.0" encoding="utf-8" ?>
       <Autoparts>
        <autopart>
           <description><![CDATA[Барабан]]></description>
      </autopart>
    </Autoparts>
    instead of the current xml.

  • What are the Manual check Deposit Tables and  Fields(FF68)

    Hi Gurus,
    I have reqirement to get get Details about  SlipNO,Cheque NO,Cheque Date,Posting Date,
    Party code,Bank key,Currency ,Amount,Bank Account,Value Date,Entry Date,Banker's name.
    could u help me
    Thanks in Advance
    Sivakumar.

    Hi,
    Yes it doesn't.  Where do you store this information when you are posting in FF68, can you tell me the field names or where exactly do you see these fields.
    For check deposit, you can design your own layout and field text in the layout will not be exactly what you will see in the table.  I think that must be the case in your scenario. 
    Suggest look at the layout configuration from Transaction code OT45, open the variant you use (you can find that from the FF68 screen, menu option Settings --> specifications).
    Also, pick one already posted check deposit in FF68 and look for the values you are interested in for that statement in tables FEBKO and FEBEP.
    There are other tables in Banking but I do not think they would be of much use like FEBCL, FEBRE and FEBVW.  FEBVW will give you the bank name where you are depositing the slip.
    Cheers.

  • Change XSD / XML dataset during runtime and display texts in field explorer

    Hi there,
    I am changing the datasource of a report during runtime. Afterwards, I would like to change the texts of the fields appearing in the field explorer.
    I tried:
    CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass xmlDS =
    new CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass();
    byte[] xmlContent = reportContent.getXmlContent();
    byte[] xsdContent = reportContent.getXsdContent();
    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xmlData =
    new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xsdData =
    new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
    xmlData.ByteArray = xmlContent;
    xmlDS.XMLData = xmlData;
    xsdData.ByteArray = xsdContent;
    xmlDS.XMLSchema = xsdData;
    rasDoc.DatabaseController.SetDataSource(xmlDS, "", "");
    rasDoc.Database.Tables[0].Description = "POMMES";
    for (int i = 0; i < rasDoc.DatabaseController.Database.Tables[0].DataFields.Count; i++)
    rasDoc.Database.Tables[0].DataFields.Name = "TEST";
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Name);
    rasDoc.Database.Tables[0].DataFields.HeadingText = "HOORAY";
    rasDoc.Database.Tables[0].DataFields.Description = "NOPE";
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Description);
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.HeadingText);
    When running this, the message boxes include the right strings I set before but when this is done, the filed explorer still shows no changes. What am I doing wrong?
    Also, I would like to change the field texts that are displayed in the field explorer. How can this be done?
    Thanks,
    Pascal

    Also, I do not understand why I am not able to change the display of the fields in the filed explorer.
    This coding does not change a bit, but why??
    //preparation
    string tableName = reportDataSet.Tables[0].TableName;
                  // Get the table definition exactly like the definition of my own dataset.
                  CrystalDecisions.ReportAppServer.DataDefModel.Table table = GetTable(tableName);
                  table.ConnectionInfo = connectionInfo;
                  //delete all existing tables if there are any
                  foreach (CrystalDecisions.ReportAppServer.DataDefModel.Table oldTable in rasDoc.DatabaseController.Database.Tables)
                      rasDoc.DatabaseController.RemoveTable(oldTable.Name);
                  //add my new table with the IDs of the XSD
                  rasDoc.DatabaseController.AddTable(table, null);
                  //now I want to change the displayed fields texts
                  CrystalDecisions.ReportAppServer.DataDefModel.Tables modifyTables =
                      rasDoc.DatabaseController.Database.Tables;
                  CrystalDecisions.ReportAppServer.DataDefModel.Table myTable =
                      (CrystalDecisions.ReportAppServer.DataDefModel.Table)modifyTables[0];
                  Fields fields = myTable.DataFields;
                  for (int i = 0; i < fields.Count; i++)
                      ISCRField field = fields<i>;
                      ResultFieldController resultFieldController =
                         rasDoc.DataDefController.ResultFieldController;
                      try
                          resultFieldController.Remove(field);
                          string sText = "";
                          sText = "Bäschreibung" + i.ToString();
                          field.Description = new string(sText.ToCharArray());
                          sText = "Häding" + i.ToString();
                          field.HeadingText = new string(sText.ToCharArray());
                          //sText = "Näme" + i.ToString();
                          //field.Name = new string(sText.ToCharArray());
                          resultFieldController.Add(-1, field);
                      catch (Exception exp)
                          MessageBox.Show(exp.Message);
    I am completely stuck.
    Thanks for any help.
    Pascal
    Edited by: Pascal Schmidt-Volkmar on Sep 30, 2008 9:31 AM

  • Drag and drop text fields

    Hey.  trying to drag and drop a text field.  So I have created a text field, and saved it as a swf.  I then load it in using xml and the loader class.  When I go to pick it up, i get the error
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@10d59b51 to flash.display.Sprite.
        at GalleryNew_fla::MainTimeline/pickUp()[GalleryNew_fla.MainTimeline::frame1:81]
    It is specifically pointing to
    function pickUp(event:MouseEvent):void {
        getPosition(event.target);
        stage.addChild(event.target as DisplayObject);
        Sprite(event.target).startDrag(true);
    Should I be casting it to something else or something?
    cheers

    I will try and explain what I am doing better, because I am problably doing this tottally wrong, I am just mixing a lot of code to get something together.
    Basically, I have several buttons.  If a button is pressed, it displays objects in a sort of holder.  These objects might be images, animations etc.  When these are placed in the holder, they can be dragged and dropped.  If they are not dropped in the right location, they go back to their position in the holder.
    So, my first two buttons work great.  These just deal with images.  button5, which I am working on now, is dealing with textfields.  So, it should load my textfield swfs, place them in the holder, and made to be drop and draggable.  Problem is, I am using the code which i used for the images, which is where I might be going wrong.
    If I show you the code, maybe you could suggest a better way to do things
    Cheers
    import caurina.transitions.*;
    var xml:XML;
    var xmlList:XMLList;
    var urlLoader:URLLoader;
    button1.addEventListener(MouseEvent.CLICK, click_handler);
    button2.addEventListener(MouseEvent.CLICK, click_handler2);
    button5.addEventListener(MouseEvent.CLICK, click_handler5);
    function click_handler(event_object:MouseEvent) {
         removeChildren(photoContainer);
         while (arrayThumb.length > 0) {
              arrayThumb.pop();
         loadXML("pics.xml");
    function click_handler2(event_object:MouseEvent) {
         removeChildren(photoContainer);
         while (arrayThumb.length > 0) {
              arrayThumb.pop();
         loadXML("pics2.xml");
    function click_handler5(event_object:MouseEvent) {
         removeChildren(photoContainer);
         while (arrayThumb.length > 0) {
              arrayThumb.pop();
         loadXML("pics5.xml");
    function removeChildren(doc:DisplayObjectContainer):void {
         while (doc.numChildren > 0) {
              doc.removeChildAt(0);
    function loadXML(xmlS:String):void {
         var urlRequest:URLRequest=new URLRequest(xmlS);
         urlLoader = new URLLoader();
         urlLoader.load(urlRequest);
         urlLoader.addEventListener(Event.COMPLETE,urlLoaded);
    var arrayThumb:Array=[];
    var photoContainer:Sprite = new Sprite();
    addChild(photoContainer);
    photoContainer.mask=thumb_holder;
    function urlLoaded(event:Event):void {
         urlLoader.removeEventListener(Event.COMPLETE,urlLoaded);
         xml=XML(event.target.data);
         xmlList=xml.children();
         for (var i:int=0; i<xmlList.length(); i++) {
              var thumb:Thumbnail=new Thumbnail(xmlList[i].url);
              arrayThumb.push(thumb);
              arrayThumb[i].y=150.5;
              arrayThumb[i].x=i*110+280;
              photoContainer.addChild(thumb);
              arrayThumb[i].addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
              arrayThumb[i].addEventListener(MouseEvent.MOUSE_UP, dropIt);
    var xPos:int;
    var yPos:int;
    function getPosition(target:Object):void {
         xPos=target.x;
         yPos=target.y;
    function pickUp(event:MouseEvent):void {
         getPosition(event.target);
         stage.addChild(event.target as DisplayObject);
         Sprite(event.target).startDrag(true);
    function dropIt(event:MouseEvent):void {
         Sprite(event.target).stopDrag();
         if (event.target.hitTestObject(getChildByName("movie"))) {
              var my_loader:Loader = new Loader();
              var myString:String=event.target.url;
              var newString:String=myString.replace("pics/","");
              my_loader.load(new URLRequest("pics2/" + newString));
              movie.addChild(my_loader);
              this.photoContainer.addChild(event.target as DisplayObject);
              event.target.x=xPos;
              event.target.y=yPos;
         } else {
              this.photoContainer.addChild(event.target as DisplayObject);
              event.target.x=xPos;
              event.target.y=yPos;
    var minScroll:Number=0;
    var maxScroll:Number=track.width-handler.width;
    var draging:Boolean=false;
    var bounds:Rectangle=new Rectangle(handler.x,handler.y,maxScroll,0);
    handler.buttonMode=true;
    handler.addEventListener(MouseEvent.MOUSE_DOWN,beginDrag);
    function beginDrag(event:MouseEvent):void {
         handler.startDrag(false,bounds);
         draging=true;
         handler.addEventListener(Event.ENTER_FRAME,checkingProgress);
         stage.addEventListener(MouseEvent.MOUSE_UP,endDrag);
    function endDrag(event:MouseEvent):void {
         handler.stopDrag();
         draging=false;
    function checkingProgress(event:Event):void {
         var procent:Number=handler.x/maxScroll;
         if (draging) {
              Tweener.addTween(photoContainer,{x:(475-procent*(photoContainer.width-thumb_holder.width)),time:1});

  • How send e-mail with XML + PDF and body text

    Hi everyone,
    I have a new requirement but I´m with doubts, how to send an e-mail with two attachements (XML and PDF) and body text using -
    MIME: multipart/mixed;boundary
    I already have code to send XML + body text as you can see below:
    Element contentType = docout.createElement("Content_Type");
      root.appendChild(contentType);
      Text contentTypeText = docout.createTextNode("multipart/mixed;boundary=--AaZz");
      absTraceLog.addDebugMessage("Content_Type e-mail --- "+contentTypeText.toString());
      contentType.appendChild(contentTypeText)
    String text = "----AaZz\r\nContent-Type: text/plain; charset=UTF-8\r\n" +
            "Content-Disposition: inline\r\n\r\n" + nfeText +
            "\r\n----AaZz\r\nContent-Disposition: attachment; filename="+ prefixo +" "+ chaveNFe +".xml" +"\r\n\r\n" + xmlString + "\r\n";
    Element content = docout.createElement("Content");
    root.appendChild(content);
    contentText = docout.createTextNode(text);
    Content.appendChild(contentText);
    The code above work good, but I can´t duplicate any field from XiMail 3.0 - because it´s 0:1.
    So how to do that ?
    Thanks.
    Regards,
    BR.
    Viana.

    Eng,
    That´s works good with mailPackage:
                content= "--" + "--Zz" + CRLF
                        + "Content-Type: text/html; charset=UTF-8" + CRLF
                        + "Content-Disposition: inline" + CRLF + CRLF
                        + textBodyMail + CRLF
                        + "--" + "--Zz" + CRLF
                        + "Content-Type: application/xml; name=" + attachmentName + CRLF
                        + "Content-Disposition: attachment; filename=" + attachmentName + CRLF
                        + "Content-Transfer-Encoding: base64" + CRLF + CRLF
                        + encoder.encode(inputString.getBytes("UTF-8")) + CRLF
                        + "--" + "--Zz" + CRLF
                        + "Content-Type: application/pdf; name=" + pdfName + CRLF
                        + "Content-Disposition: attachment; filename=" + pdfName + CRLF
                        + "Content-Transfer-Encoding: base64" + CRLF + CRLF
                        + encoder.encodeBuffer(new BASE64Decoder().decodeBuffer(pdfAttachment));
    Regards,
    BR.
    Ricardo Viana.

  • Custom XML IP PHONE text on "Your current options" and softphone button on

    Custom XML IP PHONE text on "Your current options" and softphone button on call manager 7.0 call manager 7.0 ?

    Hello, Please try this link
    http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/7906g_7911g/5_0/sip/english/administration/guide/11ag50si.pdf

  • Sale Order Item Level Text Field which table and field

    Hi,
    Thanks for your prompt reply and best solution.
    Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.

    Hello,
    is this going to work for item level text as well.
    can you tell how to proceed with this functional module
    or is there any other thing required.Please elaborate to
    understand better way.
    You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
    The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
    Client
    Text ID of text to be read
    Language of text to be read
    Name of text to be read
    Object of text to be read
    Archive handle
    Text catalog local
    When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
    Regards,
    Sarthak

  • XSLT and generated text using InDesign with xml

    I have recently switched from Framemaker to InDesign and am still getting to grips with the differences so apologies if this is a very basic query.
    Framemaker was used to format sgml tagged text. You could specify that a particular tag generated a prefix or suffix. You could also specify that the tag should generate the prefix or suffix only under certain circumstances (context rules). The prefixes and suffixes I need to apply are things like open and closing brackets, commas, full stops, and sometimes a bit of text.
    I am told that this can be done with XSLT. There are whole libraries of books on XSLT out there and not knowing anything about the subject I really don't know where to start. Does anyone out there who uses InDesign with xml and XSLT have any tips about where to find useful information on the subject?
    Thanks in advance for any help on the subject.
    Steven

    Yeah, we use to have such feature wayback then. Indesign package into GoLive.  Kindly look through the idea section and vote massively for this idea.

  • Urgency: how to add additional fields to XML and tranfer to MDMcatalog

    Dear experts:
      I have realized the standar process for contract  to mdm.   when contract is released, the MDM catalog be updated automatically.
    but I still  have two requirement.
    1.  In standar process,  the product category  and short description  these two fields  are not in XML  and can not transfer to MDM.
    2. I have some user-defined fields in header in contract . I hope these CUFs  can be added to XML and transfer to mdm ,
    please tell me how to do or give me some document   in SRM. (srm 7.0  MDM-Catalog 3.0 , MDM 7.1).
    thanks in advance.
    Jesse.

    Hi Jianxin,
    http://wiki.sdn.sap.com/wiki/display/SAPMDM/OpenCatalogInterfaceinSRMMDMCatalog+2.0
    Hope this helps.
    Regards,
    Vikas

  • XML and binary with field separator stock quote

    Hi All,
    I'm doing a comparison of data transmission between XML and binary with field separator.
    Example of XML
    <nasdaq>
    <high>100.00</high>
    <low>90.00</low>
    </nasdaq>
    Example of binary with field separator
    100.00|90.00
    Of course, using XML will consume of much resources and processing power but with easier maintenance and development.
    I'm doing some data feed with high transaction like Nasdaq, NYSE, etc. How you think about it...?
    Any web site does the comparison of the above? I have googled but not much information found.
    Cheers,
    Wikey

    XML is, of course, more flexible. For B2B transactions you should >>consider using gzip compression (avaiable in java.util.zip) if there's a >>fair bit of data in the message. That will reduced the effect of all the >>repetative XML furniture.yah, agreed but still not to a comfort level to proceed this technology. File size still big if compared to compressed non-XML data.
    Btw, I'm seeking for some efficient data feed product able to handle XML effectively and did some comparison with all other standard data formating mechanism of data transmission. Therefore, i can see the whole picture of it. Still trying my R&D luck on google...
    Cheers,

  • Want to create a user field with type alphanmumeric and structure text through coding

    i want to create a user field with type alphanumeric and structure text through coding.am using vb
    plz help me

    Hi.
    Please take a look at samples in SAP B1 SDK.
    Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
    ' Adding "Name" field
    '// Setting the Field's properties
    oUserFieldsMD.TableName = #YOUR_TABLE_NAME#
    oUserFieldsMD.Name = "Name"
    oUserFieldsMD.Description = "Name"
    oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
    oUserFieldsMD.EditSize = #LENGTH_OF_FIELD#
    '// Adding the Field to the Table
    lRetCode = oUserFieldsMD.Add
    GC.Collect() 'Release the handle to the User Fields
    Hope it helps.
    Regards,
    Pawel

  • Changing field text color and fill based on input value.

    I am trying to create a field that can be red, yellow or green.  In the end, what I need is a box that can be made red, yellow or green by the form user.  My strategy is to use a validation script to change the field and text color based on the field input.  So if you type "red", the text and field turn red, essentially making a red box.  The field is named "GoalColor".
    Am I headed in the right direction to get make this dynamic colored box?
    This script works but you must type "red" into the field(including quotation marks).  Any ideas on why the word red alone isn't triggering it? 
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == "red") {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    I have also tried - works if you type 'red'
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == 'red') {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    and  - does not work
    var vcolor = this.getField("GoalColor").value;
    if ( vcolor == red ) {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    Thanks!

    And you don't need to add the quotation marks in the text field. In fact, doing it will cause the script not to identify the word.

  • Subscript & Superscript in dynamic and input text field in Flash

    Yes, <sub> & <sup> tags are not supported by
    Flash but you can
    use Subscript & Superscript in dynamic and input text
    field in Flash:
    Download & install Subscript & Superscript fonts
    from
    http://www.subscriptfont.com
    or
    http://www.superscriptfont.com
    You will need to restart Flash software after installed
    fonts.
    Create a dynamic text field with Arial font embeded. Set the
    HTML property to true.
    Create a dynamic text field with Subscript font embeded.
    Create a dynamic text field with Superscript font embeded.
    Use HTML tag to set text to subscript or superscript like
    below:
    Some text<font face="Superscript">©</font>
    If you are using ActionScript to test the htmlText, use
    script like below:
    my_txt.htmlText = "Some text<font
    face='Superscript'>TM</font>";
    They are better than CG since it goes lower than the baseline
    and it's real subscript..

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

Maybe you are looking for