How can I skip Null values from being part of sorting

Hi,
I am using ADF sorting for table, where i dont want to consider null values of that column when i do sorting . Now when I do ascending sort null values for that column are coming first and then the not null values are coming in ascending order.

User,
Always mention your JDev version.
Now when I do ascending sort null values for that column are coming first and then the not null values are coming in ascending order.
.. which is expected. How would you want it to be? You may probably want to have a custom sortListener for the table and try out. Ex : Custom sort function in ADF table
-Arun

Similar Messages

  • How can I delete null values from List Item?

    Hi Friends,
    I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
    How can I remove these null values from the List?
    Best regards,
    Shahzad

    Dear Shahzad,
    It can be removed by adding the following code in the When-new-Form-Instance.
    Set_item_property('List name', required, property_true);
    :block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
    Senthil Alagu .P.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    Everything that you have checked in your icloud settings will be shared between devices using the same Apple ID.  If you don't want icloud to share that information, then simply turn off that process under settings > icloud

  • How can i stop an email from being sent?  i cannot find an outbox in outlook

    How can I stop an email from being sent.  I cannot find an outbox in Outlook

    Outlook is a Microsoft product, I'd suggest posting on the Office for Mac Product Forums.

  • How can I get one value from local machine registry

    how can I get one value from local machine registry, I would like read one value of regitry. I have windows NT workstation. I need it to find the full path of iexplore.exe, this value is in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE'
    Thanks.

    You can use the D2KWUTIL.pll library to read/write to the registry. You have to install the forms examples to get the library.
    The library d2kwut32.dll must also be installed at the clients.

  • How can I stop my Apps from being automatically updated on my iPad2?

    How can I stopy my Apps from being automatically updated on my iPad2? I have an extremely slow wi-fi at work and my iPad Apps appear to be frozen as they are waiting to be updated. Help!

    In iTunes use the File menu "Transfer purchases from..." item. Ordinarily you will get a warning to do this before an update. Presumably your computer is authorized to use your account and it is the computer to which you normally sync your iPod?

  • How to avoid the null values from xml publisher.

    I am creating a report which have the claim numbers with the values CLA001,CLA111,null, null . when i preview my report it is showing some spaces for null values also. How can i avoid the spaces from the report.
    I am giving for loop for the claim numbers in the template.
    <?for-each:ROW?> <?sort:CLAIMNUMBER;'ascending';data-type='text'?>
    <?CLAIMNUMBER?>
    <?end for-each?>
    Please help me out to solve this problem.
    Thanks,
    vasanth.

    Hi Sheshu,
    According to your description, you are experiencing the null values and infinity values when browser the calculated measure, right?
    Based on my research, the issue is caused by that dividing a non-zero or non-null value by zero or null. In this cases, we need to check for division by zero to avoid this situation. Here is the sample query for you reference.
    IIF(
    Measures.[Measure B]=0,null,
    Measures.[Measure A] / Measures.[Measure B]
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How can I get command values from a VI executed by reference ? NEWBIE

    Hi,
    I'm running a sub-vi in a "Secondary Front Face" (excuse for the
    translation if not correct, I'm working on a French version). In order
    to run this VI, I pass a reference. All is working fine but I don't
    know how can I get the values entered by the user in this VI ?
    Actually I run a main VI wich contains a "Secondary Front Face" (this
    SFF is contained in a tabbed pane). In my diagramm, I pass a reference
    to another VI (by the name of the file *.vi). If my user enter a word
    in a text field, I would like to be able to get it in my main app.
    Thanks for your help.

    Hello,
    You might take a look at the following tutorial for more information about calling a VI by reference. It's got some great visuals and examples.
    Tutorial: Calling a VI by Reference
    You might also consider just calling the secondary VI as a simple subVI, if you can spare the memory space when loading the main application, as this is the easiest way to input and output VI values.
    I hope this helps! Please let me know if I can be of any further assistance.
    Liz F
    National Instruments

  • How can I disable a JInternalFrame from being "restored"?

    Sorry, I thought I should start a new thread for a new question.
    With my JInternalFrame, I have it minimized initially when it is created. Now, how can I prevent the user from opening or "restoring" that frame? Basically, I just want the "title" bar to appear, and disable the frame from opening up.
    thanks

    try this
    import java.awt.Dimension;
    import java.beans.PropertyVetoException;
    import javax.swing.JButton;
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.*;
    import java.beans.VetoableChangeListener;
    import javax.swing.event.InternalFrameAdapter;
    import javax.swing.event.InternalFrameEvent;
    import java.beans.PropertyChangeEvent;
    public class DesktopPane extends JDesktopPane
    implements VetoableChangeListener {
    JInternalFrame jif;
    JPanel p1;
    public DesktopPane() {
    p1 = new JPanel();
    JButton b = new JButton("Test");
    p1.add(b);
    jif = new JInternalFrame("test1", true, false, true, true);
    jif.getContentPane().add(p1);
    jif.setVisible(true);
    jif.setSize(new Dimension(200, 200));
    add(jif);
    jif.addVetoableChangeListener(this);
    try {
    jif.setIcon(true);
    } catch (Exception ex) {
    jif = new JInternalFrame("test2", true, false, true, true);
    jif.getContentPane().add(p1);
    jif.setVisible(true);
    jif.setSize(new Dimension(200, 200));
    add(jif);
    jif.addVetoableChangeListener(this);
    try {
    jif.setIcon(true);
    } catch (Exception ex) {
    public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException {
    String property = evt.getPropertyName();
    if (property.equals(JInternalFrame.IS_ICON_PROPERTY)){
    boolean isIcon = ((Boolean)evt.getNewValue()).booleanValue();
    if (!isIcon){
    throw new PropertyVetoException("message", evt);
    }

  • How can I get null values for the later weeks

    Hi All,
    When I execute this code I get the records till current week.
    How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
    Thanks,
    Vikram
    DECLARE
       v_query VARCHAR2(4000);
       TYPE ref_cursor IS REF CURSOR;
       v_refcur ref_cursor;
       v_sum NUMBER;
       v_id NUMBER;
       v_name VARCHAR2(1000);
       v_weeknum NUMBER;
       v_pernum NUMBER;
       v_numOfWeeks NUMBER := 5;
    BEGIN
    v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                              FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
                          FROM s_postn) postn_tbl
                          WHERE lvl_6_id = 5767
                          AND fiscal_year = 2008
                          AND b.week_num < 4
                          AND b.period_num = 3
                          AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
                          GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                          ORDER BY  postn_tbl.postn_name, b.week_num';
    OPEN v_refcur FOR v_query;
    LOOP
       FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
       EXIT WHEN v_refcur%notfound;
       dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
    END LOOP;
    END;
    This is the output when I execute this code.
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W2 COMM CNTRL TAM 216 12561.4
    P3W3 COMM CNTRL TAM 216 2027.1
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    This is the output I'd like to get
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W4 COMM CNTRL ISAM 213
    P3W5 COMM CNTRL ISAM 213
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W4 COMM CNTRL ISAM 273
    P3W5 COMM CNTRL ISAM 273
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W4 COMM CNTRL TAM 213
    P3W5 COMM CNTRL TAM 213
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W4 COMM CNTRL TAM 273
    P3W5 COMM CNTRL TAM 273
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    P3W4 Damon Walters
    P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PM

    Sure, in a Single SQL ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>-- Start Of Test Data --
    satyaki>with week_tab
      2  as
      3    (
      4      select 1 period_num, 1 week_num, 10 bkg1 from dual
      5      union all
      6      select 1, 2, 40 from dual
      7      union all
      8      select 1, 3, 30 from dual
      9      union all
    10      select 1, 2, 20 from dual
    11      union all
    12      select 1, 1, 10 from dual
    13      union all
    14      select 1, 1, 20 from dual
    15      union all
    16      select 1, 3, 10 from dual
    17      union all
    18      select 2, 1, 15 from dual
    19      union all
    20      select 2, 2, 20 from dual
    21      union all
    22      select 2, 3, 10 from dual
    23      union all
    24      select 2, 1, 15 from dual
    25      union all
    26      select 2, 2, 30 from dual
    27      union all
    28      select 2, 3, 20 from dual
    29    )
    30  -- End Of Test Data --
    31  select period_num,
    32         week_num,
    33         (
    34            select sum(week_tab.bkg1)
    35            from week_tab
    36            where period_num = m.period_num
    37            and   week_num   = m.week_num
    38            group by week_num, period_num
    39         ) sum_bkg1
    40  from (
    41        select dum.week_num,
    42              wk.period_num
    43        from (
    44                select 1 week_num from dual
    45                union all
    46                select 2 from dual
    47                union all
    48                select 3 from dual
    49                union all
    50                select 4 from dual
    51                union all
    52                select 5 from dual
    53              ) dum ,
    54              (
    55                select distinct period_num
    56                from week_tab
    57          ) wk
    58      ) m;
    PERIOD_NUM   WEEK_NUM   SUM_BKG1
             1          1         40
             1          2         60
             1          3         40
             1          4
             1          5
             2          1         30
             2          2         50
             2          3         30
             2          4
             2          5
    10 rows selected.
    Elapsed: 00:00:00.48
    satyaki>Regards.
    Satyaki De.

  • How can i pass NULL value in Store Procedure?

    Hi guys,
    I am calling one store procedure from MS SQL Server 200, i had create the follow layout:
    But i need pass to MSQL SEVER the CPF = NULL, when i execute the procedre the CPF send empty value (not null).
    I already changed Communication Channel parammeter "Interpretation of Empty String Values" to "Null Value" value.
    But the interface always send empty string instead of null.
    How can anybody help me, please?
    Edited by: João Noberto dos Santos Junior on Jun 24, 2009 5:00 PM

    Hi,
    To achieve this through "Interpretation of Empty String Value" in the cc, you will have to implement a patch which is sent to you by SAP when an OSS is raised. By default its not available, i mean you can configure it but it will actually not work.
    As a temporary solution you can map your element with a constant/mapwithdefault field with value mentioned as NULL.
    Regards,
    Anshul

  • F4IF_INT_TABLE_VALUE_REQUEST - how can I return all values from the line?

    Hi,
    I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values.  The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB.  ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
    How can I see all the values in the line I select in the return table?
    My code is as follows:
      DATA: tbl_cawnt LIKE cawnt OCCURS 0,
            wa_cawnt LIKE cawnt,
            BEGIN OF tbl_list OCCURS 0,
              atinn LIKE cawnt-atinn,
              atzhl LIKE cawnt-atzhl,
              atwtb LIKE cawnt-atwtb,
            END OF tbl_list,
            wa_list LIKE tbl_list,
            tbl_return LIKE ddshretval OCCURS 0,
            wa_return LIKE ddshretval,
            tbl_fields LIKE dfies OCCURS 0,
            tbl_dynp LIKE dselc OCCURS 0.
      REFRESH: tbl_list, tbl_cawnt.
      SELECT atinn atzhl atwtb
        FROM cawnt
        INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
        WHERE spras EQ sy-langu.
      LOOP AT tbl_cawnt INTO wa_cawnt.
        CLEAR wa_list.
        MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
              wa_cawnt-atinn TO wa_list-atinn,
              wa_cawnt-atzhl TO wa_list-atzhl.
        APPEND wa_list TO tbl_list.
      ENDLOOP.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ATWTB'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          value_org       = 'S'
        TABLES
          value_tab       = tbl_list
          return_tab      = tbl_return
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Thanks!

    Hi,
      Use the structure DYNPFLD_MAPPING
    With this internal table you can easily define that you want to return
    other columns of the hit list in addition to field RETFIELD to the
    screen.
    In this IT you can MAP the screen fields to the serch help screen fields this has three fields
    FLDNAME this is the field anme from the search help
    FLDINH This has to be blank which would be field with the field value that you want to map
    DYFLDNAME THis is the screen field name.
    So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
    Regards,
    Himanshu

  • How can i pass parameter values from html to a shell script

    Hi Guys...
    I had a requirement where i need to execute a sql statement and print the output in HTML page. This report has parameters to enter. So i created a HTML form which accepts parameters. When the submit button is pressed, the action tag in the form invokes unix shell script file. It will open sqlplus and run the sql script file .sql and print the output in the HTML page.
    sql script contains the query and some set options which prints the output in HTML page. Like "SET MARKUP HTML ON"... The query has some parameters like "select * from emp where empno = &&empnumber. I will use the same name "empnumber" while created the HTML parameter form like " <input type = "text" name="empnumber" size="10" align="left">.
    user sees this parameter form and enters some value in to that empno text box.
    My question is how can i catch these parameter values in a shell script and pass it to the sql script to execute it.
    Help Appreciated
    Thanx

    This is a A Bad Idea (tm). This type of CGI processing is old and were (and still is) full of security holes. Very easy to inject stuff (Unix commands and SQL) into it.. To get those parameters into SQL*Plus requires using Unix shell commands to process it - and something like a backquote allows all kinds of nasty stuff to be injected. The Unix shell was never designed to be used as a secure CGI environment.
    There are far better and far superior alternatives. Perl (with Perl_DBI) and PHP (using Zend Core for Oracle) come to mind as web scripting languages.
    Even easier is using HTMLDB. Very few moving parts. Is free. Supports Oracle 9.2 and 10G.

  • How can I stop sound track from being divided when adding clips to other tracks in PrE12?

    The situation:
    I have a project with several minutes of video clips on the timeline (expert view) in "Video 1/Audio 1."  There is also music on the sound track (below the empty "Narration" track).
    Any time I make an edit to the Video 1 track, PRE cuts the Sound Track.  (Note that this is not the Audio 1 track, it's the sound track which is two tracks away.)  If I insert a clip, the Sound Track is cut and left with a gap.  Same if I do a FreezeFrame insert.  This is bad enough (make ten insertions, have the Sound Track chopped into ten separate pieces), but it gets worse: when I try to slide the Sound Track pieces back together, the Video 1 clips will be moved around.
    This appears to be a major bug but I'm hoping there is a simple way to deal with it.
    Here's what the Manual (p.71) has to say about it (not much).
    "When you insert a clip into the Expert view timeline, adjacent clips on all tracks shift to accommodate the new clip. By shifting all clips together, the audio and video of the existing clips remain in sync."
    * The question here is, adjacent to what?  The Sound Track is a continuous music clip of many minutes; it is alone on the Track, and there is nothing on the track above it (Narration track).  So it's not adjacent to anything, and yet it is being chopped up.
    The Manual continues:
    "Sometimes, you don’t want all clips to shift with each insertion. For example, when you add background music that superimposes the entire movie, you don’t want clips to shift."
    *They got that right, but they don't say anything about how to prevent it.
    This next makes no sense at all:
    "To shift specific clips togather, press the Alt key as you insert.  At a time, you can shift specific clips simultaneously on a maximum of two tracks.  These include the track receiving the insertion and the track containing the linked audio or video (if any). The affected tracks shift together, remaining aligned. The clips on other tracks are unaffected."
    *There is no mention of how to specify what clips would be shifted, or not.
    I'm not dealing with linked clips.  And they tell me how to shift clips (sort of) but nothing about how to stop clips from being cut up and shifted.  This all makes it very hard to create a coordinated product.
    Any suggestions or solutions will be much appreciated.

    Thanks, ATR,
    I wll try this--but I still am unclear on how to do what the Manual says is possible: select clips on another track that WILL be moved, if I so desire, so as to remain synched to the main Video track.
    UPDATE:
    In the case of inserting Freeze Frame, I just tried both Ctrl method and Alt method, and neither worked.
    1. Put Video on Vid1 track
    2. Put Music on Sound Track
    3. Ran a few seconds of Vid
    4. Stopped Vid, selected Freeze Frame
    5. Held down Ctrl key while clicking "Insert in Movie"  also tried with holding down Alt key.
    Result: a 3 second still was inserted int the Vid1 track.  A corresponding gap was created in the Sound Track.
    6. Slid the final part of the Sound Track to the left along the timeline to re-connect it to the next segment created by the above process.
    Result: the video following the final Freeze Frame was pushed to the right end of  Video1 track.
    7. Slid the Sound Track all the way to the left.
    Result: the entire Video 1 Track contents were pushed to the right and divided in pieces.
    I documented each step with screen shots which I can send if you want them and if I can figure out how to do it.
    UPDATE #2
    In the case of inserting a video clip to the Timeline, I just tried both Ctrl method and Alt method, and neither worked.
    1. Locate video in Project Assets
    2a. R click video in Project Assets (pull-down menu appears), hold down Ctrl, click Insert to Timeline.
    Result: Vid clip is inserted on Video 1 track, Sound Track is separated with a corresponding gap.
    2b.  R click video in Project Assets (pull-down menu appears), push Alt
    Result: pull-down menu disappears as soon as Alt is pushed down.
    I can stil drag the Vid clip but it's one more manual step...I love shortcuts!!

Maybe you are looking for