Parsing strings with Unicode values 16 bits
How can I get the Unicode value for a character in a String when the value is greater than 16 bits?
I need to extract a supplemental plane Unicode value from a string. However, String.charCodeAt(index) truncates the Unicode value to 16 bits, returning what should be 0x02F91A as 0xF91A. I see discussions that show that earlier versions of Flex stores such char codes as the two code points of a surrogate pair, but in Flex 4, the string length is just 1 when I put only this character in the string.
Does it work in JavaScript? Could send it over via externalInterface.
Similar Messages
-
How Can I replace newScale Text Strings with Custom Values?
How Can I replace newScale Text Strings with Custom Values?
How can I replace newScale text strings with custom values?
All newScale text is customizable. Follow the procedure below to change the value of any text string that appears in RequestCenter online pages.
Procedure
1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
a) Navigate to the RequestCenter.ear/config directory.
b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
c) Save the file.
d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
e) Stop and restart the RequestCenter service.
f) Log in to RequestCenter and browse to the page that has the text you want to overwrite. In front of the text you will now see the String ID.
g) Note down the String ID's you want to change.
2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
3. Create the following sub-directory: res/resources
4. Create the following empty text files in the directory you just created:
RequestCenter_0.properties
RequestCenter_1.properties
RequestCenter_2.properties
RequestCenter_3.properties
RequestCenter_4.properties
RequestCenter_5.properties
RequestCenter_6.properties
RequestCenter_7.properties
5. Add the custom text strings to the appropriate RequestCenter_<Number>.properties file in the following manner (name-value pair) StringID=YourCustomTextString
Example: The StringID for "Available Work" in ServiceManager is 699.
If you wanted to change "Available Work" to "General Inbox", you would add the following line to the RequestCenter_0.properties file
699=General Inbox
Strings are divided into the following files, based on their numeric ID:
Strings are divided into the following files, based on their numeric ID:
String ID File Name
0 to 999 -> RequestCenter_0.properties
1000 to 1999 -> RequestCenter_1.properties
2000 to 2999 -> RequestCenter_2.properties
3000 to 3999 -> RequestCenter_3.properties
4000 to 4999 -> RequestCenter_4.properties
5000 to 5999 -> RequestCenter_5.properties
6000 to 6999 -> RequestCenter_6.properties
7000 to 7999 -> RequestCenter_7.properties
6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
7. Restart RequestCenter.
Your customized text should be displayed.I've recently come across this information and it was very helpful in changing some of the inline text.
However, one place that seemed out of reach with this method was the three main buttons on an "Order" page. Specifically the "Add & Review Order" button was confusing some of our users.
Through the use of JavaScript we were able to modify the label of this button. We placed JS in the footer.html file that changes the value of the butt -
Replacing the same value in a string with varying values
If I have a string:
"%s is the %s I am referring to"
and - I want to replace the %s occurrences with DIFFERENT values... what's the best way to do this.
I was thinking parsing it into seperate strings using substr and instr but, I'm not sure if that's overkill or not.
Replace is ideal but - it replaces every occurrence so - you can state just replace the first occurrence with one value and the second with another (i.e. if the desired result after replacing the above string was supposed to be "This is the string I am referring to"
Any help is appreciated.
ThanksHi,
wtlshiers wrote:
If I have a string:
"%s is the %s I am referring to"
and - I want to replace the %s occurrences with DIFFERENT values... what's the best way to do this.Whenever you have a question, please post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
Explain how you get those results from that data.
Always say which version of Oracle you're using (e.g. 11.2.0.3.0).
See the forum FAQ {message:id=9360002}
I was thinking parsing it into seperate strings using substr and instr but, I'm not sure if that's overkill or not.Depending on your requirements, you might need to do that.
Replace is ideal but - it replaces every occurrence so - you can state just replace the first occurrence with one value and the second with another (i.e. if the desired result after replacing the above string was supposed to be "This is the string I am referring to"As you said, REPLACE changes all occurrences. There's no way to tell it (for example) to change only the first one.
REGEXP_REPLACE, is a lot more flexible. It does have an option for giving a specific occurrence, but you may not even need that feature. You might just want something like
REGEXP_REPLACE ( '%s is the %s I am referring to'
, '(.*)%s(.*)%s(.*)'
, '\1This\2string\3'
)It all depends on your data and your requirements.
Are the new values (such as 'This' and 'string') fixed, or can they change from row to row?
Will you always have 2 (or some known number) of '%s's in the original string?
Does '%' always signal something that is to be replaced? If not, how can you tell when it does and when it doesn't?
Does 's' always come right after '%'? If not, what are the possibilites, and what do the different characters signify? -
Hi All,
I have a SP2013 environment which authenticate users using ADFS 2.0 via Windows AD. We have two separate clients, Portal and Mobile. Portal users Passive Federation where as Mobile client uses Active Authentication with usernamemixed endpoint in ADFS.
I have an AD property which stores Unicode characters. In Active Authentication via Mobile, for a user who has a Unicode value in the AD property, I can get the SAML token successfully from ADFS.
Ex : <saml:AttributeValue>español</saml:AttributeValue>
However, when I post this SAML token to SharePoint _trust endpoint, I'm getting an error "500 Internal Server error". However for the same user, if I change the AD property value from "español" to "English" then I can get the FedAuth
cookie successfully from the _trust endpoint.
Also, for the same user, If I logged in via Portal which uses Passive Federation, then it's working fine.
Really appreciate your thoughts on this.
SupunHi Supun,
As you mentioned, the issue only happens in Active authentication. Would you please let me know which mobile client your users are using for the Active authentication, is it a custom one? Please be noted if you use a mobile browser, the authentication will
also be Passive.
In Passive mode authentication, STS also uses POST to pass the security token to the relaying party. I'd like to know what kind of tool you are using to post a SAML token to SharePoint endpoint as impersonation of an Active authentication. Since the Active
authentication flow is quite complex, I also suggest you to check the event log in your ADFS server, and try to find more information about the issue.
Thanks,
Reken Liu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Convert document into string with unicode
I want to convert my document into string with all <,>,& to be converted into <, >, and &. When I am doing transformation, I am getting <,> etc.
Can anybody suggest me how to do that.
regards,
RanjanI don't know of any way to tell the parser to convert is for you, you'll have to replace the characters yourself after you got the string from the parser.
Aviran
http://www.aviransplace.com -
XML Parsing - problem with a value of an element if starting with space
Hi Experts,
I need your valuable guidence to get out of a problem in parsing an XML file.
An XML file is read into xstring variable and it is processed to be split into the corresponding itab.
Please find the code below
types: begin of ty-itab,
field(4096),
end of ty-itab.
Data:
g_ixml TYPE REF TO if_ixml,
g_ixmldocument TYPE REF TO if_ixml_document,
g_ixmlstreamfactory TYPE REF TO if_ixml_stream_factory,
g_ixmlstream TYPE REF TO if_ixml_istream,
g_ixmlparser TYPE REF TO if_ixml_parser,
g_ixmlnodemainlist TYPE REF TO if_ixml_node_list,
g_ixmlnodelistmainelement TYPE REF TO if_ixml_node_list,
g_sxmldata TYPE string,
g_ixmlnode TYPE REF TO if_ixml_node.
DATA: wa_xmltab TYPE xstring,
itab type table of ty-itab.
OPEN DATASET l_file IN BINARY MODE FOR INPUT MESSAGE v_msg.
READ DATASET l_file INTO wa_xmltab.
PERFORM f_create_xmltable USING wa_xmltab
CHANGING v_msg.
IF NOT v_msg IS INITIAL.
msg = v_msg.
EXIT.
ELSE.
itab[] = it_xmldata[].
ENDIF.
CLOSE DATASET l_file.
Subroutine to convert xstring to char type ITAB.
FORM f_create_xmltable USING value(pi_inputxmlstring) TYPE xstring
CHANGING v_msg.
*-- create the main factory
g_ixml = cl_ixml=>create( ).
*-- create the initial document
g_ixmldocument = g_ixml->create_document( ).
*-- create the stream factory
g_ixmlstreamfactory = g_ixml->create_stream_factory( ).
*create input stream
g_ixmlstream = g_ixmlstreamfactory->create_istream_xstring( string =
pi_inputxmlstring ).
*-- create the parser
g_ixmlparser = g_ixml->create_parser( stream_factory =
g_ixmlstreamfactory
istream = g_ixmlstream
document = g_ixmldocument ).
*-- parse the stream
IF g_ixmlparser->parse( ) NE 0.
*if parser cannot be created then give error exit
IF g_ixmlparser->num_errors( ) NE 0.
EXIT.
ENDIF.
ENDIF.
*-- we don't need the stream any more, so let's close it...
CALL METHOD g_ixmlstream->close( ).
CLEAR g_ixmlstream.
*get the number of main nodes of the XML document
g_ixmlnodemainlist = g_ixmldocument->get_children( ).
*set number of elemtns
g_inummainelements = 0.
g_imainelementsctr = 0.
g_inummainelements = g_ixmlnodemainlist->get_length( ).
g_ifirstlevelctr = 0.
*loop through the document till all have nodes have been covered.
WHILE g_ifirstlevelctr LT g_inummainelements.
*get the first node
g_ixmlnode = g_ixmlnodemainlist->get_item( g_ifirstlevelctr ).
*check the type of node
g_isnodeelement = g_ixmlnode->get_type( ).
*if node is not of type Element then continue
*because we have got to read only text from element nodes.
IF g_isnodeelement NE c_nodeelement.
g_ifirstlevelctr = g_ifirstlevelctr + 1.
CONTINUE.
ENDIF.
*get nodes of the element just found.
g_ixmlnodelistmainelement = g_ixmlnode->get_children( ).
*get number of children of main element
g_inumchildelements = g_ixmlnodelistmainelement->get_length( ).
*loop trhough the number of children
WHILE g_imainelementsctr LT g_inumchildelements.
g_ixmlnodemainelement = g_ixmlnodelistmainelement->get_item(
g_imainelementsctr ).
*get type of node
g_isnodeelement = g_ixmlnodemainelement->get_type( ).
IF g_isnodeelement NE c_nodeelement.
g_imainelementsctr = g_imainelementsctr + 1.
CONTINUE.
ENDIF.
*get name of the node.
g_selementvalue = g_ixmlnodemainelement->get_name( ).
*get children of node
g_childnodelist = g_ixmlnodemainelement->get_children( ).
g_inumchildren = g_childnodelist->get_length( ).
g_ichildelementcounter = 0.
*while there are number of children of node.loop through
WHILE g_ichildelementcounter LT g_inumchildren.
*get the child node
g_childnode = g_childnodelist->get_item(
g_ichildelementcounter ).
*check the type of node
g_isnodeelement = g_childnode->get_type( ).
*if node is not of element type continue
IF g_isnodeelement NE c_nodeelement.
g_ichildelementcounter = g_ichildelementcounter + 1.
CONTINUE.
ENDIF.
*otherwise get element name
g_selementname = g_childnode->get_name( ).
*get value stored in this node.
g_selementvalue = g_childnode->get_value( ).
g_numelem = g_inumchildren - 1.
IF g_ichildelementcounter EQ g_numelem.
CONCATENATE: g_slinedata g_selementvalue
INTO g_slinedata.
ELSE.
* store the value of noide in delimiter ~ line
* Check for Invalid characters in file
IF g_selementvalue CA '&'.
REPLACE ALL OCCURRENCES OF '&' IN g_selementvalue WITH
endif.
*if value contains delimiter then error
IF g_selementvalue CA '~'.
V_MSG = text-003.
EXIT.
ELSE.
CONCATENATE: g_slinedata g_selementvalue '~' .
INTO g_slinedata.
ENDIF.
ENDIF.
*continue
g_ichildelementcounter = g_ichildelementcounter + 1.
ENDWHILE.
g_ichildelementcounter = 0.
*increment the main element counter by one to go to the next node
g_imainelementsctr = g_imainelementsctr + 1.
*move the current delimiter line creted to internal table to be given
*back to the calling program
MOVE g_slinedata TO wa_xmldata-data.
APPEND wa_xmldata TO it_xmldata.
MOVE '' TO g_slinedata.
MOVE '' TO wa_xmldata-data.
ENDWHILE.
*increment counter to move to hte next node.
g_ifirstlevelctr = g_ifirstlevelctr + 1.
g_imainelementsctr = 0.
ENDWHILE.
ENDFORM. "f_create_xmltable
XML structure
<?xml version="1.0" encoding="utf-8"?>
<ABCInbound xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\XYZSchema\ABCInbound.xsd">
<HH>
<RecordType>HH</RecordType>
<Source>ABC</Source>
<Destination>XYZ</Destination>
<TimeStamp>20050909220546</TimeStamp>
</HH>
<BH>
<RecordType>BH</RecordType>
<DocType>AB</DocType>
<Reference>2205516125</Reference>
<DocumentDate>20080909</DocumentDate>
<PostingDate></PostingDate>
<CompanyCode>ABC</CompanyCode>
<Currency>INR</Currency>
<ExchangeRate>1.0000</ExchangeRate>
<Park></Park>
<ItemNumber>2</ItemNumber>
</BH>
<BL>
<RecordType>BL</RecordType>
<Reference>2205516125</Reference>
<RefLineItem>1</RefLineItem>
<AcctType>K</AcctType>
<DrCrIndicator>H</DrCrIndicator>
<Account>01000003</Account>
<Amount>364.00</Amount>
<VendorName-1>TOM & JERRY IS MY</VendorName-1>
<VendorName-2> NAME TO BE PAID</VendorName-2>
<VendorName-3>1987566Z</VendorName-3>
<VendorName-4>22</VendorName-4>
<Street>UCX STREET</Street>
<City>ROAD 4</City>
<PostalCode>515004</PostalCode>
<Country>IND</Country>
<ContactPerson></ContactPerson>
<AlternatePayeeCode></AlternatePayeeCode>
<AlternatePayeeName-1></AlternatePayeeName-1>
<AlternatePayeeName-2></AlternatePayeeName-2>
<AlternatePayeeName-3></AlternatePayeeName-3>
<PaymentTerms></PaymentTerms>
<BaselineDate></BaselineDate>
<PaymentMethods></PaymentMethods>
<Allocation></Allocation>
<LineItemText>item text</LineItemText>
<TaxCode></TaxCode>
<TaxAmount>0.00</TaxAmount>
<WHTaxCode></WHTaxCode>
<WHTaxbase>0.00</WHTaxbase>
<Fund></Fund>
<FundCenter></FundCenter>
<CostCenter></CostCenter>
<InternalOrder></InternalOrder>
<TaxAutomatically></TaxAutomatically>
<SpecialGLIndicator></SpecialGLIndicator>
</BL>
<TT>
<RecordType>TT</RecordType>
<TotalRecords>1</TotalRecords>
<TotalValue>222</TotalValue>
</TT>
</ABCInbound>
when the above xml file is read and populated into ITAB, for element vendorname-2 which has a space in first position , that space is ignored.
This is being used for a FB01 posting and vendor is paid based on Name1+Name2 printed on cheque and due to the space ignoring problem, the vendor name is displayed wrongly thus causing problems.
I appreciate if someone could guide me thru and help me in solving this problem.
How to preserve the leading or trailing space.
g_selementvalue = g_childnode->get_value( ).
when i check g_selementvalue, space is ignored.
i will be greateful if someone could guide me through.
Regards,
Simha
Edited by: Simha on Dec 11, 2008 10:49 AM0.02: A C C E P T: Request="NEXT"
0.06: Fetch session state from database
0.08: ...Check session ... owner
0.08: ...Metadata: Fetch Page, Computation, Process, and Branch
0.08: Session: Fetch session header information
0.08: ...Metadata: Fetch page attributes for application ..., page 330
0.08: ...Validate item page affinity.
0.08: ...Validate hidden_protected items.
0.08: ...Check authorization security schemes
0.08: Session State: Save form items and p_arg_values
0.08: ...Session State: Save "P330_PROJECT" - saving same value: ""
0.09: ...Session State: Saved Item "P330_SHUTTLE" New Value=""
0.09: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
0.09: Branch point: BEFORE_COMPUTATION
0.09: Computation point: AFTER_SUBMIT
0.09: Tabs: Perform Branching for Tab Requests
0.09: Branch point: BEFORE_VALIDATION
0.09: ...Evaluating Branch: BEFORE_VALIDATION type: "REDIRECT_URL" button: 12904321314585385 branch: (Unconditional)
0.09: Perform validations:
0.09: ...Item Not Null Validation: P330_SHUTTLE
0.09: ...Validation did NOT pass
This is from debugging, what does the point "0.09: ...Session State: Saved Item "P330_SHUTTLE" New Value="" "
mean ? I think it means, that the Shuttle somehow sets itself to null ?! but i dont understand why...
There is no computation or anything that deletes the shuttle, the page is quite small, there is not much more than the shuttle and the validations and computations to give default value and transforming the shuttle items into a collection to continue working with the IDs.
I dont check whats the problem
Edited by: user12154443 on 21.07.2010 09:47 -
Localized String with params - Value Binding Expression...
Hi All:
I see many e.g.s where a command button / or a label's value can be a localized resource string using the generic value binding expression:
"#{bundleVarName.keyName}"
what if the resource string has parameters? for e.g.
button.caption = Click Me for {0}
Can we assign a value binding expression with params for button captions etc.
Please help - I am a newbie in JSF,,,
regards
-SomeshJSF developers have forgotten about this :)
Use other tools for displaying such messages (f. e. JSTL) where you need to have parametrized messaged.
But mostly, non-parameterized JSF will be enough. -
Mastermind / Parse string with error handling ....
Ok I am not going to hide the fact this looks like a homework question, honestly I already handed it in and now this is bothering me that I couldn't figure it out.......
We had to make a mastermind client/server game only using text no graphical everything runs fine but how would one do error catching on this. (code posted below)
Basically the user types in the command "guess r r r r" (guessing that the secret code is red four times ) and it parses it and assigns guess[] with the r and checks it based on the randomly generated color. The problem that I have is that is if someone makes a typo for example guess r rr r. How would one stop it from crashing from an out of bounds array request?
if (command.matches("guess.*"))
int white = 0;
int black = 0;
String phrase = command;
String delims = "[ ]+";
String[] guess = { null, null, null, null, null, null, null };
guess = phrase.split(delims);
for (int i = 0; i < 4; i++)
if (color.equalsIgnoreCase(guess[i+1]))
black++;
else if (color[i].equalsIgnoreCase(guess[i+1]))
white++;
else if (color[i].equalsIgnoreCase(guess[i+1]))
white++;
else if (color[i].equalsIgnoreCase(guess[i+1]))
white++;
if (black == 4)
anwser = "You WIN!!!!!!!! KIRBY DOES A SPECIAL DANCE FOR YOU \n (>'.')> (^'.'^) <('.'<) \n";
gamePlaying = false;
commandChecker = true;
else
turn++;
commandChecker = true;
anwser = "You got " + black + " black and " + white + " white it is your " + turn + " turn \n";
if (turn >= 10)
anwser = "You Lost =( , try again, the anwser was " + color[0] + color[1] + color[2] + color[3] + "\n";
gamePlaying = false;cotton.m wrote:
if(guess.length!=4){
// do something else besides evaluating the guesses. because something went wrong
I should add that usually the best way of avoid array index out of bounds exceptions is to avoid ever hardcoding things like
for(int i=0;i<4;i++)The 4 there is dangerous.
It's safer to use the length
for(int i=0;i<guess.length;i++)And the same applies to List(s) and the size method. Again usually that's a better idea but in your specific case anything more or less than 4 is not only a looping problem it would cause logical errors in the rest of your code... it is an exceptional case and should be dealt with specifically in your code. -
I've got my program ready to handle XML, but instead of parsing a file, I want to parse just a string.
saxParser.parse( ???, handler);
what should I pass in there?You should putnew InputSource(new StringReader(yourString))in there.
-
Initialising strings with unicode characters
This works
System.out.println("Hello World");
but this will not compile
System.out.println("你好");
How do I get unicode characters into my Java source?
I am running Windows XP and editing my files using notepad.
If I save my source as ASCII it compiles, but I do not get the foreign characters.
If I save my file as utf-8 or unicode the source will not compile.I have got it!
On Windows XP using notepad the java source file can be "saved as" Unicode.
The source can then be compiled using;
javac HelloWorld.java -encoding unicode
The code compiles and executes.
It is even possible to give variables names that are Chinese characters, which is really what you would expect to be able to do. -
Help with unicode String?
Hi there,
I have a file that I need to read in and process. Took a while for me to realise it was unicode ("text from my file" was printing out as "t e x t f r o m m y f i l e") - Anyway, got there in teh end using:-
InputStreamReader fis = InputStreamReader(new FilInputeStream(filename), "UTF16");
dataSource = new BufferedReader(isr);My problem now is that I'm splitting the line (which is a comma seperated list of numbers) and coverting to int's:-
String line = dataSource.readLine();
String[] items = line.split(",");
int[] values = new int[12];
for(int i = 1; i < items.length; i++)
values[i-1] = Integer.parseInt(items);
Values is what I expect, a list of numbers, but items[] is being set to 0. Is this something to do with unicode? Must admit, I've never given the charater encoding any though up until now.
Any help would be really appreciated.
Thank,
Steve
usingSorry, found it. It was actually a buffer issue. For the record, just because I'm printing output in the middle of the loop, doesn't mean the value exists to be printed by the time System.out.println gets to it (my code was creating an exception for an unrelated reason a few lines down)
Thanks for your responses.
Steve -
Problem with getting unicode values from console
Hi,
In my application I am passing unicode value like \u00DF from console. and writing this string value to a utf8 file. But in the file the value is printed not the actual unicode character.
Where the things are getting wrong.
I have declared a string in java like ;
String abc = "\u00DF";
and printed this to a utf8 file, it works fine and the corresponding unicode character for \u00DF is printed.
Why the unicode value passes from console is not working property. How can i resolve this ?
Thanks in advance...
<!--Session data-->And how are you putting it into the console in the first place?
-
Hi,-
I am trying to parse an XML string with xpath as follows but I am getting null for getresult.
I am getting java.xml.xpath.xpathexpressionexception at line where
getresult = xpathexpression.evaluate(isource); is executed.
What should I do after
xpathexpression = xPath.compile("a/b");in the below snippet?
Thanks
String xmlstring ="..."; // a valid XML string;
Xpath xpath = XPathFactory.newInstance().newPath();
xpathexpression = xPath.compile("a/b");
// I guess the following line is not correct
InputSource isource = new inputSource(new ByteArrayInputStream(xmlstring.getBytes())); right
getresult = xpathexpression.evaluate(isource);My xml string is like:
<a>
<b>
<result> valid some more tags here
</result>
</b>
<c> 10
</c>
</a>Edited by: geoman on Dec 8, 2008 2:30 PMI've never used the version of evaluate that takes an InputSource. The difficulty with using it is that it does not save the DOM object. Each expression you evaluate will have to create the DOM object, use it once and then throw it away. I've yet to write a program that only needs one answer from an XML document. Usually, I use XPath to locate somewhere in a document and then read "nearby" content, add new content nearby, delete content, or move content. I'd suggest you may want to parse the XML stream and save the DOM Document.
Second, all of the XPath expressions search from a "context node". I have not had good luck searching from the Document object, so I always get the root element first. I think the expression should work if you use the root as the context node. You will need one of the versions of evaluate that uses an Object as the parameter. -
Is it possible to add a string inside a textbox with a value of another textbox?
ex.
Textbox1 = Happy
Textbox2 = Sad
Textbox3 = "I am Happy therefore I am not Sad"
"I am (value of textbox1) therefore I am not ( value of textbox2)"Use this code as the custom calculation code of Textbox3:
event.value = "I am " + getField("textbox1").value + " therefore I am not " + getField("textbox2").value;
Notice that the field names are case-sensitive. -
Multi-value parameters and strings with leading zeros
I have invoice number as a multi-value parameter. Invoice is a string,10 (VBRP.VBELN) .
Invoice number is my group. If I enter invoices 100 and 200 as parms, then I only get data for invoice #100 (the lowest value entered). But if I enter 100, 0000000100, 200, 0000000200 as parms, then I get data for both invoices. Is there a way to get around having to enter the invoice number in both formats. BTW, if I only enter 0000000100 and 0000000200 then I get no data.
Selection criteria is (VBRP.VBELN) = ?invoiceno --- parms are defined as allow muliple values and allow discrete values.Oops, that's not gonna work with multi-value parameters. How about:
if IsNumeric((VBRP.VBELN)) then
ToText(Val((VBRP.VBELN)), "0") in {?invoiceno}
else
(VBRP.VBELN) in {?invoiceno}
end if
BTW, the reason why your original formula didn't work was because the "=" should have been "in". The above is needed only if the (VBRP.VBELN) field might contain leading zeroes.
HTH,
Carl
Maybe you are looking for
-
Open external url dynamic link in new tab (no new window) in Chrome
Hello, We need to navigate to a external link in response to user double-click in a row table. We've succesfully created the code to invoking a managed bean as response of double-click user event. For that, we added a clientListener object to the tab
-
My music on itunes doesn't have the markers anymore, how can i fix this? So my songs should be listed like this: A Advice B Bang C Chinter's will K KannaZuki No Miko L Lights
-
How to create barcode form in Acrobat Pro XI
i have checked a few video's regarding creating bar code eForm in Acrobat Pro X. However, i am finding difficulities to adding a bar code (No such field is available) in Acrobat Pro XI FormsCentral, is there any plug-in/update required?
-
HI Everyone and Consultants, Well i am at abaper and dont have much knowledge in finance controling. First issue: Currently we update our budget using the t.code KPA6 using Profit Center and Cost element. It is succesfully getting update at KPA7. But
-
I have Desktop 4.1.4 installed.And I see in the calendar week view in the week 28.12.2008 to 04.01.2009 the week number "0" and in the following week the number "1" and so on.I think that's wrong because in the calendars the week from 28.12.2008 to 0