Hire me on UpWork

Monday, November 26, 2012

How to Add or Remove List Text Anywhere from List Item?

Dear Mates,
Hope your are fine. Here we will talk a trick of Oracle List Item for Forms Version 10g and 6i.

If you want to remove list text and values from a oracle forms list item. How will you do this ? When there is no remove icons and Backspace and Delete key doesn't work, both just lest blank spaces.

Don't worry. I'm here for your help. Try the following shortcut key..

  • "Ctrl + Shift + >" - add list element.
  • "Ctrl + Shift + <" - remove list element.


  • Leave comment and SMILTE :)

    Sunday, September 23, 2012

    How to Check Only One Item In a Check Box ?

    Hello Redars, How are you ?

    Here i will share a tricky PL/SQL code with you. If you want to use Check Box in oracle forms and want to restrict end user to select only one check box, how will you handle this ?

    Just customize the following code and you will get the result.

    declare
      l_current_record number;
      l_last_record    number;
    begin
      l_current_record := :system.trigger_record;

      last_record;
      l_last_record := :system.cursor_record;
     
      first_record;
       
      for i in 1 .. l_last_record loop
        if :system.cursor_record <> l_current_record then
           :SM_ACT_FLAG := 0;
        end if;
        next_record;
      end loop;
     
      go_record(l_current_record);
    end;

    If you have any question regarding this..just leave comments and i will answer.

    Monday, June 4, 2012

    How to Calculate Average of Date Values ?

    Do you getting trouble of calculating average time of a filed, where data type is date time ?
    Don't worry. You are at right place to get right solution.

    I'm calculation of average time of a filed. If there is two time value in a day, i will calculate the first one means minimum one.

    SELECT TO_CHAR(TRUNC(SYSDATE)+AVG(VDATE-TRUNC(VDATE)),'HH24:MI:SS')
    FROM (SELECT MIN(DDATE) VDATE
    FROM DEPT
    GROUP BY TRUNC(DDATE))

    Make changes in the script as your need and try.

    Hope this helps you in work. 

    Leave comments if it helps you.