Coloring the changed values  in a tabular form

Hi,
I have a tabular form (Sql query updatable report) which displays the data from table1, in this I need to color code the fields whose value is different from a similar column in table2. In simple how can I add color tag in the sql query. I tried using the below
select <&ltdiv style="background:red;color:red">||LAST_NAME||<&lt/div> LAST_NAME, first_name from table1
but it sets the div tag part as LAST_NAME input field's value.
Any suggestions please ?
Thanks,
Pourush
Edited by: Pourush Gopal on Apr 1, 2009 10:41 AM
Edited by: Pourush Gopal on Apr 1, 2009 10:41 AM
Edited by: Pourush Gopal on Apr 1, 2009 10:41 AM

Try this (with quotes around the div tags):
select '&lt;div style="background:red;color:red">'||LAST_NAME||'&lt;/div>' LAST_NAME, first_name from table1

Similar Messages

  • Issue with setting a default value to a Tabular Form field

    Hi -
    I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
    Thank you in advance for help!

    Share with us what worked in previous versions.
    Jeff

  • How to save the session states for a tabular form WITHOUT using check boxs?

    Greeting guys,
    As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
    My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
    Thanks in advance.
    Luc

    The following is the first collection solutin I've tried:
    htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
    for i in 1..p_row_num loop -- Loop on the whole form rows
    if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
    --If either of them has some input values, the row should be saved into the colleciton.
    then
    htmldb_collection.add_member(
    p_collection_name => 'TEMP_TABLE',
    p_c001 => htmldb_application.g_f01(i),
    p_c002 => htmldb_application.g_f03(i),
    p_c003 => htmldb_application.g_f04(i),
    p_c004 => htmldb_application.g_f05(i),
    p_c005 => htmldb_application.g_f06(i),
    p_c006 => htmldb_application.g_f08(i)
    end if;
    end loop;
    Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
    Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
    Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error.

  • Setting a Default Value within a Tabular Form

    Hi All,
    Using Apex 2.2.1
    Hoping someone can assist. I have the following two scenarios where I would like to set a default value to a column within a tabular form.
    Scenario One:
    Prior to actually displaying the tabular form on the page, I have a region on this page where I ask the user to select a Application No. first (using a Select List with Submit). Once this item, say P50_APP is set to a value, the Tabular Form region is then presented to the user by where I then allow them to enter certain information required using the 'Add Row' button. One of the columns within this tabular form also represents the Application No.
    My questions are:
    a) I have made the Application No. within the tabular form as a LOV, so when the user hits the 'Add Row' button, how can I set the initial value to P50_APP value using the 'Default Type and Default' items within the column?
    b) Since I am trying to achieve a master-detail type scenario here, if (a) above is not possible, if I hide the Application No. column within the tabular form, how can I set it to P50_APP when the user presses either the 'Add Row' or 'Submit' buttons?
    Scenario Two:
    Is it possible to pass a value from a tabular form, i.e a column within this tabular form on one page, to another tabular form column on a another page (when the user presses the 'Add Row' button) within the same application?
    For example, on page 50 I have the column #APP_NUMBER# passed onto page 60 which is another tabular form that also holds the same column name #APP_NUMBER# , so when the user on page 60 hits the 'Add Row' button, I would like the App Number column default to the one just passed over from page 50.
    Is this possible?
    Apologies if I am asking the same things in both scenarios - just want to make sure I understand MRUs.
    Thanks.
    Tony.

    Hi Andy,
    Thanks for getting back to me but I think you are referencing these default values in the wrong section.
    What I am actually trying to set is the value of a column within a tabular form to P50_APP and it seems to me that the only available options for setting default values on a tabular form column are by using:
    Default Type: which can be one of:
    No Default
    Item (application or page item name) or
    PL/SQL Expression or Function
    and then actual source is set against:
    Default:
    Unsure as to how to actually set the value of P50_APP which is in session to the individual tabular column mentioned above.
    FYI, I have tried selecting for Default Type: Item (application or page item name) and then specifying for Default:&P50_APP. as well as Default Type:PL/SQL Expression or Function and specifying for Default: :P50_APP but to no avail.
    Tony.

  • Function module to find out the changed values from tables

    What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?

    Hi Harish,
    Please elaborate your requirement...
    Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
    Try Below FMs as well..
    For Header Level...
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
        EXPORTING
          date_of_change    = cdhdr-udate
          objectclass       = cdhdr-objectclas
          objectid          = cdhdr-objectid
          time_of_change    = cdhdr-utime
          username          = cdhdr-username
        TABLES
          i_cdhdr           = icdhdr
        EXCEPTIONS
          no_position_found = 1
          OTHERS            = 2.
    For Item Level
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
          EXPORTING
            changenumber      = icdhdr-changenr
          IMPORTING
            header            = cdhdr
          TABLES
            editpos           = icdshw
          EXCEPTIONS
            no_position_found = 1
            OTHERS            = 2.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • ORA-06502 on "Help Text" region when changing pages on a tabular form

    Hello everybody,
    We are developing an application on Apex 4.1.0.00.32. This application have some pages with tabular forms and these pages uses a page zero as template. In this page zero, we have added two sidebar regions: a list region to navigate on the application and a help text to describe how to use our application.
    The problem occurs when the tabular split the records into pages (since it has more records that it can show on a single page). When the user clicks to change to another page, Apex raises an ORA-06502: PL/SQL: numeric or value error as described below:
    Erro ao renderizar a região "Ajuda". ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    Informações Técnicas (visível somente para desenvolvedores)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 2
    component.name: Ajuda
    error_backtrace:
    ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
    ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
    Obs: Our database is in Brazilian Portuguese, so I guess it will be hard for some people to understand the first two lines! :)
    We have tried to change the pagination style of the tabular form and change the region model of the help text but the problem still happens.
    Does anyone an ideia about what this may be?
    Thanks in advance!

    I am getting the exact same message, to the line number, also in APEX 4.1.0.0.32.
    Occurs when changing pages in a classic report, Standard region template, select list pagination, when selecting a different pagination set.
    In English:
    Error during rendering of region "Matched Participants Help & Hints".
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 2
    component.name: <strong>Matched Participants</strong> Help & Hints
    error_backtrace:
    ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
    ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
    There are no conditions on the region, and no date string within the Help text. Some HTML <strong> tags, that's it.
    The Help region renders fine the first time.
    The Debug info does not help any:
    3.798360.00062Computation point: After Box Body4
    0
    3.798990.00081Processes - point: AFTER_BOX_BODY4
    0
    3.799790.00068Region: <strong>Matched Participants</strong> Help & Hints4
    0
    3.800470.00213Region rendered dynamically because request was not null4
    0
    3.802590.00096Add error onto error stack4
    0
    3.803550.00084...Error data:4
    0
    3.804400.00084......message: Error during rendering of region "<strong>Matched Participants</strong> Help & Hints".4
    0
    3.805240.00084......additional_info: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
    0
    3.806080.00081......display_location: ON_ERROR_PAGE4
    0
    3.806890.00081......is_internal_error: true4
    0
    3.807700.00084......apex_error_code: APEX.REGION.UNHANDLED_ERROR4
    0
    3.808540.00082......ora_sqlcode: -65024
    0
    3.809350.00234......ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
    0
    3.811700.00082......error_backtrace: ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654 ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204 4
    0
    3.812510.00081......component.type: APEX_APPLICATION_PAGE_REGIONS4
    0
    3.813310.00110......component.id: 24
    0
    3.814420.00099......component.name: <strong>Matched Participants</strong> Help & Hints4
    0
    3.815400.00076...Show Error on Error Page4
    0
    3.816160.00344......Performing rollback4
    0
    3.819610.00225Processes - point: AFTER_ERROR_HEADER4
    0
    3.821850.00268Processes - point: BEFORE_ERROR_FOOTER4
    0
    3.82453-End Page Rendering
    Any thoughts on where to poke around for this one?
    Thanks - Karen

  • How to set a column value in a tabular form via button

    Hi All,
    I am using Apex 3.0.1. And to create the form I am using the APEX interface tool
    I have tabular updateable report. In the same page I have a LOV field where I can choose some possible results.
    I want to have a button so I can select a value in the LOV, take this value and populate the column value to the LOV value for all rows in the tabular form.
    The LOV and the buttons are done.. to update the column I tried creating a pl/sql that is executed when the button is pressed and has the following update in a loop for each element:
    begin
    for i in 1..APEX_APPLICATION.g_f01.count loop
    APEX_APPLICATION.G_F02(i) := :P1_MY_LOV_VALUE;
    end loop;
    commit;
    end;
    When I press the button, the page refreshes but nothing happens. I don't see any changes in the Values for the column I am trying to update
    Thanks

    Hi user477501,
    If you are doing this after a SUBMIT, then try updating your data table instead of the g_f02 array. When you page is re-rendered, it should re-query your data table.
    If you do not want to submit the page, then try your hand at JavaScript.
    A good reference for this is Mike Hichwa's article at:
    http://www.oracle.com/technology/oramag/oracle/06-nov/o66browser.html
    Be sure to download the example application, it is very helpful.
    I hope this helps.
    Patrick

  • Column value substitution in tabular form element attributes

    We started to discuss this at Re: Tabular form with Ajax
    I also mentioned this at Re: how to make only some rows editable in html db.
    but thought that this deserves its own thread.
    In Doug's sample Sudoku application in that thread, he uses #COLUMN# substitution in the Form Element Attributes and it works fine, but in my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:219 I used the same technique and no matter what I do, the #COLUMN# substitution is not expanded by the Apex engine.
    This is driving me nuts, any ideas why it works in one application but not in another?
    Thanks

    Hm, you might be right.
    I copied your row template and modified it at http://htmldb.oracle.com/pls/otn/f?p=24317:219
    The styling looks terrible, not sure why, the template is simply
    <tr>
    <td class="t10data">#EMPNO_DISPLAY#</td>
    <td class="t10data">#ENAME#</td>
    <td class="t10data">#JOB#</td>
    <td class="t10data">#MGR#</td>
    <td class="t10data">#HIREDATE#</td>
    <td class="t10data">#SAL#</td>
    <td class="t10data">#COMM#</td>
    <td class="t10data">#DEPTNO#</td>
    </tr>I had a lot of trouble getting this to work because the wizard generated tabular form appends 2 hidden fields containing the PK and the row-checksum to the last (editable?) field on each row. If the last editable field has #COL# substitution, it expands the substitution and forgets to close the INPUT tag thus causing malformed HTML (I think this is a bug in the rendering engine).
    The readonly condition is sal>1000 which now works. The SAL>1000 fields are now readonly.
    But now the update process is broken. If I enter a number in the first blank SAL field (empno=3641) and click Submit, I get no errors but the change is not saved. Wonder why.
    Hopefully, Scott (Spadafore) will take mercy on our amateurish experiments and give us some definitive answers soon!
    Thanks.

  • Using a custom PL/SQL to populate the primary key in a tabular form

    I want to use a Custom PL/SQL Function to populate the primary key when I insert a new record into a tabular form. I want to get the value from a hidden page Item. The code I am using for the primary key source is:
    BEGIN
    INSERT INTO TEAM_MEMBERS(TEAM_ID)
    VALUES(:P75_TEAM_ID);
    END;
    When I try to insert a new record I get the following error:
    Error      ERR-1904 Unable to compute item default: type = Function Body computation_type= BEGIN INSERT INTO TEAM_MEMBERS(TEAM_ID) VALUES(:P75_TEAM_ID); END; .
    ORA-06550: line 5, column 2: PLS-00103: Encountered the symbol ";" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "exit" was substit
    Any ideas what I am doing wrong?
    Thanks!

    Brian - Sometimes whitespace at the end of the block causes this. Be sure to trim everything after the last semicolon including tabs and newlines.
    Scott

  • Allowing the user to sort a tabular form

    Dear Experts,
    I have several tabular forms that I want my user to be able to sort on a some of the column in the form at well, I thought of creating some buttons on the top of each of the columns and when they press on the button it sorts, do guys agree with this or is there a better way to achieve the same.
    Regards.
    hali

    hi Hali,
    Here you have a code sample. It's a pl/sql package you can put easily in an application library.
    Calling the code
    Create a non base table block with the following name convention: <block_name_to_be_sorted>_SORT
    Create in this block the buttons representing de item headers. Each button must have the following name: <item_name_to_be_sorted>_SORT.
    Put a call tot procedure "lib$sort.mainn_button" in when-button-pressed trigger on block level.
    Set the default sort order in When-new-form-instance trigger by calling
    lib$sort.mainn (<block name to be sorted>, <item_name_to_be_sorted>)"
    You can also sort on non-base table items. In this case the naming convention for your header button must be: <item_to_be_sorted>_SORT_NDB.
    In this case you have to create a parameter with the same name. The value of this parameter contains the expression for sorting e.g. another column value or a call to a function.
    Full code:
    Package header
    package LIB$SORT as
    PROCEDURE mainn
    ( p_block_name_table varchar2                     
    , p_item_name_table varchar2
    , p_asc_desc varchar2 default 'ASC'                    
    PROCEDURE mainn_button;
    end;
    Package body
    package body lib$sort as
    procedure execute_last_query
         ( p_block                              varchar2
         )     is                                                                           
    l_procedure_naam     varchar2(60) := 'lib$last_query.execute_last_query_replace';
         l_blok_id                         block := find_block (p_block);
         l_last_query          varchar2(2000);
         l_where_clause          varchar2(2000);
         l_pos_from                    number(4);
         l_pos_where                    number(4);
         l_pos_order_by          number(4);
         l_pos_string               number;
    BEGIN
    l_last_query := get_block_property (l_blok_id, last_query);
    l_pos_from          := instr(upper(l_last_query), 'FROM');
    l_pos_where     := instr(upper(l_last_query), 'WHERE' , l_pos_from);
         if nvl(l_pos_where, 0) = 0 then
              null;
         else
         l_where_clause := substr (l_last_query, l_pos_where + 5);
         l_pos_order_by     := instr(upper(l_where_clause), 'ORDER BY');
         l_where_clause := substr(l_where_clause, 1, l_pos_order_by -1);
         end if;
         go_block (p_block);
         do_key ('execute_query');
    END;
    FUNCTION item_to_be_sorted (p_item_name_sort varchar2) RETURN varchar2 IS
         l_item_name     varchar2(30);
    BEGIN
         l_item_name := p_item_name_sort;
    l_item_name := replace(l_item_name, '_SORT_NDB');
    l_item_name := replace(l_item_name, '_SORT');
    l_item_name := substr (l_item_name, instr(l_item_name, '.') + 1);
    return (l_item_name);
    END;
    FUNCTION block_to_be_sorted (p_block_name_sort varchar2) RETURN varchar2 IS
         l_block_name     varchar2(30);
    BEGIN
    l_block_name := replace(p_block_name_sort, '_SORT');
    return (l_block_name);
    END;
    PROCEDURE mainn ( p_block_name_table varchar2
                                            , p_item_name_table varchar2
                                       , p_asc_desc varchar2 default 'ASC'
                                            ) IS
         l_procedure_name                    varchar2(30)      := 'lib$sort';
         l_block_id_buttons                block                ;
         l_item_id_buttons                item                    ;
         l_item_id                                        item;
         l_cur_item                                   varchar2(60);
         l_cur_item_id                              item;
         cl_character_asc                    constant varchar2(1) := '>';
         cl_character_desc                    constant varchar2(1) := '<';
         l_label_cur_item                    varchar2(200);
         l_label_without_characters          varchar2(200);
         l_label                                             varchar2(200);
         l_order_by                                   varchar2(2000);
         l_basetable                                   boolean;
         l_counter                                        number(2) := 1;
         l_asc_desc                                   varchar2(4);
         l_new_label                              varchar2(200);
         l_order_by_par                         varchar2(2000);
         l_width_item                              number;
         l_block_name_buttons     varchar2(30) := p_block_name_table||'_SORT';
         l_item_name_buttons               varchar2(30) := p_item_name_table||'_SORT' ;
    BEGIN
         l_block_id_buttons                := find_block (l_block_name_buttons);
         l_item_id_buttons                := find_item (l_block_name_buttons||'.'||l_item_name_buttons);
         if id_null (l_item_id_buttons) then
              -- Item not found, maybe the button sorts a non base table item
              -- In this case the name of the button ends with '_SORT_NDB'
                   l_item_name_buttons := p_item_name_table||'_SORT_NDB' ;
                   l_item_id_buttons      := find_item (l_block_name_buttons||'.'||l_item_name_buttons);
                   if id_null (l_item_id_buttons) then
                        message ('Item '||p_item_name_table||' has no valid header. Name must be '||p_item_name_table||'_SORT'
                        ||' or '||p_item_name_table||'_SORT_NDB'
                        raise form_trigger_failure;
                   else
                        l_basetable := false;
                   end if;
         else
              l_basetable := true;                    
         end if;          
    --Remove sort character on all buttons
    l_cur_item := l_block_name_buttons|| '.' ||get_block_property(l_block_id_buttons, first_item);
    while l_cur_item <> l_block_name_buttons||'.' and l_counter < 15 loop
                   l_cur_item_id := find_item (l_cur_item);
              if l_cur_item = l_item_name_buttons then
                        null;
              else
                   l_label_cur_item := get_item_property (l_cur_item_id, LABEL);
                   l_label_without_characters := ltrim(ltrim(ltrim(l_label_cur_item, cl_character_asc), cl_character_desc));
                   if l_label_without_characters = l_label_cur_item then
                        null;
                   else
                        set_item_property (l_cur_item_id, LABEL, l_label_without_characters);
                   end if;
    end if;
    -- Goto next item in block with buttons
    l_cur_item      := l_block_name_buttons||'.'||get_item_property(l_cur_item_id,nextitem);
    l_counter           := l_counter + 1;
         end loop;
    -- Put the sort character on the right character
         l_label := get_item_property (l_item_id_buttons, LABEL);
         l_new_label := ltrim(ltrim(ltrim(l_label, cl_character_asc), cl_character_desc));
         if upper(p_asc_desc) = 'DESC' then
                   l_asc_desc := 'desc';
                   l_new_label := cl_character_desc||' '||l_new_label;
                   set_item_property (l_item_id_buttons, label, l_new_label);
         elsif nvl(instr(l_label, cl_character_asc), 0) = 0 then
                   l_asc_desc := 'asc';
                   l_new_label := cl_character_asc||' '||l_new_label;
                   set_item_property (l_item_id_buttons, label, l_new_label);
         else
                   l_asc_desc := 'desc';
                   l_new_label := cl_character_desc||' '||l_new_label;
                   set_item_property (l_item_id_buttons, label, l_new_label);
         end if;
    -- Perform the actual sort of the block with data
         --For a basetable item, the sort condition is the item itself
         --For a NON basetable item, the sort condition is set by a forms parameter
         if l_basetable then
              l_order_by := p_item_name_table||' '||l_asc_desc;
         else          
              l_order_by := name_in('parameter.'||p_item_name_table||'_SORT_NDB')||' '||l_asc_desc;
         end if;
         set_block_property (p_block_name_table, order_by, l_order_by);
    END;
    PROCEDURE mainn_button IS
         l_item varchar2(30) := name_in('system.cursor_item');
         l_block_name_buttons varchar2(30) := name_in('system.trigger_block');
         l_block_name_table varchar2(30) := block_to_be_sorted (name_in('system.trigger_block'));
         l_item_name_buttons varchar2(30) := name_in('system.trigger_item');
         l_item_name_table varchar2(30) := item_to_be_sorted (name_in('system.trigger_item'));
         l_asc_desc     varchar2(10);
    BEGIN
         if get_item_property (l_item_name_buttons, label) like '>%' then
              l_asc_desc := 'DESC';
         else
              l_asc_desc := 'ASC';
         end if;
    mainn(l_block_name_table, l_item_name_table, l_asc_desc);
         execute_last_query (l_block_name_table);
         go_item (l_item_name_table);
    END;
    end;
    Regards,
    Matthieu de Graaf

  • Coloring  a popup field in a tabular form

    Hello all,
    i have searched for this subject many times, find a lot of answers to coloring at all, but none of them works for me.
    I have a tabular form,in the sql query i create a column COLOR (case clause) and try to color the back-/foreground of the column (Popup LOV:named LOV) and use this in 'tabular form element->element attributes':
    style="background-color:#COLOR#"
    or
    class="lov" style="background-color:#COLOR#"
    but it does not work.
    How could this be achieved ?
    Wolfgang

    Hi Wolfgang,
    You may have to use the HTMLDB_ITEM.TEXT functionality to do that.
    For example:
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:RED; BACKGROUND-COLOR:YELLOW"') "Manager"
    will create a column on the form with all items in red text on a yellow background. Your CASE statement would then need to determine the entire entry:
    CASE WHEN X = 1 THEN
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:RED; BACKGROUND-COLOR:YELLOW"')
    ELSE
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:BLUE; BACKGROUND-COLOR:WHITE"')
    END "Manager"
    Have a look at the following for details about using HTMLDB_ITEM functions:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#BGBHDGAI
    Andy

  • Populating the Lookup values in AD Child Form based logged in user

    HI,
    Below is the Lookup code(AD Groups) format.
    Codekey , Decodekey
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    HR-system , HR-system
    HR-Finance , HR-Finance
    My requirement is I need to filter the data being presented in the lookup according to the logged in user in ad child form,
    If i am logged in as xelsysadm the lookup presents all groups.
    If i am logged in as IT administroter the lookup presents only the IT Related groups(EX:IT-Development,IT-Testing....).
    If i am logged in as HR administroter the lookup presents only the HR Related groups(EX:HR-System,HR-Finance...).
    like this we have contains so many administrators.
    We are desiding the administrators based on user form field.
    The Field contains the value like HR-Related,IT-Information Technology.....
    How can i achive this?
    Thanks in advance.
    Edited by: 790561 on 4/12/2011 17:48
    Edited by: 790561 on 5/12/2011 12:02

    Hi Rajiv,
    Thank you for quick reply,
    When i am login as IT administrator and i provisioned user to AD it showing the IT Related groups in ad child form based on your Suggestion.
    If i logout and login as a HR administrator and i edit the child process form of the same user still its showing IT Related Groups only.If I revoke and provision user to ad again with HR administrator this time its showing HR Related groups in AD Child form.
    I think based on the requester its showing the values.
    But i want to filter groups based on logged in user.
    EX:If i login as IT administrator and provision the user to AD in Child form its showing the IT Related groups only its correct.
    If I logout and login as HR administrator and i edit the same user AD Child form its showing the IT related groups only its not correct.this time it shows only HR Related.
    Any solution....
    Thanks in advance.

  • Populating the Lookup values in AD Child Form

    HI,
    Below is the Lookup code format.
    Codekey , Decodekey
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    HR-system , HR-system
    HR-...... , HR-......
    HR-...... , HR-.......
    In AD Process Form one of the field containing the valuee like " IT","HR".
    My requirement is if I select the "IT" in My AD peocess form field value.....In AD child form lookup field Shows values only Starts with "IT".Below is the sample.
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    If I select the "HR" in My peocess form field value.....In AD child form lookup field Shows values only Starts with "HR".Below is the sample.
    HR-...... , HR-......
    HR-...... , HR-.......
    How can i achive this?
    Thanks in Advance.
    Edited by: 790561 on 18/09/2011 19:52
    Edited by: 790561 on 18/09/2011 21:34
    Edited by: 790561 on 19/09/2011 14:22

    Hi,
    Thanks for Reply,
    my exact requirement is as followes,
    In my environment for each department(IT,HR) having one administrator(IT Administrator,HR Administrator).
    If login as a IT Administrator and at the time of provisioning user to "AD" in Child form lookup code only shows IT Related data as below...
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    If login as a HR Administrator and at the time of provisioning user to "AD" in Child form lookup code only shows HR Related data as below...
    HR-...... , HR-......
    HR-...... , HR-.......
    How can i achive this?
    Thanks in advance.
    Edited by: 790561 on 19/09/2011 19:20
    Edited by: 790561 on 19/09/2011 21:20

  • How to disable the date picker in manualy Tabular form?

    I develope an application with apex 3.2 , I builded a tabular form manualy with APEX API and I have an item 'date picker' , I want that once user want insert the date , he can do it only by clicking on the date picker and not into the item
    I try to use the code that was provided by 'Desnes Kubicek' on his blog , but it does not works
    Any help!!!!!
    I used this code , but that is for an one item form
    <script type="text/javascript">
    function disFormItems(item1){
    disItem = document.getElementById(item1);
    disItem.style.background = '#eeeeee';
    disItem.disabled = true;
    </script>
    2. Region Footer javascript:
    <script type="text/javascript">
    disFormItems('P18_DATE_PICKER');
    </script>

    Hi,
    Try something like this
    SELECT
    APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy',12,15,'readonly="readonly"','f04_' || ROWNUM) hd
    FROM EMP;Thanks,
    Manish

  • How to save the edit data temporarily in tabular form while pagination

    Hi,
    I need to hold the edit data temporarily before final submitting the page in apex 4.0 tabular form while navigating the row pagination.
    well i am expecting some easiest method.
    Saroj

    I think you have to read about apex collection.

Maybe you are looking for