ADF Faces w/ADF BC: Bug(?) w/null values in drop down list in find mode

Using JDev 10.1.3.0.4.
I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria.
One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Editor is set to "Selection Required".
When editing a record, this list does not have an empty item. When the user enters find mode, the list has an empty item in the list - which makes sense since the user might not want to search on a value in that particular field.
However, if the user enters find mode, selects an item from the list, executes the query (Execute action), and enters find mode again then the empty item no longer shows up in the list. Is this a bug?
(Note - there is an easy workaround - if you delete and create in find mode, then the new critieria record has the list fixed with an empty item in it.)

Using JDev 10.1.3.0.4.
I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria.
One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Editor is set to "Selection Required".
When editing a record, this list does not have an empty item. When the user enters find mode, the list has an empty item in the list - which makes sense since the user might not want to search on a value in that particular field.
However, if the user enters find mode, selects an item from the list, executes the query (Execute action), and enters find mode again then the empty item no longer shows up in the list. Is this a bug?
(Note - there is an easy workaround - if you delete and create in find mode, then the new critieria record has the list fixed with an empty item in it.)

Similar Messages

  • Problem in sending drop down list value to jsp page showing  null value

    i am trying to send a drop down list value from client side to a jsp page but getting null value
    this is first page where i have accessed data from database and putted it in a drop down list
    <select name="sub">
         <%
         while(rs2.next())
         cat=rs2.getString(1);
         %><option value="<%=cat%>"><%=cat%></option><%
         }%></select>
    <input type="submit" value="Go"></input>
    now on submit i am going to another page
    where i want the selected value from drop down list to be printed
    i have used there
    <%
    String subject= request.getParameter( "sub.value" );
    out.println(subject);
    %>
    but it is printing null here what is the problem that i m facing
    thanx & reagrds
    sweety

    how to generate dynamically names for text boxes
    i am generating text boxes in while loop when selecting data from database
    while(rs1.next())
    name=rs1.getString(1);%>
    <tr>
    <td>1</td>
    <td><%out.println(name);
    //i am printing here stud_id a unique key and want to update records from following text boxes to particular stud_id
    %></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    </tr><%
    the structure is like
    stud_id | attended theory | conducted theory | ateended practical | conducted practical
    where attended theory, conducted theory............. are to be inputed manually for all students and then update in database
    so i am facing problem in generating names for textboxes how to do that
    so that those can be updated in database for particular student
    Thanx & Regards
    sweety

  • Adf drop down list in adf  table

    hi all
    i m trying to create a data table that have a column on it as drop down list ,the list get the value good as bind variable passed to it and work good when create a new record but when i try to update the record
    always get this error
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: java.lang.ArrayIndexOutOfBoundsException
    oracle.jbo.JboException: JBO-29000: java.lang.ArrayIndexOutOfBoundsException
    and when i try to print the value of the list it print the index not the value
    when i change it(the drop down list) to lis of value LOV it didnt git any record in the LOV
    my code is :
    <af:column headerText="#{bindings.DeptLabView3.hints.CntPc.label}"
    id="c4">
    <af:selectOneChoice value="#{row.bindings.CntPc.inputValue}"
    label="#{row.bindings.CntPc.label}"
    required="#{bindings.DeptLabView3.hints.CntPc.mandatory}"
    shortDesc="#{bindings.DeptLabView3.hints.CntPc.tooltip}"
    id="soc3">
    <f:selectItems value="#{row.bindings.CntPc.items}"
    id="si4"/>
    </af:selectOneChoice>
    </af:column>
    please any one help
    Edited by: user554540 on 20/02/2010 08:50 ص

    Hi,
    I would like to use selectOneChoice in af:table, but i've got error: "java.lang.ArrayIndexOutOfBoundsException, msg=0"
    Can u send me an example for using selectOneChoice in af:table?
    Thanks,
    J.
    <af:column headerText="#{bindings.viewTsheets1.hints.ProjectId.label}"
    id="c8">
    <af:selectOneChoice value="#{row.bindings.ProjectId.inputValue}"
    label="#{row.bindings.ProjectId.label}"
    required="#{bindings.viewTsheets1.hints.ProjectId.mandatory}"
    shortDesc="#{bindings.viewTsheets1.hints.ProjectId.tooltip}"
    id="soc2">
    <f:selectItems value="#{row.bindings.ProjectId.items}"
    id="si2"/>
    </af:selectOneChoice>
    </af:column>
    -----------------------------------------------------------------------------------------------------------------------------------------------------------

  • Master detail form - drop down list in detail (ADF)

    Hi,
    Been racking our brains for a few days/weeks about this one, and would be grateful for any pointers why this does not work.
    We have developed an in-house application for dealing with risk and chemical assessments.
    The process we have adopted allows users to create an assessment first then they are taken to another form where they are then able to add risk factors/ or chemicals relating to the assessment. The intention is to present the user with the ability to select from a drop down list which contains the chemical names.
    We have been going through the forums and have tried all the examples we can find (all the examples work on our system), but when we try to adapt them to our approach they create an error indicating that they cannot find the values in the entity object.
    Has anyone else come across the same problem or is it that the ADF is not suited to dealing with the master/detail approach and drop down menus.
    The drop down lists are in an ADF table.
    Thanks in advance
    Andrew

    Hi Kuba,
    Thanks for the pointer, I think we tried that one early on. For the time being we have opted for using a selectInputText box, and that appears to be working. Well at least it has got us past the deadline for yesterday, now onto the next deadline.
    Thanks again!
    Andrew

  • BUG: Sorting drop-down lists from the field tab when using "specify item values"

    Hi all,
    I've finished creating my form now, but I came across this whilst writing up my documentation for maintenance tasks.
    This occurs when adding new values to a drop-down list that has the "Specify item values" checkbox in the binding tab checked.
    When I then try to sort my list using the built in sort buttons, it will sort the items, but the list of specified values in the binding tab does not sort reorder to stay with the original items in the list.  This is hapenning when I sort from the Object > Field tab.  If I sort in the Object > Binding tab then the sort will include the specified values.
    For example:
    A    5
    C    2
    D    9
    Add a new value to get:
    A    5
    C    2
    D    9
    B    10
    Sort the list using the button:
    A    5
    B    2
    C    9
    D    10
    But it should be:
    A     5
    B     10
    C     2
    D     9

    I was able to duplicate this problem and it looks like a possible bug.  I've submitted it to support.

  • Adding a *Not* Null Entry to a Data-Bound Drop Down List

    How do I add a not null entry to a data-bound drop down list? I am supposed to have something like this:
    <html:select property="Korisnik1" >
    <html:option value="0000">
         (Not null value)
    </html:option>
    <html:option value="-1">
    (Null value)
    </html:option>
    <html:optionsCollection label="prompt" value="index" property="Korisnik1.displayData" />
    </html:select >
    In case the value 0000 is marked the value should be inserted in to the database. The code above displays the value but insert doesn't work.

    I think that in this case that article is not what's required Shay as the question related to a "No Null" entry. The answer would be to add it into the list that is used to populate the list in the first place - generally by adding a "union select from dual" to the query that generates the list values.

  • Disable ADF Client and Server side validation during drop down changes

    In my ADF Faces there is PanelFormLayout containing dropdown with country code value. Changing the dropdown value should change the layout to different country.
    If the data is proper in the form the Layout changes perfectly but if the data is not proper it gives client validation & the layout doesn't get changed.
    I want to disable the client/server side validation while changing the dropdown.

    Hi Just framing the Question once again -
    In my ADF Faces there is PanelFormLayout containing dropdown with country code value. Changing the dropdown value should change the layout to different country.
    If the data is proper in the form, the Layout changes perfectly but if the data is not proper it gives client validation & the layout doesn't get changed.
    I want to disable the client side validation just for that page or panelformLayout
    Issue -
    If the data is incorrect on the form, user is able to change the countrycode from the dropdown but the layout doesn't changes because client validation is stopping.
    Below is the code -
    1) Changing the drop down cause the switcher to call the code - defaultFacet="#{backingBeanScope.AddressComp.displayType}" which changes the layout.
    2) But if the data is not correct the country value is getting change with the new Country but the Layout is unable to get change. ADF start showing client validation.
    <af:panelGroupLayout id="pglA1" partialTriggers="plcol1:table1 *usCountryId caCountryId*">
         <af:switcher binding="#{backingBeanScope.AddressComp.switcherComp}" defaultFacet="*#{backingBeanScope.AddressComp.displayType}*">
              <f:facet name="US">
                   <af:panelFormLayout>
                        <af:selectOneChoice value="#{bindings.CntryCd.inputValue}" label="#{bindings.CntryCd.label}" required="#{bindings.CntryCd.hints.mandatory}"
         id="usCountryId" autoSubmit="*true*">
                        <f:selectItems value="#{bindings.CntryCd.items}" id="si14"/>
                   </af:selectOneChoice>
                   </af:panelFormLayout>
              </f:facet>
              <f:facet name="CA">
                        <af:panelFormLayout>
                        <af:selectOneChoice value="#{bindings.CntryCd.inputValue}" label="#{bindings.CntryCd.label}" required="#{bindings.CntryCd.hints.mandatory}"
         id="caCountryId" autoSubmit="true">
                        <f:selectItems value="#{bindings.CntryCd.items}" id="si14"/>
                   </af:selectOneChoice>
              </af:panelFormLayout>
              </f:facet>
         </af:switcher>
    </af:panelGroupLayout>

  • Hide Null Value in Drill Down KPI

    Dear Sir,
    I have Problem : i want to Hide the Null Value in SSM KPI. This is the link picture ( http://tinypic.com/r/aak9r6/5 ).
    Thanks for your answer.

    Por,
    Can't remember if you are on 7.5 or 10. On 7.5 , go to Administrator interface Scorecards > Set Scorecard Defaults > select the Context from the picklist and in the middle of the page KPIs - Set Missing or Null Data. The default is Display KPI, hide indicators, but you can also choose Hide KPI.
    In SSM 10 this same function is under Context Management > Scorecard Defaults. Contexts are listed in box instead of picklist.
    Regards,
    Bob

  • Selection Screen Bug :: Drop Down List.

    Hi
    I have created the following ABAP Report. I am new at this and I have just hit an issue. I have two drop down boxes linked to transactions. Now when I select a report from Drop Down 1 and click it it goes to the transaction. Now if I also have a selection in Drop Down 2 it actually runs both transactions.
    How can i fix this?
    Thanks
    Adeel
    REPORT TEST.
    *TYPE POOLS DECLARATIONS
    TYPE-POOLS: vrm.
    TABLES: sscrfields.
    *SELECTION SCREEN FIELDS
    *DATA: c(20) TYPE c.
    ***********SELECTION-SCREENS**********************
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.
    PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.
    PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.
    * ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK blk1.
    *********DROP DOWN SELECTION WITH DESCP******************
    AT SELECTION-SCREEN OUTPUT.
    PERFORM ONE.
    PERFORM TWO.
    *&      Form  ONE
    *       text
    FORM one.
      DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
      name = 'ONE'.
      value-key = '1 ::'.
      value-text = 'Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2 ::'.
      value-text = 'Open Sales Order Report'.
      APPEND value TO list.
      CLEAR value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    "ONE
    *&      Form  TWO
    *       text
    FORM two.
      DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
      name = 'TWO'.
      value-key = '1 ::'.
      value-text = 'AS Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2 ::'.
      value-text = 'AS Open Sales Order Report'.
      APPEND value TO list.
      clear value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    "TWO
    ***********LINKS TO ABOVE SELECTION**********************
    START-OF-SELECTION.
    IF ONE = '&IC1'.
      CASE one.
        WHEN '1 ::'.
          CALL TRANSACTION 'MB5L' AND SKIP FIRST SCREEN.
        WHEN '2 ::'.
          CALL TRANSACTION 'ZSOD'.
      ENDCASE.
    ENDIF.
    IF TWO = '&IC1'.
      CASE two.
        WHEN '1 ::'.
          CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
        WHEN '2 ::'.
          CALL TRANSACTION 'ZSOD'.
      ENDCASE.
    ENDIF.

    Hi Now try this one,.
    *TYPE POOLS DECLARATIONS
    TYPE-POOLS: vrm.
    TABLES: sscrfields.
    *SELECTION SCREEN FIELDS *
    DATA: c(20) TYPE c.
    **********SELECTION-SCREENS*********************
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.
    PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.
    PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.
    ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"
    SELECTION-SCREEN SKIP. SELECTION-SCREEN END OF BLOCK blk1.
    ********DROP DOWN SELECTION WITH DESCP*****************
    AT SELECTION-SCREEN OUTPUT.
      PERFORM one.
      PERFORM two.
    *& Form ONE
    text ----------------------------------------------------------------------
    FORM one.
      DATA: name TYPE vrm_id,
            list TYPE vrm_values,
            value LIKE LINE OF list.
      name = 'ONE'.
      value-key = '1'.
      value-text = 'Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2'.
      value-text = 'Open Sales Order Report'.
      APPEND value TO list.
      CLEAR value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM. "ONE
    *& Form TWO
    text ----------------------------------------------------------------------
    FORM two.
      DATA: name TYPE vrm_id,
            list TYPE vrm_values,
            value LIKE LINE OF list.
      name = 'TWO'.
      value-key = '1'.
      value-text = 'AS Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2'.
      value-text = 'AS Open Sales Order Report'.
      APPEND value TO list.
      CLEAR value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.      "TWO
    **********LINKS TO ABOVE SELECTION*********************
    START-OF-SELECTION.
      CASE one.
        WHEN '1'.
          CALL TRANSACTION 'MB5L'AND SKIP FIRST SCREEN.
        WHEN '2'.
          CALL TRANSACTION 'MM01'.
      ENDCASE.
      CASE two.
        WHEN '1'.
          CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
        WHEN '2'.
          CALL TRANSACTION 'MM01'.
      ENDCASE.
    Give the 1:: as 1 and 2:: as 2 it will work...
    Regards,
    Bharani
    Edited by: SeethaRamaiah Bharani on Dec 18, 2009 8:10 PM

  • Is there a bug in the  score layout drop-down?

    I have a project with 6 software instrument tracks, each  track is one region. When I select all tracks and try using the score editors drop down Layout option"create score from selection" I never get the top most track in the score.. I have tried creating a new score set but it still leaves the top track out of the score. There are no hidden or muted regions and no MIDI data tracks. I am still in OS10.5.8 because I am watching other forums to see if pro users are moving up and all I see are big problems with 10.6, I may do what they are doing and change my MBP to 10.6 then 10.7 and see what works, but my main work is done on the iMac so I need to figure this out. Any help would be greatly appreciated. This happens also when I choose "All Instruments" score set-shouldn't that default show all the tracks?

    Thanks christiano and Jim, but that causes my 9.1.1 to change the position, length and pitch of 90% of the regions' notes. I have been repeating the same copy paste commands for 4 hours and now they seem slowly to begin to work[Jobs has left the building]. I did try before my original post the option dragging in the Arrange but as I wrote it causes too many mistakes, unless there are only a simple repeated series of a single note-THEN it decides to work.
    Any other ideas would be interesting but Apple should get the copy paste in the score going too.

  • ADF gear not dropping down to feed paper

    Can someone help me? My HP 1536 is not disengaging the top roller on my ADF sheet feeder. It won't drop down to feed the paper into the scanner. Please, any ideas on how to fix?

    Hi jskamm,
    I see by your post that the ADF roller isn't disengaging the top roller to feed the paper through.
    I can help you with this issue.
    I have provided a document to go through the steps to see if it will help resolve this issue.
    'Document feeder mispick' Message Displays on the Control Panel and the ADF Does Not Pick Up Paper o...
    If you're still receiving the same problem, it may be caused by Hardware, then please contact HP technical support for further assistance. Click here to find out: Contact HP Worldwide.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • ADF Databound Drop Down causes "invalid for working set view object"

    I've created a drop-down list per the instructions laid out in the "Creating a Databound Drop Down List in Oracle JDeveloper 10g" HowTo ( http://otn.oracle.com/products/jdev/tips/mills/databound_lists.html ). The list works fine when editing an existing row, but I get the following error when working with a newly created row:
    JBO-25048: Operation getAllRowsInRange is invalid for a working set view object.
    The drop-down list actually gets populated correctly despite the error. The error only occurs the first time I access the detail page that uses the list. I'm guessing that this may have something to do with the fact that the row value associated with with list is null.
    Any ideas on how to workaround this one? Thanks.

    Thanks Duncan.
    The ViewObject that is bound to the list is only used for the purposes of the list so there shouldn't be any problem with its state being altered elsewhere. Not sure if that's what you mean by collisions or not...
    I tried adding a "null/empty" value to the list but the results are the same.
    What is meant by "working set view object"? What other types of ViewObject are there? How are they different and how does someone know which operations are valid/invalid?

  • Component binding return null value

    I'm migrating a JSF 1.2 application to JSF 2.1, specificly I'm currently using mojorra 2.1.24.
    The application consists of request scoped beans, and in order to pass data between requests, it embeds the data inside UI components.
    The following behaviour works well with JSF 1.2, but not with JSF 2.1.
    The application has the following configuration:
    <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
    </context-param>
    The page contains the following snippet:
    <h:form prependId="false">
         <h:inputHidden binding="#{bean.inputHidden}" />
         <h:panelGroup rendered="#{bean.rendered}">
          <h:commandLink value="onAction" action="#{bean.onAction}" />
         </h:panelGroup>
    </h:form>
    The bean is the following:
    @ManagedBean
    @RequestScoped
    public class Bean {
      private UIInput inputHidden;
      private AItem item;
      public setInputHidden(UIInput inputHidden){
        this.inputHidden = inputHidden;
        if(item != null){ this.inputHidden.setValue(item); }
      public AItem getItem(){
        return (AItem) getInputHidden().getValue();
      // other getter/setter
      public String onNavToPage(AItem item){ this.item = item; return "page"; }
      public String onAction(){ //... do something return ""; }
      public boolean isRendered(){ return getProcessItem() != null; }
    The steps are the following:
    to navigate to page page the method bean.onNavToPage is invoked from within another page;
    upon page rendering the bean.item is set as bean.inputHidden value;
    after the page is diplayed, the command link is pressed.
    At this point no command link is invoked, because the bean.inputHidden.getValue() returns null, and the command link is not processed.
    I noticed that the inputHidden parameter passed to the setInputHidden method during restore view phase has, inputHidden.getValue() == null, no value has been saved previously in the view.
    I would guess that something has changed in the component state management, but debugging the JSF code I didn't find what.
    Debugging JSF code I found that the component state has been masked before the state has been saved in the view, so the ComponentStateHelper.saveState saves the deltaMap and not the defaultMap, where all the state has been put.
    public Object saveState(FacesContext context) {
            if (context == null) {
                throw new NullPointerException();
            if(component.initialStateMarked()) {
                return saveMap(context, deltaMap);
            else {
                return saveMap(context, defaultMap);
    is this a bug?
    If not, how can I restore JSF 1.2 behaviuor and save the defaultMap?
    Thanks in advance for the help.

    0.10: Saved session state: 6385226710016200 "P327_OU_NAME" changedValue="test"
    0.10: ...P327_FK_ORGUNIT session state saving same value: "%null%"
    0.15: Saved session state: 6388922235040486 "P327_OU_DESC" changedValue=""
    0.15: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.15: Branch point: BEFORE_COMPUTATION
    0.15: Computation point: AFTER_SUBMIT
    0.15: Perform Branching for Tab Requests
    0.15: Branch point: BEFORE_VALIDATION
    0.15: Perform validations:
    0.16: Branch point: BEFORE_PROCESSING
    0.16: Processing point: AFTER_SUBMIT
    0.16: ...PLSQL (AFTER_SUBMIT) INSERT INTO INDIT_PS_ORGUNIT ( OU_ID, FK_ORGUNIT, OU_NAME, OU_DESC ) VALUES ( INDIT_PASS_SEQ_GENERIC_ID.NEXTVAL, :P327_FK_ORGUNIT, :P327_OU_NAME, :P327_OU_DESC )
    0.16: Show ERROR page...
    0.17: Processing point: AFTER_ERROR_HEADER
    0.18: Processing point: BEFORE_ERROR_FOOTER
    ORA-01722: invalid number
    the table was created with:
    CREATE TABLE INDIT_PS_ORGUNIT (
    OU_ID NUMBER(15) PRIMARY KEY,
    FK_ORGUNIT NUMBER(15) NULL,
    OU_NAME VARCHAR2(30) NOT NULL,
    OU_DESC VARCHAR2(30) NULL,
    OU_DELETED DATE NULL
    what i see is that the status is "%null%" and not really "" (NULL, nothing, ...).
    so what can i do to insert a null value from a select list?
    i gave up RTFM. because i found nothing (NULL) ?!?!

  • Parameter with Null values

    Hi. I have a simple ssrs report with a parameter which is linked to a dataset. The parameter is a single selection dropdown list.
    The records in the database are Cars, with a column for Car Color. My drop down list contains a distinct set of colors based on the existing records.
    However - some Cars do not have a color set, they are Null. How do I configure my report to show a drop down list of colors and a Null/Not set option which would return records which have a Car Colour of Null?
    Thanks

    Make the query for parameter as
    SELECT 'Not Set' AS value,'Not Set' AS Label,0 AS Ord
    UNION ALL
    SELECT CarColor,CarColor,1
    FROM carTable
    ORDER BY Ord
    Then use value as value of parameter and Label for prompt.
    In the query behind for dataset used by report make where condition like
    WHERE COALESCE(CarColor,'Not Set') = @ParameterName
    AND ...
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Checking for null value in arraylist

    Hi
    i have an excel file which i i am reading into an arraylist row by row but not necesarrily that all columns in the row mite be filled. So how do i check for null values in the array list.
    try
                        int cellCount = 0;
                        int emptyRow = 0;
                        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
                        HSSFSheet sheet = workbook.getSheetAt(0);
                        Iterator rows = sheet.rowIterator(); 
                        myRow = new ArrayList();
                        int r = 1;
                             while (rows.hasNext())
                                  System.out.println("Row # " + r);
                                  HSSFRow row = (HSSFRow) rows.next();
                                  Iterator cells = row.cellIterator();          
                                  cellCount = 0;
                                  boolean isValid = false;
                                  while (cells.hasNext())
                                       HSSFCell cell = (HSSFCell) cells.next();
                                       switch (cell.getCellType())
                                            case HSSFCell.CELL_TYPE_NUMERIC:
                                                 double num = cell.getNumericCellValue();     
                                                 DecimalFormat pattern = new DecimalFormat("###,###,###,###");     
                                                 NumberFormat testNumberFormat = NumberFormat.getNumberInstance();
                                                 String mob = testNumberFormat.format(num);               
                                                 Number n = null;
                                                 try
                                                      n = pattern.parse(mob);
                                                 catch ( ParseException e )
                                                      e.printStackTrace();
                                                 System.out.println(n);
                                                 myRow.add(n);                                             
                                                 //myRow.add(String.valueOf(cell.getNumericCellValue()).trim());
                                                 //System.out.println("numeric: " +cell.getNumericCellValue());
                                                 break;
                                            case HSSFCell.CELL_TYPE_STRING:
                                                 myRow.add(cell.getStringCellValue().trim());
                                                 System.out.println("string: " + cell.getStringCellValue().trim());
                                                 break;
                                            case HSSFCell.CELL_TYPE_BLANK:
                                                 myRow.add(" ");
                                                 System.out.println("add empty:");
                                                 break;
                                       } // end switch
                                       cellCount++;
                                  } // end while                    
                                  r++;
                             }// end while
                   } myRow is the arrayList i am adding the cells of the excel file to. I have checked for blank spaces in my coding so please help with how to check for the black spaces that has been added to my arraylist.
    I have tried checking by looping through the ArrayList and then checking for null values like this
    if(myRow.get(i)!=null)
      // do something
    // i have tried this also
    if(myRow.get(i)!="")
    //do something
    }Edited by: nb123 on Feb 3, 2008 11:23 PM

    From your post I see you are using a 3rd party package to access the Excel SpreadSheets, you will have to look in your API for you 3rd party package and see if there is a method that will identify a blank row, if there is and it does not work, then you have to take that problem up with them. I know this is a pain, but it is the price we pay for 3rd party object use.
    In the mean time, you can make a workaround by checking every column in your row and seeing if it is null, or perhaps even better: check and see if the trimmed value of each cell has a lenth of 0.

Maybe you are looking for

  • IMac a little slow on start up

    my iMac is a little slow lately and that had never happened before. I am running OS X Yosemite  and I have 1.68 TB free of 2TB I do not think it should be slow. Slow when it has been sleeping and I come home and touch the pad and it takes a while for

  • File Sharing Issue 10.7.5 to 10.9.1

    I have a '06 Mac Pro running 10.7.5; and I have 2 laptops running 10.9.1. For some reason my file sharing does not work from my Mac Pro; before the upgrade even with Mountain Lion I I was able to connect to my Mac Pro. Now since upgrading to Maverick

  • I am using GarageBand on my iPad 3

    I am using GarageBand on all my devices (iPad 3, iMac - Lion 10.7- & iPhone 4). I produced a sond on my ipad3, saved it, renamed it and saved it again and now it won't open, share to iTunes, Facebook or iCloud. It just in "render" mode. I have plenty

  • How to upgrade my iPod software 1.2.1 to 2.1?

    Please let me know how I may upgrade my iPod software to version 2.1 . I intend to add an iTalk microphone accessory to my iPod. Many thanks for your help. A1099   Windows XP   iPod photo 30G (old??)

  • EBS performance problem 10g

    Hi, This an outpout of two hours awr report of EBS oracle version 10203. Its shows few ITL locks that should be fixed by increasing the size of the INITRANS to 20. Currently the INITRANS is set to 11. The FREELIST is set to 4 and also the FREELIST GR