How can I code this in Oracle Forms?
I have a master-detail form. In the detail block, I have several records. Here is my name table.
ID Name_Type Name
1 old Mike
2 Current John
3 old Peter
4 old Andrew
I would like to create a button trigger which shall perform the following:
1) insert a record into database with a copy of current value. In the above case it will insert create a record for John as name_type = 'OLD'. So we have total of 5 records. Commit the transaction.
2) Scroll through my detail records (5) and go to one specific record and erase the values from it. In the above case, it should find John's record with name_type = 'Current' and erase John from it.
How can I accomplish this in Oracle forms using a button-pressed trigger?
Hi,
Simple, using current values you can create new id , 'old' and name so oracle will create record, now refresh block, next using next_record in loop you can find record,erase one and refresh block.
Adinath Kamode
Similar Messages
-
How can implement running total in oracle forms
I want to implement a running total in oracle form
like
100 100
300 400
200 600
500 1100
200 1300
100 1400
PROCEDURE calculate_srno IS
current_rownum integer:=:System.Cursor_Record;
starting_srno integer:=:rs_1;
last_rownum integer;
BEGIN
last_record;
last_rownum:=:system.cursor_record;
go_record(1);
FOR counter IN 1..last_rownum LOOP
:sum_1:=:rs_1;
:rs_1:=:sum_1+:rs_1;
-- :offered_srno_to:=starting_srno;
if last_rownum=:System.Cursor_Record then exit;
end if;
END LOOP;
END;
it is not working after want to insert between in the tableWhy write code for this? Oracle Forms 10g has Calculated/Summary fields that will do this for you without the need of writing any PL/SQL.
Simply add a non-table item to the data block with the item you want to keep the running total for. Then change the following properties of the item:
Data Type: Number
Calculation Mode: Summary
Summary Function: Sum
Summarized Block: <Your Data Block>
Summarized Item: <Your Block Item>
Number of Items Displayed: 1 (if your item is in a Multi-Record (Tabular) layout else you don't need to change this property.
You will also need to change the following property of the block: Query All Records: Yes
If changing the Block's "Query All Records" property causes your form to be too slow because of the number of records in your block, then you could keep a running total manually by using a combination of the Post-Query and When-Validate-Item (WVI) triggers. If your block does not allow data entry, then you could do this with just the Post-Query trigger. For example:
BEGIN
/* This code sample assumes you have added a non-table item */
/* to your block called SUMMARY. */
:YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
END;If your block allows data entry, then you would add the following to your existing WVI trigger.
BEGIN
/* Perform your data entry validation logic first... */
IF ....
ELSE
...Validation is successful...
:YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
END IF;
END;Hope this helps.
Craig... -
How can I make OPAC in Oracle Forms Builder
Hello everyone,
I'm developing a Library Management System as my project in my Oracle subject.
Can anyone tell me how to make OPAC module of Library management system in Oracle forms builder.
I don't have any idea because this is my first encounter in this system.
Thanks.
I really appreciate all your help.
God bless ^^Hi,
Simple, using current values you can create new id , 'old' and name so oracle will create record, now refresh block, next using next_record in loop you can find record,erase one and refresh block.
Adinath Kamode -
I have to check for a pattern match from port 2 and based on this trigger I have to write onto port 3(buffered) as fast as possible. So there needs to be a buffered O/P from port 3. How to code such that the pattern match trigger from port 2 triggers the trigger config.vi for port 3?
Bheem,
Unfortunately, you can not share the start trigger with another operation when using the pattern match operation as a trigger. The only way to share a start trigger is if you are triggering on the rising or falling edge of a digital signal. This is a limitation of using the pattern match operation as a start trigger.
Regards,
Todd D.
NI Applications Engineer -
In order to transfer a document from Internet in one of my computers, I am asked to save it first (in my computer). In another computer I am not asked to save it and I can simply open it. IO would like to have the possibility to simply open it on the first computer and save it only if I want.
Difficult to understand why Disk Utility can be hard to find. It is listed in the Finder Menu/Services. You can also find it in your Applications Folder under Utilities.
What Mac do you have and what version of OS X ? -
How can i return object from oracle in my java code using pl/sql procedure?
How can i return object from oracle in my java code using pl/sql procedure?
And How can i returned varios rows fron a pl/sql store procedure
please send me a example....
Thank you
nullyes, i do
But i can't run this examples...
my problem is that i want recive a object from a PL/SQL
//procedure callObject(miObj out MyObject)
in my java code
public static EmployeeObj callObject(Connection lv_con,
String pv_idEmp)
EmployeeObj ret = new EmployeeObj();
try
CallableStatement cstmt =
lv_con.prepareCall("{call admin.callObject(?)}");
cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
//registerOutParameter(int parameterIndex, int sqlType,String sql_name)
cstmt.execute();
ret = (EmployeeObj) cstmt.getObject(1);
}//try
catch (SQLException ex)
System.out.println("error SQL");
System.out.println ("\n*** SQLException caught ***\n");
while (ex != null)
System.out.println ("SQLState: " + ex.getSQLState ());
System.out.println ("Message: " + ex.getMessage ());
System.out.println ("Vendor: " + ex.getErrorCode ());
ex = ex.getNextException ();
System.out.println ("");
catch (java.lang.Exception ex)
System.out.println("error Lenguaje");
return ret;
Do you have any idea? -
How to do this in oracle forms 10g
hi all,
any idea about how to format a drive using oracle forms 10g and shutting down the remote pc and a personal pc using oracle forms 10g.
i am using windows XP2 as os.
please replay..Hi Inol and Weiden,
thanks for your help,
i have cretaed a form xyz.fmx with a button , i wrote in when-button-pressed and also attached the default webutil.pll(which is in forms path) library in attached-library section
Client_host('cmd c/ shutdown -i');
but my problem is that when i run the form i am getting error that
FRM-40039: Cannot attach library webutil.pl while opening form xyz.fmx.
Cause: The given library is attached to the form but
cannot be located in the search path for PL/SQL libraries.
Action: Make sure that the given library can be found
and that it has read permissions set.
Level: 99
Type: Error
i think i have to configure the webutill.pll but i don't how to configure
can you tell me how to configure the webutil.pll file..
please reply.. -
I backed up files onto an external hard rive form my old PC. Now I want to retrieve the files to put on my mac but it is telling me to format it to Mac. How can I do this without erasing all of the data on my hard drive?
Your drive was used with a PC and formatted NTFS which is proprietary Microsoft format.
You need to install a third party program that will read the NTFS format.
There is various software from PARAGON, Tuxera and NTFS-3G
When you get the data off and have verified it to be good, reformat the drive either HFS+ for Mac use only, or for Mac and PC use then MSDOS (FAT32) for under 4GB files (best) or exFAT (for larger than 4GB files) is proprietary and Microsoft is appling for a patent, which would likely mean OS X won't be allowed to read it anymore without a licensing fee and you'l have to pay another third party software company to read the format, just like NTFS is.
The less you have to rely upon third party sources to read your drives the better, this way if you have a issue and need to read the drive on another machine you don't need the software, and a internet connection and a credit card and...and...and... -
New computer win 8.1 pro, installed my creative Suite 4 Design premium but it shuts down when I try to use any of the programs and gives me an error code 147:20. How can I fix this? Is this a conflict with win 8.1 pro?
You need to adjust your security stuff/ permissions and possibly use compatibility modes. It means that your licensing service is being blocked/ shut down.
Mylenium -
In 2012, I bought Photoshop CS6 Extended (education edition) for Mac. Now I want to install it on my new Macbook. I have the correct serial number and product code, but I receive an error message: the software may be a false copy etc....What to do?
Here is a copy of the error
This means : Installation failed.
Verification of the Adobe Software failed
The product you want to install is no valid Adobe product and seems to be falsified.
HUgo
Op 29-aug.-2014, om 23:42 heeft Jeff A Wright <[email protected]> het volgende geschreven:
I bought Photoshop CS6 Extended(education edition) for Mac. Now ik want to install it on my (new) macbook. I have the product code and serial number. I receive an error code: may be a false copy. How can I install this program?
created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
Hugo please turn off your e-mail signature.
If your serial number is listed as being valid at http://www.adobe.com/ then I would recommend obtaining a fresh copy of the installation files. You can find details on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
To download a fresh copy of the installation files please see Download CS6 products.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6685617#6685617
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
ok, my former computer crashed and i have a new one. i would like to sync my ipod with the new one, but it wont allow me to with out removing all of the data on it. How can i fix this?
See Recover your iTunes library from your iPod or iOS device.
tt2 -
I have 2 games Words with Friends and Cityville that receives a Pop-up message form iTunes... "Connect to iTunes to use Push Notifications" and will not allow me to exit out of the app or play. How can I get this message to STOP?
Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications. I even tryied going into itunes that is installed on my phone. I still cannot find anyplace to manage these popups. I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either. Any guidance is MUCH appreciated - Im not sure where to go from here.
-
When filling out a form, some fields copy to others when I tab to the next. How can I make this stop?
You can't using Adobe Reader. It looks like whomever created the form used the same identifiers (names) for various fields. Each field with the same name will populate with the information used in another field of the same name. This is intentional.
Normally when I see this, it tells me that someone created an initial field then copy/pasted it to make additional fields but forgot to change the names. -
I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?
You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.
-
I use the apple email in my mac air. When I foward messages, people that use Outlook receive the text fowarded in form of attachment instead of the message opened in the body of the email. How can I solve this? Thanks. Best regards.
this:
Did not exist at the point of delivery to the consumer.
Nor did the white corrosive agent present exist at the point of sale.
" exposure of copper alloys to moisture or salt spray will cause the formation of blue or green salts called verdigris. The presence of verdigris indicates active corrosion."
I see also 2 contact points with DEEP corrosion pitting not indicative of any defect from the factory.
Maybe you are looking for
-
How debug a routine create in InfoPackage for Data selection ?
Hi everybody, I decide to debug a routine create in InfoPackage. Here, the name of my ABAP routine: program conversion_routine form compute_TREATMENT_DATE When i execute the "/h" command to launch debugger, i don't see this routine in Call Stack... H
-
Outbound call not working for Common Area Phone
Hi, I have configured Common area phone and i am not able to make the outbound call. I have grant the conference policy. I have grant the voice policy. client policy is default How to troubleshoot the issue with outbound calls? INBOUND call is functi
-
Help needed - javax.naming.NameNotFoundException:
Hi, I am writing a stateless local session bean that is invoked within an EJB, it deploys fine, console 16:52:58,719 INFO [EjbModule] Deploying LocalRuleEngine but when I run it I get NameNotFoundException, javax.naming.NameNotFoundException: LocalRu
-
Hi, In ALE INBOUND Process Code Apart from the Function Module name, what are the important things to be filled up while creating that InBound process code in WE42. What is the importance of those? what is the importance of Object Attributes in
-
Pop up in Sales order of Advance payment of Customer
hi Gurus Actually i have a query that when i am going to create the sales order the systemshuold pop up the dialouge box indicating the customers's advance payment if its exceeding that advance payment bcoz the customer pays in advance the money to