HTML DB populate records

I have two screens the first one display like this
Name service start_date date_date Time (hr)
XXXX UNIX 01/10/05 01/11/05 5hrs
YYYY DBA 01/02/05 01/03/05 5hrs
YYYY DBA 01/03/05 01/04/05 24hrs
YYYY DBA 01/04/05 01/05/05 12hrs
YYYY DBA 01/05/05 01/06/05 12hrs
[cancel] button [new schedule] button (promp the second screen)
My user want to enter a block date (e.g. start date:01/03/05 end date 01/06/05).
and the system has to create a record for each date. I have a formular to figure out the hour.
I have second screen for the user to enter as following:
Name: YYYY
Service: DBA
Start _Date:  01/03/05    End Date: 01/06/05
[cancel] [insert]
When the user click [insert] the system insert the record as display on first screen. My requests are:
What is the code like like?
Where do I put the Code?
Help Help!!!!!

Maybe the item source is not using the cached value. Set Source Used to "Only..." and try that.
If that doesn't solve the problem, realize that you provided almost no useful information so my suggestion is a wild guess. The next step in this case, and for any future problems, is to provide a clear description of everything about your page and the nature of the problem. This is most easily accomplished by putting an example in your workspace on htmldb.oracle.com.
Scott

Similar Messages

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

  • How to define reporting time types for 0HR_PT_2 to populate records in rsa3

    hi experts,
    we are implementing Time and Labour and we are using info provider called 0PT_C01.
    for that we have 2 data sources one is 0HR_PT_1 and 0HR_PT_2.
    when i check in RSA3 there are records for 0HR_PT_1 Data source, but for 0HR_PT_2 data source it shows 0 records though the related info types have data.
    i have checked in sdn for the solution, most of the replies are related to maintain Reporting Time Types.
    can you please provide me step by step solution to maintain Reporting Time Types in ECC.
    Regards
    venuscm

    Hi Venu,
    You can maintain reporting time types in SPRO,
    SPRO > Integration with Other SAP Components -> Data Transfer to the SAP Business Information Warehouse -> Settings for Application-Specific DataSources (PI) -> Human Resources -> Actual Employee Times OHR_PT_02 -> Define Reporting Time Types -> Maintain Reporting Time Types
    Check with your HR team about maintaining reporting time types.
    [http://help.sap.com/saphelp_46c/helpdata/fr/e8/cb2d28e4ded31184080004aca6e0d1/content.htm]
    Regards,
    Durgesh.

  • How to pass html input as record

    Hi to all,
    i've a form with 5 input type text and i would like to pass it to a procedure as record, it's possible?
    tnx

    SQL> create procedure p
      2  ( p1 in varchar2
      3  , p2 in varchar2
      4  , p3 in varchar2
      5  , p4 in varchar2
      6  , p5 in varchar2
      7  )
      8  is
      9  begin
    10    dbms_output.put_line( 'p1 = ' || p1);
    11    dbms_output.put_line( 'p2 = ' || p2);
    12    dbms_output.put_line( 'p3 = ' || p3);
    13    dbms_output.put_line( 'p4 = ' || p4);
    14    dbms_output.put_line( 'p5 = ' || p5);
    15  end;
    16  /
    Procedure is aangemaakt.
    SQL> exec p('Is','this','helpful','to','you?')
    p1 = Is
    p2 = this
    p3 = helpful
    p4 = to
    p5 = you?
    PL/SQL-procedure is geslaagd.Or do you want something with recordtypes?
    Regards,
    Rob.

  • Search for a record from Access Database, and populate records in Drop Down List, and View It

    Hi,
    I created a PDF form where I have open, next, previous buttons, and I'm able to connect to the access database, and it's working fine. Now, I want to be able to search by last name from the access database, and retrieve the results in a dropdown field, and then once i select the records in the drop downlist, i want to press a button to display the record. I have multiple records with the same last name. Please help, I searched the internet for hours, and can't find something similar. Your help is appreciated, and sample code is appreciated.

    <%
    int count = 0;
    while (rs1.next()){ %>
    <%if (count ==0)
    {%>
    <option value="<%=inputorthodon%>" selected >
    <%=rs1.getString("ortho_name")%></option>
    <%}
    else{%>
    <option value="<%=inputorthodon%>">
    <%=rs1.getString("ortho_name")%></option>
    <%}
    ++count;} %>
    </select>
    U may have to format this a bit. The idea is to use a count variable to put "selected" in only the first OPTION. After that, we don't have to.
    Hope this helps.

  • Subject: Trouble in Multi-Select LOV. Does not populate records in Base Pag

    Hi Friends,
    I am trying to use multi-select LOV for the first time. But the base page table does not get populated after the rows are selected in the LOV. I am initializing the Base Page VO like below. And all fields are mapped between both the VO's, Can you please help as to what else could be the problem.
    if("UPDATE".equals(s1))
    vo.setMaxFetchSize(-1);
    vo.executeQuery();
    } else
    if("CREATE".equals(s1))
    vo.setMaxFetchSize(0);
    vo.setPreparedForExecution(true);
    }

    Is there any other piece of code you have used?
    Try my suggestion and follow the Dev guide once step by step to implement the multi select LOV. They have a nice sample and then you can compare where you went wrong. I feel like you are missing something part of setup.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to display records dynamically by columns of the table?

    hi to all,
    i'm trying to figure out quite a long time now. is it possible to populate html table with records via columns? (because most of us are familiar with rows up to the last record) i do have a pseudocode below:
    print ('<table>');
    while (!eof) {
    if (cnt % 4 == 0)
    // breakline w/c means let's have another row since
    // we displayed the records 4x now so we need
    // another row to continue
    else
    // continue column generation
    cnt++
    print ('</table>');
    i don't know if this is quite clear... but i do hope you know what my goal is... i have an app that i need to display (like live.com in searching images) to display all the searched items (and then onmouseover it will get big some sort)... but since the records i have are the ff:
    CREATE TABLE "ERA_DB"."PARTS"
    (     "PARTID" VARCHAR2(15 BYTE) NOT NULL ENABLE,
         "PARTNAME" VARCHAR2(75 BYTE) NOT NULL ENABLE,
         "RETAILPRICE" NUMBER NOT NULL ENABLE,
         "COSTPRICE" NUMBER NOT NULL ENABLE,
         "ACTIVE" NUMBER DEFAULT 1,
         "CATEGORY" VARCHAR2(2 BYTE) DEFAULT 'NA',
         "DESCRIPTION" VARCHAR2(255 BYTE),
         "TYPE" NUMBER DEFAULT 1 NOT NULL ENABLE,
         CONSTRAINT "PARTS_PK" PRIMARY KEY ("PARTID") ENABLE
    i need to display like the ff:
    partname
    partid
    image
    description
    price
    these are inside a box w/ borders (the concept is like live.com in their image search)
    thanks so much!

    This was written for pear::db but I think it should go pretty similar for ADODB.
    $result = $db->query ("SELECT PRODUCT FROM INVENTORY WHERE COMPANY='$_SESSION[company]'");
    while ($data1 = $result->fetchRow(DB_FETCHMODE_ASSOC))
    $data2 = $result->fetchRow(DB_FETCHMODE_ASSOC);
    $data3 = $result->fetchRow(DB_FETCHMODE_ASSOC);
    $data4 = $result->fetchRow(DB_FETCHMODE_ASSOC);
    $rows .= " <tr>\n";
    $rows .= " <td width=150 align=right>".$data1[PRODUCT]."</td>\n";
    $rows .= " <td width=150 align=right>".$data2[PRODUCT]."</td>\n";
    $rows .= ' <td width=150 align=right>".$data3[PRODUCT]."</td>\n";
    $rows .= " <td width=150 align=right>".$data4[PRODUCT]."</td>\n";
    $rows .= " </td>\n";
    $rows .= " </tr>\n";
    }

  • Dynamically creating a Record Group based on Previously entered Record Grou

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Hi,
    I know how to dynamically create a record group based on a query and putting the code in When new form instance.
    My query is. I have a form which has multiple Record Groups and the user wants to dynamically create subsequent groups based on previous groups.
    For example
    I have a record group with selects a Location,
    when the user selects the Location from a list of values
    the 2nd record group called 'Cost Centres' will have to filter out only those with the locations selected above.
    How can I populate the 2nd record group at run-time when I do not know what site the user will select?
    If I simply populate in when new form instance as in location and just select everything, the list of values populates.
    CC field is a LIST ITEM and the list style is a POP LIST, it is not required.
    I have put the code in the Location field in the when-list-changed trigger.
    I am getting this error:
    frm-41337: cannot populate the list from the record group
    here is the code:
    DECLARE
    v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
    v_recgrp RecordGroup; -- Record Group
    v_status Number; -- Return Value of Populate_Group function.
    c_where VARCHAR2(1000);
    BEGIN
         IF :location = '1' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
         ELSIF :location  = '2' THEN
              c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
         ELSIF :location   = '3' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
                   ELSE
              c_where :=  ' 1=1'; --EVERYTHING
         END IF;
    v_recsql := 'SELECT cost_centre, description  FROM   cost_centres  where '||c_where;
    -- Create the Record Group
    v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
    IF NOT ID_NULL(v_recgrp)
    THEN -- No Error, record group has been successfully created.
    -- Populate Record Group
    v_status := POPULATE_GROUP('v_recgrp');
    IF v_status = 0
    THEN -- No Error. Record Group has been Populated.
    POPULATE_LIST('block.CC', 'v_recgrp');
    END IF; -- IF v_status = 0
    -- Delete the Record Group as it is no longer needed.
    DELETE_GROUP('v_recgrp');
    END IF; -- IF NOT ID_NULL(v_recgrp)
    END;thanks for your assistance.

    Hi,
    Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
    -Ammad

  • Refreshing results on html

    One last question, really !
    How for goodness's sake can I load the results in the html page without leaving it? Always when I click a button, I get redirected to the jsp that carries out the action.
    I`ve tried putting the <jsp: forward> tag at the bottom of the jsp, so when it is done with processing the db-results to redirect back to the calling-page.
    still no success on this one. for 3 days now, and my time is ticking away....
    please help me. thanks a million!
    -- do I always have to click a button to get some results? how can I load the results "live" without pressing anything ? ---
    Edited by: fankoff on Jun 21, 2010 7:07 PM

    Hi elOpalo,
    thank you for the answer. AJAX would exceed my otherwise very limited programming knowledge.
    I hoped there is a way to do this with JSP...too bad.
    I have this html with 4 forms. in the first two you put information, and the second two should update this information in html tables. So let say, when I fill in my "talents" and click on "add talent", the form activates an "db_insert_talent.jsp", does its work saving the data and then another JSP should update the information in a html table just bellow the form.
    Any idea how to achieve this without AJAX? Thank you in advance...
    I image it happening in the following way:
    1. in the html I prepare a table with the name of the colums, the result would return
    2. I declare some paramaters using <%= param.getSomething %> in the cells of the table to eavesdrop for some changes
    3. the jsp is called, it does it work, gets some results and processes the values (??)
    4. the parameter in the html table populate the values
    5. everyone is happy ?
    Or thats totally not the way it is done?
    Edited by: fankoff on Jun 22, 2010 4:59 AM
    Edited by: fankoff on Jun 22, 2010 5:05 AM
    Edited by: fankoff on Jun 22, 2010 5:11 AM

  • Multiple recording passes for cycle/autopunch

    Okay, this is a basic tracking question: I've got a cycle area defined, and within that cycle an autopunch region. What I want to do is record multiple takes within that autopunch region every time the cycle repeats. The problem is, every time the cycle repeats, the transport switches from record to playback. If I hit the record button again when the cycle repeats, the record button lights up, but nothing actually records. Basically I have to stop the transport every time and then hit "Record" in order to record an additional take. The user guide implies that you should be able to record additional takes during a cycle, but I can't figure out how to get it to work. If you create a cycle area with autopunch turned on, the transport reverts from record to play on each cycle. But if there's no autopunch area, the transport remains in record mode with each cycle pass.

    You're not crazy - I am new to Logic & Mac's (having used Sonar & PC's many years) and came upon this exact problem. Looking at threads from other forums some people claim Logic had this functionality in earlier versions. It is apparently a known bug - (you can refer to this link: http://www.chellman.org/audio/logicgotchas_marquee_tool_and_autopunch_with_cyclerecording.html ).
    Cycle recording combined with autopunch is the main if not only method I use for punching in/out. I really hope Apple will address this seeing how I recently gave up on pc's for hd recording and have moved to (and just purchased) a Mac and Logic.
    So far the only way I can see getting around this is recording in cycle mode - setting the cycle time region before and after you actually want to punch in/out, recording multiple takes, and then using the comp editing procedure to basically "select" the bit you want to use from one or multiple other takes (this would have been the region defined by autopunch) and using the initial part of the original take (the part you wanted to play over, hear, and synch up with but not hose) from the original take. I tried it and this works, but imo it is very cumbersome and way more time consuming.

  • Populate list from recordset on Parent/Child form

    We have a parent/child form and want to populate several lists from recordsets. We can populate the child canvas by calling a procedure from the WHEN NEW FORM INSTANCE trigger but the same code fails when trying to populate a list on the Parent canvas. If I move the code to a PRE-BLOCK trigger on the parent block, then it works. I just kept moving the code until I found something that works. Can anyone tell me why it wouldn't work from the WHEN NEW FORM INSTANCE trigger? Is PRE-BLOCK the correct place?

    WHEN-NEW-FORM-INSTANCE trigger
    Add_Orgs_Lists('HR_PERSONS.OFFICE_SYMBOL');
    PROGRAM UNIT
    PROCEDURE Add_Orgs_Lists (list_name VARCHAR2) is list_id ITEM;
         col_name VARCHAR2(80) := SUBSTR(list_name, INSTR(list_name, '.')+1);
         sql_stat VARCHAR2(2000);
         BEGIN
         --Find ID for list item.
              list_id := FIND_ITEM(list_name);
              IF ID_NULL(list_ID) THEN
                   MESSAGE('List Item ' ||list_name|| ' does not exist.');
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         --Build the SQL statement.
         --     message('In Get_Org');
         sql_stat := 'SELECT Distinct Org_Name, Org_Name FROM HR_Organizations
         ORDER BY 1 ASC';
         Populate_the_List(list_id, sql_stat);
              EXCEPTION
                   WHEN OTHERS THEN
                        MESSAGE('Internal error occurred in Add_Orgs_List.');
                        RAISE FORM_TRIGGER_FAILURE;
    END Add_Orgs_Lists;
    PROCEDURE Populate_the_List (list_id ITEM,
                                                           sql_stat VARCHAR2) is
         group_id RecordGroup;
         outcome NUMBER;
         --List_Elements  VARCHAR2(40);
    BEGIN
              --message('In Populate_the...');     
    --Create temporary record group.
    group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
    IF ID_NULL(group_id) THEN
         MESSAGE('Record Group could not be created in Populate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate record group.
         outcome := POPULATE_GROUP(group_id);
         IF outcome <> 0 THEN
              MESSAGE('Record Group could not be populated in Populate_the_List.');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    --Populate list item
         POPULATE_LIST(list_id, group_id);
    --Destroy the temporary record group to release resources
         DELETE_GROUP(group_id);
    EXCEPTION
         WHEN OTHERS THEN
         MESSAGE('Internal error occured in Popluate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END Populate_the_List;
    The error is FRM-41337 Cannot populate the list from record group. It happens when we open the form. We are using the same code to populate the lists on the child form (except the SQL statement is different) and it works correctly.
    I appreciate your help.

  • Triggering SRM workflow from a  web-based form (HTML)

    I am a beginner in SAP, please bear with me.
    I have created an online data entry form using html to populate a table in a non-SAP database. I am able to call this form in SAP EP using URL iView.
    I want some help on triggering an SRM workflow from this form.
    Thanks.

    Hi Vadim,
    I would like to explain the scenario:
    1.The form would reside in the SAP Enterprise portal
    2.When the form is completed and the "submit" button is  clicked, I expect a workflow in SAP SRM to be triggered.
    3.The workflow is a developed three-step approval workflow. It was developed using the Hierarchical Approval workflow wizard.
    Questions:
    1. How can the workflow be triggered when the submit button is clicked?
    2. How can the data from the Form be integrated into the workflow and vice versa?

  • Hierarchical tree take  lot of time to populate

    Hello fellows
    I have a form using hierarchical list. when populate it from the record group it take lot of time.
    this record group is using four loops and outer loop range is from 1 to 3000 and all inner loops range is from 1 to 3,
    Oracle.exe get time of 1 minute to populate record group and ifrun60.exe get time of 5 minutes to display tree.
    have you any suggestion to improve the performance of this form

    Hi all
    In order to populate tree faster its better not to populate it using Record Group.
    use the htree fucntions for parent and child nodes in the populate tree trigger or When node selected trigger.
    Ahsan

Maybe you are looking for

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard

  • Print Error Log Text in Report

    Hi I am facing a issue. i have displayed the error requests. i want to add one more functinality in that. once i will click on a error request then the detailed log of that error request should be shown. but once i click on a error request a ABAP dum

  • M Audio micro interface

    I'm fairly new to GarageBand, so please bear with me. I purchased a M-Audio KeyStudio 'kit' that included their 49 key keyboard and their 'Micro' USB interface. It works pretty well with the Pro Tools 'trial' that came with it, however I can't get Ga

  • Reverse the Clearing Document Number

    ab01     1     50     1010810     UNVERFID DEP RECIPT 25,062.00-                               ab01     2     40     1012149     D A 10512634040103-S       686.00                               ab01     3     40     1012149     D A 10512634040103-S   

  • Major Issues With Iphoto 09  *Please See PIc*

    I have never had my computer do this since day 1. Ever since Snow Leopard - if I crop or edit a photo - I get the following? Is my graphics card going bad? have no idea what this could be. Any insight on the issue? Thanks [IMG]http://i13.photobucket.