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.

Similar Messages

  • Populate in control block

    In a form i have 3 blocks.
    1. block name - ctlblk - Single Record
    2. block name - basblk1 - Single Record
    3. block name - basblk2 - Multi Record
    Blkname - Item
    ctlblk - custcd
    basblk2 - custcd
    I am entering the data based on the custcd. For a single custcd 100 i have 10 Records, for custcd 200 i have 10 Records.
    After querying i am navigating in the basblk2 - Multi Record block.
    I want to assign the custcd to ctlblk - custcd
    How to do that.

    you problem is still not clear to me...
    you want to change ctlblk.custcd according to block2.custcd or you want to change block2.custcd on basis of ctlblk.custcd...
    you can assign it on post-query trigger.
    Please clear ur problem...i hope u will not mind.
    Regards,
    Neeraj

  • Control Block - Preventing creation of new record

    hi,
    i have a control block with two text fields. i do not want new record created for this block when the down key is pressed.
    How do i do that ?

    Re: data disappears when pressing down arrow key

  • 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.

  • Form with a control block

    I have a form with no database block. there is only one control block with a button
    when a user presses the button I insert record into a table and then commit;
    I am getting no changes to save message. how can I avoid that.
    (setting record-status to query?) any other way?

    Change your design of logic. In the case insert and commit in procedure on the server side.
    Try to play with :system.message_level.
    Well, consider using the FORMS_DDL command, of course.

  • Control Block

    Hi all,
    I have a control block with one item and a push button.
    and i have another block that one is a base table block. i need to display records in the base table block using the control item and a push button. What coding i should write for this.
    Thanks

    Hello,
    Please be more specific on what you want to accomplish. For example, do you want your users to display the records in the base block when they click on the button in the control block (in this case, attach a when-button-pressed to the button and use the built-in execute_query for example).
    Second, what is the use of the item you have in the control block. Do you use it to hold a value that is going to be used in a WHERE condition for example ?

  • 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

  • Fill in form with records from a database

    hi using adobe live cycle desginer could some one guide me or tell me what to look for so i can:
    populate my pdf form with records from a ms access database
    my site is in asp
    thanks

    This [url http://forum.java.sun.com/thread.jsp?forum=57&thread=497641]thread should get you started.

  • 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.

  • Buttons in a control block

    Greetings,
    I have a simple question. Do buttons in a control block automatically act on other blocks within a form or do they need to be told what block to act on.
    I have a template form that consists of a control block with a couple buttons such as save, clear and exit. My scheme is to bring in the template and introduce other blocks that write to and query the database. The buttons are not necessarily doing what they are supposed to.
    Bradley

    Hi Bradley,
    As per my understanding you need a toolbar of buttons performing generic actions (e.g COMMIT, CLEAR_RECORD)on all the blocks in a form.
    Ensure that the Mouse Navigate property of all the buttons is set to No. Otherwise, the associated code ( I am assuming all code is in WHEN-BUTTON-PRESSED)will be performed on the block the button belongs to.
    Monica

  • 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.

  • Populate control recod with data

    Hi all,
    i need to populate the control record for the field EDIDC-RCVLAD with some relavant data for the message type debmas and idoc type debmas06,where and how can i do it.i am sending the customer master trough BD12.please let me know.thanks alot.full points are awarded for all helpful answers

    Why you want to send information in control record? Control record will be generated by BD12 for status. You can pass whatever information you want in one of segment/field of data record.

  • How do I take data from a query sample record and query another block with it?

    I have a master/detail form (6i) that contains a master block (staff), and a detail block (phone). I would like to be able
    to query by phone number, but when I execute the query, I would like a 'search results' box to pop up that contains the
    phone number I queried for, as well as some other staff info. There might be multiple records that match my query,
    and I'd like them all to be listed (or list 10 or so, with a scrollbar). I'd like a push button next to each record that will take
    me back to the master/detail window with that record displayed. So, I created a third block that is based on a joined
    view of the staff and phone tables. It is a multi-record block, with 10 recs displayed and a scrollbar. It is in a separate
    window. I don't want the user to have to navigate to that block, however, to perform their query. I would like them to be
    able to enter the query in the phone number block, then somehow grab the phone number they've entered and use it to
    query my 'search' block. This is the part I'm having trouble with. Can someone please help? THANKS!

    Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
    fullXML[myDataGrid.selectedIndex].FIELD_NAME;
    myDataGrid would be the id from the grid I am guessing?
    and selected index would be the channel.description part?
    and FIELD_NAME; is the variable name?
    does this go into a funtion or is it placed at the top where the variables are declared?

  • Query for records on a block with Query Data Source Type : Procedure

    Hi All,
    The veriosn of form I'm using is:
    Forms [32 Bit] Version 6.0.8.23.2
    I have a block based on a procedure.
    But when I enetr-query and search for records specific to ceratin criteria even then the result of the Query is all records.
    Is Query not allowed on a block with Query Data Source Type : Procedure.
    Hope my question is clear.
    Thanks in advance.
    Regards
    Arif

    When you use a table based block, forms can construct any select with any where clause based on the given inputs. Using a procedure based block, forms cannot "know" which in or out parameter of the procedure corresponds to which item. Even if Forms could pass the value of an item to an argument automagically, the procedure would have to "do something" with the argument, and you´d have to code it.
    So, any item that should be used in the where-clause must be mapped to an argument.
    Perhaps it would be easier to use a table based block querying a view? For DDL, you could use an instead-of-trigger on the view.
    Regards,
    Gerd

  • 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").

Maybe you are looking for

  • I cannot see the option for face time of open and close in iphone 4s

    Plzzz tell me no facetime option for on and off is nott comming in settings help me plzzz

  • Order wise-Planned hours VS Actual Hours report

    Hi, Is there any report which shows me the Orderwise Planned Hours VS Actual hours. Regards SB

  • How to create a page break in application designer

    Hi Folks, I need to create a simple page break in a PeopleSoft online page for the purpose controlling how the page prints. To achieve this, I'm using an HTML area in app designer with the following page break code: <p style="page-break-after:always;

  • Legend in not shown in report output for a piechart

    Hello, I have a piechart embedded in a report. In the graphics builder for the properties of the chart I have mentioned to show legends .It(Legend) is being shown in layout of graphics builder also . But when i run the report legends are not all bein

  • Tune up sql script

    hi,need somebody to tune up this script,its take about > 1min tq select ood.organization_name organization_name, ac.check_number cheque_no, acs.name document_name, aip.creation_date date_payment, ap_inv.invoice_num invoice_no, ap_inv.invoice_date inv