Procedure Block In Forms
Hi,
How to create a Block which refers a Procedure. and wat is the use of this block? pls any give a good example.
Regards,
Kalyan.
hi Abdetu,
i didnt ask how to call a procedure from a block. Instead of Table Block, i want to a stored procedure block. means if u see the properties of block, there will be
Database Data Block : Yes
Query Data Source Type: Table
Query Data Source Name: Emp_Table
Like that will be there....This is for ordinary Database Block....
but more option is there we create a Procedure Block Instead of Table.
Click In
Query Data Source Type : Table,
Procedure,
Transactional Triggers,
From Clause Query.
So That i asked....
I hope now you understood...
Regards,
Kalyan
Similar Messages
-
Calling procedure in oracle forms
Hi all,i have a procedure in the backend and when i am calling it in forms nothing happens.The procedure is syntactically correct.
Procedure
PROCEDURE XXC_MTL_TRANSACTIONS(v_file_number IN VARCHAR2) IS
BEGIN
INSERT INTO mtl_transactions_interface
( inventory_item_id, -- optional column
source_code,
source_line_id,
source_header_id,
process_flag,
transaction_mode,
last_update_date,
last_updated_by,
creation_date,
created_by,
organization_id,
transaction_quantity,
transaction_uom,
transaction_date,
transaction_type_id,
transaction_cost,
subinventory_code,
transfer_organization,
transfer_subinventory,
shipment_number
SELECT
lc.inventory_item_id,
'DATA COLLECTION', --source code
regal.regal_inv_landed_cost_seq.nextval, --source line id
regal.regal_inv_landed_cost_seq.nextval, --source header id
1, --process flag
3, --transaction mode
lc.last_update_date, --last update date
lc.last_updated_by, --last updated by
sysdate, --creation date
lc.created_by, --created by
lc.organization_id, --organization_id
lc.quantity_received , --transaction Quantity
msi.primary_uom_code , --transaction UOM
sysdate, --transaction date
3, --transaction type ID(3 for Direct Org Transfer)
lc.landed_cost, --transaction cost
'Vessel', -- SUBINVENTORY_CODE
82, -- TRANSFER ORGANIZATION
'Brooklyn', -- transfer subinventory
lc.file_number --shipment number
FROM
regal.regal_inv_landed_cost_tab lc,
mtl_system_items msi
WHERE
lc.file_number = v_file_number
AND lc.organization_id = msi.organization_id
AND lc.inventory_item_id = msi.inventory_item_id
AND process_flag IS NOT NULL
AND SELECTED_FLAG = 'Y';
COMMIT;
UPDATE regal.regal_inv_landed_cost_tab
SET process_flag ='Y'
WHERE SELECTED_FLAG = 'Y'
AND process_flag IS NULL;
COMMIT;
END XXC_MTL_TRANSACTIONS;
Procedure call in forms
DECLARE
v_file_number VARCHAR2(8);
BEGIN
v_file_number := :RHCLANDEDCOSTDET.file_number;
XXC_PO_ETA_PKG.XXC_MTL_TRANSACTIONS(v_file_number);
END;Can someone guide me where i am missing.
Any help is appreciated,
Thanks in advance!!Below is the procedure when i used it in Program unit of Form which worked fine
PROCEDURE XXC_MTL_TRANSACTIONS(file_number IN VARCHAR2) IS
BEGIN
INSERT INTO mtl_transactions_interface
( inventory_item_id, -- optional column
source_code,
source_line_id,
source_header_id,
process_flag,
transaction_mode,
last_update_date,
last_updated_by,
creation_date,
created_by,
organization_id,
transaction_quantity,
transaction_uom,
transaction_date,
transaction_type_id,
transaction_cost,
subinventory_code,
transfer_organization,
transfer_subinventory,
shipment_number
SELECT
lc.inventory_item_id,
'DATA COLLECTION', --source code
regal.regal_inv_landed_cost_seq.nextval, --source line id
regal.regal_inv_landed_cost_seq.nextval, --source header id
1, --process flag
3, --transaction mode
lc.last_update_date, --last update date
lc.last_updated_by, --last updated by
sysdate, --creation date
lc.created_by, --created by
lc.organization_id, --organization_id
lc.quantity_received , --transaction Quantity
msi.primary_uom_code , --transaction UOM
sysdate, --transaction date
3, --transaction type ID(3 for Direct Org Transfer)
lc.landed_cost, --transaction cost
'Vessel', -- SUBINVENTORY_CODE
82, -- TRANSFER ORGANIZATION
'Brooklyn', -- transfer subinventory
lc.file_number --shipment number
FROM
regal.regal_inv_landed_cost_tab lc,
mtl_system_items msi
WHERE
lc.file_number = :RHCLANDEDCOSTDET.file_number --Block.field
AND lc.organization_id = msi.organization_id
AND lc.inventory_item_id = msi.inventory_item_id
AND process_flag IS NOT NULL
AND SELECTED_FLAG = 'Y';
COMMIT;
UPDATE regal.regal_inv_landed_cost_tab
SET process_flag ='Y'
WHERE SELECTED_FLAG = 'Y'
AND process_flag IS NULL;
COMMIT;
END XXC_MTL_TRANSACTIONS;Procedure call in xyz when-button-pressed trigger
BEGIN
XXC_PO_ETA_PKG.XXC_MTL_TRANSACTIONS(:RHCLANDEDCOSTDET.file_number);
END;So,my doubt is when it worked fine here why does my procedure fail when i delete this from program unit of form and do the same thing in backend(sqlplus).
Kindly guide me where i am doing wrong -
Problem passing OUT parameters form based on stored procedure to another form?
Hello,
I am unable to pass parameters of type OUT from a form based on a stored procedure to another form.
However, I am able to pass parameters of the type IN to the other form.
This is the code that I have under the heading
On successful submission of a form, execute this PL/SQL block or PL/SQL procedure:
declare
v_partno varchar2(100);
v_partdesc varchar2(200);
blk varchar2(10):='DEFAULT';
v_names varchar2(1000);
v_values varchar2(1000);
begin
v_partno:=p_session.get_value_as_varchar2
(p_block_name=>blk,p_attribute_name=>'A_PART_NO');
v_partdesc:=p_session.get_value_as_varchar2
(p_block_name=>blk,p_attribute_name=>'A_PART_DESC');
v_names := '_moduleid:_show_header:pnumber:pdescription';
v_values := '1325575336:YES:' || LTRIM(TO_CHAR(v_partno)) || ':' || LTRIM(TO_CHAR(v_partdesc)) ;
PORTAL.wwa_app_module.link (
p_arg_names => PORTAL.wwv_standard_util.string_to_table2(v_names),
p_arg_values => PORTAL.wwv_standard_util.string_to_table2(v_values));
end
Info:
1. Passing PART_NO (IN parameter) and PART_DESC (OUT paramter) to another form.
2. After hitting the submit button, the second form comes up, but with only the PART_NO(type IN) field completed. The PART_DESC(type OUT) field did not get passed to the second form.
3. The corresponding fields in the second form are pnumber & pdescription.
4. FYI - I can see all the OUT parameters correctly, if I don't try to pass control to the second form.
5. Portal 9.0.2 ( the version that ships with IAS 9.0.2)
Any help would be greatly appreciated. I have been stuck here for a while now!
DevRe: Error
Passing OUT parameter to another form.
You cannot retrieve the value of the OUT parameter from the session object because after executing your procedure,
the value passed out using the OUT parameter is not loaded in the session object.
But you can still achieve what you are trying in the following way.
Let's assume that your procedure has the following str :-
procedure proc1 (p_in in varchar2,
p_out out varchar2)
is
begin
/* your processing statements
end;
Say, the name of the field, in the 2nd form, where you need to pass the out parameter value is VALUE_FROM_OUT.
1> Edit the form on procedure proc1
2> Select the submit button in the left frame and for the PL/SQL button handler choose Submit action.
3> In the adjacent textarea, comment out the doSubmit statement and use code given below :-
declare
l_p_in varchar2(32767);
l_p_out varchar2(32767);
l_url varchar2(2000);
begin
l_p_in := p_session.get_value_as_varchar2(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_P_IN');
execute immediate
'begin <schema>.proc1(:b_in,:b_out); end;'
using in l_p_in, out l_p_out;
l_url := 'http://<host>:<port>/pls/<dad>/<portal-schema>.wwa_app_module.link?p_arg_name=_moduleid&p_arg_values=<module_id>&p_arg_names=VALUE_FROM_OUT&p_arg_values='||
<portal-schema>.wwv_standard_util.url_encode(l_p_out);
<portal-schema>.wwa_app_module.set_target(l_url,'CALL');
end;
NOTE :
======
In the code given above, replace
<schema> with the schema name that owns the procedure proc1
<host> with webserver host
<port> with the port of your webserver
<dad> with the portal dad
<portal-schema> with the name of the portal-schema
<module_id> with the module of the 2nd form i.e. where you need to pass the value of the out variable.
You will have to grant execute privilege on procedure proc1 to your application schema,
if the procedure proc1 lies in a schema other than the application schema.
4> Finish editing the form. -
How to block the Form Settings for Main Menu to use ONLY "My Menu"?
Hi everyone:
Our customer wants to define an User Menu (My Menu) for each B1 user within the company and restrict the Modules at main menuu2026
How can I block the Form Settings for the Main Menu?... It is possible to give an user Only access to My Menu and denied Authorization to the Modules?.
I appreciate your help!!. Thanks very much
Claudia GutiérrezHi,
'My Menu' refers to the third tab on the Main Menu, and the
authorization of 'Organize My Menu' works as below:
- Full Authorization: Allows the user to access the Organize User Menu
window (Tools -> User Menu -> Organize) and customize the menu.
- No Authorization: The user cannot open this window.
Check the Note [1062635|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1062635] if you are looking for it.
Regards,
Jitin
SAP Business One Forum Team -
How to call database procedure in oracle forms
Hi,
Can anyone describe me that how I'll call database procedure in oracle forms (6i,10g)?
Thanks in Advance.
BalochHi Francois,
As I created a procedure in database as below
create or replace procedure For_table (tbl_of in number,st_pnt in number,en_pnt in number) is
begin
for i in st_pnt..en_pnt loop
dbms_output.put_line(tbl_of||'*'||i||'='||tbl_of*i);
end loop;
end For_table;
The above procedure is working fine when I'm using PL/SQL. I call the above procedure as
begin
For_table(3,5,20);
end;
but nothing happen
Thanks in Advance.
Baloch -
How to run database procedure in oracle form
Hi,
I have created a database procedure, it run successfully at server side, but I need to run it on oracle form, how I'll do ?
Thanks
BalochBaloch,
Essentially, you call your database stored procedure the same way in Forms as you do in SQL Plus. The difference is that you need to call the procedure in a Forms Trigger versus a SQLPLus prompt. The Forms user must have execute privileges to the stored procedure as well. The Forms trigger depends on when and where you need the procedure to run. For example, if you need the procedure run in conjunction with a button pressed in your form, you would code your When-Button-Pressed trigger to call the stored procedure. If the db user is different fro.m the Forms user, make sure you fully qualify the call to the procedure.
Here is a small code sample to demonstrate:
/* Sample When-Button-Pressed trigger */
BEGIN
IF <Condition is true> THEN
/* Call Database procedure */
SCHEMA.PROCEDURE_NAME(<any procedure parameters here>);
END IF;
END;This is a very basic example, but it should make the concept clear. ;)
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Edited by: CraigB on Jul 22, 2010 10:57 AM
Edited by: CraigB on Jul 22, 2010 11:02 AM
Edited by: CraigB on Jul 22, 2010 11:04 AM
Edited by: CraigB on Jul 22, 2010 11:04 AM -
How to block running forms outside of the FORMS_PATH
I need to know if is there a way to block any form outside of the FORMS_PATH and allow just those located in the directory specified by FORMS_PATH
thanks beforehand.Hi Alvaro,
I assume you have a "starter/main" form for your application. If that is the case (and if there is no need for the user to specify the form name explicitly), you can add "form" to the restrictedURLParameters (under formsweb.cfg) and also set the form name in there itself.
For ex.
form=login
restrictedURLparams=....,formAfter this, the user would not be able to specify the form name in the URL while running, which in turn, would restrict them running any forms (apart from the desired form you mentioned in the "form").
-Arun -
Title first block of form?
I am developing a Form with Oracle Designer 2.1 and I have a small problem with it. It will not display the title of the first block. In the Generator Preferences I already have set the preference the BLKTFB (title first block of form) to YES and also the preference PAGTFB (title first block on content canvas). Can anyone help me out with this problem?
It's just a normal block with no item groups or something in it.
Cheers,
Ronny SoemarsonoHarm,
I have searched for the BLKTLP, but there still isn't a preference. We use Designer 2.1 version 2.0.24.2.0
I have asked Oracle support for a solution; they told me that in our Designer version, the BLKTLP preference does not exists.
I can also do a post generation in Forms Builder. That's a solution, but unfortunately no created form that is generated 100%
Cheers,
Ronny. -
Hi everyone,
We have XXF000.fmb, XXF001.fmb , XXF002.fmb , XXF003.fmb in 6i.
For migration to 11g , we recompile these forms and move fmx to 11g form server under form_path.
In 6i , we login for validation & responsibilities control in XXF000, So we can use account info to verify if user have priviledge to access XXF001, XXF002 and XXF003.
But in 11g , we can access these forms vial url request , such as : http://<host>:<port>/forms/frmservlet?form=XXF000 ; http://<host>:<port>/forms/frmservlet?form=XXF001 ... etc
These may cause some unexpected access and operations in functions.
Is is possible to block specific forms access when user directly type form name in url ?
Thanks.
HendryYou need to alter your formsweb.cfg file, either directly or through the Fusion web interface. You need to set the following parameters:
#this sets the default form for your application
form=yourmenuform.fmx
#this stops these parameters being entered in the URL, seperate different parameters with commas
restrictedURLparams=form,pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log -
Configuration of Guided Procedures for Adobe Forms
Hi all,
we are about testing the Guided Procedures with Adobe Forms.
I found 3 documents here in SDN:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a696cea-0c01-0010-d494-9b0b8ce7565f
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/06717aea-0c01-0010-b28f-e6494458788f
My problem now is the configuration and the understanding of the "Web Service Security" in the Visual Administrator.
In the mentioned guides above it is written to choose "SLD" for the URL and the following three values under "Synchronize with System Landscape":
System Name:
WS Name: {com.adobe/AdobeDocumentServices}{AdobeDocumentServicesAssembly.jar}
WS Port: {com.adobe/AdobeDocumentServices}{AdobeDocumentServicesAssembly.jar}ConfigPort_Document
Now my questions:
1. According to the guides it seems that the ADS must be installed on the same J2EE where the central SLD is running. Is that a must? I don´t hope so!
2. What do I have to take for ? The SID and machine of the SLD or of the J2EE where the ADS is installed (this would be my own Portal)?
3. My portal is of version Netweaver2004s SP10, my SLD ist of version 6.40 SP18.
Could this be a problem here?
Thanks,
Rossihi
Refer these docs
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm">Configuration of GP for Adobe Forms</a>
<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e99cff7a-0601-0010-dea3-e8166c7a7f20">SAP CAF Application</a>
<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc">Configuration for GP</a>
<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler">Limitations and known issues for Adobe forms in GP</a>
\<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee8a84ea-0c01-0010-5691-accfb0a172ed">Creating a Form-based Process(Adobe)</a>
Thanks & Regards
Harsimran Kaur -
Technical Document (Exact Procedures) To Migrate Forms/Reports 9i to 10g
Hi;
Where can i find the Technical Document (Exact Procedures) To Migrate Forms/Reports 9i to 10g?This seems to be a common point of confusion. The "FMw Upgrade Assistant" is a utility which helps you to upgrade the entire Application Server installation to a newer version (e.g. 11.1.x). This has nothing to do with your Forms (fmb, mmb, pll, etc) or Reports (rep, rdf, etc) applications. Generally speaking, I would say that using the UA is not necessary and likely should not be used in most cases. Cases where it should be used might include a situation where your previous version has been significantly customized and you don't know how or don't want to make the same customization in the new environment manually. Whether you are talking about a new product (Oracle or not) or even a new OS, generally your best bet is to start with a clean, new installation. Attempting to upgrade an existing version always comes with problems. Just one man's opinion ;-)
As for your Forms application(s), there is a Forms Migration Assistant (FMA), explained in the Forms Upgrade Guide:
http://docs.oracle.com/cd/E24269_01/doc.11120/e24478/toc.htm
That said, just like using UA, it is always better to take the extra time and not rely on such tools if they can be avoided. In most cases, the FMA will not be needed. This is especially true if your application is coming from version 10. For older versions, using FMA might be beneficial.
So, to the point, in order to move a Forms application (fmb, mmb, pll) from version 10 to 11 is as simply as recompiling your modules using the v11 compiler. That's it ;-) -
Fetching The more then One Company ID by using PLSQL Table on Block B1(FORM
I have two blocks in Form (Forms 10g) .On the Block B2 I have populated the Company Id by using the PLSQL Table.Now I selected more than two company ID from that Block ...I just want to keep the Company ID in the Temp Field on the Block B1.which I have selected on the Block B2.Any idea how can I assign more then one Company ID to That Temp Field on B1.
This doesn't appear to have any connection to JMS or indeed to Java. Wrong forum. Locking.
-
Can any one tell me step by step guide of Guided procedure for adobe forms.
Hi,
Can any one tell me step by step guide of Guided procedure for adobe forms.Can any one give me docs of that if possible.
My personal id is..
[email protected]
Regards,
Gurprit Bhatia
Message was edited by:
GURPRIT BHATIA
Message was edited by:
GURPRIT BHATIAhi
Refer these docs
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm">Configuration of GP for Adobe Forms</a>
<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e99cff7a-0601-0010-dea3-e8166c7a7f20">SAP CAF Application</a>
<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc">Configuration for GP</a>
<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler">Limitations and known issues for Adobe forms in GP</a>
\<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee8a84ea-0c01-0010-5691-accfb0a172ed">Creating a Form-based Process(Adobe)</a>
Thanks & Regards
Harsimran Kaur -
Proc procedure block when connection lost
hi,
i develop a database procedure in linux by proc,the problem as follow:
i create a connection on another computer,when i do some operaters ,at this time,network wire break, i continue doing operaters but the procedure blocked . i configure two address in net8, the orther database server is ok,but the procedure not change the address ,the main problem is the procedure don't return any error,only blocking here.
thankshi,
i develop a database procedure in linux by proc,the problem as follow:
i create a connection on another computer,when i do some operaters ,at this time,network wire break, i continue doing operaters but the procedure blocked . i configure two address in net8, the orther database server is ok,but the procedure not change the address ,the main problem is the procedure don't return any error,only blocking here.
thanks -
Webutil_host.blocking procedure blocking the application intermittently
we are using webutil_host.blocking procedure to open a word document and have the application blocked until word document is closed. It opens the word document fine but blocking the application intermittently. Since it was not blocking intially, I started debugging and tried recompiling the form. It is now blocking the application fine, with no change in the code. It is definitely not the recompilation that made the trick because I compiled the form many times earlier while I was working on other parts of the form. Please share your expertise if anyone had the same issue.
we are using Forms 10.1.2.0.2 with Webutil 1.0.6
Maybe you are looking for
-
How to retrieve data from a removed hard drive????
I had an iBook G3 12" when the logic board broke. I dismantled the computer and sold all the parts. I kept the hard drive hoping that I could retrieve the data. Is there a product that will connect the hard drive to a WINDOWS based computer and allow
-
I'm using an iPhone 5. I had FaceTime before but when I got a new line it just disappeared even from the settings. What do I do?
-
5770 +dual display + mac pro 1,1 = broken
I recently installed a 5770 in my mac pro 1,1 , using dual 22" displays, one through DVI, one through mini display port and it works fine with 10.6.4 + SL graphics update. I then installed 10.6.5 (also have tried 10.6.6) and i lose the monitor plugge
-
LR 5 two installation. Dektop and Notebook. Notebook changed. LR 5 license deleted. New Notebook, new installation LR 5. Error Message, Key not valid at this status. How can I do for the new installation.
-
Getting line count of wrapped text in JTextArea
I'm trying to get the line count of wrapped text in a JTextArea, but I see no way to do it other than to write a function for manually determining the line count, which I'm struggling with. I'm trying to get the following code to print out "4 4" on b