PreparedStatement Can't set value at index 1 null

I've never had this situation before, but I am unable to set a value at the first position of the PreparedStatement.
System.out.println("The value = " + this.valueId);  // Prints -- The value = 479
statement.setInt(1, valueId);
statement.setInt(2, valueId);
System.out.println(statement.toString());
// Prints - "INSERT INTO table SET value = null, value_two = 479"wtf? Why am I losing the value at the first index.. Note that I am using prepared statements without error in other places of my program and I am able to set the first index with the proper value. But this, I'm stumped. I don't know how to debug this. If anyone could shed some light, let me know under what circumstances I might not be able to set a value to the first index of a prepared statement.. I'd be grateful. Thanks.

Thank you for your response. Yes that was myoversight when I posted. Indeed I have tried it both
ways, with and without the "this" in the System print
and the set statement. Currently my code appears as
System.out.println("The value = " + this.valueId);
statement.setInt(1, this.valueId);
statement.setInt(2, this.valueId);Thanks again.
is the parameter the wrong type?
if possible can you call getParameterMetaData();
ParameterMetaData pmd = statement.getParameterMetaData();
for(int i=1;i<=pmd.getParameterCount();i++){
  System.out.println("Meta Data for Parameter "+i);
  System.out.println("Parameter Type Name "+pmd.getParameterTypeName(i));
  System.out.println("Parameter SQL TYPE "+pmd.getParameterType(i));
   This should return the same for both. Otherwise we have a problem.
    You can look up the constants here http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.sql.Types.ARRAY
}

Similar Messages

  • Item - Can't set value on item because the item can't get focus.  [66000-15

    hi i created one text box in purchase order form and asign the choose from list.l when i choose in edit box its show the following error-- Item - Can't set value on item because the item can't get focus
    Dim lonHeadDatasource As SAPbouiCOM.DBDataSource
    lonHeadDatasource = oOrderForm.DataSources.DBDataSources.Item("OPOR")
    oNewItem1 = oOrderForm.Items.Add("EditDS", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        oCFLs = oOrderForm.ChooseFromLists
                        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                        oCFLCreationParams.MultiSelection = False
                        oCFLCreationParams.ObjectType = "INTORDER"
                        oCFLCreationParams.UniqueID = "CFL1"
                        oCFL = oCFLs.Add(oCFLCreationParams)
                        oItem = oOrderForm.Items.Item("4")
                        oNewItem1.Top = 95
                        oNewItem1.Height = oItem.Height
                        oNewItem1.Width = 140
                        oNewItem1.Left = 125
                        oEdit = oNewItem1.Specific
                        oEdit.DataBind.SetBound(True, "OPOR", "U_EditDS")
                        oOrderForm.Items.Item("EditDS").Specific.ChooseFromListUID = "CFL1"
                        oEdit.ChooseFromListAlias = "U_ID"
    Item events
    Try
                If pVal.BeforeAction = False Then
                    If (pVal.FormType = 142) Then
                        Select Case (pVal.ItemUID)
                            Case "EditDS"
                                Select Case (pVal.EventType)
                                    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
                                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                                        Dim bonCflEvents As SAPbouiCOM.ChooseFromListEvent
                                        Dim bonCflList As SAPbouiCOM.ChooseFromList
                                        Dim bnnstrUID As String
                                        Dim bonDTTable As SAPbouiCOM.DataTable = Nothing
                                        bonCflEvents = pVal
                                        bnnstrUID = bonCflEvents.ChooseFromListUID
                                        bonDTTable = bonCflEvents.SelectedObjects
                                        bonCflList = oOrderForm.ChooseFromLists.Item(bnnstrUID)
                                        If pVal.BeforeAction = False Then
                                            If oOrderForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                                                If Not (bonDTTable Is Nothing) Then
                                                    If bonCflList.UniqueID = "CFL1" Then
                                                        If pVal.ItemUID = "EditDS" Then
                                                            Dim value As String = Nothing
                                                            oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0)
                                                        End If
                                                    End If
                                                Else
                                                    lonHeadDatasource.SetValue("EditDS", lonHeadDatasource.Offset, "")
                                                End If
                                            End If
                                        End If
                                End Select
                        End Select
                    End If
                End If
            Catch ex As Exception
                SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
    Thanks & Regards
    B.Narain

    Hi
    Instead of   oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0) the following
    lonHeadDatasource.SetValue("U_EditDS", 0, bonDTTable.GetValue(0, 0))
    Regards
    Arun

  • Can't Set Value in JSpinner

    I am having trouble setting a value to a JSpinner in my code.
    I am using two JSpinners, both with SpinnerNumberModels.
    I use the Object JSpinner.getValue() method to get the current value from that JSpinner, change that object into an Integer format, and perform an arithmetic operation on the integer.
    I then change the resulting integer into an Object format, and call the method JSpinner.setValue(Object).
    The setValue method never changes the value of the JSpinner, and occasionally throws an IllegalArgumentException - depending on where I put it in the code.
    The problem appears to come from either all the changing formats or the setValue method.
    Any suggestions?

    Perhaps this example will help?
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class Dork extends JFrame implements ActionListener
         JSpinner dizzy;
         public static void main(String[] args)
              Dork dork=new Dork();
         public Dork()
              super("Dork");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              Container content=getContentPane();
              dizzy=new JSpinner(new SpinnerNumberModel(5,1,10,1));
              content.add(dizzy,BorderLayout.CENTER);
              JButton increment=new JButton("Increment");
              increment.addActionListener(this);
              content.add(increment,BorderLayout.SOUTH);
              pack();
              setLocationRelativeTo(null);
              show();
         public void actionPerformed(ActionEvent e)
              Integer value=(Integer)dizzy.getValue();
              Integer plusone=new Integer(value.intValue()+1);
              dizzy.setValue(plusone);
    }

  • Conversion Error setting value '33'  for 'null Converter'

    Hi,everyone,it looks my custom Converter dosen't work.
    CreditCard class:
    package com.corejsf;
    public class CreditCard {
         private String number;
         public CreditCard(){
         public CreditCard(String number){
              this.number=number;
         public String toString(){
              return this.number;
    ==============================
    PaymentBean:
    package com.corejsf;
    import java.util.Date;
    public class PaymentBean {
         private double amount;
         private Date date=new Date();
         private CreditCard card;
         public PaymentBean(){
         public double getAmount(){
              return this.amount;
         public void setAmount(double newValue){
              this.amount=newValue;
         public Date getDate(){
              return this.date;
         public void setDate(Date newValue){
              this.date=newValue;
         public CreditCard getCard(){
              return this.card;
         public void setCard(CreditCard newValue){
              this.card=newValue;
    =================================
    CreditCardConvert:
    package com.corejsf;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import javax.faces.convert.ConverterException;
    import javax.faces.application.FacesMessage;
    public class CreditCardConvert implements Converter{
         public Object getAsObject(FacesContext context,UIComponent component,String newValue) throws ConverterException{
              StringBuilder builderForNewValue=new StringBuilder(newValue);
              boolean foundInvalidCharacter=false;
              char invalidChar;
              int newValueLength=newValue.length();
              int i=0;
              char chFromNewValue;
              while(i<newValueLength && !foundInvalidCharacter){
                   chFromNewValue=builderForNewValue.charAt(i);
                   if(Character.isDigit(chFromNewValue) || Character.isSpaceChar(chFromNewValue)){
                        i++;
                   }else{
                        foundInvalidCharacter=true;
                        invalidChar=chFromNewValue;
                        FacesMessage message=new FacesMessage();
                        message.setDetail("detail error convert message for CreditCard with error Char:"+invalidChar);
                        message.setSummary("summary error convert message for CreditCard with error Char:"+invalidChar);
                        message.setSeverity(FacesMessage.SEVERITY_ERROR);
                        throw new ConverterException(message);
              return new CreditCard(builderForNewValue.toString());
         public String getAsString(FacesContext context,UIComponent component,Object newValue) throws ConverterException{
              return newValue.toString();
    ===============================
    faces-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
         <managed-bean>
              <managed-bean-name>payment</managed-bean-name>
              <managed-bean-class>com.corejsf.PaymentBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <converter>
              <converter-id>com.corejsf.CardConvert</converter-id>
              <converter-class>com.corejsf.CreditCardConvert</converter-class>
         </converter>     
         <navigation-rule>
              <from-view-id>/index.xhtml</from-view-id>
              <navigation-case>
                   <from-outcome>result</from-outcome>
                   <to-view-id>/result.xhtml</to-view-id>
                   <redirect/>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/result.xhtml</from-view-id>
              <navigation-case>
                   <from-outcome>index</from-outcome>
                   <to-view-id>/index.xhtml</to-view-id>
                   <redirect/>
              </navigation-case>
         </navigation-rule>
    </faces-config>
    ==================================================
    index.xhtml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
         <h:head>
              <title>index page</title>
         </h:head>
         <h:body>
              <h:form>
                   <table>
                        <tr>
                             <td>
                                  <h:inputText id="iptCard" label="card" required="true" convert="com.corejsf.CardConvert" value="#{payment.card}">
                                  </h:inputText>
                                  <h:message for="iptCard"></h:message>
                             </td>
                        </tr>
                        <tr>
                             <td>
                                  <h:inputText id="iptAmount" label="amount" required="true" value="#{payment.amount}">
                                       <f:convertNumber minFractionDigits="2"></f:convertNumber>
                                  </h:inputText>
                                  <h:message for="iptAmount"></h:message>
                             </td>
                        </tr>
                        <tr>
                             <td>
                                  <h:inputText id="iptDate" label="date" required="true" value="#{payment.date}">
                                       <f:convertDateTime pattern="MM/yyyy"></f:convertDateTime>
                                  </h:inputText>
                                  <h:message for="iptDate"></h:message>
                             </td>
                        </tr>
                        <tr>
                             <td>
                                  <h:commandButton value="sumbit" action="result"></h:commandButton>
                             </td>
                        </tr>
                   </table>
              </h:form>
         </h:body>
    </html>
    Can anyone help me,TKS!

    And besides,if I change the first inputText to:
    <td>
    <h:inputText id="iptCard" label="card" required="true" value="#{payment.card}">
         <f:convert convertId="com.corejsf.CardConvert"></f:convert>
    </h:inputText>
    <h:message for="iptCard"></h:message>
    </td>
    The app runs and result in:
    WebContent/index.xhtml @13,55 <f:convert> Tag Library supports namespace: http://java.sun.com/jsf/core, but no tag was defined for name: convert
    Is any configuration problem there?
    TKS!

  • How can I set value for vc application's form

    there is a running vc application,and the vc application has form.the form's parameters can input from keyboard.but I want use java application to realize the function that input parameter instead of mannual input.
    can you give me some advices,thank you very much.

    This may help:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=236676

  • Setting values for items other than default value

    How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
    I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
    Condition that drives this are passed from other page through links.
    The code is like this
    For Region A
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
    For Region B
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2
    my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    Edited by: Rich V on May 21, 2010 10:41 PM

    The question I would ask is:
    How are you determining which region you want to be displayed by default?
    Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null.

  • Setting values to properties on load

    Hi,
    I have a big Trouble on Data Populating to the components on page loading like,
    Have page1 and page2.Based on ID passed from page1,query should execute and results should set to the form on page2 through Backing Bean.
    What doing is..
    using setActionListener passing ID from page1 and setting to method in page2 as argument which gets results based on ID and sets to component properties, here the problem is..
    Before page2 loads method called first from setActionListener where we cannot set the values to properties before loading.
    How can we set values to components in backing bean only on load based on ID from other page.
    And one more issue is, if we make any code in setter property it get executes every time,
    what is the correct procedure to execute the method only on loading.
    Does there any procedure to make method to excecute only on load.
    Please suggest me, how can i overcome this issues,these were become major issue for the Development.
    Thanks,
    Bandaru.

    hi,
    we tried to achieve the same thing.. But its not possible to set the values to individual segments of a KFF..
    Thanks,
    raghav.

  • How can use set automatically after executeQuery in UIX Site?

    Hallo ...,
    i start in my site with an initial event for instance site.do?event=init.
    in the init event i make a roolback, setWhereClause and executeQuery. then the site will display. after the executeQuery i have data in my site which i want to put on variables. all solutions i know need an event. when i put an submit button on the site and go to an event variable there i can say set value=... property=... target=... and can work for example with session variables. but i want to fill the variables without user interaction. but i don't know a way.
    any help is appreciated.

    Hi Marc,
    You can use the Origin property of the pane to set the top left point of your front panel.
    Is this what you are after?
    Dave
    Message Edited by DavidU on 10-06-2008 10:13 AM
    Attachments:
    OriginProperty.png ‏2 KB

  • BUG Can not set DML Fetch Mode:

    http://screencast.com/t/m7lEYZ1m5F
    while creating a DML ( Automatic Row Processing ) , can not set value of radio button .
    is this a bug , or i am missing something?

    >
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    It's even more essential to include full version information if you suspect a bug. Knowing the versions involved enables Oracle and other forum members to try to replicate the problem properly. It also allows us to look at the documentation or MOS bug database to compare the problem to known bugs and fixes.
    http://screencast.com/t/m7lEYZ1m5FYou've even managed to crop the screenshot so it doesn't show the version number...
    while creating a DML ( Automatic Row Processing ) , can not set value of radio button .
    is this a bug , or i am missing something?Confirmed as appearing in ARP (DML) processes in APEX 4.2.1.00.08. This does indeed appear to be a bug. However it is only cosmetic. DML Fetch Mode is an ARF (fetch) process option that is deprecated in APEX 4.x. Setting it for ARP (DML) processes is unnecessary, so you can safely ignore it.
    The appearance of the radio group in ARF processes is subject to a bug in APEX 4.2.0: +{message:id=10713985}+
    However it should not be appearing in an ARP (DML) definition at all as it was only an option for fetch behaviour.

  • How can I add values on a Drop Down by Index Webdynpro Element by a Model?

    How can I add values on a Drop Down by Index Webdynpro Element with a Model RFC?

    Hi Jesus,
    Please use the below code for DropDownByIndex Elements :-
    Suppose you have model node ABC and attribute xyz. Now you have created custom node CustNode and attribute CustAtt.
    ICustNodeElement  ele = null;
    if(wdContext.nodeABC().size > 0)
                  for(int i=0; i< CustNode< wdContext.nodeABC().size; i++
         ele = wdContext. createCustNode();
                          ele.setCustAtt(wdContext.nodeABC().getABCElementAt(i).getXYZ)
         wdContext.nodeCustNode.add(ele);
    Refer to http://help.sap.com/saphelp_nw70/helpdata/en/3b/f1754276e4c153e10000000a1550b0/frameset.htm
    Best Regards
    Arun Jaiswal

  • How can I set bind parameter as Default Display Value in JHeadstart

    Hi,
    I am using -
    JDeveloper Studio Edition Version 10.1.3.1.0.3984
    JHeadstart Release 10.1.3.1.26
    Can anybody help me for the following:
    I am using a super class of ViewObjectImpl where I am definning a bind parameter (Student ID) using login userid:
    if ("p_std_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
    bindParam[1] = studentNumber_from_LDAP;
    Then I defined p_std_id in Bind Variables tab in VO Editor and used that in Where clause in the SQL Statement tab.
    This is working fine.
    Now what I want to do is:
    I want to put the value of p_std_id as Default Display Value for a field.
    Can anybody let me know how I can put the value of p_std_id in JHeadstart Application Definition?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hi Jan and Steven,
    Thanks for your reply.
    I need to show the default value in the table layout.
    Steven, could you please give some more hints about EL Expression?
    To obtain the value of p_std_id now and pass it on as bind param, I am using a class extending ViewObjectImpl. Inside that class I am using the following method:
    I'd appreciate if you could help for the EL Expression.
    Thanks
    protected void executeQueryForCollection(Object Object, Object[] bindParams,
    int i) {
    String userId = ((ApplicationModuleImpl)getApplicationModule()).getUserPrincipalName();
    try{
    getLdapInfo(userId);
    catch(Exception e) {
    sLog.debug("executeQueryForCollection: Userid = " + userId);
    if (bindParams != null)
    for (int j = 0; j < bindParams.length; j++)
    Object[] bindParam = (Object[])bindParams[j];
    if ("p_user_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_user_id, setting value to " + userId);
    bindParam[1] = userId;
    if ("p_emp_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_emp_id, setting value to " + employeeNumber_from_LDAP);
    bindParam[1] = employeeNumber_from_LDAP;
    if ("p_std_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
    bindParam[1] = studentNumber_from_LDAP;
    super.executeQueryForCollection(Object, bindParams, i);
    Thanks
    Syed

  • Setting bind variable to a different value if its null

    Hi,
    I have a report page which displays a table. One of the parameters of the sql query that generates this table is an apex bind variable.
    I want the page to to run a different sql query depending on whether the bind variable is blank or not.
    How can I do this in Apex without having to do use a function?
    It would be good if I good reset the bind variable to another value (generated from a different sql statement) when the page loads.
    Thanks
    Edited by: sam on 17-Feb-2011 07:43

    Hi,
    Thanks, that's really helpful.
    I'm passing a value (:P1_VAR1) as null from page 1 to page 2. On page 2 I have a table with the first column showing primary keys that have links.
    When the user clicks on the link, it refreshes page 2 and sets the value on session :P1_VAR1 to the value of the primary key of the record clicked.
    However, the problem is that when the user goes from page 1 to page 2, I want the :P1_VAR1 to be initialised to the first primary key record from the first record on my table.
    I have a function that gets the id of the first record on my table but I don't know how to set the :P1_VAR1 to this value by modifying the item settings in APEX.
    Please can someone help and give me an example on how this is done?
    Thanks
    Edited by: sam on 17-Feb-2011 07:49

  • Can't set comboBox value that has valueMember / displayMember

    Hello All,
    I'm working on a project where I'm dynamically building a form according to a configuration schema. I'm pretty new at C# and got the following issue I can't get sorted out . 
    Any help, advise would be great !!!
    When building a ComboBox I can't set the value I want !!
    Probably I'm missing something.
    I've tried several methods but nothing does it ... below my code.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace ComboBoxSample
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    CreateComboBox();
    public void CreateComboBox(){
    //Working variables
    string valueMember = "idColumn";
    string displayMember = "valueColumn";
    //Create a panel and add to the form
    TableLayoutPanel tlp = new TableLayoutPanel();
    this.Controls.Add(tlp);
    //Create the data source
    DataTable dataTable = new DataTable();
    dataTable.Columns.Add(valueMember, typeof(string));
    dataTable.Columns.Add(displayMember, typeof(string));
    dataTable.Rows.Add("A", "value A");
    dataTable.Rows.Add("B", "value B");
    dataTable.Rows.Add("C", "value C");
    //Create a binding source
    BindingSource bindingSource = new BindingSource(dataTable, null);
    //Create a comboBox and bind the datasource
    ComboBox comboBox = new ComboBox();
    comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
    comboBox.DataSource = bindingSource;
    comboBox.ValueMember = valueMember;
    comboBox.DisplayMember = displayMember;
    Try and set the value
    //No methode displays B --> combo stays on A
    comboBox.SelectedValue = "B";
    //comboBox.Text = "value B";
    //comboBox.SelectedItem = comboBox.FindStringExact("value B");
    //add the controles to the panel
    tlp.Controls.Add(comboBox, 0, 0);

    Hi Viorel_,
    Thanks for the reply!!
    The  setting the value in the form's Load event does work!
    I agree for the form designer but it does not fit the need.
    What I have is a "meta-data" driven logic where I define a screen that matches database fields:
    Example : Screen new person has 5 fields : Gender (combobox) , first name (textbox) , last name (textbox) , type (combobox) ,birthday (datetime)
    I have a Form derived class that takes this definition and builds each control at run time.
    The definition also comes with potential default values (i.e. :type = client) so what I want to do is affect the value on the fly. This works fine with textbox or datetime. I'm trying to do the same for combobox.
    Maybe I got this all wrong from a design point of view.

  • How can I set my WebI filters to Null and not Null

    Folks,
    I have created a report in WebI and now I am to set up some filters as Null and some Not Null.
    How can I set my WebI filters to Null and not Null?
    Regards,
    Bashir Awan

    Hi,
    As you said you could do it at the report level and also at the universe level.
    One more way is to create the filters in the universe levele and add them in thequery filter.
    Ex: in the filter you need to write :
    Column1 is null and and column 2 is not null etc.
    Hope this will help.
    If this did't  solve your problem then please explain it in detail.
    Cheers,
    Ravichandra K

  • How can I set a value in a field before create when a New button is clicked

    Hi,
    I am using
    JDeveloper 10.1.3.1.0.3984 and
    JHeadstart 10.1.3.1 release 10.1.3.1.26
    I have one group and there is a detail group under that group.
    From main group to detail group there are 3 field relating those groups.
    field1
    field2
    fieldSEQ (auto-generated by database trigger)
    These 3 fields are PK.
    In the detail group, there is a New button. So, when the New button is clicked, it tries to create the record with those 3 fields value as those are coming from main group. As a result it's giving the duplicate error as that record already exists in the table.
    But I don't want to create the record with that SEQ as that will be created in the trigger.
    How can I set the SEQ temporarily any no. (-1) before create when the New button is clicked?
    Can anybody help?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hello Syad,
    What I would suggest is setting the sequence number at the creation of the entity object (so in the create() method) by using the database sequence. This way it will always be unique.
    So something like:
    protected void create(AttributeList AttributeList) {
    super.create(AttributeList);
    SequenceImpl sequence =
    new SequenceImpl("KCP_SEQ", getDBTransaction());
    setFieldSeq( sequence.getSequenceNumber());
    If this still does not solve it: please go to the ADF Forum since this problem is an ADF problem, not a JHeadstart problem.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team.

Maybe you are looking for

  • Error Report Service SCCM 2012 R2

    Hy Guys, I am having problem to generate reports in SCCM using the Report Service. Every report that will generate displays the error below. I am using SQL Server 2012 Sp1 to report Service. The User I'm using this with permission of SA in the instan

  • Disaster Recovery on XI server

    Hi experts, Sorry this question might be a bit like BASIS question. But i just try my luck here to see hv anyone of you have the experience on Disaster Recover (DR) on XI server? We know there is lot of product on ECC server DR, but I never heard of

  • Filter subtypes in distribution model

    Hi, we are using change pointers and the report RBDMIDOC to create Idoc HRMD_A from those change pointers, in order to send that data to an external payroll. We already filter some infotypes in the distribution model, but we want to filter some subty

  • I can't update apps as itunes doesn't accept my password on iphone 5

    I cannot update my apps because iTunes won't accept my password.

  • Can't validate Classik Studio Reverb from IKMultimedia in Logic 64bits Lion

    Hi, i try to use Classik Studio Reverb from IKMultimedia in Logic Pro with 12Gb. Logic will only validate the plugins in 32bit bridge mode. IKMultimedia say that everything's fine and the problem come from Logic. All other plugins work fine, even oth