BLOCK based ON PROCEDURES in the FORMS

I'm looking to create a stored procedure-based forms (10 gr 2) block and I am unable to get all records to display in the form after the interrogation.

So far, I have:

1) created a package that defines a Ref Cursor
(2) created a procedure in this package that returns the ref cursor. The package has 2 arguments: the first is the ref cursor, defined as in OUT. The second is a parameter used in the SELECTION that fills the ref cursor.
(3) only tested the procedure by writing a routine of PL/SQL separated and proved that the procedure works and returns the expected values.
(4) using the wizard block, I created the forms block according to the procedure.
(5) define the QUERY DATA SOURCE ARGUMENTS to provide the second argument required for the procedure. The argument is hardcoded to the same value I used during the test in step 3.

When I run the form, and run the query in the menu (QUERY-> EXECUTE), absolutely nothing happens.

Where should I start to solve this problem?

Thank you

Have you tried the forum search? a block on the stored database procedure

Tags: Oracle Development

Similar Questions

  • How to insert a block of digital signatures for the form fillable

    Just upgraded to Adobe Acrobat DC. How to insert a block of digital signatures for the form to fill out?

    Tools > prepare the form

    Insert a signature field

  • Is there a limit or a procedure in the form of a 12 to DAS?

    We get an error when adding storage.

    Call 'HostDatastoreSystem.QueryVmfsDatastoreCreateOptions' of object "datastoreSystem-278"on vCenter Server 'vCenter.domain.local' failed."

    We have new Dell R710, with a new MD1000 DAS. We installed VMWare ESX 4.1 on the R710 134 GB. Using vCenter 4.1, we tried to format LUN 0 on the TB MD1000 11.82, but get the error above. We have also tried to format the additional storage of 4.1 vClient directly connected to the R710, we get the same error.

    We cannot find the error code of "datastoreSystem-278" indicated on VMware.com.

    We know that VMware 4.1 maximum file size is 2 TB and the maximum size of the Volume is 64 to, we should be able to format the additional storage/LUN to 12 TB?

    With the help of TPG, we know that Windows server 2008R2 can format > 12 to.

    Is there a limit or a procedure in the form of our 12 TB MD1000 DAS?

    This is the text from the error summary report:

    System.NullReferenceException: Object Reference not set to an instance of an object.

    at VpxClient.HostConfig.DatastoresAndVolumes.Util.GetSizeInBytes (option VmfsDatastoreOption)

    at VpxClient.HostConfig.DatastoresAndVolumes.DiskLunFormattingPg.GetSizeInGB (option VmfsDatastoreOption)

    at VpxClient.HostConfig.DatastoresAndVolumes.DiskLunFormattingPg.GetOptionSizeInGB (option VmfsDatastoreOption)

    at VpxClient.HostConfig.DatastoresAndVolumes.DiskLunFormattingPg.OnActivate)

    at VpxClientCommon.WizardFramework.TocWizard.DoNewPage)

    at VpxClientCommon.WizardFramework.TocWizard.OnNextValidationCompleted (TocWzPage, PageValidationResult pvr page)

    to VpxClientCommon.WizardFramework.TocWizard. <>c__DisplayClass1. b__0 < ValidatePage > (TocWzPage p, PageValidationResult pvr)

    at VpxClientCommon.WizardFramework.TocWzPage.ValidateDataAsync (PageValidationCompletedHandler h)

    Welcome to the forums,

    A quick answer to your question is Yes, there is a limit and it is 2 TB - 512 k

    a longer answer is due to the fact that ESX (i) uses 2 SCSI to SCSI protocol, the maximum file size that can be address is 2 TB if you need more, you have two options,

    first of all, the documentation States extended, but this is not really recommended because it is effectly game SPLIT of disks, and the same rules apply if you lose a disk/datastore

    The second option is to use NFS as your warehouses of data, on the LUN size may be greater than 2 TB, and 2 TB limit for VMDK also disappeared.

    Having said that you use DAS and as such, you only have the possibility to use EXTENSIONS

  • How to query the master block based on one of the values of the detail block

    Hello
    In the form of version 6i, I have a field in data block which is not defined as a database element. I use this field to store a block of retail value. If I want to ask the form using this field (which represents one of the values of retail block), how should I do this? Pointers?

    TIA,

    Yes, as Ammad10786 says, the ID's I mentioned are just placeholders for your real values. And done MASTERBLOCKID refers to columns in the masterblock which is the primary key or the join condition to the retail block.

  • Calling a procedure from a form of Oracle database

    Hello

    I have a question, we will be calling the procedure from a form of Oracle, and through that we can spend as input values from 1000 to this procedure and that we must return values back to the Oracle form also. Here the damaged take two or more parameters. Please advice.

    To receive the input values, we have the input parameter of the procedure as a type object, so that we can receive several parameter values.

    Thanks and greetings
    Srinivas

    user2626293 wrote:
    Hi François,

    Thanks for your response, please suggest me as to how we can achieve the passage of the parameters that can contain multiple values, by a call to the procedure of the form of the Oracle database

    Hi Srinivas,

    Here is an example of how...

    CREATE OR REPLACE PROCEDURE P_GET_SAL (P_EMPID NUMBER, P_SAL OUT NUMBER)
    
    IS
    
    BEGIN
    
         SELECT SALARY
         INTO P_SAL
         FROM EMPLOYEE
         WHERE EMPLOYEE_ID=P_EMPID;
    
    END;
    
    SQL> VAR G_SAL NUMBER;
    
    SQL> EXEC P_GET_SAL(100,:G_SAL);
    
    PL/SQL procedure successfully completed.
    
    SQL> PRINT G_SAL;
    
     G_SAL
    
    ----------
    
          2300
    

    Hope this helps

    Hamid

    If someone answer is useful or appropriate, please mark accordingly. *

  • Manual in the form of dynamic array

    Hi friends,

    I worked on a time sheet application I need to create a manual tabular presentation in the apex 4.1. I created a page with 3 items based on values that the form should be generated. I created a report region in the page with the source code as

    DECLARE
    v_query varchar2 (10000);
    BEGIN
    IF: P7_RELEASE_ID is not null THEN
    v_query: = ' SELECT b.act_code activities.
    apex_item. Text (1, a.ts_wd1, 10, 10) Monday.
    apex_item. Text (2, a.ts_wd2, 10, 10) Tuesday,.
    apex_item. Text (3, a.ts_wd3, 10, 10) Wednesday,.
    apex_item. Text (4, a.ts_wd4, 10, 10) Thursday.
    apex_item. Text (a.ts_wd5, 5, 10, 10) Friday,
    apex_item. Text (a.ts_wd6, 6, 10, 10) Saturday,
    apex_item. Text (a.ts_wd7, 7, 10, 10) Sunday,
    apex_item. Text (8, a.ts_remarks, 70, 128) comments
    tb_opti_emp_ts a, tb_opmi_proj_act_map b
    where a.proj_ref = b.proj_ref = ' | : P7_PROJ_REF |' and a.rel_id = b.rel_id = ' | : P7_RELEASE_ID |' and a.emp_id = ' | : P7_EMPLOYEE;
    ON THE OTHER
    v_query: = 'SELECT 1 double WHERE 1 = 0';
    END IF;
    Return (v_query);
    END;

    I checked the option "use generic Column Names (analyze the query when executing only)" under source and type is the SQL query (body of function from pl/sql returning sql query)

    in this 3 page elements are P7_PROJ_REF, P7_RELEASE_ID and P7_EMPLOYEE.
    Now, I created a button that unconditionally turns the same page and submits the page so on clicking on it that the data should be produced. I get the "no data available" when the elements of the page are empty, but when I'm legitimate data passing in the elements (btw, all three are popup LOV), I get an error message

    Failed to parse the SQL query:
    ORA-00933: SQL not correctly completed command.

    Please, I've been working for hours but not getting is not the solution...
    Anyone with a solution please...

    Hello

    Also if your item values are string, missing single quotes.
    It should be something like

    WHERE a.proj_ref = b.proj_ref
      AND a.rel_id      = b.rel_id
      AND a.proj_ref   = ''' || :P7_PROJ_REF || '''
      AND b.rel_id      = || :P7_RELEASE_ID || '
      AND a.emp_id    = || :P7_EMPLOYEE;
    

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • Block based on the stored procedure cannot modify Default_where clause

    Hi all

    I tried to create a block based on the stored procedure that it works very well with the result set for the refcursor. But if I need to add filters on the block using where clause in the palette of goods or

    using the property block set in where clause, it does not error but does not review filters .

    tried everything to you please let me know. This is a restriction whereby we can set filters on the block when we create the block based on the stored procedure.

    Thank you

    Check in Form Builder Help:

    Creating a block of data from a procedure that uses a ref cursor

    ... You can't pass a WHERE or ORDER BY clause clause in a stored procedure.

    But you can send your WHERE condition using the query Source Arguments.

    If the procedure is on the side of the database (not in the forms module), ensure that the procedure is not vulnerable to injection of SQL code.

    Kind regards

    Zlatko

  • call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. The other rows are based on the entities

    Hi Experts,

    JDeveloper 12.1.3.0.0

    I have a VO based on entity object. With a column of the VO is transient attribute (I created).

    I need to call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. As well as other attributes.

    So can anyone suggest how can I achieve this?

    Thank you

    AR

    I think that you need a stored function (which returns the value) in this case, is not?

    Take a look at:

    https://docs.Oracle.com/CD/B31017_01/Web.1013/b25947/bcadvgen005.htm

    and search for:

    Invoking stored function with only Arguments in

    call your function in the Get attribute and return value accessor...

  • Data block in the procedure and the Base Table

    Hello

    I hava a form with a block of master and detail. The fields in the Master block are

    Emp_name, DateOfJoin, salary... I created this block with the procedure with a Ref Cursor, becaue the user
    want to load the data based on the conditions it enter for example: DateOfJoin < = Sysdate and DateOfJoinn July 1, 2008 "."
    SO I created a block of control with the fields name, MiddleName, LastName, of DateOfJoin, in DateOfJoin, the salary, and when the user clicks on the data loading
    button, I load the data to block under these conditions using the procedure.
    Note that in the Emp_Name table if a field, but contain first name, middle name, and last name with a separate space.

    My needs is, is there any method to develop this master block with a database table, so that if the user want to select it
    data based on other conditions, it can enter directly into the block of data using Qry enter and run Qry, also if he wants to
    Select data based on the top-level asked the search criteria, it will click Load Data.
    I hope that in this case, when the user selected the Load data button, I need to change the data source to the Type of procedure and set the source of data on behalf of the procedure name.

    Is there any other easy solution flor this

    Thanks in advance

    not sure if I get your needs. I understand the following:
    You have a block based on table emp, containing a DateOfJoin column and the user should be able to enter into a 'complex' where denomination.

    To do this, you do not have to base block one a procedure or ref_cursor. Two possibilities:

    Add two fields more directly in the block that are non-base of data-objects of type date fixed query on yes and let the user to enter a date range in these columns. In the accumulation of PRE-QUERY-trigger a WHERE condition by using the value in this field:

    something like:

    DECLARE
      vcMin VARCHAR2(10):='01.01.1700';
      vcMax VARCHAR2(10):='01.01.2999';
    BEGIN
      IF :BLOCK.DATE_FROM_JOIN IS NOT NULL THEN
        vcMin:=TO_CHAR(:BLOCK.DATE_FROM_JOIN, 'DD.MM.YYYY');
      END IF;
      IF :BLOCK.DATE_TO_JOIN IS NOT NULL THEN
        vcMax:=TO_CHAR(:BLOCK.DATE_TO_JOIN, 'DD.MM.YYYY');
      END IF;
      SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'DATEOFJOIN BETWEEN TO_DATE(''' || vcMin || ''', ''DD.MM.YYYY'') AND TO_DATE(''' || vcMax || ''', ''DD.MM.YYYY'')');
    END;
    

    Another option:
    together, the length of the request of the DATEOFJOIN field to say 255, then the user can directly enter #BETWEEN fromdate AND fodate in the field.

  • Need help to build the query/pl-sql block to get the query result and the name of column from DB table in the form of key-value pairs.

    Hi Experts,

    I have a DB table has columns of more than 50.

    I question this table, it should only return one line at any time. as sqldeveloper below image.

    here, I need to build block pl/sql-query, Discover the column in the table as a key and query result as values.

    Eg:     Key                         -  Value

    TASK_EVENT_ID - 1765

    EVENT_TYPE - ASR_UPDATE

    ... etc until all of the columns in my table.

    Experts please comment on that point, appreciate your help on this.

    Thank you

    -Vincent.

    Here is an approach using DBMS_SQL to iterate over the columns of key / value to assign... (Little code snipped for brevity)

    create or replace procedure (task_expired)

    v_store_id in full,

    v_task_action_id in full,

    v_job_id in full

    )

    as

    -[SNIP code...]

    v_sql VARCHAR2 (4000): = ' select * from my_table where PK = 123';  -Your SQL here!

    v_v_val VARCHAR2 (4000);

    v_n_val NUMBER;

    v_d_val DATE;

    v_ret NUMBER;

    c NUMBER;

    d NUMBER;

    col_cnt INTEGER.

    f BOOLEAN;

    rec_tab DBMS_SQL. DESC_TAB;

    col_num NUMBER;

    vAsString VARCHAR2 (4000);

    BEGIN

    -[SNIP code...]

    Message_properties. CORRELATION: = "EDF_EVENT";

    MSG: = SYS. AQ$ _JMS_BYTES_MESSAGE. Construct();

    Msg.set_string_property ('queueName', ' shipping/csi_cth');

    Msg.set_string_property ('MODE', 'CR8');

    c: = DBMS_SQL. OPEN_CURSOR;

    DBMS_SQL. PARSE (c, v_sql, DBMS_SQL. NATIVE);

    d: = DBMS_SQL. Execute (c);

    DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);

    1.col_cnt J

    LOOP

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_n_val);      -Number

    WHEN 12 CAN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_d_val);      -Date

    ON THE OTHER

    DBMS_SQL. DEFINE_COLUMN (c, j, v_v_val, 2000);   -Else treat as varchar2

    END CASE;

    END LOOP;

    LOOP

    v_ret: = DBMS_SQL. FETCH_ROWS (c);

    WHEN OUTPUT v_ret = 0;

    1.col_cnt J

    LOOP

    -Fetch each column to the correct data type based on coltype

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. COLUMN_VALUE (c, j, v_n_val);

    vAsString: = to_char (v_n_val);

    WHEN 12 CAN

    DBMS_SQL. COLUMN_VALUE (c, j, v_d_val);

    vAsString: = to_char (v_d_val, ' DD/MM/YYYY HH24:MI:SS');

    ON THE OTHER

    DBMS_SQL. COLUMN_VALUE (c, j, v_v_val);

    vAsString: = v_v_val;

    END CASE;

    Msg.set_string_property (rec_tab (j) .col_name, vAsString);

    END LOOP;

    END LOOP;

    DBMS_SQL. CLOSE_CURSOR (c);

    DBMS_AQ. ENQUEUE (queue_name-online 'cbus.aqjms_common',

    Enqueue_options => Enqueue_options,

    Message_properties => Message_properties,

    Payload-online msg,

    Msgid => Message_handle);

    dbms_output.put_line ('00 Msgid =' |) Message_handle);

    dbms_output.put_line('===Done=');

    -[SNIP code...]

    END;

    /

  • Oracle form functions and procedures in the APEX, how?

    I'm working to recreate in the APEX, already existing read only forms in Oracle Forms. Report features interactive APEX among other things, in fact worth as well as to target a different audience than utilizies versions of Oracle Form. Versions of Oracle Forms use a lot of pre and post query triggers, PLSQL functions.

    In Oracle Forms that places, these functions can be found in the "Units of program" section of the form. A feature typical of this kind, based on a particular Mission ID route, collecting names of regular passengers, is shaped with a comma and a space after each of them, in a single string that is returned and displayed the list of passengers of a line.

    I have all of this written code so I can move most of the main request of the Oracle form in an interactive report. These functions and triggers called in the form of the "Units of program" section of the Oracle form rather than stored in the database schema in a package, where they would go inside the APEX? Can I create a 'shortcut' in the APEX and call it from the interactive report "Source Région"? I can create the PLSQL function at the level of the region of the interactive report or page level? Or, my best bet creates a package that is stored in the database, all these functions and/or proecedures I might need the original form of Oracle?

    Some advice would be greatly appreciated.

    RLBickham wrote:
    I don't think I've been pretty clear in the description of the specific thing I want to do, simply, it does not reach the level of forms of conversion of the APEX. It is basically a problem of PLSQL function.

    I have an interactive report which is currently 90 percent of what I want however, each line, which represents a Mission may have several feet. Each arm has two places or ICAO codes attached to it. Based on the number of Mission, I want to loop through the array of leg, collect all the codes of ICAO for this Mission, put them together in 1 variable separated by a coma and add this variable to display the columns in this interactive report as the last column.

    In Oracle Forms, I have a function registered in the database, which is called in the main query. Maybe I ask a question that does not need to be asked, but anyway my question is can I put this function currently in the database somewhere within the interactive report and somehow reference it via Http, or should I just stick with set of functions and procedures in the packages stored in the database and called the conventional way?

    You could switch the function to the database and call it from the report query, but it sounds as if it were superfluous. In the report query using any form of Re: 4. How can I convert rows to columns? is appropriate for your version of the (unspecified) database.

    -----

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)

  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

  • Fill called block based on the criteria of the previous block

    I have a form where the query is based on the zip code provided. I have a button in block has that calls another block b to display all records with this particular zip code. I want to display on the block b to display only the records for the specified zip code. Please help and tell me how to make this happen?

    -In the property WHERE-Clause of block b, enter:
    : BLOCK_A.ZIP_CODE

    -Put a button next to the postcode of the block has
    in the WHEN BUTTON PRESSED trigger, enter:
    GO_BLOCK ("BLOCK B");
    EXECUTE_QUERY;

    Another option would be to use a relationship between the two blocs.

  • Is "Web reported fake! This web page to the 69.73.182.154 has been reported as a false web and has been blocked based on your security preferences' legitimate?

    Yesterday, my wife received an email from 'Unauthorized Communication on access' so-called [email protected], who requested that the attached document fill in name, address, SSN, DoB, ATM card and PIN, etc.
    Thinking that it is legitimate that it fills in and clicking 'Continue', how the screen "Reported false Web!" appeared with the URL in the line of the previous question. When you click on "why has this blocked page" she took to Support Mozilla page titled how does integrated, phishing and Malware Protection works?
    The reported fake Web legitimately from you message and was the content of the form she has blocked or destroyed, or is now at risk of identity theft? In other words, is the part of "reported Web fake" page of the author of the phishing scam, or is his information?

    There is a good chance that the form was never sent (I don't know how the form was sent because I don't have the email address so I can't promise that it has not been sent) and so your information is secure, but you must always take steps to ensure that you protect your identity immediately , placer place notice of fraud on your credit and debit cards, change your passwords online, pine, etc. Remember that your bank will never e-mail you asking for your information, they have it all already, why do need to check? These emails are always scams.

  • I would like to change my cursor vertical bar in the form of block, such as those used on the old green screens

    In Internet Explorer, the cursor can be changed to a form of block, I can't find a way to do it with Firefox, the shape of block is a former carry dating back to the era of the former "green screens".

    That pref still works in Firefox, just tried in Firefox 10.0

    Type of topic: config in the URL bar and press ENTER.

    If you see the warning, you can confirm that you want to access this page.

    Right-click anywhere in the area of the window where preferences appear.

    Then select new > then all

    Name: ui.caretWidth

    Value: 7 or any other integer, decimal not allowed

    Then restart Firefox.

  • Organize the former file based photo albums

    I want to use pictures for its operation.  The problem is that, over the years of using iPhoto, and before that we have our big mac, we had albums based on records.  It's the style of back in the day.  So, this is the crux of the problem.  Yes, photos were not settled as of the events in the oldest in iPhoto.  I want to take the old 'albums' folder, turn them into what that photo considers that a form of organization.

    These image files were probably not related "tags" or "Key words".  When you look at the older JPEG files, the metadata date taken is simply not there, and the date of creation was when we copied the PC to Mac.  So without record details, we would lose the dates.

    I'm willing and able to start from scratch, based on a list of folders that contain images with missing 'date', but a clear folder with a date name and then import them into Photos.  If I did, they all end up as 2012 when we moved from windows to Mac photos.  Very bad.

    Is there a good way to tackle this, even if we buy software to help?

    Thank you very much for your help.

    I understand the Photos method.  I want to just have successfully imported and do not lose their association with an album.

    To do what you want, you must use this Applescript on Photos for Mac user tips for import folders of files image in Photos and albums: files import Image in the library in Albums

    A compiled version of the script can be downloaded in the form of application from this tutorial page: P01 - Applescripts to user tips compiled as Photos Applications.

Maybe you are looking for