How to populate records in forms

hello all,
i m making project named library management in forms and sql,
i have a table names subject in which there are two fields subject and book_title
in forms both item are as TList now i want to do is when we select particular subject example maths..all the related books of that subject populate with it in the title_book column.how can i do this
please help me
thanx in advance

thanx
but can u tell me how to change the filter of the form block
regards
ruchi

Similar Messages

  • How to populate table from forms

    I'm working with forms 4.5 and have created a form that is based on table A. I need to be populate another table B which has the same fields as table A from this form. How do I do that?

    that's right but this way needs some more attention actually: make sure that insert block allows inserts and use only that table (not for instance view), then you have to call the form and browse throw all the records to fire the process and perform final commit.
    So the better way is to create procedure inside the form doing that automatically. You can use the block fields to assign values (:blockA.field1 := :blockB.field1). It seems to be easier to build and run.

  • How to extract multiple rows from a query and how to populate it in form.

    hi all,
    i want to populate multiple rows fetched from a cursor into form.
    i write this procedur.
    PROCEDURE populate_q (v_t_no IN number) IS
    cursor ext_q is
    select test_question.no, q_no, text, ans1
    from test_question , question
    where test_question.no = v_t_no;
    BEGIN
    for ext_rec in ext_q loop
         :take_detail.q_no := ext_rec.q_no;
         :take_detail.question := ext_rec.text;
         EXIT WHEN ext_q%notfound;
         end loop;
    END;
    and call this WHEN-NEW-BLOCK-INSTANCE trigger.
    this don't return all the rows only the lost one is populated
    and shown in form.
    thanks
    Muhammad Nadeem
    Mardan (pakistan)
    [email protected]

    Hi,
    look for the next_record built-in. Your cusror only addresses the current row, but you want to create new rows as you go
    Frank

  • How to insert records from form to database?

    Hi all, i manage to make a connection from my form in adobe designer 7
    to my database Oracle 9i, now i want to add some buttons to the form
    and navigate, delete or add data from my form to the database, anyone
    has ideas to accomplish this?, i made a button and use this code
    "xfa.sourceSet.dataConnectionName.addNew();" without the "", but in the
    debugger this message appears:
    "TypeError: xfa.sourceSet.dataConnectionName has no properties
    1:XFA:form1[0].hola[0].Button1[0]:click"
    hope someone can help me with this problem, thanks in advance.
    regards
    Alex

    Alex alatorre do you speak spanish? can you help me?
    I have de same problem
    want to add data from my form to the database, i made a button and use this code xfa.sourceSet.prueba.addNew();
    but in the debugger this message appears:
    TypeError: xfa.sourceSet.prueba has no properties
    1:XFA:form1[0].#subform[0].Button1[0]:click
    My data connection is with microsoft access (local mode). When i configure the data connection i make the test and it says test succes, but...
    how do i know if the connection is really made when i open my form in acrobat? I only need to do new data conection in designer and create de button or a need to configure something else?
    When i create the button ... i only need copy in the javascript window...
    xfa.sourceSet.prueba.addNew();
    or do i need something else?
    I am a newbie with this... and sorry about my english.
    hope someone can help me with this problem, thanks in advance

  • How can populate image into form using itemrenderer?

    Hi,
    i have an form employee form(form) and datagrid(contains image and edit button) in one screen.
    images and buttons are displayed in the datagrid using itemrendered(inline).
    My question is when i clicked on edit button the correspong image will be populated into
    employee form(as one formitem).How can i do it?
    Regards
    D.Mahesh babu

    Thanks prasanth.
    Here i am taking like this:
    <mx:FormItem id="formItem" >
           <mx:Image source="htttp://...../one/{dataGridId.selectedItem.empPath}" />
    </>
    Then i got the output.When i clicked on the edit buuton in datagrid(first row) then i got image is displayed in form.
    But wen i clicked on edit bitton in datagrid(second row) i got this error:
    RangeError: Error #2006: The supplied index is out of bounds.
        at flash.display::DisplayObjectContainer/addChildAt()
        at
    mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Con ta
    iner.as:2206]
        at
    mx.containers::Form/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\contain er
    s\Form.as:274]
        at
    mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Conta in
    er.as:2140]
        at
    mx.containers::Form/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\container s\
    Form.as:263]
        at
    lightemployee_inlineComponent2/fnEditDivisionRow()[\\India\c\wamp\www\reqtionary\src\light em
    ployee.mxml:251]
        at
    lightemployee_inlineComponent2/___lightemployee_inlineComponent2_Button1_click()[\\India\c \w
    amp\www\reqtionary\src\lightemployee.mxml:261]
    Regards
    D.Mahesh babu

  • How to populate a hidden form field with a value passed from another page

    I'm using PHP/MySQL and DW CS4.
    I am trying to obtain the external key for a table, and include it as a hidden field in a form for a second table.
    The user selects a "need" from a list and is taken to a new page which displays the need selected in the prior page and a form the user can fill out with details of his offer, there should also be a hidden field in this form that contains the index to the needs table, this hidden field holds the external key. Most of the code is working, except for populating the hidden field with the external key. I have proven(by printing it to the screen) that I have obtained the external key and stored it in a variable ($saveNeedId) . What I'm unable to do is assign this variable to the hidden field in the form I'm about to store in a table. Sometimes I get zero and sometimes I get the index to the first need in the table. This ought to be simple but I can't get it to work, I must be missing something obvious - still very new to PHP.
    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php
    I'd really appreciate sone help with this, I've tried all combinations of double quotes, percent signs and nothing works...sigh.
    Tony

    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    <input type="hidden" name="needId" value="<?php echo $_GET['needId']; ?>" />
    I looked at your page. It looks like you figured it out.

  • How can i populate records using LOV value in form 6i

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    How can i populate records using LOV value in form 6i Start by posting in the correct forum: {forum:id=82}
    (Seriously: after making all your previous posts in the Forms forum, how do you end up posting in this one? Is it because the Forms forum has changed category?)

  • How to populate a poplist through a record group?

    Dear People,
    I use forms along with 10g.I have create a record group RG9 with query SELECT DNAME FROM DEPT;.now how to populate it to a list item?.i tried it using a the following code in When_new_form_instance trigger.The code is as follows,
    declare
    a number;
    begin
         a:=populate_group('RG9');
                   add_list_element('block3.list6',1,a,a);
    end;It doesnt throw me any error.but unable to populate data into the list. pls do help me to make corrections in the above code.
    With Regards
    VIDS

    SELECT DNAME,TO_CHAR(DEPTNO) FROM DEPT;This is the format of the query required to populate a list item,
    where the first column value is the one that appears in the list of values
    and the second column value is the one that will get saved in the database or that will be the value of the list item.
    Just try using follwoing in WHEN-VALIDATE-ITEM trigger for list6
    message (:block3.list6)
    The message will be deptno and not the dname
    now values has been populated in the list.but can u explain me whats wrong with my previous query?
    SELECT DNAME FROM DEPT;why dint it help me to pop values in the list?.This query has just one column not as required.
    Hope its clear.

  • How to populate List Item from the table in a form builder

    I want to know how to populate the List Item (pop up menu and combo box) from a table.
    Supposing I have a table Customer(cust_id,cust_name)
    and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.

    This is the method i am using to populate a list.
    1- First of all you need to create a non-database list item for customer_name.
    2-create this procedure
    PROCEDURE populate_list_with_query
    --Populates the given list item with the specified query.
    (p_list_item in VARCHAR2
    ,p_query in VARCHAR2)
    IS
    /* Name the record group after the list item (no
    block prefix). */
    cst_rg_name constant VARCHAR2(30) :=
    GET_ITEM_PROPERTY(p_list_item,item_name);
    v_rg_id RECORDGROUP;
    BEGIN
    v_rg_id := FIND_GROUP(cst_rg_name);
    IF ID_NULL(v_rg_id) THEN
    v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
    END IF;
    IF POPULATE_GROUP(v_rg_id) = 0 THEN
    POPULATE_LIST(p_list_item,v_rg_id);
    /* Force display of first list element label
    in the list item. */
    COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
    END IF;
    END populate_list_with_query;
    3- Create When-Create-Record on the block level and write this code
    BEGIN
    POPULATE_LIST_WITH_QUERY('bk1.customer_name',
    'SELECT customer_name, to_char(customer_id) FROM customer');
    END;
    In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
    i hope this will solve your problem ...

  • How can i populate records using LOV value

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    Hi maddyd2k
    How can i populate records using LOV valueIt's not clear what u r trying to do create, create then want to...
    1.Pls Create a non-db item db set to > no named DEPT_NAME
    2. when creating the LOV assign the DEPT_NAME FROM DEPT table to that displayed item and u have also to assign the Dept No selected to the Dept No in the emp block
    To populate or display DEPT_NAME after Query - the If i got ur problem then - u need to cretae a Post-Query Trigger then use the following...
    BEGIN
    SELECT DEPT_NAME
    INTO :CONTROL_BLOCK.DEPT_NAME
    FROM DEPT
    WHERE Dept No = :Dept No;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    WHEN OTHERS THEN (ERRTXT);
    END;Hope this helps...
    Regards,
    Abdetu...

  • How to populate values in List Box in Adobe form

    Hi,
    How to populate values in List box in adobe forms?
    Thanks
    RB

    if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
    or if u want to display values from the context node of the webdynpro
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    with regards
    shanto aloor

  • How to populate a field in an Infopath form based on the people picker input - only OOTB approach

    Hello,
    I have 3 lists : Resource , Project, Contract
    In "Contract" list i have created a form with MS Infopath 2010. This form is used to collect data of a new resource joining a project . This form also takes the information about the resource's costs.
    Scenario :
    Project informations are already present in the "Project" list.
    Any new resource who will be joining a project will be added in the "Resource" list at first . This list has its own form to do so. While adding this resource the form asks for the project which should be assigned. This is dealt with.
    "Contract" list : In this lists form their is a people picker field where the resource email id(already inserted in "Resource" list earlier) will be typed by me. There is a field which will capture the project name.
    Issue in "Contract" list:
    When i type the resource email id and click on the people picker icon , the project field in the form should get auto populated with the corresponding project of the existing resource so that i donot have to type the project name again. This project info
    should be fetched from "Resource" list only.
    Please let me know how i can achieve this by OOTB approach .
    Regards,
    Guru

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • How to populate drop down list in infopath 2010 with form library column

    I created one column of choice type and have put 3 values on this column in form library in site.
    and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • HT2470 how do I record a song that is playing form my Macbook.

    How do I record a song that is playing form my Macbook?

    Re Sync it to your MBP and Uncheck the song...
    Syncing with iTunes
    From Here
    http://www.apple.com/support/ipodtouch/syncing/

Maybe you are looking for

  • Late 2009 Mac Mini odd Super Drive Loading and Ejecting Noise

    I have had no problems with my Mac Mini until now. Just today I inserted a disk into the super drive and it made a different noise to usual as it took the disk. Also, when I ejected it, it made different noise to what it usually makes. The drive stil

  • How to Hide a Tab in FPM

    Hi Colleagues, We have a requirement in which we have to dynamicaaly hide a tab on a screen that uses FPM. We were able to disable the tab but we did not find any option to hide/remove tab provided by FPM. regards ashish

  • Do I need to add new users under sun-web for declarative security to work?

    Hello, Do I need to add a <principal-name> element under sun-web.xml whenever a new user registers on my website? I am planning to use declarative security for my website, so I went ahead and created a custom realm that uses JDBC to get users informa

  • Merge Modules X Service Packs

    Post Author: marciocallejon CA Forum: Deployment Hi, I've been developing applications using Crystal Reports Developer 9.0 with .Net 2005 for a long time. At the development machine, I installed the service pack 7.0 and it works fine, but, when I try

  • Redirect page if plugin not installed

    I need to provide an alternative (html only) page for users without the flash player installed. What I don't know is how to set up a redirect based purely on whether someone has flash player installed. Help!