Question on Parameters

Hi,
I have a subreport and it has 2 procedures attached to it.  The first procedure accepts clientID and LOB and the second procedure accepts policyid and policyimage... The policy and the policy image is got from the first procedure.
The way i have set the up parameters is the first parameters clientid and lob are entered by the user and for the third and fourth paramters..
I have the set avaible values to the the first data and then selected the policy field for the value and label and set the default value to 0 or NULL. I have done the same thing for the 4 parameter selected the policyimage as the label and value.
The issue I am running into is when the first dataset returns no rows... it is giving me an error saying policy is need even though I am setting the default value to 0 or null (tried giving 0 and Null but still get the same error)
How can i fix this error.. any help is appreciated.
Thanks
Karen

Hi Karen,
Based on your description, did you add cascading parameter in the report? The third and fourth parameters is depend on the first and second parameters.
If I understand correctly, the issue is if there have no data return by the first and second parameters, it will have no values to be select in the third and fourth parameters. It will let us to select a value for the corresponding parameter. In this situation,
please refer to the steps below to resolve the issue:
Double click the third parameter.
Select “Allow null value” option in the General dialog box.
Click Default Values in the left pane.
Click “Add” icon and fill with “Null” value.
Use the same method to configure the fourth parameter.
If there are any misunderstanding, please elaborate the issue for further analysis.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support

Similar Messages

  • Update on question for parameters in URL opening a BSP iview

    Hi again gurus.
    I wanted to do an update on this thread: How do you create a URL with parameters for a BSP iview? but choose to do the update as this new question instead.
    Well, in order to open a BSP iview from an external page shown in an Application Integrator iview in our portal AND FILL IN A FIELD, a link of this type is used on the external page:
    http://<server:port>/sap/bc/bsp/sap/z_purchase_req/process.htm?System=ABG_R3_ARD&mnr%3D9780198603641
    If you read the other thread you will see that I couldn't use a link of the following type since it opened up something like the stuff found under "System Administration > Support > SAP Application" and there asked for BSP application and start page!
    http://<server:port>/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.BSP?System=ABG_R3_ARD&SAP_TCode=Z_PURCHASE_REQ&STARTPAGE=process.htm
    But the first link works so far as it opens up the correct transaction BUT the parameter won't get into the field. Does anyone know how to "format" the parameter correctly? When you open an iview of Transactional type you can use a URL like this (and it works also with writing parameter into a field):
    http://<server:port>/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=ABG_R3_ARD&SAP_TCode=ZARTS2&SAP_Dynp_Params=S_MATNR-LOW%3D9789146212720
    It's the part ...&SAP_Dynp_Params=... that is of interest here. Should it also be used when working with URLs opening BSP iviews or not? Or should something similar be used instead? The name of the field "mnr" is correct in the BSP URL, at least I think so, I found it in the Web Application Builder under tab "Page Attributes". I have tried both "=" and "%3D" in the URL but neither works.
    Any suggestions about the parameter format for this link or another completely different but working URL format would be extremely appreciated!
    Best regards
    Benny Lange

    the Appintegrator Documentation says you can use something like <User.[AttributeName]>, so <User.email> and <User.company> (not sure about capital letters) should work.
    Hope that helps.
    PD

  • Again a noob question about parameterizing

    Im setting up an insert() for a binary tree. when i try to actually preform the setLeft or setRight command i get an error. My code is posted below.
    my node class
    public class BTreeNode<T extends Comparable<T>> implements Position<T> {
         public BTreeNode<T> _left;
         public BTreeNode<T> _right;
         public BTreeNode<T> _parent;
         public T            _data;
         public T element() {
              return _data;
         public BTreeNode(T c) {
              _data = c;
              _parent = null;
              _left = _right = null;
         public void setLeft(BTreeNode<T> n) {
              _left = n;
              if (n!=null) n.setParent(this);
         public void setRight(BTreeNode<T> n) {
              _right = n;
              if (n!=null) n.setParent(this);
         }my binary tree class
    public class BasicBTree<T extends Comparable<T>> implements BinaryTree<T> {
         public void insert(T obj) {
         if (_root != null) {
              BTreeNode<T> runner;
              runner = _root;          
             if
                      (obj.compareTo (runner.element()) == 0){
                         System.out.println ("Object was found in tree and will not be inserted");
              else if     
                 ( obj.compareTo(runner.element()) < 0 ) {
                            if (runner.hasLeft() == true){
                                 runner = runner._left;
                                 return;}
                            else {
                                 runner.setLeft(obj); // ERROR IS HERE
              else if
                   ( obj.compareTo(runner.element()) > 0 )
                             if (runner.hasRight() == true){                   
                                      runner._right = runner;
                                      return;}
                            else {
                                 runner.setRight(obj); // ERROR IS HERE
         else{
              _root = new BTreeNode<T>(obj);
         return;}   
         the error i am getting says that
    "The method setRight(BTreeNode<T>) in the type BTreeNode<T> is not applicable for the
    arguments (T)"
    or "The method setLeft(BTreeNode<T>) in the type BTreeNode<T> is not applicable for the
    arguments (T)"
    I had a similar question before and someone showed me where i had forgotten to parameterize my runner variable. I am thinking that this will be along the same lines although i cant imagine what it could be. The runner is already said to be part of BTreeNode<T> and setLeft and setRight are defined in the BTreeNode class so i wouldnt think that would be the problem. Anyway thanks for the time hopefully someone can help me with this.
    -peter

    Im setting up an insert() for a binary tree. Ceci already posted a solution to your problem, but may I suggest a different approach to your insert method? Trees are made for recursion!
    public class BasicBTree< T extends Comparable <T> > implements BinaryTree<T> {
        private BTreeNode<T> root;
        public BasicBTree() {
            this.root = null;
        public void insert(T item) {
            BTreeNode<T> newNode = new BTreeNode<T>(item);
            if(root == null) {
                root = newNode;
            else {
                insert(root, item);
        // private "helper" method
        private void insert(BTreeNode<T> currentNode, T item) {
            int difference = currentNode._data.compareTo(item);
            if(difference < 0) {
                // IF 'currentNode' has a left node
                //    Recursively call this method using the
                //    left node of 'currentNode' and 'item'
                //    as parameters.
                // ELSE
                //    Set the left node of 'currentNode' here.
            else if(difference > 0) {
            else {
                System.out.println ("Object was found in tree and will not be inserted");
    }

  • Third question - Using parameters in powershell recovery - Alert description

    Hi guys,
    With help i created powershell recovery in a management pack. Once again thanks very much, this is new to me. Now i know these parameters (variables):
    http://blogs.technet.com/b/kevinholman/archive/2009/09/23/alert-notification-subscription-variables-and-linking-that-to-the-console-database-and-sdk.aspx
    But how can i implement this in this XML? I think i must declare them in the XML, because when i put the variable there, it doesn't work. I would like to get the alert description in the message variable (see xml below)
    </Recovery>
    <Recovery ID="MomUIGenaratedRecovery28e1547022254ccbb82784c60d51b1d2" Accessibility="Public" Enabled="true" Target="Type603f92b7b83945598af55495615db953" Monitor="UIGeneratedMonitor0cd347f57f3949deb958cebb02d25555" ResetMonitor="false" ExecuteOnState="Error" Remotable="true" Timeout="300">
    <Category>Custom</Category>
    <WriteAction ID="MomUIGenaratedModule75df98fbfc5b48e39fd605cccd97d29b" TypeID="Windows!Microsoft.Windows.PowerShellWriteAction">
    <ScriptName>sendSMS.ps1</ScriptName>
    <ScriptBody>
    # function SendSMS
    # PowerShell function to send SMS messages via the CM SMS Gateway.
    function SendSMS{
    param([string]$url, [int]$customer, [string]$login, [string]$password, [string]$recipient, [string]$sender,[string]$reference)
    $xml = New-Object XML
    $messages = $xml.CreateElement("MESSAGES")
    $customerxml = $xml.CreateElement("CUSTOMER")
    $customerxml.SetAttribute("ID", $customer)
    $messages.AppendChild($customerxml)|Out-Null
    $user = $xml.CreateElement("USER")
    $user.SetAttribute("LOGIN", $login)
    $user.SetAttribute("PASSWORD", $password)
    $messages.AppendChild($user) |Out-Null
    if (!($reference.Equals(''))) {
    $refxml = $xml.CreateElement("REFERENCE")
    $refxml.Innertext = $reference
    $messages.AppendChild($refxml) |Out-Null
    $tariff = $xml.CreateElement("TARIFF")
    $tariff.InnerText = 0
    $messages.AppendChild($tariff) |Out-Null
    $msg = $xml.CreateElement("MSG")
    $from = $xml.CreateElement("FROM")
    $from.InnerText = $sender
    $msg.AppendChild($from) |Out-Null
    $to = $xml.CreateElement("TO")
    $to.InnerText = $recipient
    $msg.AppendChild($to) |Out-Null
    $body = $xml.CreateElement("BODY")
    $body.SetAttribute("TYPE", "TEXT")
    $body.InnerText = $message
    $msg.AppendChild($body) |Out-Null
    $messages.AppendChild($msg) |Out-Null
    $xml.AppendChild($messages) |Out-Null
    Write-Output $xml.OuterXml
    $webClient = New-Object net.WebClient
    return ($webClient.UploadString($url, $xml.OuterXml))
    # test
    SendSMS -url 'https://website.sms.nl/webservice.ashx' -recipient 0031612345678 -customer 1 -login 1 -password 'password' -sender 'Standby' -message 'Here i want the alert description' -reference '1234'
    </ScriptBody>
    <TimeoutSeconds>60</TimeoutSeconds>
    </WriteAction>
    Kind regards,
    André

    Parameters are defined between ScriptBody and TimeoutSeconds like this:
    <Parameters>
    <Parameter>
    <Name>param1</Name>
    <Value>$Config/param1$</Value>
    </Parameter>
    <Parameter>
    <Name>param2</Name>
    <Value>$Config/param2$</Value>
    </Parameter>
    </Parameters
    This information is available on MSDN.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Easy question with parameters

    how many parameters can a method have

    there should be an implementation limitation, though,
    based on how the compiler addresses this issueNope, it's a class file format issue; but it's a non
    issue in practice though.Thanks for the explanation ! :)You're welcome; I always use the 64K rule of thumb: no more than
    64K static members or static methods, no more than 64K members
    or methods, no more than 64K bytes in a method, no more than 64K
    parameters, no more than 64K implemented interfaces etc. etc. I have
    to meet the first class that crosses those limits and if it does, it should
    be wiped from existence ;-)
    kind regards,
    Jos

  • A simple question about parameters to functions

    hello,
    Passing parameters between functions in java suppose to be "by reference".
    I have a simple test case that it doesn't work.
    I'll be happy if someone will tell me what is wrong:
    public class Test
    String text ;
    public static void main(String[] args)
    Test test = new Test();
    test.poo() ;
    public void poo ()
    text=new String(" bbb") ;
    foo (text) ;
    System.out.println ("final text= " +text) ;
    private void foo(String text)
    System.out.println ("text before update= " +text) ;
    text="aaa" ;
    System.out.println ("text after update= " +text) ;
    The output here is:
    text before update= bbb
    text after update= aaa
    final text= bbb
    How can you explain that?
    thank you,
    Moran

    > Passing parameters between functions in java suppose to be "by reference".
    Nope. First, we call them "methods" rather than "functions". Second, everything in Java is passed "by value". Everything.
    Pass-by-value
    - When an argument is passed to a function, the invoked function gets a copy of the original value.
    - The local variable inside the method declaration is not connected to the caller's argument; any changes made to the values of the local variables inside the body of the method will have no effect on the values of the arguments in the method call.
    - If the copied value in the local variable happens to be a reference (or "pointer") to an object, the variable can be used to modify the object to which the reference points.
    Some people will say incorrectly that objects are passed "by reference." In programming language design, the term [i]pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value. If the function modifies its parameter, the value in the calling code will be changed because the argument and parameter use the same slot in memory.... The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other. There is exactly one parameter passing mode -- pass by value -- and that helps keep things simple.
    -- James Gosling, et al., The Java Programming Language, 4th Edition

  • Smart Playlist Creation Question - Rule Parameters Issue

    I want to have newly imported songs go automatically into a playlist (Recently Added), from which I can move them into a playlist of their own. I then want to be able to CLEAR the Recently Added playlist so that I can then import a SECOND group of songs which will automatically go into the Recently Added playlist, where they will be the ONLY songs there because the first group of songs will have been CLEARED.
    I inadvertantly deleted my Recently Added playlist, so that is not available to me - I have to, in effect, create my own Recently Added playlist.
    The problem I am having has to do with the Smart Playlist Rule Parameters needed to accomplish what I am trying to do. I have been able to set up a smart playlist that receives newly imported songs automatically. However, I seem to be unable to CLEAR the songs from the smart playlist to make way for a SECOND group of newly imported songs.
    I thought I could get the job done by simply deleting the entire Smart Playlist that contained the first group of songs, and then creating a new Smart Playlist to receive the second group. You can do that - but the problem is that the minimum time you are allowed to assign is one day. This means that when the second group of songs goes into the second smart playlist, it will also "grab up" and include the FIRST group of songs, assuming that the groups of songs are all being imported on the same day. I don't want to limit myself to importing only one group of songs per 24-hour period.
    (When I import groups of songs, I import them in very, very large groups, which is why I want to be able to deal with them in individual groups, rather than having to sort through the larger, general Library of tunes in order to put them into their own playlists.)
    It seems to me the answer lies in being able to set up a Rules Parameter that shortens the time involved from one day to something like 15 minutes or so. I don't know how to do that, even assuming that it can be done.
    Or, perhaps, someone might have another suggestion that would help me accomplish my goal here.
    Any and all thoughts will be much appreciated!

    ed2345 wrote:
    You can use playlist membership as a criterion in a Smart Playlist.
    So if the list you are moving them to is "SecondPlaylist" (or whatever you wish to call it) then add a rule to your custom-tailored Recently Added that states "Playlist" "is not" "SecondPlaylist."
    Not sure I am getting this. You understand that I am IMPORTING new files into iTunes - I am not moving already imported files into a playlist.
    I can create a smart playlist with a Rule of: Playlist/is not/recently added (where "recently added" is the playlist I previously used to set aside the last group of songs imported into the music library). But when I click on OK to set it up, then I have to name it. And when I give it a name ("current load," for example) and confirm the name, suddenly, "current load" is filled with the last group of imported files. Don't ask me why - but that's what happened.
    Any other thoughts? Anyone?

  • Question about parameters and SQL

    hi all! I have a prob and I have no idea how to solve it.
    Since now I have being consulting my tables and using only columns from those tables. the thing is that now I need to combine different tables and get some results. This is easy in SQL by selecting the attributes from the tables that you are interested with something like:
    public ResultSet busquedaCitas2(String fecha_cita)
        throws SQLException
               cdr = sentenciaSQL.executeQuery(
                "SELECT pacient.name, citas.date  " +        
                "FROM citas,pacient " +
                "WHERE citas.date like " + "'" + fecha_cita + "'");
             return cdr;
        }NOW my problem is that when I get the result back I do using a bean and a hashtable
    ResultSet cdr = bd3.busquedaCitas2(fecha);
            int id = 0;
            while (cdr.next())
             id = cdr.getInt("idCita");
                t = new BeanDatosCitas(
                id,                             // Nos servir� como identificador en la tabla HashMa
                cdr.getString("Fecha"),
                cdr.getString("Hora"),
                cdr.getString("Protocolo"),
                cdr.getString("DNI"),
                cdr.getString("Opcion"),
                cdr.getString("Observacion"),
                cdr.getString("Horaentrada")
                m.put(new Integer(id), t);
            }But this will only allow me to get the columns from a table when I need to take several columns from several tables.
    I need to get the name form the pacient that its in another table aswell some other data in other tables.
    Any ideas ? thanks!

    That cant be the solution since I have my constructor like this:
    public class BeanDatosCitas implements Comparator {
      private int id_Citas;
      private String fecha_Citas;
      private String hora_Citas;
      private String protocolo_Citas;
      private String DNI_Citas;
      private String opcion_Citas;
      private String observacion_Citas;
      private String horaent_Citas;
        /** Creates a new instance of BeanDatosCitas */
        public BeanDatosCitas() {}
        public BeanDatosCitas(int id, String fecha, String hora,String protocolo,String DNI,String opcion,String observacion,String horaent)
        id_Citas = id;
        fecha_Citas = new String(fecha);
        hora_Citas = new String(hora);
        protocolo_Citas= new String(protocolo);
        DNI_Citas= new String(DNI);
        opcion_Citas=new String(opcion);
        observacion_Citas=new String(observacion);
        horaent_Citas=new String(horaent);
        }

  • Simple Question: Procedure parameters are same as table column names.

    Hi All,
    I'm having following procedure
    CREATE OR REPLACE PROCEDURE eb_test_update
    emp_no IN NUMBER := NULL,
    emp_name IN VARCHAR2 := NULL,
    return_status OUT VARCHAR2
    AS
    l_emp_name VARCHAR2(50);
    BEGIN
    l_emp_name := emp_name;
    return_status := 'Success';
    DBMS_OUTPUT.PUT_LINE('emp_name::'|| emp_name);
    DBMS_OUTPUT.PUT_LINE('emp_no::'|| emp_no);
    BEGIN
    UPDATE EMP
         SET EMP.emp_name = emp_name,
    EMP.join_date = SYSDATE
    WHERE EMP.emp_no = emp_no;
    COMMIT;
    EXCEPTION WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('INSIDE EXCEPTION BLOCK::');
    return_status := 'Fail';
    ROLLBACK;
    END;
    END eb_test_update;
    I'm executing this procedure passing below values
    DECLARE
    RETURN_STATUS VARCHAR2(100) := NULL;
    BEGIN
    eb_test_update(
    EMP_NAME => 'srini',
    EMP_NO => 12345,
    RETURN_STATUS => RETURN_STATUS
    DBMS_OUTPUT.PUT_LINE('RETURN_STATUS::' || RETURN_STATUS);
    END;
    It is not giving any error but it is not updating EMP_NAME column in EMP table, no idea how to resolve this issue. If I use l_emp_name it works fine...I don't want to change parameter names for calling procedure...
    Can anyone please suggest me how to resolve this issue...I thought making alias name for table name will work but facing same problem...
    Thanks in advance.
    Regards,
    Sharath.

    Boneist wrote:
    sybrand_b wrote:
    Also you should not commit inside a procedureAt the risk of taking this off-topic, I disagree. Commit/Rollbacks need to go at the end of a transaction, and if that transaction is started and finished within a procedure (eg. automomous transactions for logging errors/debug, etc) then that is the right place for the commit/rollback. IMO, anyway.I'm with sybrand_b in this case. To decide about commit (or sometimes rollback) is a user task. There are exceptions to this rule and you named already some of them. And there are more of such. You could also add batch jobs that run without user interaction, bank transactions, etc. However in this specific case we do not have any indication that the op is talking about such an exception to the general rule.

  • Data Components && Query Parameters

    I just started playing with the database binding since I use PostgreSQL. I have a couple questions around parameters. Let's say that I want to make a page to display / update configuration variables from my application. I have a table in my database called config, with two simple members ckey and cvalue. Let's say I have 20 key / value pairs.
    I want my page to simply load the values associated with all 20 keys into 20 different text boxes. I created a query with the WHERE clause being WHERE ckey = ?. Now, I've seen some posts that say that I have to have a Session Bean parameter to populate this ? -- is this correct? Can't I have a simple keyword somewhere since this parameter will be fairly static for each of my 20 text boxes? Could I just name each text box the associated ckey name?
    Secondly, how do I go about letting the data components update and validate this data if it is changed? The tutorial didn't show me much. Thanks.

    Hi,
    Please take a look at the AppModel sample application. This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    This sample application demonstrates many features including how to handle the query parameters and how to update etc.
    Hope this helps
    Cheers
    Giri :-)
    Creator Team

  • How to create custom folder for parameterized query

    Hi Gurus,
    I developed a query to generate report to " who is reporting to who in organization", when i am trying to create custom folder using this query but i am getting error like "The custom sql entered contains parameter and therefore invalid". Could you please help to parameterize the emp_key in query in Oracle Discoverer. Is there any way to pass the value using external procedure for this query.
    SELECT
    lpad(' ', 8 *(LEVEL -1)) || emp_last_name, emp_key, manager_id, emp_key, manager_key,
    mgr_last_name, mgr_first_name, empid,
    emp_last_name, emp_first_name, LEVEL FROM cmp_ppl1 START WITH emp_key = &emp_key
    CONNECT BY PRIOR emp_key = manager_key;
    Thanks & Regards
    Vikram

    I agree 100% that it's way easier to create a dataview or a custom folder - with no run time parameters being passed to the EUL - as is being done by Vikram.
    The only concern I would have is that I don't know if it would work - or at least ever come back in reasonable time - for Vikram and therefore the question about parameters (only Vikram can say).
    The reason I'm wondering is that I've created SQL similar to being shown (when used in an org chart report at a large client) and the start / connect by is used for going down the tree getting everyone on the way. And if it's not limited - that could be a huge undertaking - of records and/or time. Guess it depends on how many people work at the organization (and of course, levels).
    But otherwise, absolutely, I would try and bring back all logical records to the folder and then filter in Disco.
    Russ

  • Premiere CS6 parameters and declarations

    Hello.
    I'm writing a plugin for Adobe Premiere CS6. I have a couple of questions about parameters (ANIM_ParamAtom).
    I know how to add:
         - sliders (ANIM_DT_LONG,ANIM_UI_SLIDER),
         - color parameters (ANIM_DT_COLOR_RGB, ANIM_UI_COLOR_RGB),
         - checkboxes (13, 8 - i really don't why it's 13 and 8... can anyone help me with that?)
    Can anyone tell me how to add Point parameter (onscreen controls), PopUp Menu or a group? I read the documentation placed in SDK but I found nothing so far.
    Thanks in advanced! Dave

    Hi Dave,
    We strongly recommend you use the After Effects API to develop video effects for Premiere Pro.  Have you checked out the After Effects SDK?  Or are there any reasons why the Premiere filter API might be a better fit?
    Regards,
    Zac

  • Creation profile settings for Scheduling Agreement

    Hi Experts,
    I have a question regarding parameters of Creation profile maintained in Scheduling Agreement.
    In ‘General Parameters’, the Forecast delivery schedules there exists a parameter  ‘FRC:Aggregation’.
    I would like to know about the significance of using option ‘3’ as ‘FRC:Aggregation’ parameter in creation profile.
    Please provide some details regarding usage of above said Aggregation parameter in Creation profile.
    Thank you.
    Best Regards,
    Ashok

    If you work with release creation periodicity and planning calendar (lets say delivery schedule every Friday) there might be schedule lines in between and these were aggregated to this fixed day.
    Best regards,
    Hans

  • StringBuffer and PreparedStatement

    Does anyone know why prepared statements don't update ? fields when you provide the preparedstatement with a query that is a stringbuffer?
    i.e.
    StringBuffer query = new StringBuffer(500);
    query.append("SELECT * from Customer WHERE CustId = ?");
        try{
                          pstmt = conn.prepareStatement(
                               query.toString()
                    pstmt.setInt(1, 2);
                    result = pstmt.executeQuery();

    Why are you doing this?
    StringBuffer query = new StringBuffer(500);I am doing this before i have to dynmically manipulate the query, i have an array which i have to loop around and keep adding to the query till i get to the end. I cannot do this by simply specifiying the query inside the prepared statmenet paramaeter. The question mark parameters have nothing to do with adding to the query, it works fine if i specify the actual fields CustID = 1; instead of CustID = ?;
    SO my actual point was simply:
    I want to following query inside a string buffer where i can specifiy the paramaeters at a later stage using setInt, setString etc.
    SELECT * from Customer WHERE CustId = ?
    System.out.println(query.toString()); gives:
    SELECT * from Customer WHERE CustId = ?Now the string buffer, I'm specifiy the query reference directly to the preparedsttement i.e. this would be the same if i did conn.preparedStatment(SELECT * FROM CUSTOMER WHERE CustID = ?);
    try{
                          pstmt = conn.prepareStatement(
                               query.toString()
                     );After i use pstmt.setInt(1, 2);
    i get:
    SELECT * from Customer WHERE CustId = ?when it should be:
    SELECT * from Customer WHERE CustId = 2

  • Creating dynamic where clause with string delimiter " ; "

    hi...
    i need a solution for complex problem like, 1. start_date IN date,
    end_date IN date,
    shift_type IN varchar2
    i will get shift_type as "first_shift" or "first_shift;second_shift" or "first_shift;second_shift;third_shift" ....etc any combination. where fist & second & third shits are nothing but 1 , 2 , 3. i need to find out data between start_date and end_date in combination of shifts ( may be 1;2 or 1;3 or 1;2;3 or 2;3 ...etc) . now i need to write this code in dynamic where clause ...i tried in different ways...but not succeeded. can anybody guide me step by step...or with script.
    NOTE: there is a table called "shift" with data like
    shift_type shift_mode
    1 first_shift
    2 second_shift
    3 third_shift

    Hi,
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data.
    If the question involves parameters, give a few different sets of parameters and the results you want for each set, given the same sample data.
    It's unclear that you need dynamic SQL at all.
    If shift_type is a variable, that can be either a single value or a ;-delimited list (such as '1;3'), you can compare that to a column called shift_column like this:
    WHERE        ';' || shift_type   || ';'     LIKE
           '%;' || shift_column || ';%'No dynamic SQL or PL/SQL required.
    If you really do want to use dynamic SQL, these two pages should gives you some ideas:
    http://www.oracle-base.com/articles/misc/DynamicInLists.php
    http://tkyte.blogspot.com/2006/06/varying-in-lists.html

Maybe you are looking for

  • Unable to create books or calendar in iphoto 08

    Hi, I bought my computer two months ago and am now trying to create a book and calendar for the holidays, but neither are working. The Calendar button does nothing and the book button works, but when the drop-down screen comes up, I am unable to choo

  • Mars with Netflow on Interface VRF (on Router)

    Mars is collecting Netflow information from Interface VRF on Router, my question is that whether Mars will see the traffic inside of the VRF or not, or it will see only netflow traffic on Global routing (core MPLS devices). This router is PE, and con

  • I cannot connect to itunes store from my laptop

    I have used Itunes for two years on this computer but within the last month I can no longer connect to the itunes store.  When I hit the itunes store link it just goes to the page for the store and begins to load but stops midway...no error notices a

  • Aperture Good Bye... What next ?

    I must admit I am worried; with over 250 000 RAW pictures (over 2 T on external hard disks) and hundreds of folders, subfolders, slide shows etc etc, does this mean I'm dead in the water ? I started using Aperture when it first came out after I heard

  • ICloud Control Panel error: 0x80070005

    I recently got a PC with Windows 7 PRO x64 from my work stuff, I am using Outlook, so I decided to install iCloud Control Panel on it  to get my Calendar and Contacts, the problem comes when after installed the Control Panel, with no installation err