Warning on a empty column

Hi
I have following requirement:
I have column called Promotional Limit on custom OA Page which is part of advanced table. User can enter the data in this form. I need show a warning if user does not enter value to this column. I'm not sure how I can achiev this.
I tried following:
i) I registered an event with this column, but it looks like this event is not getting fired when user is not entering any data (I realized that fireAction is getting fired whenever(/only when) the field value changes). Since user did not entered any data it did not fire. So, I could not use the code in Controller class.
ii) I tried to write a check in validateEntity() as below to throw a warning:
if (getPromotionalLimit()==null)
throw new OAException("LDMF","SP_PROMO_LIMITS_NOT_ENTERED", null, OAException.WARNING, null);
the above is showing the warning on the page but it should let the user to continue saving the data. It should not stop the user saving the data. Since I'm throwing this in validateEntity() method it is always sending the user back to the page.
So, I need warn the user that he did not enter value to the column, still he should be able to save the data if feels that is OK.
Any ideas?
Thanks
Prasad

Hi,
Or you can try making a Validation View Object (VVO) for the VO that populates the advancedTable, and check if the mapped value is empty there...
Hope it Helps!
Thiago

Similar Messages

  • Hiding empty columns in ALV

    Hi all,
    I want to hide some columns in ALV which are empty on display when calling
    cl_gui_alv_grid->set_table_for_first_display
    That is to say the internaltable will contain empty columns.
    I know that using the "no_out" attribute of field catalog we can hide columns.
    But the question is how to find these columns which are empty - should I have to loop through the itab to find it out OR
    Can we set it in ALV LAYOUT or field catalog attributes so that it wont display empty columns.
    any help is appreciated....
    Thanks
    P
    Edited by: pazzuzu on Mar 12, 2010 5:14 PM

    Hi,
    If i understood your question correctly,
    The you can try this
    TYPE-POOLS:slis,abap.
    TYPES:BEGIN OF ty,
          f1 TYPE c,
          f2 TYPE c,
          f3 TYPE c,
          f4 TYPE c,
          END OF ty.
    DATA:it TYPE TABLE OF ty,
         wa TYPE ty,
         wa_field TYPE slis_fieldcat_alv,
         i_fieldcat TYPE TABLE OF slis_fieldcat_alv,
         i_details TYPE abap_compdescr_tab,
         wa_comp TYPE abap_compdescr,
         ref_descr TYPE REF TO cl_abap_structdescr,
         lv_field TYPE abap_compname.
    FIELD-SYMBOLS:<fs>,
                  <fs1>.
    ref_descr ?= cl_abap_typedescr=>describe_by_data( wa ).
    i_details[] = ref_descr->components[].
    wa-f1 = 'A'.
    wa-f3 = 'C'.
    APPEND wa TO it.
    wa-f1 = 'X'.
    wa-f3 = 'Y'.
    APPEND wa TO it.
    if it[] is not initial.
    LOOP AT i_details INTO wa_comp.
      ASSIGN wa_comp-name TO <fs>.
      SORT it BY (<fs>) DESCENDING.
      CONCATENATE 'WA' '-' <fs> INTO lv_field .
      ASSIGN (lv_field) TO <fs1>.
        READ TABLE it INTO wa INDEX 1 transporting (<fs>).
      IF sy-subrc = 0 AND <fs1> IS NOT INITIAL.
        wa_field-fieldname = wa_comp-name.
        wa_field-seltext_m = wa_comp-name.
        APPEND wa_field TO i_fieldcat.
      ENDIF.
    ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
        it_fieldcat        = i_fieldcat[]
      TABLES
        t_outtab           = it[].
    endif.

  • How do I write an excel file and check what the next empty column would be to put the data in?

    I have somehow managed to write the portion of labview that prompts the user for a name. It checks a file to see if they are a new user or not and then assigns a number if they are. The program then acquires data that is to be put into a spreadsheet. Each subject will have ten trials which will have three columns. How do I get the information into the columns and then check each time to see which column it should go into (i.e. the next empty column for that subject). I have attached what I have thus far. I wrote this a long time ago and haven't touched it for some time so everything is a blur.
    Attachments:
    promptForSwimmerName.vi ‏76 KB
    Swimmers.dat ‏1 KB
    Main__dummy.vi ‏28 KB

    To perform those operations in excel you will use ActiveX. I will attach some examples of using Excel in LabVIEW and you can use these to do exactly what you want.
    These three examples show how to manipulate properties, write to excel and read from excel. Let me know if there is more I can do.
    Allan S.
    Applications Engineering
    National Instruments
    Attachments:
    BorderExample.vi ‏102 KB
    ActiveX_write_Rows_To_Excel2000.vi ‏90 KB
    ReadExample.vi ‏80 KB

  • Warning: Leaving out empty argument '-windowtitle'

    When I generated a javaDoc for my project I received the following
    Warning: Leaving out empty argument '-windowtitle'
    Could someone please explain to me what is that warning and how to fix it?
    Thanks in advance

    I too am generating my javadoc files from Netbeans and I get the same message. However, my javadoc is generated fine, so my advice is not to worry about it!
    The documentation says:
    -windowtitle
    Specifies the title to be placed in the HTML <title> tag. This appears in the window title and in any browser bookmarks (favorite places) that someone creates for this page. This title should not contain any HTML tags, as the browser will not properly interpret them. Any internal quotation marks within title may have to be escaped. If -windowtitle is omitted, the Javadoc tool uses the value of -doctitle for this option.

  • How to get two empty columns in reporting?

    Hi Experts,
    How to get Two empty columns in  a report, i have taken a formula and i have given '=0' in the formula box after executing the query that two columns containing zero's, but i don't want zero's, i want to display empty columns.
    pl help to do this,
    thanks & regards
    venakt

    Hi
    In the Query designer go to Properties and Select Active n Zero Supression
    also select Supress Zeros from the drop down.
    Regards
    M.A

  • Creating an empty column in a query

    Is there a way to place an empty column in  a query? I would like to put acolumn with no information into the middle of a query. The reason is that the information that goes in that column is not available on any tables in my SQL databases.
    SELECT
    hier.dir_name 
    ,hier.am_name 
    ,hier.fm_name     INSERT BLANK COLUMN HERE
    ,hier.tech_name
    hier.tech_id

    Hi
    "no information" in database is usually NULL value. Is this what you are looking for?
    SELECT
    hier.dir_name
    ,hier.am_name
    ,NULL as fm_name
    --,hier.fm_name INSERT BLANK COLUMN HERE
    ,hier.tech_name
    hier.tech_id
    [Personal Site] [Blog] [Facebook]

  • ORA-24347: Warning of a NULL column in an aggregate function

    The following query works fine, normally.
    select max(ship_date) Ship_date,msn.attribute7 from
         mtl_serial_numbers msn,
         mtl_item_categories mic,
         mtl_categories mc
                   where      msn.inventory_item_id = mic.inventory_item_id and
                   mic.category_id=mc.category_id and
                   mic.category_set_id=1 and
              mc.segment1 in ('ILMI','ILM','ILMI-UNT')
              Group by msn.attribute7
    But when I include the same query inside a SQL report it gives me the Following error message
    ORA-24347: Warning of a NULL column in an aggregate function
    Help me out.

    I tried out with some Dummy Date, it worked fine.
    But the problem I am facing here is I cannot assume
    any Date for the corresponding column. Whether there
    is any other possibility to avoid this problem without
    giving any dummy date?
    thanks,
    chandru

  • How to load empty column from flatfiles to tables in oracle using aql*loade

    HI,,
    i am trying to load data from flat files to oracle tables using sql*loader. i got empty column to load. while i am trying it is throwing an error as null colums canot load...
    plz help me with this...
    Thanks in adavnce..

    I believe you need to use 'trailing nullcols' as a parameter in your sql loader command.
    See example below:
    LOAD DATA
    INFILE *
    INTO TABLE load_delimited_data
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (  data1,
        data2
    BEGINDATA
    11111,AAAAAAAAAA
    22222,"A,B,C,D,"
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hide empty column

    hello,
    I am looking for the easiest way to hide empty columns in
    'REUSE_ALV_GRID_DISPLAY'.
    I know i can work my way through the field catalog.
    I am just curious if there is a parameter that helps me to achieve this goal.
    thank you!
    Werner

    Hi,  you need to handle this manually when building your field catalog.  For example.
    data: is_not_initial type c.
    is_not_initial = space.
    loop at itab where not fld1 is initial..
         is_not_initial = 'X'. 
         exit.
    endloop.
    if is_not_initial = space.
      fc-no_out = 'X'.
    endif.
    Regards,
    Rich Heilman

  • Hide or Delete Empty columns in dynamic internal table

    Hi,
                                I am having an dynamic internal table which contains more than 100 columns.
             I need to delete empty column from that table, can any one help this.

    Hello,
    If you are talking about ALV then you can just the the table for empty columns before populating fieldcataloge and hide the columns.
    If your query is still not answered please provide a detail requirement.

  • Don't get result when I put empty column in addition

    Hi all !
    I've got some difficulty to get a total when I put empty column of a table in an addition in my sql query. All the data type are the same.
    Some one can help me with that please
    Thanks in advance
    Eric

    Thanks Richard.  My 5.1 mixdown type is Front+Rear+LFE.  I can see why I may not hear a center channel solo as my 5.1 amp does not have HDMI inputs and the MAtrox Mini Max only offers HDMI audio out or RCA 2 channel stereo out (which is what I have to use).
    However, with the meter levels showing plenty of audio in the center channel, I thought I'd at least hear it in the finished Blu Ray.  Could it be some setting in Surcode?  I basically get 4.1 with all speakers except the center giving sound.  If I put my ear up to the center channel I can hear slightly some sound.  My other home theatre system does the same.  I can find very little info on this from surcode manuals and they haven't responded to my emails.
    I have 6 stereo tracks I created from the original audio using Audition and imported them into Premiere and set the master to 5.1 with the 6 channels as standard.  The 5.1 mappings for channel assignments (device mappings for the Matrox player) match the rest of the sequence.
    Are you familiar with surcode?  Like I say I can hear the LS and RS, L&R, and LFE perfectly in the authored BD-RE (and it sounds wonderful even without the center channel), but I get nothing (or next to nothing) out of the center channel.  I have some future projects coming up where this would not be acceptable.
    I am a long time NLE editor going back to the 90s, but those were all DVDs and this is my first Blu-Ray and Surround sound project.
    Any more helpful suggestions?  It is much appreciated.
    Thanks
    Steve

  • Is it possible to have an empty column title in a configTable?

    Hi all,
    is it possible to have an empty column title within a configurable table (chtmlb:configTable)? Whenever I change the title with the config tool to empty and save the changes it seems that it doesn't take effect.
    The problem is that the column width is too less to display the whole text and I don't want to have "A..." displayed there.
    Best regards
    Ben

    Hi,
    Not possible directly but possible programatically.
    The Column titles come from the data-element description. To override this, you will need to change the data element nd its fairly simple. Create a data element similar to the std. data element domain but put your description and then in GET_M method of that attribute, use this Z data type.
    For example, suppose its searhc result Displaying addresses in a table view, then for states, you get name as "Region".
    In most of asian countires, instead of region, "state" this word is used. So if i want to disply the colum header as states and not region,
    1) i will find which is the doain of std. region field.
    2) i will create a data element with this domain but i will give different description to my data element, This description would be States
    3) In the GET_M method of that particular column attribute, i will change the type to my data element.
    an i am done.
    Thus you can create your data element with shorten and more meaningful text . I think system does not allow you to save a data element or domain w/o a description hence i doubt if blank will be possible..need to check it out.
    Hope this helps
    Thanks & Regards,
    Suchita

  • Query on MultiProvider by ignoring empty columns

    Hi Experts,
    I have a MultiProvider which contains 2 InfoCubes. InfoCube 1 (IC 1) contains Transport Request (TR) Status information, IC 2 contains Transport Request Object List information. Both ICs are related by the TR IDs. Not every TR has a Object List (better: Objects). Therefore, in IC 1 TRs exist that are not listed in IC 2.
    This leads to empty columns in the MultiProvider due to the union operation which is processed on both ICs. In particular the object related columns (object name, type, etc) are empty, if the TR does have a status information but at the same time without having any object listing, e. g. :
    TR ID - Status - Object Name - Object Type
    T123 - Successfull - # - #
    (# = Empty)
    When executing a query on this MultiProvider which counts the number of Objects I get the correct result, when NOT reporting on the TR ID level. However, if I execute a query which counts the number of Objects per Transport Request (TR ID), I get at least a "1" for EVERY transport request even if there does not exist ANY object within that TR ID (see example above).
    So my question: is there any way to ignore TR IDs when no object information exist for this Transport Request? Thus, the query would only report an object count > 0 if at least one object is associated to a certain TR ID.
    Many thanks for your help!
    Best regards
    Tobias

    I chose
    Exception Agg: Counter for All Detailed Values That Are Not Zero, NUll, or Error
    Ref Char: Object Name
    Activated Calc after Aggr.
    Did not change anything. I still get a table which shows the TR ID (eg T123), Object Name (Empty = #) and Object Count = 1
    I don't get why empty cells are part of the calculation even if the excep. aggr. is configured as described above...
    Any further ideas on that?
    Many thanks!

  • How to select rows with Empty Column Entry

    I am trying to select all rows with an empty column
    select row1 from table where row2=' ';
    Any suggestions. I tried a space and no space in between the ''.

    An (theoretical) argument could be made that an empty string is not NULL (uknown), however Oracle's SQL and PL/SQL engines make no such distinction for VARCHAR2 and CHAR data types. As stated, you must use NULL as the comparison.
    Michael

  • Find out varchar2 string NULL columns and Empty columns

    Hi dev's ,
    my requiremnt is to find out the string columns Names of whose storing NULL values and EMPTY strings. for that i had written below code. it's getting some error.
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    spool D:\stringnull.csv
    DECLARE
      v_tab_indent NUMBER(5);
      v_col_indent NUMBER(5);
      v_val1       VARCHAR2(20);
      v_val2       VARCHAR2(20);
      v_query1     VARCHAR(500);
      v_query2     VARCHAR(500);
    BEGIN
      --DBMS_OUTPUT.ENABLE(100000);
      SELECT MAX(LENGTH(table_name))+1,MAX(LENGTH(column_name))    +1
      INTO v_tab_indent,v_col_indent
      FROM user_tab_columns
      WHERE data_type='VARCHAR2';
    FOR i IN
      (SELECT table_name,
        column_name
      FROM user_tab_columns
      WHERE data_type IN ('NVARCHAR2', 'CHAR', 'NCHAR', 'VARCHAR2')
      ORDER BY table_name,
        column_name
      LOOP
        v_query1:='SELECT NVL('||i.column_name||',0) AS VAL    
                  FROM '||i.table_name||' where '||i.column_name||' IS NULL';
        v_query2:='SELECT '||i.column_name||' AS VAL    
                  FROM '||i.table_name||' where '||i.column_name||'=''''';
        --dbms_output.put_line(v_query1);
       -- dbms_output.put_line(v_query2);
        EXECUTE immediate v_query1 INTO v_val1;
        EXECUTE immediate v_query2 INTO v_val2;
        dbms_output.put_line (rpad(i.table_name,v_tab_indent,' ')||','||rpad(i.column_name,v_col_indent,' ')||' ,'||v_val1||','||v_val2);
      END LOOP;
    END;
    Spool OFF
    Set echo on
    Set feedback onERROR:
    Error report:
    ORA-01403: no data found
    ORA-06512: at line 31
    01403. 00000 -  "no data found"
    *Cause:   
    *Action:
    set feedback onpls help me on this issue..
    Thanks,

    Example:
    SQL> DECLARE
      2    v_val       VARCHAR2(20);
      3    v_query1     VARCHAR(32767);
      4  BEGIN
      5   FOR i IN (SELECT table_name, column_name FROM user_tab_columns
      6             WHERE data_type IN ('NVARCHAR2', 'CHAR', 'NCHAR', 'VARCHAR2')
      7             ORDER BY table_name, column_name
      8            )
      9   LOOP
    10     v_query1 := 'SELECT count(*) FROM '||i.table_name||' where '||i.column_name||' IS NULL';
    11     EXECUTE immediate v_query1 INTO v_val;
    12     dbms_output.put_line(rpad(i.table_name,30,' ')||' : '||rpad(i.column_name,30,' ')||' : '||v_val);
    13   END LOOP;
    14  END;
    15  /
    CHILD_TAB                      : DESCRIPTION                    : 0
    DEPT                           : DNAME                          : 0
    DEPT                           : LOC                            : 0
    EMP                            : ENAME                          : 0
    EMP                            : JOB                            : 0
    MYEMP_OLD                      : ENAME                          : 0
    MYEMP_OLD                      : JOB                            : 0
    MYNULLS                        : ENAME                          : 0
    MYNULLS                        : JOB                            : 4
    PARENT_TAB                     : DESCRIPTION                    : 0
    T                              : CHAR_VALUE                     : 0
    TABLE1                         : COL1_DESC                      : 0
    PL/SQL procedure successfully completed.

Maybe you are looking for