Single Record in Form

All,
I have an application which has a form where users submit accounts for review. It is working great and populates a table in my schema, but of course we need to have these accounts reviewed by my team. I am attempting to design a button that will pull a single random account that was submitted into a report/form (not sure which to use) so that my team can review them for errors and have an 'accept' or 'deny' button.
What would be the best method for designing such a review. The button would need to execute PL/SQL that would update the 'user id' column of the person clicking the button and thus "assigning the account to them" and display that single record in this report/form so that they can easily review it for approval. I have already written the SQL that will pull a random record from the table. The Accept or Reject buttons would insert a Y or N into the accepted column.
We are using Oracle 11g and Apex 3.2. I am just not the best at PL/SQL and not sure how to get such a button to launch this form.
On a separate note I have used JQuery and have seen the posts on how to create a form via JQuery but not sure how to bring in a random loan with by executing SQL.

Any detail form can be made into this "random form" . Say you have detailed form based on the submitted records table. Now it would have a hidden field holding the PK value. If you were to link to this page from a any other page setting this primary key field, it would automatically populate the form with the record details.
So if the button that "randomly" pulls out a record were to redirect to this page and set the PK field with some value, it would be fetched and can be processed.
Suppose you don't set the PK field, but rather add an "onload before-header" PLSQL process in the same that fetches a random PK value(among submitted records) and set the PK feild automatically. Any redirection to the form would then pick up and show a random record.
That process could be as simple as
BEGIN
  SELECT <PK column> INTO :<page PK Item>
  FROM ( SELECT <PK column>
               FROM <table>
               WHERE <filter critera>
               ORDER BY  dbms_random.value
  WHERE rownum=1;
END;So just a create a normal detailed edit form and add this process to the onload(make sure it runs first).
Change the button to redirect to this page.

Similar Messages

  • Want to show data from current month & prev month in single record on forms?

    Hello experts,
    i have this requirement:
    Table structure:
    MOnth       Division         totalAmount
    01-apr-2013      1               10000
    01-May-2013    1               20000
    01-apr-2013      2               30000
    01-May-2013    2               50000
    i want to display in forms like
    Form:
    Month  : 01-May-2013
    Month               Division               total               prev_Month          division               total                         dIFFERENCE
    01-May-2013               1              10000                01-Apr-2013               1               20000                        10000
    01-May-2013               2              30000                01-Apr-2013               2               50000                        20000
    I am using two procedure for fetching records for current month and previous month.
    but it will cause problem, if for some division previous month data not present.
    please suggest me some query with which i can fetch current and pre month data in single record.
    Please help me out.
    Thanks
    yash

    I'M NOT SURE BUT TRY IT ............
    select x.mn mnth, x.division, x.totalAmount total, y.mn prev_month,  y.division, y.totalAmount total, (y.totalAmount - nvl(y.totalAmount,0)) difference
    from
      (select month mn, division, totalAmount
      from table_name
      where month = (select max(month)
      from table_name
      ) x,
      (select month mn, division, totalAmount
      from table_name
      where month = (select add_months(max(month),-1)
      from table_name
      ) y
    where x.division = y.division(+)
    MOSTAFIZ MITUL
    DHAKA BANGLADESH

  • Open single record form for particular record

    It's simple to open tabular form for particular record
    - just add page item, pass value to this item
    and add this item to WHERE clause.
    But what is common approach for single record form?
    Where is it described?

    here is my solution:
    1) create page item which will receive primary key value
    2) look at Sample Application Page 7 - customers edit page -
    you need "Automated Row Fetch", called in "After Header" block

  • Single Record Form: fields display with the wrong width

    I'm laying out fields on a single record form and notice that the width of the fields displayed when I run the form is less than the width I specify on the "Edit Page Item" page. Here are 3 examples:
    field 1: Display as=text, Width=100, Maximum Width=100, ==> displayed width=76
    field 2: Display as=text, Width=50, Maximum Width=50, ==> displayed width=46
    field 3: Display as=textarea Width=100 Maximum Width=100 ==> displayed width=100
    Anyone know why this is happening? I'm trying to layout the form so that it has a pleasing look. It's hard to get the fields lined up when they don't display according to the widths specified.
    Edited by: Corvette Captain on Aug 9, 2012 3:21 PM

    Hi,
    >
    I'm laying out fields on a single record form and notice that the width of the fields displayed when I run the form is less than the width I specify on the "Edit Page Item" page. Here are 3 examples:
    field 1: Display as=text, Width=100, Maximum Width=100, ==> displayed width=76
    field 2: Display as=text, Width=50, Maximum Width=50, ==> displayed width=46
    field 3: Display as=textarea Width=100 Maximum Width=100 ==> displayed width=100
    Anyone know why this is happening? I'm trying to layout the form so that it has a pleasing look. It's hard to get the fields lined up when they don't display according to the widths specified.
    >
    Setting the Width of the Page Item sets the input elements "size" attribute. HTML rendering based on size attribute is not a precise as you need. You should use CSS for precision. See Compatibility Notes
    Cheers,

  • Any clue how to add pagination to single record form?!

    Is there any1 who tried to create pagination to single record form?! i tried this but i have problem with navigating to the NEXT record.
    Regards;

    Hello guys?!!
    Is there any1 in this forum can help me in my issue?!! am desperate.

  • Reverse auto-population to a shell attribute form/ single record instance BP.

    Hi All,
    I was wondering if anyone had experience in reverse auto-populating data from a BP within a shell to that same shell's attribute form or a single record instance BP like Project Information.
    My use case is that I have 7-10 BP's that gain more definition and have data within in them that changes from phase to phase. This leaves a need for one place with the most current information, which I thought Shell Attributes or Project Information.
    That being said as the information changes in theses 7-10 BP's throughout the life of the project the Shell Attribute form and Project Information should be updated via Reverse auto-population.
    Can anyone tell me if this scenario is possible, or if there is another way that i can achieve this?
    Your help would be appreciated!!!

    Yes, it is possible and fairly simple. Make sure that the DEs from the various BPs that will be passed are on the form of the shell or single instance record.  And make sure that integration is defined for those DEs on the shell or SI record. This is a common mistake, as people forget to define the integration and that is a must for reverse auto-pop.
    Then, on the BPs passing the data, open the form from which they will be passed and look at the properties. Define the reverse auto-pop normally, SI records are always available for this, and shells should be too.
    Sean

  • How to use execute query For a single record

    Hi All,
    I am working with oracle forms 10g, I have developed a custom form.
    I the form user enter some data and click save in the menu and data get inserted into my table. Inside the insert statement i have hardcoded some values, Once data get inserted i cant able to see that values immediately in my text fields in my form.After requerying i can able to see the changes.
    For example I have a text field called Status, and the field is display only field. At that time of insert i have hardcoded as "INCOMPLETE". Once the user enter the data in the form and click save the data get inserted in to my table but i cant able to see the status, after i requery my form i can able to see the status.
    Here i do multi insert also.
    This is my insert statement
    BEGIN
    First_Record;
    LOOP
    IF :BANK_GUARANTEE_BLK.CHECK_IN_OUT = 'Y'
    THEN
    XXBANK_GUARANTEE_HEADERS.XXBANK_GUARANTEE_INSERT;(this is my package, here i have written my insert statement)
    --Execute_query;
    END IF;
    Exit when :System.Last_Record = 'TRUE';
    Next_Record;
    END LOOP;
    END;
    If user insert only one row and i gave Execute_query to refresh and bring the current data, but when i use execute_query Its brings up all the datas in the table.
    Can any one tell me how to avoid this and how to use execute_query for a single record.
    Thanks &regards
    Srikkanth

    Solved,
    The solution is
    set_block_property('LC_REQ_BLK',ONETIME_WHERE,'LC_PO_NUMBER='||:LC_REQ_BLK.LC_PO_NUMBER);
    go_block('LC_REQ_BLK');
    execute_query;
    Works fine.
    Regards
    Sri

  • Integrating number of records into a single record

    Hi
    I have a table where we store trainees with certifications, it stores trainees address, id, pass/fail flag, course codes, competetion date and certificate expiration date. WHat I need is to display a single record for each trainee in my query. In this case, what we have currently in the table is we might have 11 certificates for a trainee or 1 or maybe 5 etc. All I need is to display all his information, address, trainee id, courrse code..course code11 in a signle record. Is it possible and how? Please help

    Try this one - it points to the same page and looks like it works:
    Re: How to show the SELECT result in a certain form?

  • Create a Formatted report for a single record

    I am trying to create a report for a single record in a document format instead of row and column format
    For example to list a custome information with list of orders.
    CustomerID ---------------------        Name ------------------------------------
    Address 1 ----------------------         Address 2 ------------------------------
    City --------------------------------        State -------------------------------------
    Zip ---------------------------------
    Order List
    Order 1            Qty          Total Cost
    Order 2            Qty          Total Cost
    We dont have crystal reports setup yet.  I am trying to use report designer...but it is not allowing me to do it.  It creates different group for each row in the query.   Can any one suggest how to do it using report designer or another way in BI 7.0 to create this kind of document.   I want to be able to print this document as pdf or other types.
    Any help is greatly appreciated..
    Thanks

    you can do this both in a formatted report or bex, depending on what kind of an outcome that you are looking for.
    basically, you are first going to present the data in a tabular format and then move the cells around, so the next time you execute the report (analyzer or report designer) it will stay in that format.
    if you are doing it in report designer, first create a query that pulls all required data points and gives them to you in an output as a table.  Then, add that query as a data provider for the formatted report, and you can create additional cells and move the key figures around.  Report designer is a little crude for formatting, but it works
    if you are doing this in BEx Analyzer, then you can do the same thing: create a query and then use the BExGetData formula to pull the required data into required cells
    if you are looking for HIGHLY formatted report (for example you want the output to come out on forms, etc), then you would need to use the Crystal Reports.
    Regardless of what you use for the presentation of the data, the data generation is controlled by the Query itself.  This is one of the tools that SAP is not planning to take away: all the future presentation options will use the query as the data source.
    good luck

  • How to make a single record datablock?

    Hi all,
    I got a data-entry form (9i) that will input a record one at a time and commit before entering another record.
    I try to set the block as single-record to yes but it gives error, and after checking with help, I understand that it can not work with database data block.
    Is there any idea on how to make the data block to show only one record? The problem is that after entering some data on the record, sometime the data-entry clerk may push the arrow-key that make form shows the next record items, which will be empty, and this will confuse the clerk!
    Thank you for your help.

    Add Triggers KEY-UP(DOWN, NXTREC, PRVREC...) to the following effect:
    NULL;
    or
    NEXT (PREVIOUS) _ITEM;                                                                                                                                                                                                                            

  • Non Database single record block, SAVE message issue

    Hi,
    Please help me to resolve it,
    In Form I have single record block which is not based on table or view , I wrote Insert & update script in When-Button-press trigger for save button. It does update or save record but doesnt show any message which normally shows at the bottom of the form that 1 Rcord saved. How can I display that message?
    Thanks
    --Vijay

    Either u can give some conditions in save button and give procedure_alert('Record Saved Successfully..').. It depends upon how u give the condition...
    OR
    in when new form instance trigger, u would have gave :SYSTEM.MESSAGE_LEVEL := '20'... delete this code...then the builder itself will show all the messages including insert and all at bottom of window....

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

  • Single record in a multi record block

    How do I disable a single record in a multi record block keeping only the display option in Forms 4.5

    you can't in 4.5 you can do it in 6.0 with the set_item_instance_property.

  • Search for and edit single record in database

    I am creating a few forms that access an Access database that will be used to enter data into the database.  I am able to open records from the database and scroll through records one at a time and have added features to be able to search for and display a single record.  The problem that I am having  is when I load a single record and then edit that record, I am unable to save any changes made to the record, in other words, the record doesn't update on the database.
    I can add new records and edit records as long as I scroll to them using .next(), .last(), .first(), and .previous() commands; however, when I load a single record I can't figure out how to save changes to that record in the database.

    Ok...so I think i can get it to work by doing something like:
    xfa.sourceSet.DataConnection.open();
    xfa.sourceSet.DataConnection.first();
    var oRecordList = ???????????
    var nCount = oRecordList.length;
    for (var i = 0; i < nCount; i++){
        if (CurrentRecord.rawValue != SearchField.rawValue){
            xfa.sourceSet.DataConnection.next();
    where CurrentRecord is a text field that shows the index of the current record and SearchField is the field where a user enters the record that they are searching for.
    I think I just need to figure out how to count the number of records in the database.  Any ideas?

  • Display readonly single record

    Hi
    What's the best way to display a single record in Apex? I need it to be display only (read only). A form or report region doesn't seem to do it.
    So for example something like:
    Customer Details
    First Name: John
    Surname:    Doe
    Address:      23 Anystreet, Anytown
    etc.

    PaulBroughton wrote:
    Sorry one thing I should have said is it is only available on classic reports not interactive ones.
    However interactive reports have Single Row View and Detail View which display similar layouts.

Maybe you are looking for

  • BW 3.5 authorization question - cross posting

    Hi All, My client is utilizing dynamic hier node authorizations (via customer exit) on 0EMPLOYEE, and we have come to a road block.The ABAP is processing the variable at I_step = 0 or 1, and is working perfectly. The problem is that when a query is w

  • Is there a way to disable push mail from Yahoo? It's draining my battery

    I'm on the prepaid plan and every 10-15 minutes my iphone turns on with a "The last transaction cost $0.00" message. I don't mind the message (although it is a bit annoying) but my problem is that this turns the LCD on for about 2 minutes at a time.

  • When is a def assigned to his constant value in a derived class ?

    Hi , I encountered some strange thing in my app when using a def in a derived class from abstract base class. (dived by zero exception) I point it out here using a small code snippet which reflects the problem in my app: public abstract class Base{  

  • Failover, SO activation sequence and Log

    Hi Wud u please clarify my following doubts :- 1. Failover If a partition carries 3 failover service objects-. A, B & C - and if service object A fails, I believe that the whole partition in replicated and reinstantiated. If so what happens to the no

  • Firefox 6.0 apears to have crashed, all my tabs and the new tab groups too are lost, Why?

    When opening Firefox this time-today, shortly after (a few days ago) updating to the Firefox 6.0 update and setting up the new Tab Groups, now none of my Tabs or Tab groups are showing/available (I checked the Tab Groups area also). What the heck hap