SOS Help!! Control Block is hitting me on my nerves....

Hello All!
I have a problem and id any body can solve this then i will be very thankful to her/him.
Actually, i have four tables.One of them(studentfee) has two primary keys.(Rollono & Date)in this table the rollno is both PK & FK which reference the rollno of student table.Now problem is that i have a control block and two txt items on it. One is for Month and is used to add the date in the studentfee table and other fields will be added by mean of another data block.And that is the problem bcs the form generate the error(may be bcs other primary key is not entered).
I think that this problem can be solved by Global variable(assigning the values to Golbal variable in the control block form
and referencing them in the data block form)
but this is not helping,too.Now i know
that i am doing something wrong but couldn't grasp that one.Either i am not generating right code for Global variables OR am starting another session that is why the form is unable to get information from the global variable when i use it in the next form.
Another question is that: Is there any way to build an .exe Or other file of my
project which can be run and be ported to another machine(with all tables and data).
Please, send me the answer to my email or to the oracle site and i will be very thankul to you. Bye..
[email protected]

Hi,
In one block you can have items EXPLECITELLY belonging to only one DB table. You mention this table in the property palette of the block.
If your block has items which belong to other DB table one way (but not the only way) to work around is with POST_QUERY trigger using primarykey_foreignkey (or other) relation to insert in the item the appropriate value. If there are many values we use master-detail relationships and second block.
Do not forget before exiting the block to insert, update, delete ,etc. the changed value belonging to different tables using the PRE_INSERT, PRE_UPDATE, ... etc. triggers.
Try to by a book explaining the Forms principles and methods.
Keep in eye that Forms is a complex, very complex software tool. Before using them successful you have to invest time and efforts to study the basic solution methods.
Success!
Joseph Schwertner,
Prof.Dr. In Computer Science

Similar Messages

  • Control blocks/MS Help problem

    When using control blocks in generated forms/Headstart, you're
    required to give them an alias of qms$ctrl.
    If you then try to generate MS help for the form, it doesn't
    work for the control block. Think it's because of the '$'
    character, looks like this is a significant symbol to the MS
    help compiler.
    Any ideas for a fix/workaround?
    null

    Cheryl Riley (guest) wrote:
    : When using control blocks in generated forms/Headstart, you're
    : required to give them an alias of qms$ctrl.
    : If you then try to generate MS help for the form, it doesn't
    : work for the control block. Think it's because of the '$'
    : character, looks like this is a significant symbol to the MS
    : help compiler.
    : Any ideas for a fix/workaround?
    Cheryl,
    This is a known issue for Headstart for Designer 1.3.2. The work
    around is the following:
    1. change the following initialization command in qms$init_appl
    in your application library (or qmslib34 if you don't have such a
    library):
    l_control_block varchar2(50) := 'QMS$CTRL';
    should read
    l_control_block varchar2(50) := 'QMS_CTRL';
    2. Make the same name change to all your existing control block
    definitions in Designer and regenerate those modules.
    null

  • RM-30410: Warning: Single Record property ignored for non-control block

    Hi gurus,
    I have one block, as oracle default behavious is that when any user enters record and during that if he/she hits down arrow key then it gets to next new record, i want to prevent this behaviour.
    In other words i want that user should not enter second record and if he or she needs to enter second record after saving first then user can only do if he navigate to the form second time.
    In property pallete i put yes to single record but when i compile the form it gives me following warning
    FRM-30410: Warning: Single Record property ignored for non-control block Employees
    Created form file C:\my_forms\employees.fmxPlease seeks help that how can i sort it out.
    Thank you
    Hina

    if he/she hits down arrow key then it gets to next new record, i want to prevent this behaviour. Change the block's key-down and/or key-nxtrec trigger to
    begin
      null;
    end;(or give the user a message "Key not allowed here").

  • How to clear a record of control block

    i have one control block with 2 items and the Max. records displayed property is set to 10.I have populated 5 records and now i want to clear one record, but the clear_record statement does not seem to be working. How to clear a record in a control block. Please help me out in this doubt of mine.

    You have probably moved focus to another block. You have to go_block and maybe go_record before using clear_block.

  • Data block or control block

    any one please suggest : which is faster and better in 9i forms/reports applications, a data block with form triggers(pre,post,commit_form) for DML ; or a control block with explicit DML for retreiving and posting from/to data base.
    can PJC help in boosting performance. How ?

    Thanks but a.I find the busy dumble for a while before allowing the user to type the content in a database item (at a w/s in LAN about 900 meters away from AS). Posibly validating the item all the way to the database and back.
    b. I found certain form triggers failing e.g. pre/post update resulting erroneous enterprise data.

  • Execute query in control block?

    I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
    But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
    how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

    You will have to build a default where clause in the pre query trigger of the base table block(s)
    example shown below.
    declare
    wh_clause varchar2(1500);
    begin
    if :qry_blk.item1 is not null then
         wh_clause := 'block.item1 like '''||:qry_blk.item1||'%'||'''';
    end if;
    set_block_property('block', DEFAULT_WHERE, wh_clause);
    end;
    then in your button, you will say
    go_block('block');
    execute_query;          
    I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
    But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
    how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

  • Content canvas is not displaying . It contain only one control block .

    Hi ,
    In my form , i have only one control block . in this block i have one display item. I have specified canvas for this item as "CANVAS4".
    I have created "canvas4" . and i have adjusted display item position in canvas. In this case while running form , it is not displaying my content canvas.
    Canvas is disappearing .
    Can any one please help me .
    Thanks in advance ,
    Sanjeev.

    Please take a look at: http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    In order for anyone to offer valuable feedback, we ALWAYS need to know what product versions you are using, which Operating Systems are involved, client side information (browser, jre, os, etc), and if an error is involved, what are the details of the error.
    Craig...

  • Is there a solution to parental controls blocking https?

    I have seen many posts regarding parental controls blocking any website that has SSL or https, but they are for older versions of OS X.  Is there a solution for the latest version of Mavericks?  I am amazed that the problem has persisted as long as this without Apple coming up with a better version of Parental Controls that can actually block inappropriate content not just ALL content.  Thanks for any help out there!

    No No No No I'm talking about completely shutdown

  • Previous record dont show in control block

    Hi
    I have 2 blocks, one is control and other is database so this is working well but when i press F8 then it show records and i move to next record then it show data in both blocks but when i try to back (previous record) then it show data in my database data block not in my control block................
    Any help
    thanks in advance
    REgards,

    Andreas Weiden Reply:
    As i understand you want to populate some items in a non-database-block with additional information to the current record in the database-block.
    The "right" way:
    Do not create a non-database-block for the additional items at all, simply place the additional items in the database-block with property "Database Item"= No. If you want to show only 1 line of data and your database-blcok is tabular, set "No. of records displayed" to "1" for the non-database-items.
    Now put the code to populate the items into the POST-QUERY-trigger of your database-block.
    The "other" way:
    Keep the additional items in the non-database-block where they are, and put your code to populate the items in the WHEN-NEW-RECORD-INSTANCE-trigger of your database-block.

  • Tab pages which Database and Control Block.

    I have 3 tab pages, 1st and 2nd with database first block and 3rd page has a control block .
    When I query these Pages I only get one record display though it is a multiple record block with scroll.
    The only difference is that every pages contain multiple blocks with relationship created.
    If some one can help me to bring all the records when I execute the query through F8 key.
    Thanx
    Khan

    Create master detail relation this may help you

  • WidgetBrowser installation fail with error code 7 (The storage control blocks were destroyed.)

    Client machine is Windows 7 x64.
    I am using AdobeApplicationManager tool to extract sources from original Set-up.exe.
    Extracted sources contain Build and Exceptions folder. The Build directory contain Dreamweaver.msi and Exceptions contains AdobeHelp and WidgetBrowser sources.
    After silent installation of Dreamweaver.msi, i'm tried to install WidgetBrowser but it return error code 7(The storage control blocks were destroyed).
    I tried on different windows 7 x64 client but still its not working.
    Please help.

    Hi,
    I have the exact same problem, except I am using 32-bit Windows 7. 
    Thanks
    Rosy_55

  • Populate a control Block with records at runtime

    For Example:
    For c1 in (select some_records from t1 where enam = 'SAM')
    loop
    if c1%ROWCOUNT = 1 then
    create_record;
    else
    Next_Record;
    end if;
    :Block.column1 := c1.member_no;
    :Block.column2 := c1.gender;
    :Block.column3 := c1.age;
    end loop;
    in another procedure
    GO_Item ( :Block.column1 );
    But only the last record to be inserted is showing on the block... Can someone please help? This is a control block and is not based on any table. It is also a multi record block

    I have changed the code as follows:
    For c1 in (select some_records from t1 where enam = 'SAM')
    loop
    if c1%ROWCOUNT = 1 then
    create_record;
    else
    Last_Record
    create_record;
    end if;
    :Block.column1 := c1.member_no;
    :Block.column2 := c1.gender;
    :Block.column3 := c1.age;
    end loop;
    But I can only see the last recrod that was poplated in the block, when I navigate to that block.

  • Change to display field on control block not reflected until form refreshed

    Hi guys, hope someone out there can help me with this query.
    I'm currently developing a form that will allow users to generate offer letters and contracts via a custom form which is used within Apps 11i. This form is a fairly standard multi-text field form with tickboxes which hold the applicant details, two buttons (one to Select All, the other to Clear All) and another button to produce the actual contracts selected.
    There is also a display field which is part of the control block attached to the form; both it and the Produce Contracts button are part of this control block. I've added a bit of code to change the text in the display field to inform the user that the contract or contracts they've requested are being generated, but although the call to the relevant code to do this appears before kicking off the concurrent request to generate the contracts, the update to the field fails to appear until after the concurrent request is complete and its output appears on another screen.
    Does anyone know why this is? I've racked my brains over it and can't seem to understand why. I've pasted the code in below if anyone has any ideas!
    Many thanks, Geoff
    --- procedure display_status_message ---
    --- Displays a status message in the request_extract_ctrl.query_information ---
    --- display item informing user what is going on ---
    --- Changes: ---
    --- G Butler 21/08/08 First version ---
    procedure display_status_message(p_tab_count in binary_integer default 0) as
    c_proc_name constant varchar2(50) := 'display_status_message';
    v_position pls_integer;
    v_msg_string varchar2(500);
    v_status_msg varchar2(2000);
    begin
         v_position := 1;
         --- go to the request_extract_ctrl block
         go_block('REQUEST_EXTRACT_CTRL');
         --- check how many records have been sent for generation
         --- get the correct message from the message dictionary
         if p_tab_count = 1 then
         fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACT_SUBMIT');
         elsif p_tab_count > 1 then
              fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACTS_SUBMIT');
         end if;
         v_position := 2;
         --- copy the message into the display item field
         v_status_msg := fnd_message.get;
         :request_extract_ctrl.query_information := v_status_msg;
         -- synchronize the change in the display item field with the form on screen
         synchronize;
         v_position := 99;
    exception
         when others then
    v_msg_string :='Unexpected error occurred in display_status_message procedure, position: '||v_position;
    v_msg_string := v_msg_string||'. SQL error: '||sqlerrm;
    fnd_message.set_string(v_msg_string);
         fnd_message.error;
         raise form_trigger_failure;
    end display_status_message;

    I had a similar problem, but it was with the message line. I found that with Web Forms, I had to issue the Synchronize; a second time, but in Client/Server Forms 6i, the first synchronize worked. Here is the code I used:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> SYNCHRONIZE;
    if Get_Application_Property(User_Interface) = 'WEB' then
    synchronize;--first does not work on web
    end if;</font></pre>
    Let us know if this works.

  • Is it possible to update (=change) control block items in a query only form ?

    From Form.A we call Form.B with the parameter query_mode = query_only.
    This works fine.
    But in Form.B we have a non table block (=control block) with an poplist item.
    Allthough in query_only mode we like to change (it's not a real update cause it's control block) the poplist.
    But because of query_only mode this item is not updateable.
    Is there a workaround to make the poplist updateable in query_only mode ?

    Hi,
    It is not possible to change the BOX position using the Layout painter like changing windows position.
    You have change in the page Windows text elements only by changing their co ordinates.
    Regards,
    Anji

  • Inserting/updating data in control block based on view

    Hi!
    I`ve created a block based on a view to display data.
    I want this block to be insertable and updateable, that is I will use a on-insert/update trigger to call an insert/update procedure located in the database.
    When trying to change/insert a value in the block, the error message "Error: Can not insert into or update data in a view" pops up. I`ve tried to get rid of this error, without success.
    How can I make a data block based on a view insertable and updateable?
    My guess is that this have something to do with locking the records(there is no rowid in the view)... but I'm not sure.
    Pls advise!!

    Morten
    As well as on-update, on-insert, on-delete triggers you also need an on-lock,
    (even though it might just contain null;) otherwise the form will try to lock the view and fail.
    Actually your terminology is wrong, the block being based on a table or view is not a control block. A control block is not based on anything and has no default functionality for communicating with the database. If it was a control block, the on- triggers would not fire.

Maybe you are looking for

  • BSOD ha20x2k.sys.. help from

    IRQ_LESS_OR_EQUAL that happened after playing starship troopers for a while.... i got latest firmware and drivers for everything.. AMD Athlon 64 X2 4400++ABIT Fatalty AN8-SLI2x XFX 7800GTX Extreme Gamers Edition in SLISound Blaster X-FI Fatalty FPSOC

  • Reporting authorization issue after BI 701 05 EHP1 upgrade

    Hello, We have recently upgraded our BI 7.0 to BI 701 EHP1 with 05 patch level. After this we had a problem with reporting authorizations for a report (query), which has created under Virtual Infoprovider. Earlier the report use to be execute perfect

  • Photoshop Starter 3.0/windows xp

    I loaded pics from camera card thru card reader which launches automatically to Photoshop. I have pics in a folder "K" in the catalog. I have tried to do the "reconnect missing files" but does not work. The file has a .ink extension and a message abo

  • Save 10 png images in one minute

    Hi, I have basic knowlegde of how to use labview and I like labview very much. therefore, I am desperate to know how to save several (at least 10) png images (using wrtite to PNG vi) in a directory in a minute. any help would be greatly appreciated.

  • CALLING REPORT

    Hi , Iam calling a report from form using run_product.I want to supress the display of parameter form of the report.How i do it? I generated the report with no parameter form option.It is not displaying the parameter form when i run it in the report