Hex string and normal string concatenat​e issue

Hello,
what i have is a hex string and a normal string which i want to concatenate into one string.  the problem is that in the output concatenated string you need to select either "normal display" or  "hex display" in the properties.  the problem is if you select hex display then the normal string is converted into hex and if you select normal display then the hex value is not correct.  is there a way to display the hex value in normal display mode?
attached is a vi showing the problem
Attachments:
hex to string.vi ‏7 KB

lfoitek wrote: ...  i am creating a state machine and then translating it into string representation ... i just can't figure out how to do the conversions to display the correct output.
If by "correct output", you mean you want something like 4bytes (0xBADDF00D) converted to 8bytes ("BADDF00D" in normal display), then there are several ways ...
Message Edited by Donald on 08-31-2006 04:17 PM
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Attachments:
HexHeadaches.jpg ‏24 KB

Similar Messages

  • What is difference between Null String and Empty String ?

    Hi
    Just i have little confusion that the difference bet'n NULL String and Empty String ..
    Please clear my doubte.
    Thankx

    For the same reason I think it's okay to say "null
    String" and "empty String "as long as you know they
    really mean "null String reference" and "empty String
    object" respectively. Crap. It's only okay to say that as long as *the one you're talking to" knows what it really means. Whether you know it or not is absolutely irrelevant. And there is hardly any ambiguity about the effects that a statement like "assign an object to a reference" brings. "Null String" differs in that way.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Difference between String and final String

    Hi friends,
    This is Ramana. Can u suggest me in this Question
    What is the difference between String and final String? Means
    String str="hai";
    final String str="hai";
    Regards,
    Ramana.

    *******REPEAT POST***********
    We already answered your question why post in a different section?
    http://forum.java.sun.com/thread.jspa?threadID=5201549

  • HTML Tag String to Normal String

    Hi all,
                This is sample HTML Tag string. How can I convert this into normal string
    '< s t y l e   t y p e = " t e x t / c s s " >
    p   { m a r g i n : 0 p x   0 p x   0 p x   2 p x ; }
    u l   { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    o l   { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    . N o r m a l   { f o n t - f a m i l y : P o r t a b l e   U s e r   I n t e r f a c e ; f o n t - s i z e : 1 1 p x ; c o l o r : # 0 0 0 0 0 0 ; v e r t i c a l - a l i g n : m i d d l e ; }
    . T a b l e D e f a u l t   { b o r d e r - c o l l a p s e : c o l l a p s e ; b o r d e r : 1 p x   s o l i d   # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t   t h   { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x   s o l i d   # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t   t d   { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x   s o l i d   # 0 0 0 0 0 0 ; }
    < / S T Y L E >
    < p   s t y l e = " m a r g i n : 0 p x ; " > < s p a n   c l a s s = " N o r m a l " > R e j e c t e d < / s p a n > < / p > '
    The above string, I highlighted the wanted string
    Regards,
    Fame

    You really got html with that lots of spaces included?
    May be something like the below
    with atext as (
    select '< s t y l e  t y p e = " t e x t / c s s " >
    p  { m a r g i n : 0 p x  0 p x  0 p x  2 p x ; }
    u l  { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    o l  { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    . N o r m a l  { f o n t - f a m i l y : P o r t a b l e  U s e r  I n t e r f a c e ; f o n t - s i z e : 1 1 p x ; c o l o r : # 0 0 0 0 0 0 ; v e r t i c a l - a l i g n : m i d d l e ; }
    . T a b l e D e f a u l t  { b o r d e r - c o l l a p s e : c o l l a p s e ; b o r d e r : 1 p x  s o l i d  # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t  t h  { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x  s o l i d  # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t  t d  { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x  s o l i d  # 0 0 0 0 0 0 ; }
    < / S T Y L E >
    < p  s t y l e = " m a r g i n : 0 p x ; " > < s p a n  c l a s s = " N o r m a l " > R e j e c t e d < / s p a n > < / p > ' t from dual
    select
    regexp_substr (t, '>([^<{]+)< /', 1, level, null, 1) t
    from atext
    connect by
    level <= regexp_count(t, '>([^<{]+)< /')
    and
    trim(regexp_substr (t, '>([^<{]+)< /', 1, level, null, 1)) is not null
    T
    R e j e c t e d

  • Null String and Empty String problem

    Hello everyone,
    since i am totally new in JSP, i am getting problem in handling strings.
    Suppose i have a variable users = ""; then
    I want to ask when to use:
    if (users.equals(""))
    and
    if(users == "")
    in my code, variable users has value "regional" for regional users.
    and i am checking this code as:
    if (users.equals{"regional")) {
    out.print ("I am inside code");
    at that time, the code is throwing error (run time error)
    and when i changed the code as:
    if (users == "regional") {
    out.print ("I am inside code");
    this time, the code is not generating error but the part message "I am inside code " is not displaying. The code do not inserts inside the if condition
    I hope u understand my problem. Can anybody help me out with this.

    This has basically nothing to do with JSP, but with basic Java knowledge.
    When using the '==' operator to compare Objects (yes, String is actually a subclass of Object), then it will look if they are of the same reference. Using the '==' operator to compare primitive datatypes (int, boolean, char, etc) will look if they have the same value.
    That is why the Object class has the equals() method to give the ability compare with another objects. And you can only invoke it when the Object is actually instantiated. So if it is not null.
    if (string != null && string.equals("somevalue")) {
    // or
    if ("somevalue".equals(string)) {
    }should work.
    Edit rym82: this will not throw a NPE, but an ordinary compilation error ;)
    Message was edited by:
    BalusC

  • Difference between null string and empty string??

    what is the major difference between null string and an empty string??
    I wrote the following simple program and I could see some different output.
    Other than that, any other differences that we should pay attention to???
    C:\>java TestCode
    Hello
    nullHello
    public class TestCode
         public static void main(String[] s)
         {     String s1 = "";
              String s2 = null;
              System.out.println(s1 + "Hello");
              System.out.println(s2 + "Hello");
    }

    The difference is that an empty String is just empty but a null String has no value (i.e. it is not instantiated) this has signifigance since all Strings are objects.

  • Diff. bet. JSP String ( %! String) and Java String.

    Hi all,
    Think this is one of the basic Questions.
    I want to know the basic diff. between <%!String a=10; %> and <%String a=10; %> programmatically,
    with an example.
    Bye
    Sreedhar

    <%! ... %> are called jsp declarations, and are inserted into the generated servlet class.
    <% ... %> are called jsp scriptlets, and are inserted into the _jspService method.
    For example, the following jsp :
    <%! String a = "10"; %>
    <%!
      public void helloWorld() {
         System.out.println("Hello world");
    %>
    <% String b = "10"; %>Might be translated to the following servlet code :
    String a = "10";
    public void helloWorld() {
       System.out.println("Hello world");
    public void _jspService(...) ... {
      String b = "10";
    }

  • Scan from string and extract string between delimiter

    Hello,
    Basic questions.  Is it possible with the scan from string regular expression to extract the string that are within the specified delimiters.  Here is an example:
    \\Name of folder 1\Name of folder 2\Name of folder 3\File Name
    Can the scan from string output the following by specifying the right regular expression:
    Name of folder 1
    Name of folder 2
    Name of folder 3
    File Name
    I have tried \\\\%s\\%s\\%s\\%s but the %s stops at the first white space.
    Thanks,
    Michel
    Solved!
    Go to Solution.

    RavensFan suggested the appropriate function for your requirement, however you can also use an alternative, which is 'Spreadsheet String To Array'.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Remove tokens from string and sort string via  XSLT mapping

    Hi,
    I have a requirement wherein I need to sort the records in an XML file with customer num & order number.
    The value of order number is concatenation of order and item like: 3249_110 , 3249_10, 3290_110,3290_10 and so on.
    Expected result:
    3249_10
    3249_110
    3290_10
    3290_110
    The sort on order number is not giving correct result as its not considering it as an number and the output I am getting is:
    3249_110
    3249_10
    3290_110
    3290_10
    code used:
    <xsl:for-each select="DELIVERYHEADER">
                   <xsl:sort select="./EXTCUSTOMERNO"/>
                   <xsl:sort data-type="number" order="ascending" select="/EXTORDERNO"/>
                   <xsl:copy-of select=".">
                   </xsl:copy-of>
    Please suggest.
    Thanks!
    Indu Khurana

    Source:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ORIONSHIPMENTS>
         <TRIP>
              <ACTION>I</ACTION>
              <SHIFTNO>1</SHIFTNO>
              <SEQUENCENO>1</SEQUENCENO>
              <DATE>2010-12-20 00:00:00</DATE>
              <STARTDATE>2010-12-20 06:00:00</STARTDATE>
              <ENDDATE>2010-12-20 14:54:00</ENDDATE>
              <TRIPNO>10</TRIPNO>
              <TRIPMNEMONIC/>
              <DRIVERID>DRIVERORT2</DRIVERID>
              <DRIVERNO>DRIVERORT2</DRIVERNO>
              <EXTDRIVERNO>12345</EXTDRIVERNO>
              <TRUCKID>Truck 01</TRUCKID>
              <TRUCKNO>Truck 01</TRUCKNO>
              <EXTTRUCKNO>5002053</EXTTRUCKNO>
              <TRAILERID>Trailer 2</TRAILERID>
              <TRAILERNO>Trailer 2</TRAILERNO>
              <EXTTRAILERNO>ORTEC00002</EXTTRAILERNO>
              <DELIVERYCT>2</DELIVERYCT>
              <LOADCT>1</LOADCT>
              <STARTDEPOTNO>GHENT_N</STARTDEPOTNO>
              <EXTSTARTDEPOTNO>4020</EXTSTARTDEPOTNO>
              <ENDDEPOTNO>GHENT_N</ENDDEPOTNO>
              <EXTENDDEPOTNO>4020</EXTENDDEPOTNO>
              <STARTLOCATIONNO>GHENT_N</STARTLOCATIONNO>
              <EXTSTARTLOCATIONNO>4020</EXTSTARTLOCATIONNO>
              <ENDLOCATIONNO>GHENT_N</ENDLOCATIONNO>
              <EXTENDLOCATIONNO/>
              <ANCILLARYTIME>0</ANCILLARYTIME>
              <LOADINGTIME>0</LOADINGTIME>
              <DISCHARGETIME>245</DISCHARGETIME>
              <DRIVETIME>289</DRIVETIME>
              <DISTANCE>0</DISTANCE>
              <LOADINGSTARTED>0</LOADINGSTARTED>
              <COMMENT/>
              <LOAD>
                   <ACTION>I</ACTION>
                   <LOADID />
                   <LOADIDADD />
                   <SEQUENCENO>0</SEQUENCENO>
                   <LOADINGDEPOTNO>GHENT_N</LOADINGDEPOTNO>
                   <EXTLOADINGDEPOTNO>4020</EXTLOADINGDEPOTNO>
                   <LOADINGPOINT />
                   <AUTHORISATIONCODE />
                   <COMPARTMENTTO>
                        <COMPARTMENTNO>1</COMPARTMENTNO>
                        <PRODUCTNO>401611</PRODUCTNO>
                        <EXTPRODUCTNO>000000000000401611</EXTPRODUCTNO>
                        <VOLUME>65</VOLUME>
                        <UOM>LT</UOM>
                   </COMPARTMENTTO>
              </LOAD>
              <DELIVERYHEADER>
                   <ACTION>I</ACTION>
                   <SEQUENCENO>1</SEQUENCENO>
                   <ORDERNO>3949_20</ORDERNO>
                   <EXTORDERNO>3949_201</EXTORDERNO>
                   <CUSTORDERNO>01.01 Crea</CUSTORDERNO>
                   <CUSTOMERNO>0050000001</CUSTOMERNO>
                   <EXTCUSTOMERNO>0050000001</EXTCUSTOMERNO>
                   <DELIVERYNAME>TEST ORTEC</DELIVERYNAME>
                   <DELIVERYADDRESS1>Rue de Belgique</DELIVERYADDRESS1>
                   <DELIVERYADDRESS2/>
                   <DELIVERYADDRESS3/>
                   <DELIVERYPOSTCODE/>
                   <DELIVERYTOWN/>
                   <DELIVERYCOUNTRY>BE</DELIVERYCOUNTRY>
                   <INVOICENAME/>
                   <INVOICEADDRESS1/>
                   <INVOICEADDRESS2/>
                   <INVOICEADDRESS3/>
                   <INVOICEPOSTCODE/>
                   <INVOICETOWN/>
                   <INVOICECOUNTRY/>
                   <PHONENUMBER1/>
                   <PHONENUMBER2>0</PHONENUMBER2>
                   <TAXCODE />
                   <CUSTOMERCOMMENTS>0013</CUSTOMERCOMMENTS>
                   <DELIVERYCOMMENTS/>
                   <DOCUMENTTYPE>2</DOCUMENTTYPE>
                   <DELIVERYWINDOWSTARTDATE>2010-12-20 00:00:00</DELIVERYWINDOWSTARTDATE>
                   <DELIVERYWINDOWENDDATE>2010-12-20 23:59:00</DELIVERYWINDOWENDDATE>
                   <DELIVERYLINECT>1</DELIVERYLINECT>
                   <DELIVERYAUTHORISATIONREQUIRED/>
                   <CUSTOMERLANGUAGE/>
                   <CONTACTNAME/>
                   <COMPANYREFERENCE/>
                   <CUSTOMERTAXNO/>
                   <FISCALDELIVERY>0</FISCALDELIVERY>
                   <PAYMENTMETHOD>0</PAYMENTMETHOD>
                   <PAYMENTDAYSDUE>999</PAYMENTDAYSDUE>
                   <CURRENCY/>
                   <CALLBEFOREDELIVERY>0</CALLBEFOREDELIVERY>
                   <GEOFENCEDISTANCE>0</GEOFENCEDISTANCE>
                   <GEOFENCEPHONE/>
                   <SITEACCESSGRADE/>
                   <NORMALTAXRATE/>
                   <SPECIALTAXRATE>0</SPECIALTAXRATE>
                   <DISCOUNT>0</DISCOUNT>
                   <SIGNATURECAPTURED/>
                   <DISTANCELOADINGDEPOT>184</DISTANCELOADINGDEPOT>
                   <DRIVETIMELOADINGDEPOT>145</DRIVETIMELOADINGDEPOT>
                   <DISTANCENEXTSTOP>0</DISTANCENEXTSTOP>
                   <DRIVETIMENEXTSTOP>0</DRIVETIMENEXTSTOP>
                   <LOADRELEVANT/>
                   <DELIVERYLINE>
                        <ACTION>I</ACTION>
                        <MOVEMENTNO>3949_20001</MOVEMENTNO>
                        <EXTMOVEMENTNO>3949_20</EXTMOVEMENTNO>
                        <PRODUCTNO>401611</PRODUCTNO>
                        <EXTPRODUCTNO>000000000000401611</EXTPRODUCTNO>
                        <PLANNEDQTY>20</PLANNEDQTY>
                        <UOM>LT</UOM>
                        <PRICEPERUNIT/>
                        <DISCOUNT/>
                        <COMMENTS/>
                        <COMPARTMENTFROM>
                             <COMPARTMENTNO>1</COMPARTMENTNO>
                             <VOLUME>0</VOLUME>
                             <TANKNO>1</TANKNO>
                             <EXTTANKNO>1</EXTTANKNO>
                             <TANKID>259454</TANKID>
                             <TANKLABEL/>
                             <PRODUCTNO>401611</PRODUCTNO>
                             <EXTPRODUCTNO>000000000000401611</EXTPRODUCTNO>
                             <UOM>LT</UOM>
                        </COMPARTMENTFROM>
                   </DELIVERYLINE>
              </DELIVERYHEADER>
              <DELIVERYHEADER>
                   <ACTION>I</ACTION>
                   <SEQUENCENO>2</SEQUENCENO>
                   <ORDERNO>3949_110</ORDERNO>
                   <EXTORDERNO>3949_110</EXTORDERNO>
                   <CUSTORDERNO>01.01 Crea</CUSTORDERNO>
                   <CUSTOMERNO>0050000001</CUSTOMERNO>
                   <EXTCUSTOMERNO>0050000001</EXTCUSTOMERNO>
                   <DELIVERYNAME>TEST ORTEC</DELIVERYNAME>
                   <DELIVERYADDRESS1>Rue de Belgique</DELIVERYADDRESS1>
                   <DELIVERYADDRESS2/>
                   <DELIVERYADDRESS3/>
                   <DELIVERYPOSTCODE/>
                   <DELIVERYTOWN/>
                   <DELIVERYCOUNTRY>BE</DELIVERYCOUNTRY>
                   <INVOICENAME/>
                   <INVOICEADDRESS1/>
                   <INVOICEADDRESS2/>
                   <INVOICEADDRESS3/>
                   <INVOICEPOSTCODE/>
                   <INVOICETOWN/>
                   <INVOICECOUNTRY/>
                   <PHONENUMBER1/>
                   <PHONENUMBER2>0</PHONENUMBER2>
                   <TAXCODE />
                   <CUSTOMERCOMMENTS>0013</CUSTOMERCOMMENTS>
                   <DELIVERYCOMMENTS/>
                   <DOCUMENTTYPE>2</DOCUMENTTYPE>
                   <DELIVERYWINDOWSTARTDATE>2010-12-20 00:00:00</DELIVERYWINDOWSTARTDATE>
                   <DELIVERYWINDOWENDDATE>2010-12-20 23:59:00</DELIVERYWINDOWENDDATE>
                   <DELIVERYLINECT>1</DELIVERYLINECT>
                   <DELIVERYAUTHORISATIONREQUIRED/>
                   <CUSTOMERLANGUAGE/>
                   <CONTACTNAME/>
                   <COMPANYREFERENCE/>
                   <CUSTOMERTAXNO/>
                   <FISCALDELIVERY>0</FISCALDELIVERY>
                   <PAYMENTMETHOD>0</PAYMENTMETHOD>
                   <PAYMENTDAYSDUE>999</PAYMENTDAYSDUE>
                   <CURRENCY/>
                   <CALLBEFOREDELIVERY>0</CALLBEFOREDELIVERY>
                   <GEOFENCEDISTANCE>0</GEOFENCEDISTANCE>
                   <GEOFENCEPHONE/>
                   <SITEACCESSGRADE/>
                   <NORMALTAXRATE/>
                   <SPECIALTAXRATE>0</SPECIALTAXRATE>
                   <DISCOUNT>0</DISCOUNT>
                   <SIGNATURECAPTURED/>
                   <DISTANCELOADINGDEPOT>184</DISTANCELOADINGDEPOT>
                   <DRIVETIMELOADINGDEPOT>145</DRIVETIMELOADINGDEPOT>
                   <DISTANCENEXTSTOP>173</DISTANCENEXTSTOP>
                   <DRIVETIMENEXTSTOP>144</DRIVETIMENEXTSTOP>
                   <LOADRELEVANT/>
                   <DELIVERYLINE>
                        <ACTION>I</ACTION>
                        <MOVEMENTNO>3949_110001</MOVEMENTNO>
                        <EXTMOVEMENTNO>3949_110</EXTMOVEMENTNO>
                        <PRODUCTNO>401611</PRODUCTNO>
                        <EXTPRODUCTNO>000000000000401611</EXTPRODUCTNO>
                        <PLANNEDQTY>45</PLANNEDQTY>
                        <UOM>LT</UOM>
                        <PRICEPERUNIT/>
                        <DISCOUNT/>
                        <COMMENTS/>
                        <COMPARTMENTFROM>
                             <COMPARTMENTNO>1</COMPARTMENTNO>
                             <VOLUME>0</VOLUME>
                             <TANKNO>1</TANKNO>
                             <EXTTANKNO>1</EXTTANKNO>
                             <TANKID>259454</TANKID>
                             <TANKLABEL/>
                             <PRODUCTNO>401611</PRODUCTNO>
                             <EXTPRODUCTNO>000000000000401611</EXTPRODUCTNO>
                             <UOM>LT</UOM>
                        </COMPARTMENTFROM>
                   </DELIVERYLINE>
              </DELIVERYHEADER>
         </TRIP>
    </ORIONSHIPMENTS>

  • Converting from xsd:string into soapenc:string

    Hi.
    I was successfull in invoking an axis web service with complex type definitions.
    However, when building and deploying the process flow, I get a warning message as follows:
    " [bpelc] [Warning]: Trying to assign incompatible types
    [bpelc] [Description]: in line 53 of "C:\eclipse\workspace\ComplexTypeWSFlow\TimeSheetProcess.bpel", <from> value type "{http://www.w3.org/2001/XMLSchema}string" is not compatible with <to> value type "{http://schemas.xmlsoap.org/soap/encoding/}string".
    [bpelc] [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query.
    [bpelc]
    [bpelc] [Warning]: Trying to assign incompatible types
    [bpelc] [Description]: in line 58 of "C:\eclipse\workspace\ComplexTypeWSFlow\TimeSheetProcess.bpel", <from> value type "{http://www.w3.org/2001/XMLSchema}string" is not compatible with <to> value type "{http://schemas.xmlsoap.org/soap/encoding/}string".
    [bpelc] [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query."
    My question is:
    How can I convert between xsd:string and soapenc:string types when using the "assign" activity so I don't keep getting this warning message?
    Regards

    Hi Paulo,
    This warning has been fixed in recent builds. eventhough soapenc:string is different type, it extends xs:string and its simple content. the compiler shouldn't display warnings for this case.

  • Turn a string that shows hex data in normal format, into a string that shows the same data in hex format

    I have a string of arbitrary length - say, 1AB1C0 - in normal format. I would like to have a function which takes that string in, and outputs the same exact characters, but in hex format. So the input will read 1AB1C0 in normal string format, and the output will read 1AB1C0 in hex string format.
    I am doing this because I have found the end device works better if I send the bytes as a hex string vs. as an array of U8. Furthermore, I manipulate a lot of byte streams in my program, and I find the string parsing tools less cumbersome to use vs. the byte array parsing tools - however, they only work on the strings as they appear in normal mode. So I have reasons in different parts of my program to have the string in normal vs. hex formats; but I cannot figure out any remotely elegant way to cast from one to the other.
    Solved!
    Go to Solution.

    CraigRem wrote:
    So the input will read 1AB1C0 in normal string format, and the output will read 1AB1C0 in hex string format.
    Well, you need to scan the hex formatted string two bytes at a time to an U8 numeric and then cast it back to a string. There are many ways to do that, here are two possibilities. (Mkae sure to use the correct representations as labeled).
    (I still don't quite understand your reasoning why you need this).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    NormalToHex1.png ‏12 KB

  • Concatenate Hex'04' to text string

    Hi
    I need to concatenate Hex'04' to text string. How can I use class cl_abap_char_utilities to realize it?
    Thanks,
    Crystal
    Edited by: Crystal Yu on Feb 8, 2008 8:15 PM
    Edited by: Crystal Yu on Feb 8, 2008 8:16 PM

    Hello Peter,
    use a single TextField and concatenate the string before putting it into the context. FormCalc or JavaScript won't be needed then.
    A good way to determine where the problem resides is to create an addition WD based
    TextView and display the same data there. If it shows up with data there and with no
    data in the form, then the problem resides in the form rather than in the WD context.
    Best regards,
    Thomas

  • How to sum space delimited hex values in a string, and do other stuff?

    Hello
    I am trying to write a Bourne shell script that takes a non-constant-length character string as input, converts each character to hexidecimal value, sums each value, takes the two's complement of the sum, logically ANDS it with FF, and if any of the resultant "nibbles" are a-f, print/save that nibble as A-F, for later display as a two-character-long character string
    For example, assume a variable (as in non-constant) length variable $A
    A="w04:0;2"
    the road that I started down was to define
    B=$( echo $A | od -An -t x1 -N"${#A}" )
    # for this example, $B=77 30 34 3a 30 3b 32
    It's the middle part where I need some magic. What I want to do is add the whitespace-delimited hex values of this string, for this example
    C=77+30+34+3a+30+3b+32
    so for this example, $C=1b2
    then take two's complement of $C; for this example, $TWOS_COMP=ffff ffff ffff ffe4e
    and logically AND it with FF; for this example, almost-final answer is 4e
    then save final result as uppercase character string variable (for this example, variable's contents would be 4E)
    Is what I'm trying to do intuitively obvious to any of you gurus out there, that could rattle off an answer? I'm okay with trashing my approach thus far and trying something totally different, within the constraint that it run inside a Bourne shell script.
    Thanx in advance, if anybody can help!

    I've made progress. I've converted each character of a non-constant-length string $A into a space-delimited string of hex values, added them up, and retained the least significant byte (i.e., the 8 least significant bits). Here's how:
    B=$( echo $A | od -An -t x1 -N"${#A}" )
    D=0
    for C in $B; do
      C=0x$C
      D=$(($D + $C))
    done
    D=$(($D & 16#FF))
    D=`echo "ibase=10;obase=16;$D" | bc`
    The missing piece now is how to take the two's complement of $D. Anybody out there with any ideas on how to handle the two's complement piece inside a Bourne shell?
    Thanx

  • Bind Variables with AND in String causing Issues in XML & Report Outputs

    Hi all,
    I'm creating a BI Publisher report (10.1.3.2) and am experiencing an issue with the interprutation of Bind Variables in the Data Template.
    Here is an example of some of the Data template
    <dataTemplate name="BudgetDataBU" description="BudgetDataBU" dataSourceRef="DLXN">
       <parameters> 
          <parameter name="p_Year" dataType="Integer" include_in_output="true"/>
          <parameter name="p_Measure" dataType="character" include_in_output="true"/>
          <parameter name="p_Currency" dataType="character" include_in_output="true"/>
          <parameter name="p_Version" dataType="character" include_in_output="true"/>
       </parameters>
       <dataQuery>
          <sqlStatement name="BusUnits">
               <![CDATA[SELECT DISTINCT CC.BUSINESS_UNIT as BUSINESS_UNIT
                        FROM   DLXN_FACT_DATA_DET FD,
                               DLXN.COST_CENTRE CC
                        WHERE FD.COST_CENTRE = CC.COST_CENTRE
                        AND FD.CAL_YEAR    = :p_Year
                        AND FD.Currency      = :p_Currency
                        AND FD.Measure      = :p_Measure
                        AND FD.Version        = :p_Version                                
                        AND CC.DLXN_VIEW = 'Delexian' ]]>
               </sqlStatement>
           <sqlStatement name="Details">
               <![CDATA[SELECT DLXN_FACT_DATA_DET.VERSION,
                               DLXN_FACT_DATA_DET.CURRENCY,
                               DLXN_FACT_DATA_DET.CAL_YEAR as CAL_YEAR,
                               SUM(nvl(DLXN_FACT_DATA_DET.JAN_AMT,0)) as JAN_AMT,
            </sqlStatement>
        </dataQuery>The problem is with the :p_Measure Bind Variable but it could just as easily be any of the other character parameters.
    The particular string value that is causing a problem is "Travel and Expenditure". I believe it is due to the "AND" in the string but this string value cannot be changed in the database to say "Travel & Expenditure".
    I have thought about using a REPLACE function in the SELECT statement but see this as an ugly solution.
    Any input greatly appreciated.
    Kind Regards,
    Gary.

    We remove this restriction ,fix included in BI Publisher July 2009 update for 10.1.3.4.x. The patch number is 8704846.

  • I want to take a series of hex characters in a string control and produce an HDLC string indicator for example if the data string control is 3F27 then the HDLC string indicator is 7E003F2700B57E

    I want to take a series of hex characters in a string control and produce an HDLC string indicator for example if the data string control is 3F27 then the HDLC string indicator is 7E003F2700B57E

    "thanks for your help "
    Does that mean you figured it out already?
    If not, see this thread for some HDLC related code.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=146859&query.id=3388#M146859
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Folder or File path when f4 option on selection screen is clicked

    can any one please let me know if there is a function module which can fetch folder name form the directory path when f4 option of selection screen field is selected. Currently I am able to get the file name using FM F4_DXFILENAME_4_DYNP but the requ

  • How to see wsdl in JBoss?

    Hi, I have deployed a WebService application in JBoss. How to see wsdl at server (JBoss) side? I have supplied url: http://localhost:8080 in the browser, It is showing the below page, from here how to see the wsdl file? JBoss Online Resources     * J

  • Open multiple PDF's in Acrobat X Pro?

    I have about 20 password protected PDF's that I would like to open in one instance of Acrobat X, instead of 20 different windows.  Is there a way to do this.  I've tried merging them, but they're secured with the FileOpen plugin, and even though I ha

  • Code 3194, please help!

    Im having the most annoying problem, my code 3194 it says that i may have cookies or spyware blocking my phone from being updated, thus leaving me stuck in recovery mode. I have turned off all my spyware and can not solve the problem can anyone help

  • What is Invaild Drive: F for iTunes upgrade mean?

    Upgrading the new iTunes version 7.2 has been challenging. Everything run find until the very end when it says Invalid Drive: F:/. How do i upgrade the iTunes latest version if this mysterious Invalid F drive wont let me complete the upgrade process?