Controlling Commit Sequence In Forms.
My Environment is Oracle Forms10g R2.
Is it Possible to Control the commiting of blocks?
e.g.
I have three blocks A,B and C. I want to Commit B then C and then A. Can I do that?
Regards,
Eric.
What do you really mean when you say "commit"?
If you want your form to post the deletes/updates/inserts from block B first, then those in C, then those in A, place the blocks in that order in your Forms Builder Object Navigator.
Then when you commit, block B changes will be applied first, then C, then A. The final database commit will then lock in those changes.
Similar Messages
-
I have one block with single record
and 3 others blocks with multiple records.
block1
b2
b3
b4
On SAVE button when_button_pressed trigger
Code is
declare
v_commit number:=0;
begin
p_insert_test(
:block1.p_emp_id
,v_commit
--Note : No commit inside procedure p_insert_test
if v_commit = 0 then
go_block('b1');
commit_form;
go_block('b2');
commit_form;
go_block('b2');
commit_form;
end if;
end;
problem
1.After execution of procedure p_insert_test if some error occurs in block b1,b2
or b3 then record is showing as inserted through above procedure for same session when I am doing query in same block.
Please tell me the best way of commit sequence in above scenario to maintain
the consistency.I agree with you that there is no need to commit_form after each block
but how to revert insert through procedure p_insert if any error
occurred in multiple blocks.
Because I record inserted are visible in particular session. -
How control the sequence in forms
hi all,
i have id column in the form which has to generate the sequence number automatically,i have created the sequence in the database and assigned it and is working fine.
But the problem is that either we save the record or not the sequence is generating.so the as soon as we get in to insert mode the number is generated.
i need the sequence to be generated only when i save the record.
can anyone could help out with the situation.
thanks,
sanjeev varma.s.hi,
i have already tried it out ,but couldn't get the result.
our problem is that i'm are not able to restrict the sequence, if i'm not saving the record.i have done it in when-validate-item of the previous naviagtion item so that the column on which the sequence is generated can be skipped and sequence is generated automatically.
the below is the code we have tried it out.
DECLARE
v_cname VARCHAR2 (50);
v_com_seq NUMBER;
BEGIN
SELECT NAME
INTO v_cname
FROM company
WHERE NAME = :company.NAME;
IF v_cname = :company.NAME THEN
MESSAGE ('Company name already exists Can not be duplicated');
MESSAGE (' ');
END IF;
RAISE form_trigger_failure;
EXCEPTION
WHEN NO_DATA_FOUND THEN
SELECT COMSEQ.NEXTVAL INTO v_com_seq FROM dual;
:company.CID := substr(:company.NAME,1,3)||v_com_seq;
END;
thanks,
sanjeev varma s -
On commit - sequence increases
Hello.
I would like to know, if there is a way to stop form on error (before commit)?
My form returns sometimes for some users errors(privileges error or policy check error) on commit (KEY-COMMIT). Nothing inserts into database BUT sequence increments.
Is there a way to stop the sequence to increase?
Thanks....and put a trigger on the audit table, etc.
If there were a good reason NOT TO use a gapless sequence then suggesting alternative solutions would be helpful. In this case there may be no good reason TO use a gapless sequence but that doesn't mean he should try something else. It's possible and he needs to do it.
Advance queueing is more efficient but I can't remember how to do it right now. It may be on the web somewhere. Using dbms_lock, in pseudocode:
o create a table to store the sequences.
o when a sequence is needed then loop through the table and use the sequence to create a lockhandle.
o if you can't lock the record then move to the next one.
o if there are no records available then generate more records into the table (autonomos commit) and loop again.
o if you manage to lock a record then delete it (no commit).
o return the sequence to the calling process.
o when the record which uses the sequence is committed then that sequence will be removed from the sequence table.
o if the record is rolled back then the sequence will remain in the sequence table.
not suitable for intense usage and there can be problems if there's a chance of a commit between the call to the sequence routine and the insert of the record. you can get round this by using an 'unused sequences' table but that makes it less efficient - try advanced queueing. -
Triggers Firing Sequence Of Forms 10g after commit_form trigger.
hi all,
please tell me Triggers Firing Sequence Of Forms 10g after commit_form trigger.
thanks,
Regards,
AmbarishHi,
I have a doubt regarding the sequence of events when COMMIT_FORM is fired.
Using the following to trigger the event.
DO_KEY('COMMIT'_FORM');
Added debug messages in my form triggers and found that after the ON-INSERT trigger is fired, the WHEN-VALIDATE-RECORD is fired and then the PRE-RECORD.
However this sequence is not specified in the lists of firing sequences mentioned here.
Is it possible to change the sequence programmatically.
In my ON-INSERT trigger, calling a DB procedure to insert row in the table.
Thanks
Asfa -
Error in Control Framework in smart forms programms use GUI_DOWNLOAD
IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.
IN SM13 can see the ERROR message.
Function Module: RV_MESSAGE_UPDATE
Status :Update was terminated
Error details: FES 022: Error in Control Framework
I USE GUI_DOWNLOAD FUNCTION at my code. WHEN I mark it,no error message. I must use the Similar function.
How do I solve this problem???Hello,
Check the thread:
Re: Error in Control Framework in smart forms programms
Regards,
David -
Error in Control Framework in smart forms programms
IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.
IN SM13 can see the ERROR message.
Function Module: RV_MESSAGE_UPDATE
Status :Update was terminated
Error details: FES 022: Error in Control Framework
THE CODE:
FORM processing USING proc_screen
CHANGING cf_retcode.
******I ADD THE CODE
PERFORM DOWNLOAD_AS_PDF USING lf_fm_name
ls_control_param
ls_composer_param
ls_bil_invoice
nast
repeat
ls_bil_invoice-HD_ORG
ls_spoolid
CHANGING cf_retcode
ENDFORM.
IN DOWNLOAD_AS_PDF FORM ,I USE FUNCTION : P_fm_name(smartforms function) CONVERT_OTF GUI_DOWNLOAD
WHY the UPDATE MODULE have ERROR MESSAGE???
How do I solve this problem???Hello,
Your error message is related to GUI_DOWNLOAD, which is a frontend function.
You simply cannot use it in background, because it puts a file on the
frontend PC where you start the function (WS = WorkStation).
Note that GUI_DOWNLOAD is intendted to be used for dialog user
and will not run at BACKGROUND.
You can review SAP Library: ABAP Programming (BC-ABA)
->Saving Data Externally
->Working with Files
->File Handling in ABAP
Regards,
David -
Repeting control in Infopath list form
Hi ,
I want to create repeating control in List InfoPath form... Repeating control only comes in form template, but I have list form which I edited and done the changes in InfoPath, Now I want to add somehow repetign control , how can I do that
if it is not possible any other way I can achieve repeating kind of structure in list InfoPath form .
Please mark answer , if you think answer is helpful or correct.Hi,
According to your post, my understanding is that you want to use repeating control in InfoPath List Form.
To submit data to a SharePoint list from an InfoPath form, you could create a
SharePoint List form template that allows multiple items to be submitted.
For more information, you can refer to:
2 Ways to use a repeating table with a SharePoint list in InfoPath 2010
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Third party ocx controls with oracle 6i forms
I would appreciate if anyone can get the solution on how to work with the ocx controls on the oracle forms.i am doing the same thing and when I embed the ocx control on the form during design time and then execute it then the ocx control is lost during run time as I have to insert the object on the oracle form during the run time again and then how do I call the functions of the ocx ?please guide me at the earliest.thank you.
Firstly upgrade to the latest patch of 6i, early version of 6i have a bug where OCX licence information is not correctly stored with the container, so in some cases the control will not instanciate at runtime.
To call functions in the control, the simplest thing to do is to use the OLE Importer (MENU: Program -> Import OLE Library Interfaces). Choose the class of your control and Forms will generate you a PL/SQL package to call all the functions in the control.
The rest is up to you - you have to know the API of the control you are using. -
Commit a different form from another form
Here's the scenario:
Form A and Form B are on the screen.
User makes changes to Form B.
User clicks on a button in Form A to launch Form C.
How do I commit changes on Form B when clicking on a button in Form A? Commit and forms_ddl('commit') don't seem to do it.Anytime you do a commit, the commit applies to everything in your session. If you want to commit only one form, then you need to open the form using open_form built-in and specify a new session. See the open_form built-in in the help documentation.
-
I want to use oracle sequence in form to increment column Id of table.
How to use it in form so that sequence should not increase in case of rollback.Hello,
There is no way to do that.
When you select the Sequence.NEXTVAL, it is increased, even if you issue a rollback after.
Francois -
Does anyone has an idea about how the Control Number sequence can be maintained for the partners while doing mapping in XI??? Is it possible in XI.
Hi,
write UDF like this
public String CNumber(String val,Container container)
String val; Object obj;
obj = container.getGlobalContainer().getParameter(val);
if(obj == null) throw new RuntimeException (" exc occur");
else
val = obj.toString();
return val;
Give any input then it generates some Unique control number. In general we can give the input as Signal nummbers(ex : 850 or 855 or .......) -
Controlling the sequence of Actions in PA 40?
dear experts,
can we control the sequence of actions executed thro PA 40?
for example , we have the following sequence actions in a client scenario
1. Hiring ( prioritised as 1)
2.probation( prioritised as 2)
3.confirmation( prioritised as 3)
4.change of salary( prioritised as 4)
5.transfer( prioritised as 5)
6.deputation( prioritised as 6)
7.separation (priotirises as 7)
Actually, SAP allows you to run change of salary after probation without confirmation
it allows you to run separation action after change of salary without transfer or deputation in between,
By prioritising actions customisation, system only throws a warning and allows the user to execute any actions after any other action except Hiring action ( sequence no 1)
can we prevent the system to prevent this ,by doing customistion , but without going for any development like hardcoding of sequence
soliciting PA experts advice
nataraj s
sap hr consultanthi,
as far as i know there is no such customization.
as such the sequence of actions depend on the clients.
hence they are left independent of each other.
there is no set standard or sequence of actions.
like a person can be hired today can be transferred tomorrow.
for some other person hired today for some reason terminated tomorrow.
one person hired to day next action can be cahnge in pay.
hence i dont beleive waht you are asking for is possible.
regards
nalla -
How to control the sequence of a map?
Hello
we are using a send email with attachment (map) in our process design, the email body has a few pdf documents, does anyone know how to control the sequence of attachment in the email body?
thanks,Values in a map are ordered randomly, you can't predict the order.
-
Can you control where a new form().show() pops up?
hello
i wonder if you can control where the new form().show() pops up. can i set it on the right button cornet for a specific form?
or any other place? a specific point relative to screen's resolution?
thank you again.Set the StartPosition property to Manual and then specify the location of the Form using the Location property. Please refer to the following thread for more information:
http://stackoverflow.com/questions/17369159/setting-forms-location-when-calling-form-show
Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.
Maybe you are looking for
-
Dear Experts, Is any standard report in MM where I can see purchase order with incoterms. Rajesh Chauhan
-
How to change product master data in GTS?
Hi Experts, I want to change additional data of a product master in GTS. I want to update the values in the screen below (Additional data) How can I do this? are there any function modules? Please help. Thanks Gopal
-
How to improve the performance of Standard Extractors
Hi All, Can you please let me know how to monitor the performance of Standard Extractors. For one of the extractor which have 350K records in source, it is taking 4hrs to load to BI. I want to know which part of the program is taking more time. Thank
-
I can't figure out how to save photo attachments from email. I've searched the user's manual and various websites for the right answer to this. I've tried tapping and holding on the photo. I've tried bringing up the menu with the attachment open. Non
-
Interaction with Bulk Action Task
We are tyring to provide a "cleaner" interface for our customer when using bulk actions. Does anyone know how to interact directly with the Task that runs the bulk actions? I've looked in the repository thru the BPE and it's not selectable. Thanks!