## A Simple VB Client which passes a String as parameter ##

Hello Everybody,
I am looking for a simple VB client that should be able to pass a String
(not FML) to a tuxedo service. I have already seen the FML example. Help
would be highly appreciated.
Thank you
Nadeem
@8563

Hello,
Please refer to my posting "Re: VB6 client and Tuxedo".
The sample can be easily modified for STRING instead of FML.
HTH
regards
MS

Similar Messages

  • Oracle 9i - passing a string as parameter when integer is required yet

    Dear all;
    I am trying to fix this problem with a limited amount effort and also prevent redesigning it as well. I know it is completely wrong but it was done by a past developer and I am just trying to make a simple twick to it. I will try to explain my current problem so please bear with me
    I have a table with a field called SN which is number type field, I have a select statement similar to this below
    select stype from tbl_one where sn = 1ok, the select statement works for numbers and numbers with dash(e.g 03-2). In the case of numbers with dash, it returns null which is okay now, I am having a bit of problems where sometimes the user entry is a an actual string like this (cat). Now the select statement isnt going to work for this case because I am going to get a Ora-00904 - invalid identifier error.
    The solution I had in mind is first use a regular expression to determine whether the parameter is a string or a numeric value and if it is a numer value pass it as a parameter to the select statment if not, then just return null in the select statement. However, since I am using oracle 9i I cant use regualr expression is there any suitable sql statment i can use in replacement of a regular expression or any other ideas.
    All help is appreciated. Thank you.

    Hi,
    user13328581 wrote:
    ... the select statement works for numbers and numbers with dash(e.g 03-2). That's actually not a number with a dash. That's a subtraction operation involving two numbers, 03 (which is the same as 3) and 2. 3 - 2 = 1, so it's the same as typing 1.
    The solution I had in mind is first use a regular expression to determine whether the parameter is a string or a numeric value and if it is a numer value pass it as a parameter to the select statment if not, then just return null in the select statement. However, since I am using oracle 9i I cant use regualr expression is there any suitable sql statment i can use in replacement of a regular expression or any other ideas.If you just want to see if the string s contains anything other than a digit, use
    LTRIM ( s
          , '0123456789'
          )  IS NOT NULLThe condition above will be TRUE when s contains anything other than a digit.
    If you want to check for signs, decimal points, and scientific notation, then see this thread:
    How to identify if a Varchar2 string has a-z characters?
    for a user-defined function.
    Edited by: Frank Kulash on Apr 21, 2011 11:28 AM

  • How to pass a string from a servlet to client side

    hi,
    i would like to generate a string from a servlet and pass it to the client side. the client will receive the string by using request.getParameter(). How should i implement this system? Could anybody give me some hint?
    Best Regards,
    Henry

    Greetings,
    hi,
    i would like to generate a string from a servlet and
    pass it to the client side. the client will receive
    the string by using request.getParameter(). HowAre you referring to the instance of (Http)ServletRequest the 'request' object being passed to the "client"? What is the "client" in this case? If you mean a "traditional" client communicating over (or by tunneling through...) HTTP then no can do. The (Http)ServletRequest object is generated by the web container (a.k.a. "servlet engine"), not by the client, and it is not serializable so there is no way to pass it back to the client...
    should i implement this system? Could anybody give me
    some hint?It depends again on "what is the 'client' in this case?"
    Best Regards,
    HenryRegards,
    Tony "Vee Schade" Cook

  • How to retrieve client certificate passed by Apache proxy

    Hi all,
    Here's my configuration:
    Client <--HTTPS-->Apache Proxy (2-way SSL) <-- HTTP --> WLS 8.1
    I need to be able to access the client certificate passed to Apache by the client in my Java applications hosted on WLS.
    Here's what I did:-
    <pre>1. Set up Apache 2-way SSL. Tested ok.
    2. Set up Apache-Weblogic proxy. Tested ok for both HTTP, and server-side HTTPS.
    3. Configured Apache's ssl.conf SSLOption to export certifiate data: SSLOptions +ExportCertData.
    4. In my application, I used request.getAttribute("javax.servlet.request.X509Certificate") to try and retrieve the certificate.</pre>
    However the certificate don't seem to be passed along to Weblogic :-(
    Any ideas if I'm missing any steps from above? Or if it's even possible to do this?
    Thanks for any suggestions!
    Any ideas

    The WL-Client-Proxy cert should be the cert used on the proxy side if SSL is configured between Apache and WebLogic, so I believe that is the reason why that does not work. Basically, the problem here is that SSL is end-to-end, and the two ends of this transaction are the client and apache.
    That said, when you add the +ExportCertData option, this should record the client's SSL certificate in the vairable SSL_CLIENT_CERT.  So you should be able to use request.getAttribute("SSL_CLIENT_CERT").
    See:
    http://www.modssl.org/docs/2.8/ssl_reference.html
    If this doesn't work for you (which is possible if the WL_Proxy is doing something funny to the request), it is probably best just to dump out the entire contents of the session, and see what you have:
    for (Enumeration e = request.getAttributeNames() ; e.hasMoreElements() ; ) {
    String attr = (String)e.nextElement();
    System.out.println("ATTR = " + attr);
    System.out.println("VAL = " + request.getAttribute(attr));
    If you can't see any SSL certificate there, you will have to work out some way to pass this on manually.
    cheers,
    Trevor

  • Compliance Unknown - Client Check passed/Active

    I am running SCCM 2012 R2 in a test environment. My setup is very simple in that I only have around a dozen machines in it and I only have one site server.
    I have a couple of software deployments for my baseline updates and when I check these all of my machines are green and compliant. However, I have another deployment that is created via an ADR and most of my machines are green and compliant except two which
    are stuck on the Unknown tab saying "client check passed/Active". I have rebooted them, kicked off every action, refreshed, run summarization, reinstalled the client - yet none of these seem to be having any effect. Keep in mind these two machines
    are also in my 'baseline' deployments and they are reporting back just fine. For whatever reason, they are stuck as unknown in my ADR deployment.
    I've checked on a few of the logs and haven't stumbled across anything that stuck out but if anyone could kindly point me in the direction of the logs that are relevant to this issue I would appreciate it.
    EDIT 1:
    I ran the 'Compliance 1 - Overall Compliance' report against the ADR deployment and my test collection and the two machines in question came back as "Non-compliant" rather than compliance state unknown... which I find interesting
    EDIT 2:
    In my past experiences with SCCM 2012, I had very similar issues related to checking compliance. We would have a ton of machines go into the 'unknown' state and several other weird issues. We had a complex environment at my past job so I figured this evaluation
    would go much smoother since I have one site system and a dozen test machines. It makes me nervous that I am already experiencing similar issues. I am also shocked I can't find more info when searching related to machines reporting back as
    Unknown Passed/Active...

    One of the servers in question has not received updates since February. Here is WUAHandler.log and updatesHandler.log - I don't see anything that sticks out. Most logs appear to be acting normal and don't have any glaring errors being reported. I do not
    have any updates showing up in the software center on the server in question. It is the same OS and image as other servers that are working. Please let me know if you would like to see a different log....
    WUAHandler.log (timestamps removed for readability)
    Its a WSUS Update   Source type ({E280636E-013D-473D-96D6-E9A09826B935}), adding it.
    Existing WUA Managed server was already   set (**EDITED OUT**), skipping Group Policy   registration.
    Added Update Source   ({E280636E-013D-473D-96D6-E9A09826B935}) of content type: 2
    Scan results will include superseded   updates only when they are superseded by service packs and definition   updates.
    Search Criteria is (DeploymentAction=*   AND Type='Software') OR (DeploymentAction=* AND Type='Driver')
    Async searching of updates using WUAgent   started.
    Async searching completed.
    Successfully completed scan.
    Scan results will include superseded   updates only when they are superseded by service packs and definition   updates.
    Search Criteria is ((DeploymentAction=*   AND Type='Software' AND CategoryIDs contains   '0FA1201D-4330-4FA8-8AE9-B877473B6441') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains  
    'FDFE8200-9D98-44BA-A12A-772282BF60EF') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   '7F44C2A7-BC36-470B-BE3B-C01B6DC5DD4E') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   'BA0AE9CC-5F01-40B4-AC3F-50192B5D6AAF')
    OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   'BFE5B177-A086-47A0-B102-097E4FA1F807') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   'A105A108-7C9B-4518-BBBE-73F0FE30012B') OR (DeploymentAction=*
    AND   Type='Software' AND CategoryIDs contains '2EE2AD83-828C-4405-9479-544D767993FC')   OR (DeploymentAction=* AND Type='Software' AND CategoryIDs contains   'E6CF1350-C01B-414D-A61F-263D14D133B4'))
    Async searching of updates using WUAgent   started.
    Async searching completed.
    Successfully completed scan.
    Scan results will include superseded   updates only when they are superseded by service packs and definition   updates.
    Search Criteria is ((DeploymentAction=*   AND Type='Software' AND CategoryIDs contains   '7F44C2A7-BC36-470B-BE3B-C01B6DC5DD4E') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains  
    'DBF57A08-0D5A-46FF-B30C-7715EB9498E9'))
    Async searching of updates using WUAgent   started.
    Async searching completed.
    Successfully completed scan.
    Scan results will include superseded   updates only when they are superseded by service packs and definition   updates.
    Search Criteria is ((DeploymentAction=*   AND Type='Software' AND CategoryIDs contains   'FDFE8200-9D98-44BA-A12A-772282BF60EF') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains  
    '7F44C2A7-BC36-470B-BE3B-C01B6DC5DD4E') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   'BFE5B177-A086-47A0-B102-097E4FA1F807') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   'BA0AE9CC-5F01-40B4-AC3F-50192B5D6AAF')
    OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   'CB263E3F-6C5A-4B71-88FA-1706F9549F51') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   '2EE2AD83-828C-4405-9479-544D767993FC') OR (DeploymentAction=*
    AND   Type='Software' AND CategoryIDs contains '0FA1201D-4330-4FA8-8AE9-B877473B6441')   OR (DeploymentAction=* AND Type='Software' AND CategoryIDs contains   '3B4B8621-726E-43A6-B43B-37D07EC7019F') OR (DeploymentAction=* AND   Type='Software'
    AND CategoryIDs contains   'E6CF1350-C01B-414D-A61F-263D14D133B4') OR (DeploymentAction=* AND Type='Software'   AND CategoryIDs contains 'A105A108-7C9B-4518-BBBE-73F0FE30012B') OR   (DeploymentAction=* AND Type='Software' AND CategoryIDs contains
      'DBF57A08-0D5A-46FF-B30C-7715EB9498E9') OR (DeploymentAction=* AND   Type='Software' AND CategoryIDs contains   '9B135DD5-FC75-4609-A6AE-FB5D22333EF0'))
    Async searching of updates using WUAgent   started.
    Async searching completed.
    Successfully completed scan.
    UpdatesHandler.log (timestamps removed for readability)
    Initiating updates   scan for checking applicability.
    Successfully initiated scan.
    Updates scan completion received, result   = 0x0.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Updates scan completion received, result   = 0x0.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Updates scan completion received, result   = 0x0.
    Method (Discover) called from SDM.
    Starting job with id =   {A007C151-234D-4EEF-9907-4E029C0FDBBD}
    Initiating Scan. Forced = (0)
    Successfully initiated scan for job   ({A007C151-234D-4EEF-9907-4E029C0FDBBD}).
    Scan completion received for job   ({A007C151-234D-4EEF-9907-4E029C0FDBBD}).
    Evaluating status of the updates for the   job ({A007C151-234D-4EEF-9907-4E029C0FDBBD}).
    Successfully sent job   ({A007C151-234D-4EEF-9907-4E029C0FDBBD}) success completion to the SdmAgent
    CompleteJob received from SDM.
    Complete - Job   ({A007C151-234D-4EEF-9907-4E029C0FDBBD}) Cleanup.
    CompleteJob - Job   ({A007C151-234D-4EEF-9907-4E029C0FDBBD}) removed from job manager list.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Updates scan completion received, result   = 0x0.
    Method (Download) called from SDM.
    Starting job with id =   {FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}
    Initiating Scan. Forced = (0)
    Successfully initiated scan for job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}).
    Scan completion received for job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}).
    Evaluating status of the updates for the   job ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}).
    Initiating download for the job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}).
    Bundle update   (39d68759-cc66-4fa4-8907-096b610c9583) is requesting download from child   updates for action (INSTALL)
    Starting download on action (INSTALL) for   Update (46201763-6bf4-47f9-8d9c-b6549bb32a3b)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (39d68759-cc66-4fa4-8907-096b610c9583) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Bundle update   (67c66c9f-bef4-4057-860f-0dbbd2fc25dd) is requesting download from child   updates for action (INSTALL)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Starting download on action (INSTALL) for   Update (8efab745-b428-4bab-9933-822857c11e03)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (67c66c9f-bef4-4057-860f-0dbbd2fc25dd) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Bundle update   (8263f7a7-6ed2-48a9-90bd-05a361e0a81f) is requesting download from child   updates for action (INSTALL)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Starting download on action (INSTALL) for   Update (ebb06d79-b446-432d-b26d-0bd168e58192)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (8263f7a7-6ed2-48a9-90bd-05a361e0a81f) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Bundle update   (8f7e4dbd-be3f-463b-bb5a-55b33039a023) is requesting download from child   updates for action (INSTALL)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Starting download on action (INSTALL) for   Update (8d7948a9-3fd9-4430-b790-0511a7cb4502)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (8f7e4dbd-be3f-463b-bb5a-55b33039a023) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Bundle update   (9550b374-112f-42ab-80a0-8caba8652e59) is requesting download from child   updates for action (INSTALL)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Starting download on action (INSTALL) for   Update (8a454fff-d319-4bb0-bb00-76a67f07c88f)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (9550b374-112f-42ab-80a0-8caba8652e59) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Download completed for the job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}).
    Successfully sent job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}) success completion to the SdmAgent
    CompleteJob received from SDM.
    Complete - Job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}) Cleanup.
    CompleteJob - Job   ({FB0A56F7-0247-45C0-A4E2-D7A3CFF91BBD}) removed from job manager list.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Updates scan completion received, result   = 0x0.
    Updates scan completion received, result   = 0x0.
    Method (Discover) called from SDM.
    Starting job with id =   {EB8A0FE5-B84E-471A-9658-3607767C7CCE}
    Initiating Scan. Forced = (0)
    Successfully initiated scan for job   ({EB8A0FE5-B84E-471A-9658-3607767C7CCE}).
    Scan completion received for job   ({EB8A0FE5-B84E-471A-9658-3607767C7CCE}).
    Evaluating status of the updates for the   job ({EB8A0FE5-B84E-471A-9658-3607767C7CCE}).
    Successfully sent job   ({EB8A0FE5-B84E-471A-9658-3607767C7CCE}) success completion to the SdmAgent
    Updates scan completion received, result   = 0x0.
    CompleteJob received from SDM.
    Complete - Job   ({EB8A0FE5-B84E-471A-9658-3607767C7CCE}) Cleanup.
    CompleteJob - Job   ({EB8A0FE5-B84E-471A-9658-3607767C7CCE}) removed from job manager list.
    Initiating updates scan for checking   applicability.
    Successfully initiated scan.
    Updates scan completion received, result   = 0x0.
    Method (Download) called from SDM.
    Starting job with id =   {CD1BC7C4-1BFF-44D1-B206-6BC650B4D54C}
    Initiating Scan. Forced = (0)
    Successfully initiated scan for job   ({CD1BC7C4-1BFF-44D1-B206-6BC650B4D54C}).
    Scan completion received for job   ({CD1BC7C4-1BFF-44D1-B206-6BC650B4D54C}).
    Evaluating status of the updates for the   job ({CD1BC7C4-1BFF-44D1-B206-6BC650B4D54C}).
    Initiating download for the job   ({CD1BC7C4-1BFF-44D1-B206-6BC650B4D54C}).
    Bundle update   (39d68759-cc66-4fa4-8907-096b610c9583) is requesting download from child   updates for action (INSTALL)
    Starting download on action (INSTALL) for   Update (46201763-6bf4-47f9-8d9c-b6549bb32a3b)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (39d68759-cc66-4fa4-8907-096b610c9583) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Bundle update   (67c66c9f-bef4-4057-860f-0dbbd2fc25dd) is requesting download from child   updates for action (INSTALL)
    Starting download on action (INSTALL) for   Update (8efab745-b428-4bab-9933-822857c11e03)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Contents already available.
    StateCore - bundle update   (67c66c9f-bef4-4057-860f-0dbbd2fc25dd) state changed from (WAIT_CONTENTS) to   (EXECUTE_READY) as child update state changed
    Bundle update   (8263f7a7-6ed2-48a9-90bd-05a361e0a81f) is requesting download from child   updates for action (INSTALL)
    Starting download on action (INSTALL) for   Update (ebb06d79-b446-432d-b26d-0bd168e58192)
    Contents already available.
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)
    Ignoring update state (DOWNLOAD_READY)   change in job state (2)

  • How to write a simple DB2 client?

    hello,
    I'm going to write a simple DB2 client in my new project,which can issue some simple db2 commands and get the result,for example,the "list tables" command. Can JDBC finish this job?
    any help appreciated.

    JDBC can do that and more.
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    %

  • Is it possible to pass a string from an applet to the web site?

    Hi, everybody!
    Is it possible to pass a String from an applet to a web site (as a field value in a form, an ASP variable, or anything else). Basically, I have a pretty large String that is being edited by an applet. When a user clicks on the submit button, a different page will show up which has to display the modified string. The String is pretty large so it doesn't fit into the URL variable.
    Please, help!
    Thank you so much!

    Why do you want to do this in Java?
    Javascript is the correct language for these type of situations.
    for instance:
    in the head of your html document:
    <script language=javascript type="text/javascript">
    createWindow(form){
    if(form.text.value!=""){
    newDoc = new document
    newDoc.write(form.text.value)
    newWin = window.open(document,'newWin','width=200;height=150')
    </script>
    in the body:
    <form onSubmit="createWindow(this)">
    <p>
    Enter a String:<input type=text size=30 name="text">
    </p><p>
    <input type=submit value="submit"> 
    <input type=reset value="reset">
    </p>
    </form>

  • How to pass a string value from XL sheet cell to SQL query.

    Hi,
    I am using SQL query in XL sheet to fetch some data. for that i am using ODBC connection. Now I want to pass a string from XL sheet Cell value in the where clause of Select statement, Please let me know how to do this.
    Below is My code:
    nge("A4").Select
    With ActiveSheet.QueryTables.Add(Connection:= _
    "ODBC;DRIVER={Microsoft ODBC for Oracle};UID=xyz;PWD=xyz;SERVER=xyz;" _
    , Destination:=Range("A4"))
    .CommandText = Array( _
    "SELECT CRYSTAL_REPORT1.PROJECT, CRYSTAL_REPORT1.OBJECT" & Chr(13) & "" & Chr(10) & "FROM NAIODEV.CRYSTAL_REPORT1 CRYSTAL_REPORT1" _
    .Name = "Query from gg"
    Thanks,
    Priya

    What does "XL" (whatever that is) have to do with Crystal Reports which is what you are obviously working with have to do with the Oracle database?
    The rules for using Crystal with Oracle are quite clearly described in all the Crystal Reports docs ... you MUST use IN OUT ref cursors unless you are doing direct table or view access.

  • Passing a string into an SQL query IN statement

    Hello,
    I need to connect to a database to pull some data to dynamically create a form based on the data I pull back. My SQL query works fine when I manually run it through a SQL client tool, but when I try to pass it through my workflow I'm having trouble with passing my string into the IN part of the statement. So if for example my SQL query is:
    SELECT Field1, Field2, Field3 FROM Table1 WHERE Field4 IN (?)
    I have a process variable that has the string I'm trying to pass into the ?, but I don't seem to be able to get the query to run. I have tried setting up my query to run as a Parameterized Query (passing my string process variable into the ?), and by setting the query up through xPath (where I am calling my process variable with an xPath declaration), but am not having any luck.
    The process variable I am trying to pass is formatted such that I'm passing 'Value1','Value2','Value3' but I can reformat this string if need be. Even with using test data I can't get the query to return anything. For test data I have tried: 'Value1','Value2','Value3' ; Value1','Value2','Value3 ; Value1,Value2,Value3 but the query never returns any data. I can't seem to see how to format the string to pass into the query. The Query will work with a single Value in the test data, but as soon as I try to pass multiple values within the string it fails. Any suggestions?

    The problem looks to be a limit on what I can pass into the SQL query component. My string is coming from data returned from another database. I take the xml output from that database call, pass it through a set variable component to remove my xml tags from the string, and then format the string in a script component (I have to do it this way because of the way the data coming out of my first database call). I've put in loggers, and can see that the string I'm passing into my query that is giving me problems, is formatted the same way as if I were to use the concat function Scott listed above. It looks like there is a limitation on what can be passed in my variable. I have tried creating my entire SQL query statement in a set variable component, and then just calling the process variable that holds that statement, but there is a character limit of 128 character for what can be passed in a variable through xpath in the SQL query component.
    The next thing I tried was changing my SQL where clause. Instead of passing my variable directly into the IN statement I set up a PATINDEX('%:'+countyname+ ':%', ?) > 0 call to check for the values in my database call. As you can see I took out the "," that I was passing as part of my string, thinking that the SQL component was getting confused by them, and placed ":" characters around my values being passed in my string variable. No matter what I try to do though I'm not able to get the query to run. The component looks like it is taking my string, and is seeing the whole thing as a string instead of passing it as individual values within a string.
    I think I'm getting close, but I keep getting a Content not allowed in prolog exception in the server logs.

  • Passing (byref) String from Java to C++ via JNI

    I wish to pass a string to a C++ Dll as a parameter in a function. The problem is that I don't know howto receive back the data after it is filled in the C++ dll. I am trying to do what is called passing parameters by reference.
    Java Code:
    public class ABKeyBoard {
    public native long leerBanda(int pista, String datos);
    public static void main(String[] args) {
    String datos=new String();
    System.loadLibrary("ABKeyBoard");
    new ABKeyBoard().leerBanda(1,datos);
    System.out.println(datos); //the content of datos here is empty.
    C++ Code:
    Java_ABKeyBoard_leerBanda(JNIEnv *env, jobject obj,jint pista, jstring datos)
         char buffer[2024];
         memset(buffer,     0x00,     sizeof(buffer));
         strcpy(buffer, "xxxx");
         datos = env->NewStringUTF(buffer);
    return;
    Thanks for your help.

    In java every parameter are always passed by value.
    The datos parameter is a local copy of the string
    reference you pass to the method.This is wrong. The String passed to the native method is the same String object you use in Java. Although everything is passed by value in Java, what is actually passed by value is the reference to the String. This means that you can modify the object you pass, but you are not allowed to change the reference to point to a totally different object. That is where the problem is coming in.
    The trouble is that it is illegal to modify a String, even from native code. If you need to make changes in-place to the text, pass an array of chars (if your native code uses Unicode), an array of bytes (if it uses normal 8-bit characters) or a StringBuffer. You can legally modify any of these data structures with the new data. But the StringBuffer object is the only one whose length can be changed after it is created. Unfortunately it is also the hardest to use from JNI.
    Generally I think you should always pass arrays of bytes/chars to native code instead of Strings when possible. They can be modified in place, and you can use String's methods to get a byte-array in the platform's proper encoding. Using the GetStringUTFChars method is problematic because UTF only maps directly onto ASCII in the case of characters which are in the set of 7-bit ASCII characters. Your code will do wrong things if your String happens to contain some other character, unless your native code expects UTF format strings.
    The good news is that C(++) functions which return results in their arguments do not ordinarily change the length. So you should be able to allocate a byte[] or char[] ahead of time of the appropriate size (don't forget to add the trailing null, which is not a component of Java strings). I think byte[] or char[] is the best answer because you can easily map those onto C-style arrays with Get[Primitive]ArrayRegion; the return of that is suitable for passing directly to native code, as long as you have remembered the null-terminator. For instance you could do (*env)->GetByteArrayRegion(env, javaArray, 0, arrayLength, CArray) and then your CArray would be changed to point at the contents of the javaArray (note: it does not copy data into CArray, it changes CArray to point at the array contents, so do not allocate memory for CArray first). Then when you do ReleaseByteArrayRegion the results will be propagated back to Java.

  • How can I pass a String by reference in java?

    Hello!
    My question is how to pass a String by reference in java.
    I tried to declare my variable, instead of using "String xxx = "f";", I used "String xxx = new String ("f");" :
    public static void main (String []args)
    String xxx = new String("f");
    StatusEnum result2 = getErrorPointStr(xxx);
         public StatusEnum getErrorPointStr(String text)
              StatusEnum testStatus = StatusEnum.PASS;
              StringBuffer buffer = new StringBuffer();
    buffer.append("123");
              text = buffer.toString();
              return testStatus;
    After calling to getErrorPointStr(String text) function, xxx = "f"
    So it does not work.
    How can I solve this? It is very important, the function will receive String and not something else.
    Thanks!

    Tolls wrote:
    Which is why I said:
    Which is why you only managed to change what 'text' referred to in the methodExcept that's not why. Even if String was mutable, doing text = whatever; would have the same effect; it would change what that variable refers to in the method, but it would not change the object's state.
    I meant that, since there was no way to actually change the data (ie the char[] or whatever) within the object 'text' referred to, the OP was attempting to change what 'text' referred to and hoping it would be reflected outside the method...which we know won't happen as Java is pass-by-value.\Ah, now I see.
    These by-value/by-reference threads tend to get confusing, because usually the person is passing a String, so the immutability of String tends to get in the way and just muddy the waters.

  • How to pass a string as a parameter after it has been generated on console

    This is wat i want to do...when a sentence has been generated on console(using Bingo.startConversation())..i want to pass this sentence(which is ofcourse string) as a parameter into another method Bingo.reply(???)..wat shud i use in the place of ???
    this is my code
    public static void main(String[] args) {
    Conversation conversation=new Conversation();
    Bingo bingo=new Bingo ();
    System.out.println("Start");
    System.out.println(">>");
    System.out.println(Bingo.startConversation());//this line generates a sentence on console//
    System.out.println(Bingo.reply(???));

    -> this is my code
    Still didn't use the "Code" tags like you've been asked to do in other postings.
    So, still no help.

  • Unable to create a simple test client. Got ConfigException: JBO--33001

    I am trying to create a simple test client as per ADF training manual. Have just created an empty AM. The test client is giving this error at runtime.
    The test client looks like:
    public static void main(String args[])
    String amDef = "test.TestModule";
    String config = "TestModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    // Work with your appmodule and view object here
    Configuration.releaseRootApplicationModule(am, true);
    Getting the following error
    Exception in thread "main" oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file /test/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:432)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:284)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1252)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1230)
         at amit.bc4j.TestClient.main(TestClient.java:18)
    Process exited with exit code 1.
    I have added JAXB and Applications Core libraries to the default library list.
    (added JaxB because of http://myforums.oracle.com/jive3/thread.jspa?messageID=3425268&#3425268
    and Unable to create a simple test client. Error JAXBException
    I have checked that /home/aagupta/jdevhome/home/aagupta/jdevhome/FusionJdev/mywork/Test2/TestProj/classes/amit/bc4j/common/bc4j.xcfg file exists.
    I even tried to add this directory using Add lib/directory pane, but no help.
    Please suggest what to do...
    Thanks,
    Amit

    Got it....i paid the price of not understanding the error messages and expecting bc4jclient and ctrl+enter is a magic wand :)
    Thanks to Steinmeier,Oliver http://myforums.oracle.com/jive3/thread.jspa?messageID=3408700&#3408700
    The shortcut only generates sample code. We need to substitute the actual AM location.
    public static void main(String args[])
    String amDef = "amit.bc4j.model.TestAM";
    String config = "TestAMLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    System.out.println("Read the messages!");
    // Work with your appmodule and view object here
    Configuration.releaseRootApplicationModule(am, true);
    }

  • How to pass query string from content editor webpart to another?

    Hi All,
    I am using content editor web-part to show GooglePiechart  for workflow status column in a list. When user click on chart, i need to show particular clicked area data in another list web-part. So that, i need to pass the query value from content editor
    web-part to another web-part. How to achieve this scenario?

    Hi Sam,
    What you can do is using SPD create a data view webpart which excepts query string value as filters as shown in the below article
    http://madanbhintade.wordpress.com/2012/01/08/sharepoint2010dataviewwebpart/
    http://sharepoint.stackexchange.com/questions/55184/how-to-filter-dataview-webpart-dvwp-from-query-string
    Then When you click on the pie charts particualr section perform a post back  by appending the required query string paramter to the same page on which your webpart exist
    Raghavendra Shanbhag | Blog: www.SharePointColumn.com
    Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
    Disclaimer: This posting is provided "AS IS" with no warranties.

  • I can't pass empty string as column of Table Valued Parameter.

    Hello.
    I have stored procedure which accept TVP with columns of 'sql_variant' type. And I have C++ application which call this stored procedure.
    When i pass some non-empty string as sql_variant from my application - all works fine.
    But when I need to pass empty string ("") as sql_variant - I get following error:
    "OLEDB hr = 0x80040e14
     #0:  OLEDB provider error 3621  "The statement has been terminated."
     #1:  OLEDB provider error 8062  "The data for the table-valued parameter 1 doesn't conform to the table type of the parameter."
     #2:  OLEDB provider error 8046  "The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Table-valued parameter 0 (""), row 1, column 1: The supplied length is not valid for data type sql_variant.
    Check the source data for invalid lengths. An example of an invalid length is data of nchar type with an odd length in bytes."  
    Could you please help me deal with that issue?
    Thanks,
    Vitaliy

    Dear Vitaliy,
    Thank you for your question.
    Based on my understanding of your question, the issue is related with passing SQL_VARIANT data type in C++ application using Microsoft OLE DB Provider.
    As we can see from http://msdn.microsoft.com/en-us/library/ms173829(v=sql.100).aspx:
    ODBC does not fully support sql_variant. Therefore, queries of sql_variant columns are returned as binary data when you use Microsoft OLE DB Provider for ODBC (MSDASQL). For example, a sql_variant column that contains the character string data 'PS2091'
    is returned as 0x505332303931.
    According to above statement, as you are using OLEDB provider for ODBC with sql_variant in your application, it is not fully support. Seems there are some conversion failure within the Stored Procedure calling. You may consider to adjust your application
    slightly to use other commonly supported data types which also fits your application requirements.
    I listed some more information regarding sql_variant below for your reference:
    A column of type sql_variant may contain rows of different data types such as int, binary and char values.
    A sql_variant data type must first be cast to its base data type value
    before participating in operations such as addition and subtraction. You can find the conversion details in "Comparings sql_variant Values" part.
    Below types of values cannot be stored by using sql_variant:
    varchar(max)
    varbinary(max)
    nvarchar(max)
    xml
    text
    ntext
    image
    timestamp
    sql_variant
    geography
    hierarchyid
    geometry
    User-defined types
    Hope it will be helpful.
    Thank you!
    Best Regards,
    SQL Team - MSFT

Maybe you are looking for

  • Premiere Pro / Media Encoder crash during encoding

    Afternoon guys, wonder if anyone has any tips on how to solve my issue. It's a new pc that I'm working on, my first project on it, everything working great in terms of the edit, but crashing whilst encoding both through Premiere Pro and Media Encoder

  • IPhone 5 LTE full service but no internet in ONE spot

    Hello, I live in San Francisco, have an iPhone 5 and LTE service and I get great coverage all over the city: at home, at work, which in in a basement of a huge concrete building, and lots of other place. However, there is this one area of the city th

  • Why can't i download any toolbars to firefox 5?

    I want to download the Yahoo toolbar onto firefox...Why won't it let me? and why can't i get the firefox 4 back? Nothing wants to work in the "UPDATED" version of Firefox....Some upgrade!!! PLEASE GET THIS PROBLEM SOLVED SOON!!!!I want to download a

  • How can I display the following text in UITextView by programming?

    I like chocolate! where chocolate is in ,say, red color. I realize this is a simple problem. I have found in the document files. I just think that the NSString Class doesn't have color property. Although the UITextView does, it doesn't have the strin

  • Hi I want to ask about Microsoft office for Mac book air.

    I purchased microsoft office 365 from their online store, but it failed to set it up. Finally, I asked for refund. i wonder which microsoft office suit for Mac and i can use it for permanently? Thanks