URL with multiple ItemValues (formatted numbers)

Hi, guys.
Another day, another prob... oops, wrong word, suppose to be another solution...
I have a page with simple report on it.Each record has a link which pointed to javascript
javascript:printable_rpt('#col1#',#col2#,#col3#,#col4#,#col5#,#col6#)
(col1 is a date, other columns are numbers like 123,456)
<script type="text/javascript">
function printable_rpt(p1,p2,p3,p4,p5,p6)
var v_values = p1+','+p2+','+p3+','+p4+','+p5+','+p6;
url = 'f?p=&APP_ID.:2:&SESSION.::NO:RP:
P2_HDN_1,P2_HDN_2,P2_HDN_3,P2_HDN_4,P2_HDN_5,P2_HDN_6:'+v_values;
w = open(url,"Criteria",
"Scrollbars=1,status=1,resizable=1,width=550,height=520,left=300,top=100");
if (w.opener == null)
w.opener = self;
w.focus();
</script>
Page 2 is pure HTML page with the numbers i try to pass from page 1.
Everything looks simple and workable. But... There is always some buts... :)
Problem : because the numbers in report formatted with commas when
page 2 opens i have a pieces of numbers in my hidden items. (i.e.
if i sent 123,456 234,567 and so on, i get
123 in p2_HDN_1
456 in p2_HDN_2
234 in p2_HDN_3
567 in p2_HDN_4
and so on...
I searched help and found this :
itemValues
List of item values used to set session state within a URL.
Item values cannot include colons, but can contain commas if
enclosed with backslashes. To pass a comma in an item value,
enclose the characters with backslashes. For example:
\123,45\
So i tryed to do something like this:
v_values = p1+',\'+p2+'\,\'+p3+'\,\'+p4+'\,\'+p5+'\,\'+p6+'\';
Unfortunatly it does not work, giving error "Object expected".
Pls, help.
Thnks in advance
Mike

Hi, Scott.
Thanks for replay. I did try to put double backslashes and it did not work either. However it worked when i put double backslashes in javascript and single quotes in call for javascript :
javascript:printable_rpt('#col1#','#col2#','#col3#','#col4#','#col5#','#col6#')
var v_values = '\\'+p1+'\\,\\'+p2+'\\,\\'+p3+'\\,\\'+p4+'\\,\\'+p5+'\\,\\'+p6+'\\';
Interesting...
Thanks again for help.
Mike

Similar Messages

  • Create URL with multiple values for one parameter

    Post Author: cbamberg
    CA Forum: General
    While I have no problems to create the URL to open a report with a single value for a parameter from my Java application, I don't know how to format multiple values for a parameter when I want to pass the "&prompt0=" value. The values I want to pass are numbers, not strings.
    Anyone can help?

    Hi gayatri,
    you need to select both the product id and custname.put a count on the prodid column and write a condition of count>1 and apply it.
    Thanks
    Hari

  • Web service URL with multiple parameters

    Hi all,
    I'm trying to make use of a web service that takes multiple parameters without the use of a proxy (we're using NW 7/7.1 and  proxies aren't supported -  i.e. i'm getting the same thing as described here: Proxy object to consume web service)
    So instead I'm trying to follow a method similar to what is done [here|http://sample-code-abap.blogspot.com/2009/05/simple-code-consume-web-service-using.html]
    When I put the web service url into a browser and click on the operation it comes up with
    http://portLocation/company/webservice.asmx?op=operation
    and comes up with the sample SOAP request and response as normal.
    Now with most web services with one parameter, the url translates to something like: http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?CountryName=australia
    Which works fine.
    However, the web service i'm using has 4 parameters and when I try and translate my url to be like this (http://portLocation/Company/WebService.asmx/Operation?parameter1=XX&parameter2=XX&parameter3=XX&parameter4=XX) I get, "The page cannot be displayed"
    Can anyone suggest a way that I might be able to get around this or what I'm doing wrong.
    Thanks in advance.

    Hi,
    are you sure that your Operation is valid? So for example in your [example|http://www.webservicex.net/globalweather.asmx] there are just two operations: [GetCitiesByCountry|http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry] and [GetWeather|http://www.webservicex.net/globalweather.asmx/GetWeather]. You are right about passing multiple parameters. You need to put ? after valid URL and then pairs <name>=<value> separated by &. Don't forget that you need to encode <name> and <value> to avoid problems.
    Cheers

  • Call Webservice URL with multiple methods in PI 7.0

    Dear Gurus,
    I have the following requirement:
    I need to make multiple calls to a same webservice (URL) which have multiple methods on its WSDL. I know it is possible in PI 7.1. But is it possible in PI 7.0?
    I have already designed and configured the scenarios and generated ABAP Proxy. When I call the endpoint without specifyng the method I got the following message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Endpoint {http://mywebserviceurl.com} does not contain operation meta data for: {http://mynamespace}MyMessageInterface</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please somebody could help me to solve this issue?
    Thank you in advance.
    Fabio Purcino

    >>. But is it possible in PI 7.0?
    Just few cents..
    Test using SOAPUI or  XMLSPY and use that same WSDL URL in the target URL of Communication channel. Just to make sure you use the right endpoint.
    or
    You can specify the method name as  soap action dynamically using udf in mapping and see how it behaves.

  • How do I generate URL with multiple variables from input fields?

    I'm creating an ad with four input text fields labels fname, lname, city and prov, and I wanted to know how to generate URLs based on information entered into the fields. The text fields default to display "First Name," "Last Name," "City" and "State," respectively, but if a user does not enter information in those fields, I want the URL to behave as if those were empty, if that makes sense. The text fields are in a movie clip called "input_text" and the button is labeled "send". If any of you can provide insight, I would be greatly appreciative. Thank you.

    1. use if-statements to see if the text properties of your textfields meets your requirements for creating that url.
    2. you can use the flash string methods and properties to create your url.
    p.s.  the plus sign + can be used to concatenate strings.

  • Scheduling a job with multiple output formats.

    Urgent!!
    Basically while scheduling a job in BI Publisher we specify an output format. It can be PDF, CSV, HTML or so… Is there a way to specify more than one output format while scheduling a job.
    Thanks in advance.
    Ashok

    you have to re-publish them.
    for a run, you can have only one output .

  • Label with multiple sizes

    I need to see if in Crystal I can create a report has two different label sizes per line. It would be landscape with a 1x3 label then it starts 1x1 labels to the right of it.  It is east to do with the mailing label wizard with either version but I have yet to find a way with multiple column format to do two sizes on the page, a 1x3 label on the left column down then 3" from the left side start my 1x1 label.  I also looked at sub reports but since you can not define the mailing label in number per row it combines the data.  Any ideas that I should look into?

    Hi Eric,
    Sure, but let me know is this the same requirement you
    want or you have something different.
    Please add more details of your requirement.
    Regards,
    Raghwendra

  • How to use one PSE with multiple URLs?

    I need to hit my DMZ SAP Web Dispatcher with multiple unique URLs.  I am starting off using webdisp1.abc.com and webdisp2.vde.com.  DNS will resolve both the Web Dispatcher Host.  Following Tobias Winterhalter's Blog: Name-based virtual hosts and one SAP Web Dispatcher to access multiple SAP systems.
    My question is how do I go about generating the pse so I can store both webdisp1.abc.com and webdisp2.vde.com?  Do I just import the first request and initiate another certificate request using the same pse?
    Example
    sapgenpse gen_pse -s 2048 -p D:\<file path>\SAPSSLS.pse -r D:\<file path>\webdisp1.req CN=webdisp1.abc.com, OU=IT, O=XYZ Inc., C=US
    Cheers,
    Dan Mead

    Hi Daniel,
    what you are looking for are so called SAN certificates. As Martin said, with sapgenpse you are pretty out of luck. However you can create the certificates using openssl and then use sapgenpse to import them into a pse. There are a number of guides on how to create SAN certificates on the web, like the one mentioned by Martin from CAcert (which is one of the best imho) or this one. And there are also guides on the internet on how to convert OpenSSL keys to PSE.
    You should however keep in mind, that SAN certificates are more expensive than standard certificates. Therefor they only pay if the hostnames in there are stable for the lifetime of the certificate. If the hostnames need to change once a year, you already will be better off (from a cost perspective) by creating one pse per hostname an let the webdispatcher listen to different addresses, as each hostname requires a new certificate signed by the CA.
    Please also make sure, the systems and browsers connecting to your webservers are able to understand SAN certificates. For SAP systems this requires at least pl24 of the sapcryptolib.
    Kind regards,
    Patrick

  • Is it possible to maintain multiple payment formats with a single Program

    Hi,
    Is it possible to maintain multiple payment formats with in a single program.
    For example let us assume that we have created 2 payments formats as 'XX-PAY1' & 'XX-PAY2'.
    When i select the parameter as '1' then 'XX-PAY1' has to run else 'XX-PAY2'.
    if its possible could you please tel us where to define the parameters in Setups.
    Many thanks,
    Zaheer S

    nazzu wrote:
    Hi,
    Is it possible to maintain multiple payment formats with in a single program.
    For example let us assume that we have created 2 payments formats as 'XX-PAY1' & 'XX-PAY2'.
    When i select the parameter as '1' then 'XX-PAY1' has to run else 'XX-PAY2'.
    if its possible could you please tel us where to define the parameters in Setups.
    Many thanks,
    Zaheer SSounds like an Apps question. Start here: https://forums.oracle.com/forums/category.jspa?categoryID=3

  • Application Express 3.1 + BI-Publisher + problem with formating numbers

    Hello together!
    I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
    It works well, but I have a problem with formating numbers.
    In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
    In Template-Builder Preview it looks well.
    But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
    That means,
    1.454.234 become 1,454,234 in PDF-Report
    54,80 become 54.80 in PDF-Report
    Other than that, the layout is exactly the same like in Template Builder defined.
    What's wrong?
    Do I have to change any country parameter?
    Juliane

    I also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.

  • Upload vendor master with multiple phone numbers through LSMW

    Hi,
    I am trying to upload vendor master data with multiple telephone numbers. I am using BAPI BUS4001 , method SAVEREPLICA . It has allow me add only phone number. Is there any workout to short out this issue?
    Thanks in advance.
    Regrads,
    Suresh Yerra.

    Dear All,
    the telephone structure in bapi is a table. so append each telephone record to the table for multiple phone numbers.
    Thanks,
    Suresh Yerra

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO

    Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO#, Date, ect.)

    When you say field, do you mean specifically a form field, such as a text field? Or is the information regular text on the page?

  • Using Functions and/or Graphs with Custom Cell Formats in Numbers

    I am attempting to use the AVERAGE function or create a graph in Numbers for cells with a custom format, however, I keep receiving an error message telling me that "Numbers can't be divided by Zero" or an empty graph.
    The format I am using is for a split time for a certain distance, as in time it takes a runner to go around a track: minute:seconds.milliseconds i.e. 1:56.4
    Is there a solution to the formatting or another way to accomplish having the correctly formatted cell and still be able to use functions and graphs.

    Hi nich.lee,
    You can't chart Duration formatted data without first converting it to another format. Also, you will get an error if you attempt to use the AVERAGE function on an empty range.
    Here's an example of charting Duration data by using a conversion...
    Best regards,
    Jerry

  • Contacts with multiple mobile numbers

    Hello all,
    This is my first post here, so please be patient with me.  I searched through previous threads, but did not find an sufficient answer to the problem I am having.  To set the stage, I will give you what I am working with
    g-mail account with close to 500 contacts
    iPhone 5, latest version 6.1.3
    MacBook Air, latest version 10.8.3
    I have my g-mail account linked to my iPhone as an Exchange connection so that I can view the contacts.  I have my computer contacts program connected with Google as well.  The problem I am having is that most of these 500 contacts have multiple mobile phone numbers.  I am able to create this contact easily in g-mail and can relabel the phone types to match what they are.  Let's say for instance:
    Name:  John Smith
    Home: 111-111-1111
    Mobile:  222-222-2222
    Mobile:333-333-3333
    etc.
    I have done quite a bit of testing and found that the computer contacts matches up perfectly with whatever I put in there, including multiple mobile numbers.  My iPhone on the other hand, does not show the second Mobile number.  It will recognize multiple home, work, and pager numbers, but not multiple mobiles (it only shows the first one on the list).  Why would it allow multiple numbers of the other types and not mobile numbers?
    Is there something I am doing incorrectly, or has Apple overlooked a simple, important function?  The things I do not want to do are:
    create custom phone labels for my contacts as in mobile1, mobile2 - there are too many and this is an inefficient solution.
    change all of the cell numbers to be work numbers - same as above, and what if someone else is updating g-mail contacts and does not follow the rule?
    unlink the Google tie I have on the computer - this seems to be the only one of the two that works, and I do not want to have to constantly remember to download an updated contact list.  The list changes constantly, and I know I would eventually forget ( I am looking for a poka-yoke here).
    Any ideas about solutions?
    Thank you for the help

    I have no prblem syncing multiple mobile numbers so I don't think it's a universal issue with iOS. The only difference I see is I am using CardDav instead of using the Exchange option. Have you tried it that way? You can urn off contacts in the Exchange account and add the CardDav account separately.

Maybe you are looking for

  • PDF Problem

    Dear All I am Rajesh Arya from New Delhi - India, I have a new nokia e5, My problem is that :- 1. Not able to open password protected PDF file in my E%5. 2. How to make my inbox folder or other massage folder password protected. Please help me b givi

  • Item is not available for reference to Excise Invoice, Deselect Item OK!

    Hai, I am doing a Sub contracting scenario, in which the excise is applicable to main material, i have maintained condition records, captured excise But while doing GRN i am getting Item is not available for reference to Excise Invoice, Deselect Item

  • Why does error 200279 occur at high speeds only?

    I am using a VI very much like the one attached here, and as my motor speeds up and the period value decreases, the vi fails, and error 200279 shows up as displayed in the attached 2 jpg images. This VI is reading the period value of an encoder by ri

  • I have Acrobat 9 Standard at work.  How can I edit PDFs using this?

    Part of my job entails creating PDFs of web pages and then deleting non-essential materials.  But, I have Acrobat 9 Standard.  How can I do this with what I have?

  • Obtaining DataSource from a client application

    Hi, I am trying to use the connection pooling capability of DataSource, but my application is not running under any container, ie. servlet/ejb. How can i obtain DataSource object ? Do I need to use JNDI to do that ? If so, how can I use JNDI without