Convertion of Entities.

Hi,
I have string which contains data posted through http.
Because of that the string contains HTML Entities like e.g. " " instead of "space".
Does anyone know a class or function module that can translate this into normal text.
Best Regards
- Rasmus

hi,
Pls have a look to this below mentioned FM.
I am Not sure about this one.
HRDSYS_CONVERT_FROM_HTML
regards,
raghu

Similar Messages

  • Why parser convert escape entities automatically?

    Hi,
    I'm parsing XML with JDK 1.4.2 + SAX(Crimson).
    I found that parser converts some of escape entities, like ">", or "<", automatically.
    I made a simple SAX application to show the trouble.
    The full codes are the followings,
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    public class SimpeXmlHandler extends DefaultHandler {
         private StringBuffer str = null;
         public void startElement(String namespaceURI, String localName,
                   String qName, Attributes attributes) throws SAXException {
              str = new StringBuffer();
         public void endElement(String uri, String localName, String qName)
                   throws SAXException {
              if (str != null) {
                   if (qName.equalsIgnoreCase("tag")) {
                        System.out.println("tag=" + str.toString().trim());
         public void characters(char[] chars, int start, int length)
                   throws SAXException {
              str.append(chars, start, length);
    public class SimpleXmlTest {
         public static void main(String[] args) throws Exception {
              SimpeXmlHandler handler = new SimpeXmlHandler();
              SAXParserFactory factory = SAXParserFactory.newInstance();
              factory.setValidating(false);
              SAXParser parser = factory.newSAXParser();
              XMLReader xmlReader = parser.getXMLReader();
              xmlReader.setContentHandler(handler);
              InputStream in = new FileInputStream(new File("sample.xml"));
              InputSource source = new InputSource(in);
              xmlReader.parse(source);
    }The XML sample is,
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <tag>a&gt;b</tag>
    </root>
    After run SimpleXmlTest, the output was,
    tag=a>b
    The result isn't my want.
    I don't want the parser converts the chars.
    How to do?
    P.S.
    I also tried with DOM(Dom4J), it didn't work, too.
    Thanks!
    a cup of Java, cheers!
    Sha Jiang

    The XML parser will convert all entities before the data is returned (to the program) either as sax events or as DOM nodes.
    Also an XML writer will (normally) convert all characters that would result in not well-formed XML back into entities.
    So, yes this behaviour cannot be cancelled and yes this behaviour should make it actually easier to work with XML.

  • TUT5124 Updating to GW2014 Convert Ext.Entities to Users

    Hi all,
    my customer converted already some time ago all eDirectory users to external entities as a preparation to be able to run his GroupWise system without eDirectory with the actual GW12.03 patch level
    Now we have this recommendation in the 3rd slide of the TUT5124 presentation of the BS2014 where it is recommended to convert the external entities to eDirectory users as preparation step for the upgrade to GW2014.
    Do we have some kind of technical background information why this step is required?
    The customer reported that he was able to associate the external entity to the active directory user without problems, without eDirectory user.
    Please advice...
    Many thanks in advance and best regards,
    Stefano
    Stefano Barello - Lanworks IT engineering

    SBarello,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Upgrade impact of converted Legal Entities

    Customer: Aviva
    Sr 3-2921431541
    Aviva has a requirement to rationalise the number of Legal Entities and on the day that some of these Legal Entities are no longer valid transactions in the sub-ledgers under the old Legal Entities need to be converted to the new Legal Entities in the GL.
    An option that is being considered is that IDT is used as part of the Sub-Ledger (AP & AR) Transfer process to the GL. When the sub-ledger transactions are transferred to the GL Interface Table the Legal Entity (Segment 1 - a Balancing Segment) will be converted from the old Legal Entitiy to the new Legal Entity using IDT. The Request ID may also need to be blanked to allow this to happen.
    Ratification Required in this context
    Will the difference in LE between sub-ledger and GL impact any data migration process used when upgrading from R11i to R12?
    Thanks
    Hans

    Hi Hans
    I see following issues from SLA perspective.You might take opinion from GL/Legal entity team/AP for unseen repercussions from their end
    1) Since subledgers are not updated with new entity id in 11i,reconciliation between SLA trial balance report and GL balances in R12 would not be easy as sublegders would migrate data with old entity id in SLA tables.
    Customer would have to take care of discounting old entities while reconciliing.
    2) Since reports are some times run with account flexfield parameter ,a report with same flexfiled parameter in SLA would not return same data in GL.
    For ex GL account analysis 180 char would show different data from SLA Account analysis report.
    Point 1 and 2 are usually used by customer to ensure successful upgrade happened but in this scenario actual issue would be covered by legal entity mismatch.
    3) I assume that if legal entity is obselete corresponding bsv would also be disabled.In that situation subledgers like AP which use businessflow feature would be affected i.e. when 11i invoice with old bsv is paid in R12 ,payment would not account as liability line of payment would be invalid as liability ccid is copied from that of Invoice.Same issue can happen with Accounting reversal feature which is used both by AP/AR.
    If old bsv is still valid even then unnecessary balancing lines/intercompany lines could be generated.Customer should think about defining alternate ccids.
    However best solution could be to ensure that subledgers prior to upgrade are corrected for Bsvs such that discrepany between Subledgers and GL is resolved prior to upgrade.
    Thanks
    Preeti

  • [iPhone] Any built in way to convert HTML entities to Unicode?

    I have a string with contents something like:
    "&copy; 2008"
    Is there some method that I can't seem to find that will convert this to:
    "© 2008"
    Basically is there something built in to convert all of the '&xxx;' HTML entities to their Unicode counterpart? I can write my own code to do it but I want to check here first.
    Thanks.

    I had the same problem and did only find a semi built in solution using NSXMLParser
    @interface MREntitiesConverter : NSObject {
    NSMutableString* resultString;
    @property (nonatomic, retain) NSMutableString* resultString;
    - (NSString)convertEntiesInString:(NSString)s;
    @end
    @implementation MREntitiesConverter
    @synthesize resultString;
    - (id)init
    if([super init]) {
    resultString = [[NSMutableString alloc] init];
    return self;
    - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)s {
    [self.resultString appendString:s];
    - (NSString)convertEntiesInString:(NSString)s {
    if(s == nil) {
    NSLog(@"ERROR : Parameter string is nil");
    NSString* xmlStr = [NSString stringWithFormat:@"<d>%@</d>", s];
    NSData *data = [xmlStr dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];
    NSXMLParser* xmlParse = [[NSXMLParser alloc] initWithData:data];
    [xmlParse setDelegate:self];
    [xmlParse parse];
    NSString* returnStr = [[NSString alloc] initWithFormat:@"%@",resultString];
    return returnStr;
    - (void)dealloc {
    [resultString release];
    [super dealloc];
    @end
    In Cocoa (Core Foundation) there is
    NSString* sI = (NSString*)CFXMLCreateStringByUnescapingEntities(NULL, (CFStringRef)s, NULL);
    but that does not (yet?) exist on the IPhone (2.01)

  • Xslt sample for entities to keyboard character

    We need the xslt sample for entities replacement text. For instance I have to convert the entities ‘&lpar;’  to keyboard character ‘(’.

    Hi,
    Here's a very simple one... If the param1 matches with any value in the input it will return true...
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:param name="param1"/>
      <xsl:template match="/">
      <xsl:value-of select=".//*/text() = $param1"/>
      </xsl:template>
    </xsl:stylesheet>
    Cheers,
    Vlad

  • Query in 10g DB gives error when size of element exceeds 4000 characters?

    I used this query give in this thread Need help in reading a _fmb.XML and writing the item properties to a table
    select x1.item_name
         , x1.item_type
         , x2.property
         -- to convert back entities such as
    to their character values :
         , utl_i18n.unescape_reference(x2.property_value) as property_value
         -- parent information :
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','length_test_fmb.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
           passing x1.item
           columns property       varchar2(50)  path 'name'
                 , property_value varchar2(4000) path 'value'
        ) x2
    ;This works perfectly, but I tried a form which has a program unit which exceeds 4000 characters, i.e. I converted a fmb to xml, I.E. PROPERTY VALUE. When you run the query then you get error "function returned value too large".
    I tried changing the VARCHAR2 to CLOB but then you get another error.
    We cannot migrated to 11g as yet, so how to handle this in 10g?
    Any help would be greatly appreciated.
    Edited by: Channa on Oct 25, 2011 6:40 AM

    Hi Channa,
    I should have mentioned it in the previous thread, a sound approach to the overall requirement would be to use object-relational storage for loading XML documents in the database.
    You can read more here : http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb03usg.htm#g1055369
    However, that's not possible if we use the DUMP=ALL option to convert Forms files to XML because the generated files do not conform to the Forms XML schema.
    So unless you decide to use DUMP=OVERRIDDEN, you're stuck with the current situation.
    If I remember correctly, the ability to project large strings as CLOB with XMLTable was added in version 10.2.0.4.
    You're not out of options though.
    Here are two, one being "dirtier" than the other...
    1) Divide the property value into multiple chunks of 4000 characters (or less if the db uses a multi-byte character set), then rebuild the string as CLOB in the SELECT clause :
    select x1.item_name
         , x1.item_type
         , x2.property
         , to_clob(utl_i18n.unescape_reference(x2.property_value1)) ||
           to_clob(utl_i18n.unescape_reference(x2.property_value2)) as property_value
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            let $propval := data($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value1 {substring($propval,1,4000)}
            , element value2 {substring($propval,4001,4000)}
           passing x1.item
           columns property        varchar2(50)   path 'name'
                 , property_value1 varchar2(4000) path 'value1'
                 , property_value2 varchar2(4000) path 'value2'
        ) x2
    ;2) Output the property value as a text() node (XMLType datatype) and serialize as CLOB in the SELECT :
    select x1.item_name
         , x1.item_type
         , x2.property
         , dbms_xmlgen.convert(x2.property_value.getclobval(),1) as property_value
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
           passing x1.item
           columns property        varchar2(50)   path 'name'
                 , property_value  xmltype        path 'value/text()'
        ) x2
    ;Edited by: odie_63 on 25 oct. 2011 17:03
    Edited by: odie_63 on 25 oct. 2011 17:04

  • Best way to do batch update of an online database

    We have a periodic process which will do batch update of the online database. I would like to have some advice on what is the best way to avoid this operation affecting cache.
    We have multiple environments using shared cache, so the total cache size is pretty big. Each environment on average refresh once a day. Some are pretty big in the DB size but not necessary have high traffic, and thus doesn't have high count in the cache. I am wondering if I do a refresh (basically lots of puts) to the db, will the affect the cache? if so, is there a way to not affect the cache?
    If there is a way to disable caching of the LN at environment level, that should also work for us as we a 1st tier object cache.
    Also, I would like to cleanup the log at the end of the batch update. Will the cleanup process block the reader threads which are set at read_uncommitted?
    Thanks!
    Edited by: JoshWo on Mar 9, 2010 5:20 PM

    Josh,
    It is possible to use a base API Cursor (with the CacheMode configured) to write entities in a destination EntityStore after reading them from a source EntityStore. The idea is to read the entities using a DPL cursor from the source store, and then use the binding of the destination store to convert the entities to DatabaseEntry objects, and finally store the DatabaseEntry objects using a base API cursor from the destination store.
    import com.sleepycat.je.CacheMode;
    import com.sleepycat.je.Cursor;
    import com.sleepycat.je.DatabaseEntry;
    import com.sleepycat.je.OperationStatus;
    import com.sleepycat.persist.PrimaryIndex;
    import com.sleepycat.persist.EntityCursor;
        PrimaryIndex srcIndex = ... // index of source store
        PrimaryIndex destIndex = ... // index of destination store
        EntityCursor<MyEntity> srcCursor = srcIndex.entities();
        Cursor destCursor = destIndex.getDatabase().openCursor(null, null);
        destCursor.setCacheMode(CacheMode.UNCHANGED);
        EntityBinding<MyEntity> destBinding = destIndex.getEntityBinding();
        DatabaseEntry key = new DatabaseEntry();
        DatabaseEntry data = new DatabaseEntry();
        for (MyEntity e : srcCursor) {
            destBinding.objectToKey(e, key);
            destBinding.objectToData(e, data);
            OperationStatus status = destCursor.put(key, data);
            assert status == OperationStatus.SUCCESS;
        destCursor.close();
        srcCursor.close();Please let me know if you have questions.
    Obviously, this would be a lot easier if there were an EntityCursor.put method, so that the CacheMode could be set on the EntityCursor. I'll file an enhancement request to add such a method.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Persisting an instance of the many side of a in one to many relationship

    It seems as if most books only tell you how to setup the relationship for a one to many relationship but seems to fail to tell you the appropriate way to persist in this relationship. So, I have a parent class with many child classes. Also, I am using services and so I am converting from Entities to Dtos and visa versa.
    First, i want to insert a new child for the parent. Do I just convert the child Dto to a child entity and then persist the child entity with the reference to the parent? Then do I find the parent and add the child to the parents children so the entities are consistent?
    Or do I do a find on the parent and add the child to the parents children list and the child. Will the child be persisted automatically?
    With this said, what about updating a child? Do I remove the existing child and add a new one? or do I somehow find the child in the parents children set and update the info there and then somehow the child is persisted automatically? And since I am using Dto to entity, do I use a find to find the parent and then iterate through that parents children til I reach the child I modified by id somehow.
    What about Many to Many relationships? With a middle join table? How does JPA know to remove a join if I change the child reference? Does it remove the old and insert the new? Or do I have to do it myself somehow. Which if the later then I really can not have a parent child Dto I really need a parent childlink table where the child is referenced by the linktable? The book I have been reading has not made this very clear.

    Hello,
    The relationships cascade settings determine what should happen. I would not recommend persisting a new entity that references a non-managed entity. Instead either persist the child then make the associations or find the parent, make the associations then persist the child. In the second case, you do not need to explicietly persist the child if the parent->child relationship is marked cascade persist, since it will be found on flush or commit.
    Since you are using DTOs, updates require you merge the changes. You can directly merge the child, and if it has a link to its parent, modify the parent to add the child on the managed child that gets returned.
    As for ManyToMany, you must modify the side that controls the relationship. So if the parent owns it, then you must modify or merge the changes into the parent for the changes to be persisted to the database. If it is bi-directional, you must modify both sides so that the cache remains consistent with the database. This should be transparent to your application, and you only need an entity for the relation table if you want to map more complex information that doesn't fit into the JPA ManyToMany options. Otherwise, JPA should handle inserting and deleting enteries to the relation table for you.
    Best Regards,
    Chris

  • Designer documentation

    I am new to Oracle Designer. Is there a good guide that explains the product in detail from concept to how-to for 10gR2? I did not find anything except install guides, release notes, and bug fixes at oracle.com. I am specifically trying to understand the table "API"s and why there are 12 triggers being generated for each table. I am unclear as to whether these are necessary or just being accepted as a pre-configured default.
    Thank you in advance.
    A

    jflack wrote:
    Certainly it is possible to generate surrogate keys that are not populated from a Sequence. And you don't have to fool with the column's data type either. Go to the key column in the Design Editor or the RON and view the property palette. Under "Definition", you will see the property "Sequence". If this was to be populated from a Sequence, this property would name the Sequence to be used. But since you aren't using a Sequence, you clear this property. Instead, I assume that you have a different way of generating the key. The normal way would be with a PL/SQL function. Change the property named "Server Derived" to "Yes", "Derivation Expression Type" from blank to "Function Call". You could also use a SQL Expression, but that isn't very common. Then write the function name and any parameters to the function in the "Derivation Expression". The only caveat is that you may only use columns from the same table, or pseudo-columns like SYSDATE and USER as parameters to the function.I think that this at a stage 'too late' for me? In my case, I'm using the DDT to convert my entities to table definitions. Those entities that have not had a primary UID defined for them will have an 'ID' column generated on the table definition and, by default, a sequence will also be generated with references between the 'ID' and the sequence.
    I think that what you are suggesting is that I modify the 'ID' columns once transformation is complete, whilst I'd prefer to find a way to prevent the creation of sequences during the DDT.
    If all else fails, I can always 'force delete' the sequences on completion of the DDT.
    Thanks for our help,

  • Exporting from Adobe Illustrator to AutoCad 2009

    Hello,
    I have been working for some time on wood moulding profiles made in Adobe Illustrator, exporting as a 2004 DWG, and inserting as a block in an AutoCad file. I have architects that may use these wood moulding profiles and I have had problems along the way in moving from one program to the other. I have over 500 of these so redrawing them in AutoCad is not a wanted answer really.
    When I try to Insert the Illustrator DWG files I get an error message saying "The NLS files requred to convert text entites and symbol names cannot be found in your system". There is no text in these files, just line drawings. So thats ok.
    But when I place the DWG file in AutoCad there is nothing there, or just points. Has anyone had any luck bringing an AI DWG file into AutoCad?
    Thank you so much for any help.

    Hi Annie,
    Try saving your file to its simplest level that you can before exporting as a DXF. Save it with a new name (to preserve the original file), then flatten layers, outline text, get rid of hidden things. Then try exporting as a DXF. If they can open a DWG, then they should be able to open a DXF.
    I used to use a program called CadMover by Kandu Software to move files between Illustrator and AutoCad. But with the newer versions of Illustrator and using the exporting options listed above I haven't needed it.
    Good luck to you,
    Danielle

  • HTML Editor - converting "special characters" into entities

    Hi everyone,
    I'm currently in the middle of formatting my wife's novel into 'clean' html so I can use Calibre to create a well formatted epub/mobi/etc.
    I've read that TextMate on Mac includes a function to "Convert Selection to Entities excluding Tags".  In other words it will replace all special characters (ellipses, copyright sign, etc) with the html entities.
    I'm currently using Kate and I can't seem to find anything similar.  Is anyone aware of any linux editors with the same function?
    Thanks for the help!

    ctarwater wrote:Encoding is already UTF-8 but I'm trying to make these docs as "universal" as possible and I've read that little things like replacing quotation marks and other symbols with their html entities is a good step in that direction.
    In situations with multiple encodings this might be the case, but the XML spec requires UTF‐8 support at minimum and defaults to it when the encoding is not declared. All XML parsers can deal with UTF‐8.
    In fact, replacing UTF‐8 characters with entities is less portable in XML. This is because the available entities are defined by the doctype, and XML only supports five by default (&lt;, &gt;, &quot;, &amp;, and &apos;). Things like &hellip; are defined in the HTML and XHTML doctypes, but not in other dialects of XML. This used to bite RSS pretty hard (probably still does), because people assumed the entities were available everywhere when they’re really not. EPUB and Mobi are based on XHTML, but other formats might use other XML dialects.

  • Does Illustrator do a good job of converting PDF text to text entities in DWG?

    My company receives a lot of drawings in PDF format. They look great, but when we're asked to modify these drawings, they have to be redrawn in CAD. This is very time-consuming and costly. I would like to use Illustrator to convert these PDFs to DWG format. I've found products that will convert the linework and other content of the drawing; however, none that I've found can convert the text in the PDF to text entities in the DWG.
    I would install the free trial version if Adobe Illustrator, but I can't. My company is currently using Windows XP operating system. Illustrator requires Windows 7 or 8.

    I don't think you'd be happy with any conversion of text between Illustrator and DWG. Text handling differs greatly in the respective editing environments. I may have missed something, but I've never seen usable text going in either direction, either to or from DWG.

  • Linq to oracle entities - convert decimal to string

    hi ,
    Im using entityframework beta for oracle
    I need compare string to a decimal column in my linq to entities query so i need convert number column to varchar, but .toString is not supported nor Convert.ToString nor SQLFunction.ToVarchar(or something like that) so how can i achieve this? should i import db function or there is some other (easier) way?
    Thx for answer

    Hi,
    I solved it by importing to_char builtin oracle function to my model:
    in edmx file put this (to section where your other procedures/functions are ) (change schema attribute to yours):
    <Function Name="to_char" ReturnType="varchar2" Aggregate="false" BuiltIn="true" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" StoreFunctionName="to_char" Schema="TOPASFO_DEMO">
    <Parameter Name="value" Type="number" Mode="In" />
    </Function>
    And make partial class of your entities class and put there this:
    [EdmFunction("Store", "to_char")]
    public string to_char(decimal value)
    // don’t need to implement the function
    throw new ApplicationException();
    And you can call it just like your other imported functions/procedures.

  • AppendChild converts XML tags to HTML entities?!

    I am working on an e4x statement. It is supposed to convert an XMLListCollection to a plain XML object. It ran without errors, but the destination object stayed blank. During debug I watched the variable value and found that as soon as the XML object ran the .appendChild command, all the appended XML content had its < and > characters replaced by &lt; and &gt;  which I can only assume killed the XML and caused my new object to remain empty.
    xmlTreeContents.appendChild(_modelListManagerTreeData.xmlTreeData);
    xmlTreeContents is the XML object, _modelListManagerTreeData.xmlTreeData is an XMLListCollection.
    A quick search turned up someone else with the same problem: http://stackoverflow.com/questions/2540414/flex-3-xml-remplacing-by-lt Unfortunately  no one answered him, and I can't find another reference to this issue.
    Has anyone here seen this problem, and can give me direction on what to do to solve it?
    Thanks.
    Paul

    I don't have a clue what is going on, but I found a way around it:
    I was initially using
    xmlTreeContents=<treeContents></treeContents>;
    xmlTreeContents.appendChild(_modelListManagerTreeData.xmlTreeData);
    and that caused the &lt; &gt replacements.
    Then I tried this and it works perfectly
    var f:String="<treeContents>" + _modelListManagerTreeData.xmlTreeData.toXMLString() + "</treeContents>";
    xmlTreeContents=XML(f);
    Still confused, but hopefully this workaround can help someone else.

Maybe you are looking for

  • Formatting NAS hard drive as Mac OS Extended HFS+

    I just got a NAS enclosure for my home LAN and two SATA hard drives to fit. Installed fine, even using the Windows-oriented browser interface installation. The drives show up nicely in the finder, and some files copy over without difficulty. HOWEVER,

  • Query regarding validators in inputDate

    Hi folks, I am using Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1 I have used an af:inputDate component with validators as below <af:inputDate ...>       <af:validateDateTimeRange maximum="2099-12-31"                                 hintMaximu

  • What happens to the server if I put a System.exit(0) in my servlet...

    deployed and running it? M

  • How to get total or sum year to date or date range

    Is there a way to duplicate in Numbers what I used to do with Excel's formula =DSUM(Database,"Total",Criteria) where criteria would be any date I plugged into a referenced cell to get a year to date total. Thanks! DBT

  • Windows Vista, Audio and Recording Proble

    I have just installed Windows Vista, and am having some serious problems with my audio. My problem is, that my mic does not function at all, and i have spent two days trying to fix this. My sound card is a Creative Soundbalster 5. sound card, and?app