How to generate database text items at run time in oracle forms 6i?

i have a text item with NUMBER OF ITEMS DISPLAYED=3. My requirement is, i need to generate text items at run time under each TEXT ITEM(3 text items will be there since number of items displayed is 3) and the values will be stored in the database based on the primary key combination. pls help me to solve this pblm

Hi,
You cannot generate items dynamically at runtime. The only thing you can do is show and hide item on time. Thay seems that they are generated at run time. Second thing you can do is that you can put items on stack canvas and set visible property of stack canvas to no and at run time set it to visible according to ur condition. Otherwise there is no way. If you find any other way, plz do inform here also.

Similar Messages

  • How to auto-generate a "empno" field at run time in oracle forms 6i

    Hello!
    I have connected to a SCOTT schema. And i am using emp table. At run time mode when i press F8 then the data is displayed in the fields.
    My task is to generate auto "empno" as soon as i run the form. Kindly do the needful.
    Thanks in advance

    Hi Francios,
    I think with your solution our user only able to see the current information in the form.I donot think it will auto generate the empno.
    Dear user,
    I suggest what you can do is to create one sequence in your database and use it to generate automatic
    empno.
    In post query trigger try to implement the idea.
    Suppose in the name of the sequence is empno_seq.
    if emp.empno is null then
    :emp.empno := empno_seq+1;
    end if;
    Try i hope it will work
    Regards
    Rajat

  • How to change dynamically text label at run time in the forms

    Hi,
    I am having a form in which i want to change the text label dynamically. I mean when a certain condition match then text label should be change and when condition does not match then the text label should reamin as it is in the same form.
    plz help
    thanks in advance
    azhar

    Hi,
    Use this code to change the label at run time.
    set_item_property('deptno',prompt_text,'pagal dept');
    Prompt_text is used for changing label at run time.

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Create lov at run time in  oracle form 10g

    i want to create a lov and record group dynamically at run time..
    i have the code in when-form-instance..
    Declare
    v_lov lov;
    rg_id recordgroup;
    gc_id groupcolumn;
    tem_num number;
    v_rg_id number;
    begin
    rg_id := find_group('My group');
    if id_null(rg_id) then
    rg_id := Create_group('My_group');
    gc_id := add_group_column(rg_id,'emp_id',number_column);
    gc_id := add_group_column(rg_id,'ename',char_column,15);
    end if;
    v_rg_id := POPULATE_GROUP_WITH_QUERY('My_group','select t.employee_id,t.first_name from employee_mt t where t.employee_id in (103,104,106)');
    --tem_num :=populate_group(rg_id);
    v_lov := find_lov ('LOV_NAME');
    set_lov_property(v_lov,group_name,'My_group');
    set_item_property('VEH_SEARCH.TXT_VEH_CODE',lov_name,'lov');
    End;
    now i have problem...whether i create first a lov and record group at design time or not????
    if i create a lov and have the recordgroup column then what is the benefit of dynamically lov...???
    thanks

    Hi.
    It is possible with some restrictions. Let's say you agree there are max 5 columns in your LOV-s. That way you can easily create LOV to RG colums mapping (what Andreas pointed out).
    For example :
    1. in design time create RG with dummy columns (for example : c1, c2, c3, c4, c5)
    2. in design time create 1 LOV with 5 predefind columns (for example : c1, c2, c3, c4, c5)
    3. populate that record group with select (selecting 5 columns. If you do not have 5 columns in your table on which LOV is based just select dummy columns for the rest of the columns) aliasing them as c1, c2, c3, c4, c5 (same as in LOV from step 2)
    4. asign that RG to the LOV in step 1
    5. in LOV show just "non-dummy" rows form step 3
    The rest you already figured it out.
    The benefit of this approach is questionable as the same can be done creating more RG and LOV-s in design time. So I believe this is the matter of developer preferences. By the way the concept I described we use on daily bases dealing with LOV-s.
    Best regards.

  • How can I find text-item description and content in database?

    I make "Actual news" region with text and simple image items.
    With "Custom Search" autoquery I make news portlet with 10 latest news.
    But I will make with PDK-Java discussion portlet, in which users can read and write about last published (last created text item display name and content) news.
    My questions:
    - How can I find text-item description and content in database?
    - How I can sort text-items to find latest created in my region?
    I have Portal R2
    Thanks in advance.
    Cheslav

    I am sorry. The following are the related tables.
    WWV_TEXT
    WWV_TEXT_BLOCKS
    WWV_TEXT_BLOCK_USAGES
    WWV_USER_TEXT_BLOCKS
    WWV_USER_TEXT_BLOCKS$
    WWV_USER_TEXT_BLOCK_USAGES
    WWV_USER_TEXT_BLOCK_USAGES$
    May be you want to browse WWV_TEXT which is the core table.

  • How to view database table in OAF run page.

    Hi,
    how to view database table in OAF run page,any manual setting .please help me.
    thanks
    saran.

    Hi;
    1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
    Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
    2. Please see:
    http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
    Regard
    Helios

  • How to change a text item to have a link that opens a different page?

    Hi,
    How to change a text item to have a link that opens a different page?
    Thanks,
    Guy

    Hi Denes,
    I understood what the code will do. But it did not work.
    ...a href="f?p=&APP_ID.:2:&SESSION.">LINK</a...
    By default, P5_TASK_NAME displays Task Name which is passed from Page 3.
    So I changed your code as follows so that P5_TASK_NAME value may be displayed with a link.
    ...a href="f?p=&APP_ID.:3:&SESSION.">:P5_TASK_NAME</a...
    But P5_TASK_NAME value appears without any link and does not open page 3.
    Then I created a new text item (display only) in the same HTML region in page 5 and entered the following code in the default box:
    ...a href="f?p=&APP_ID.:3:&SESSION.">LINK</a...
    When I ran the application, it displayed the whole code as text.
    How can I display P5_TASK_NAME value with a link to open page 3?
    Would appreciate your help.
    ... to be replaced with < or >
    Could you please let me know how to display link code correctly?
    Thanks,
    Guy
    Edited by: GUY3 on Mar 11, 2009 4:20 PM

  • How to create a text item dynamically

    Greetings to All Expert,
    Could anyone please tell me how i create a text item with code.The scenario is like this....
    Suppose there is a text item corresponding to department_id=10 and i dont know how many employees r there in this department.Now if the query returns 10 employee then how do i display these 10 employees name.....it may be 20 employees also...i dont know the actual number before executing the query..
    Regards,
    Wel
    Edited by: 787312 on Aug 15, 2010 1:03 AM
    Edited by: 787312 on Aug 15, 2010 4:19 AM

    Hi,
    You can create two blocks for this. One is an unbound block which consist of a text box with a command button. Other block is a bound block from your table(multiple rows block). In hierarchical, unbound block should above above bound block, which makes the focus control goes first to the text box. When the user type the dept code and click on the button it goes to bound block and execute the query.
    you can write code in the command block as below
    set_block_property('<boundblockname>',default_where,'deptno = '||:ti_DEPTNO);
    go_block('<boundblockname>');
    execute_query;Best Regards
    MP

  • How i can make text item as read only

    hi
    im trying to make a text item as read only so no one can write on it i tried to make it as display item but i neeed also to call lov when i double click on the text item in display item case u can not double click
    so please how i can make text item as read only
    and another thing
    how i can change an item properties by code i mean when i click in one button the text item become visibile how i can change its property by code
    thank u

    You can set a text item's property to be non-updateable
    You can change this programmatically with set_item_property()
    :)

  • How to generate automatic PO by MRP run

    how to generate automatic PO by MRP run ?
    tell me the settings for that.

    Hi,
    Basic Settings: SPRO-MM-CBP-Planning->>MRP should be activated for that particular plant.
                            SPRO-MM-CBP-Plant Parameter->>maintain for particular plant
    Material master: Maintain MRP views with required MRP Type, MRP Controller, Lot size, Flag Auto PO
    Vendor master: Flag Auto PO
    Info record (Must) / Soure list (Preferred)
    1. MD21 - Planning file concept : where you can see the list of material required to plan for procurement.
    2. MD03 - Run MRP . Production oder or Purchase Requisition will be created
    3. ME57 - Assign Souce & process PR
    4. ME59n - Auto PO created from PR
    Note: if we maintain sourcelist with MRP indicator, we can avoid transaction ME57n.

  • Create item at run time

    hi all
    i use oracle database 10g and from 6i (winfows 2000pro).
    how can i create items at run time (on my canves)?
    thax
    Rafeek

    Read the following.....
    Re: Creating Dynamic Text Item
    Greetings....
    Sim

  • How do I delete  one item at a time from trash?

    How does one delete one item at a time from trash?

    In general, one doesn't.
    I suggest you create a new folder (I use "Trash Soon") on the desktop near the trash icon. Move all the stuff out of the Trash bin into the Trash Soon Folder. Then move the things you really want to eliminate to the Trash can. Empty Trash.
    DO NOT store anything you want to keep in the real Trash can. There are many activities that may cause "Empty Trash" a a side-effect.
    If you have multiple drives, The Trash is an illusion created for your convenience. The actual Items may be on several different drives, but all marked as "in Trash". Moving them to a folder on a different drive may cause unexpected copying.

  • How to read several text files at a time

    Dear all
          Read and write one text file is not a problem, but  what confusies me is how to read several text files at one time, in the meanwhile,
    is it possible to display the name of the text file?
    For example, assuming I want to load file" cha 1, cha 2 , cha 3, " at one time and show their names, how to hadle with it
    I have reviewed some files and it is not helpful

    Either with a 'for' loop like in the lib you have attached, or like this attached VI
    that's it
    Message Edited by devchander on 05-30-2006 05:11 AM
    Attachments:
    MULTIPLE READ.vi ‏44 KB

  • How to change the text under RECORD WORKING TIME IN ESS.

    Hi,
    How to change the text under RECORD WORKING TIME in ESS.
    Is there any setting at page or iview level?
    Please help me.
    Regards,
    Thirun.

    Hi,
    If it is standard business package ,then check home page framework
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0e3a488-cdc2-2b10-209b-e01a0ed934b4
    Regards
    Koti Reddy

Maybe you are looking for

  • Moved iTunes from C Drive to D and now no songs on iTunes?

    I'm trying to make space on the laptop C Drive and have been transferring stuff to the D Drive, when I did this with iTunes it doesn't have any songs in the Library, Im not sure where these songs are and am too scared to sync my ipod as the only opti

  • Acrobat 9 email and Exchange directory

    When sending out PDFs for review throught Acrobat 9, acrobat is able to add individuals from the Exchange directory but not groups created in Exchange. For groups created in Outlook there is no problem, Acrobat opens the groups and allows all the ind

  • Changing database (login screen) in 10.1.3 Jclient ADF

    I have heard that in Jdev 10.1.3 there will be working login screen, but it is made exactly like in 10.1.2. During creating fe master-detail form, You can set in wizard to create login screen, but this is only simple user/pass panel. If You want to c

  • FCH1 - Check List No data found

    Dear SAP Experts, We are in the middle of technical upgrade to ECC6. I tested the "FCH1 - Display Check Information" in ECC6, from the menu bar I select "Check - List" to display the list of checks. The system displays “no data found”. However in 4.7

  • Expire contracts

    Hi MM gurus I want to expire all the contracts in MM R/3 , how do I go by doing that ? I am thinking of having an ABAP program written , but need to tell the developers what must they activate or disable I ve tried expring one contrcat by changing th