How can i display recent update/delete/insert records in form
Hai !!!!
i am new for forms,.......any body tell me, how can i display recent no of records updated or no of records deleted or no of records are inserted in a form. these records count are display in display items....give me detail explination......
Subbu.....
the easiest way is copy and paste the oracle-forms example from the OU.
You need form-level-trigger ON-ERROR + ON-MESSAGE, POST-INSERT, POST-UPDATE, POST-DELETE, three global variables and a procedure:
ON-ERROR
handle_message( error_code, 'ERROR: ' || ERROR_TYPE || '-' || TO_CHAR(ERROR_CODE) ||': '|| ERROR_TEXT );
ON-MESSAGE
handle_message( message_code, MESSAGE_TYPE || '-' || TO_CHAR(MESSAGE_CODE) || ': ' || MESSAGE_TEXT );
PROCEDURE handle_message( message_number IN NUMBER, message_line IN VARCHAR2 ) IS
BEGIN
IF message_number IN ( 40400, 40406, 40407 )
THEN
DEFAULT_VALUE( '0', 'GLOBAL.insert' );
DEFAULT_VALUE( '0', 'GLOBAL.update' );
DEFAULT_VALUE( '0', 'GLOBAL.delete' );
MESSAGE('Save Ok: ' ||
:GLOBAL.insert || ' records inserted, ' ||
:GLOBAL.update || ' records updated, ' ||
:GLOBAL.delete || ' records deleted !!!' );
ERASE('GLOBAL.insert');
ERASE('GLOBAL.update');
ERASE('GLOBAL.delete');
ELSE
MESSAGE(message_line );
END IF;
END;
POST-INSERT
DEFAULT_VALUE('0', 'GLOBAL.insert');
:GLOBAL.insert := TO_CHAR( TO_NUMBER( :GLOBAL.insert ) + 1 );
POST-UPDATE
DEFAULT_VALUE('0', 'GLOBAL.update');
:GLOBAL.update := TO_CHAR( TO_NUMBER( :GLOBAL.update ) + 1 );
POST-DELETE
DEFAULT_VALUE('0', 'GLOBAL.delete');
:GLOBAL.delete := TO_CHAR( TO_NUMBER( :GLOBAL.delete ) + 1 );try it
Gerd
Similar Messages
-
How can we do policy updations and insertion using procedures in insurence?
how can we do policy updations and insertion using procedures in insurence?
please answer for this post i need faced in interview.how can we write the code for that procedure in policy details using procedures in plsql.997995 wrote:
how can we do policy updations and insertion using procedures in insurence?
please answer for this post i need faced in interview.how can we write the code for that procedure in policy details using procedures in plsql.You are asking about a specific business area (Insurance) and the nuances of that business (Insurance Policies) and providing no technical details about what is required, on a technical forum. There are many varied businesses in the world and not everyone here is going to be familiar with the area of business you are referring to.
As a technical forum, people are here to assist with technical issues, not to try and help you answer questions in an interview for something you clearly know nothing about, so that you can get a job that you won't know how to do.
If you have a specific technical issue, post appropriate details, including database version, table structures and indexes, example data and expected output etc. as detailed in the FAQ: {message:id=9360002} -
My ipod touch will no longer download new apps after I updated via apple store.It freezes now when I attempt to download and blanks the app off entirely . How can I reverse the updates or correct the problem moving forward?
Basics from the manual are restart, reset, restore.
Try those -
I am trying to update my apps. When it prompts for my password my old deleted email address comes up. I don't even rember the password for that old email. How can I get to update my apps with my current email?
All apps are tied to the Apple ID they are purchased with and is not transferable.
Delete app and download app with your new Apple ID. -
How can I display Task's "Resent Changes" or "Updates" or "History" in the project site
Hello,
When a task is assigned to a team member, the team member may keep sending frequent updates "Status" for the task to the approving whenever he finishes anything in the task. These updates can be shown in the Task Details (in PWA).
My question is, how can I display the Task's "Resent Changes" or "Updates" or "History" in the project site, so ALL the team member can see the "Progress" of that task?
ThanksHi,
I'm not sure it is relevant that all team members see all task updates through the project site. It will be a lot of information that might not be relevant and could generate confusion.
Instead of this, I'd suggest to share the project schedule through the project site with regular baselines and eventually to review task update/approval with team members in PWA during a weekly status meeting.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
In the document attached the vi on the right is sub to the vi on the left. On the subvi on the right the variable "Field Reading" is continuously updated on the front panel of the subvi as the "for" loop is executed, but only the last value of the variable is updated on the main vi front panel which is what is expected. My question is how can I display the changing value of "Field Reading" on the main vi front panel as the "for" loop in the subvi is running?
Thank you.
Solved!
Go to Solution.
Attachments:
Doc2.docx 554 KBHopefully I can explain it well enough. It really is simple.
1) Create an empty global variable and call it something like User Interface References.vi
2) For each and every control and indicator on your front panel, right-click and select Create/Reference
3) Place these references wherever you like (I use a series of Event cases to perform my initialisation and these all live in one of these event cases). They can be placed anywhere in the main vi.
4) For each of the references, right-click and select Create/Indicator
5) Moving to the front panel, Cut all the indicators and Paste them in the global variable (eg. User Interface References.vi)
6) Moving back to the block diagram, wire the global variable to each of the references and select the same named global variable.
All the hard work is now done (until you add another user interface terminal). You should now have something that look as shown below, [except the reference labels would be to the left (not sure why the snippet put them above)]. In my latest program I have 82 references!
Done. You can now access all your front panel controls and indicators anywhere in your program as shown below.
You can just select Value in most cases, but in this particular case I wanted to fire off an Event to do some things (log the alarm) as well as just update the value. So, this is another bonus with the method.
Hopefully this all makes sense. If not, let me know. -
How can I display JTextFields correctly on a JPanel using GridBagLayout?
I had some inputfields on a JPanel using the boxLayout. All was ok. Then I decided to change the panellayout to GridBagLayout. The JLabel fields are displayed correctly but the JTextField aren't. They are at the JPanel but have a size of 0??? So we cannot see what we type in these fields... Even when I put some text in the field before putting it on the panel.
How can I display JTextFields correctly on a JPanel using GridBagLayout?
here is a shortcut of my code:
private Dimension sFieldSize10 = new Dimension(80, 20);
// Create and instantiate Selection Fields
private JLabel lSearchAbrText = new JLabel();
private JTextField searchAbrText = new JTextField();
// Set properties for SelectionFields
lSearchAbrNumber.setText("ABR Number (0-9999999):");
searchAbrNumber.setText("");
searchAbrNumber.createToolTip();
searchAbrNumber.setToolTipText("enter the AbrNumber.");
searchAbrNumber.setPreferredSize(sFieldSize10);
searchAbrNumber.setMaximumSize(sFieldSize10);
public void createViewSubsetPanel() {
pSubset = new JPanel();
// Set layout
pSubset.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
// Add Fields
gbc.gridy = 0;
gbc.gridx = GridBagConstraints.RELATIVE;
pSubset.add(lSearchAbrNumber, gbc);
// also tried inserting this statement
// searchAbrNumber.setText("0000000");
// without success
pSubset.add(searchAbrNumber,gbc);
pSubset.add(lSearchAbrText, gbc);
pSubset.add(searchAbrText, gbc);
gbc.gridy = 1;
pSubset.add(lSearchClassCode, gbc);
pSubset.add(searchClassCode, gbc);
pSubset.add(butSearch, gbc);
}import java.awt.*;
import java.awt.event.*;
import javax .swing.*;
public class GridBagDemo {
public static void main(String[] args) {
JLabel
labelOne = new JLabel("Label One"),
labelTwo = new JLabel("Label Two"),
labelThree = new JLabel("Label Three"),
labelFour = new JLabel("Label Four");
JLabel[] labels = {
labelOne, labelTwo, labelThree, labelFour
JTextField
tfOne = new JTextField(),
tfTwo = new JTextField(),
tfThree = new JTextField(),
tfFour = new JTextField();
JTextField[] fields = {
tfOne, tfTwo, tfThree, tfFour
Dimension
labelSize = new Dimension(125,20),
fieldSize = new Dimension(150,20);
for(int i = 0; i < labels.length; i++) {
labels.setPreferredSize(labelSize);
labels[i].setHorizontalAlignment(JLabel.RIGHT);
fields[i].setPreferredSize(fieldSize);
GridBagLayout gridbag = new GridBagLayout();
JPanel panel = new JPanel(gridbag);
GridBagConstraints gbc = new GridBagConstraints();
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.insets = new Insets(5,5,5,5);
panel.add(labelOne, gbc);
panel.add(tfOne, gbc);
gbc.gridwidth = gbc.RELATIVE;
panel.add(labelTwo, gbc);
gbc.gridwidth = gbc.REMAINDER;
panel.add(tfTwo, gbc);
gbc.gridwidth = 1;
panel.add(labelThree, gbc);
panel.add(tfThree, gbc);
gbc.gridwidth = gbc.RELATIVE;
panel.add(labelFour, gbc);
gbc.gridwidth = gbc.REMAINDER;
panel.add(tfFour, gbc);
final JButton
smallerButton = new JButton("smaller"),
biggerButton = new JButton("wider");
final JFrame f = new JFrame();
ActionListener l = new ActionListener() {
final int DELTA_X = 25;
int oldWidth, newWidth;
public void actionPerformed(ActionEvent e) {
JButton button = (JButton)e.getSource();
oldWidth = f.getSize().width;
if(button == smallerButton)
newWidth = oldWidth - DELTA_X;
if(button == biggerButton)
newWidth = oldWidth + DELTA_X;
f.setSize(new Dimension(newWidth, f.getSize().height));
f.validate();
smallerButton.addActionListener(l);
biggerButton.addActionListener(l);
JPanel southPanel = new JPanel(gridbag);
gbc.gridwidth = gbc.RELATIVE;
southPanel.add(smallerButton, gbc);
gbc.gridwidth = gbc.REMAINDER;
southPanel.add(biggerButton, gbc);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(panel);
f.getContentPane().add(southPanel, "South");
f.pack();
f.setLocation(200,200);
f.setVisible(true); -
How can i display image in RTF template when Oracle Apps running in Windows
Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
Thanks
RaviHi Ravi,
You can add images into your rtf template using MS Word Insert Picture feature.
Did you try this method?
Thanks
Ravi
[email protected] -
How can I display the rows into columns.
How can I display the rows into columns. I mean
Create table STYLE_M
(Master varchar2(10), child varchar2(10));
Insert itno style_m
('MASTER1','CHILD1');
Insert itno style_m
('MASTER2','CHILD1');
Insert itno style_m
('MASTER2','CHILD2');
Insert itno style_m
('MASTER3','CHILD1');
Insert itno style_m
('MASTER3','CHILD2');
Insert itno style_m
('MASTER3','CHILD3');
Note : The Master may have any number of childs.
I want to display like this..
Master child1, child2, child3, .......(dynamic)
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3
Sorry for disturbing you. Please hlp me out if you have any slution.
Thanks alot.
Ram DontineniHere's a straight SQL "non-dynamic" approach.
This would be used if you knew the amount of children.
SELECT
master,
MAX(DECODE(r, 1, child, NULL)) || ' ' || MAX(DECODE(r, 2, child, NULL)) || ' ' || MAX(DECODE(r, 3, child, NULL)) children
FROM
SELECT
master,
child,
ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r
FROM
style_m
GROUP BY
master
MASTER CHILDREN
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3 Since you said that the number of children can vary, I incorporated the same logic into a dynamic query.
SET AUTOPRINT ON
VAR x REFCURSOR
DECLARE
v_sql VARCHAR2(1000) := 'SELECT master, ';
v_group_by VARCHAR2(200) := 'FROM (SELECT master, child, ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r FROM style_m) GROUP BY master';
v_count PLS_INTEGER;
BEGIN
SELECT
MAX(COUNT(*))
INTO v_count
FROM
style_m
GROUP BY
master;
FOR i IN 1..v_count
LOOP
v_sql := v_sql || 'MAX(DECODE(r, ' || i || ', child, NULL))' || ' || '' '' || ';
END LOOP;
v_sql := RTRIM(v_sql, ' || '' '' ||') ||' children ' || v_group_by;
OPEN :x FOR v_sql;
END;
PL/SQL procedure successfully completed.
MASTER CHILDREN
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3I'll point your other thread to this one. -
IMovie V.10: How can a 2nd Library be deleted?
When iMovie v.10 was installed it created 2 Libraries. I have moved everything out of the 2nd Library except for 1 item, which iMovie will not allow me to move. However, I did copy that item to the 1st Library. Now I just want to delete the 2nd Library, but iMovie doesn't seem to allow this and HELP does not provide any way to delete a Library either. How can the 2nd library be deleted?
Hi i could be totaly wrong in saying this but i think there is a error in your update i found this on mine aswell i also foundif i launched lanchpad i also had the icon for the old Imovie!.I deleted the new version as it was giving me problems then updated again from the app store,now i only have the lastest icon
-
How can I display XSLT transformer errors on a web page ?
Hi,
I have some JSP pages that access DB, create an XML based on DB data and then transform it into HTML through an XSLT stylesheet. Developing the XSL code it's easy to make mistakes and generate errors on trasformation, but what I receive on the web page is only a "Could not compile stylesheet" TransformerConfigurationException, while the real cause of the error is displayed only on tomcat logs. This is the code for transformation:
static public void applyXSLT(Document docXML, InputStream isXSL, PrintWriter pw) throws TransformerException, Exception {
// instantiate the TransformerFactory.
TransformerFactory tFactory = TransformerFactory.newInstance();
// creates an error listener
XslErrorListener xel = new XslErrorListener();
// sets the error listener for the factory
tFactory.setErrorListener(xel);
// generate the transformer
Transformer transformer = tFactory.newTransformer(new SAXSource(new InputSource(isXSL)));
// transforms the XML Source and sends the output to the HTTP response
transformer.transform(new DOMSource(docXML), new StreamResult(pw));
}If an exception is thrown during the execution of this code, its error message is displayed on the web page.
This is the listener class:
public class XslErrorListener implements ErrorListener {
public XslErrorListener() {
public void warning(TransformerException ex) {
// logs on error log
System.err.println("\n\nWarning on XEL: " + ex.getMessage());
public void error(TransformerException ex) throws TransformerException {
// logs on error log
System.err.println("\n\nError on XEL: " + ex.getMessage());
// and throws it
throw ex;
public void fatalError(TransformerException ex) throws TransformerException {
// logs on error log
System.err.println("\n\nFatal Error on XEL: " + ex.getMessage());
// and throws it
throw ex;
}When I have an error in the XSL stylesheet (for examples a missing closing tag), I can find on tomcat logs the real cause of the error:
[Fatal Error] :59:10: The element type "table" must be terminated by the matching end-tag "</table>".
Error on XEL: The element type "table" must be terminated by the matching end-tag "</table>".but on my web page is reported just the TransformerConfigurationException message that is:
"Could not compile stylesheet".
How can I display the real cause of the error directly on the web page?
Thanks,
AndreaThis code is part of a bigger project that let developers edit XSL stylesheets through a file upload on the system and we can't impose the use of any tool for checking the xsl. So, I need to display the transformer error on the web page.I see. This code is part of an editorial/developmental tool for developers to create and edit XSL stylesheets.
As part of the editorial process, XSL errors during editing can be considered a normal condition. In other words, it is normal to expect that the developers will generate XSL errors as they are developing stylesheets.
In this light, handling the XSL transformation errors is a business requirement that you need to handle. Using the Java Exceptions mechanisms, e.g. try / catch are inappropriate to handle business requirements, in my opinion.
I suggest that you look at how you handle the occurence of XSL errors differently than what you currently have. You need to:
(1) capture the Transformation exception on the server;
(2) extract the message from the exception and put it into a message that can be easily understood by the user;
The current error message that you have going to the web browser is not useful.
And you should not have the Transformation exception sent to the web browser either.
What you are attempting to do with the exception is not appropriate.
Handle the Transformation exception on the Business tier and use it to create a useful message that is then sent to the Presentation tier. In other words, do not send Java exceptions to web browser.
/> -
How can I display True/False in my dropdownlist as "Yes" and "No"?
Hi All,
I want to bind a dropdownlist to a boolean value (so it's either true or false). I'm particularly interested in using two-way binding to when the user changes from "yes" to "no" the boolean value automatically changes from "true" to "false." But, I want the user to see "yes" and "no" as the options, rather than "true" and "false".
How can I display "yes" and "no" and still take advantage of binding? Or can I not use binding in this circumstance?
-JoshSolution 1:
In order to display Yes/No for True/False, you may specify labelFunction for the dropdownList.
In MXML:
<s:DropDownList labelFunction="myLabelFunction" />
In actionscript:
private var arr:ArrayCollection = new ArrayCollection(["true","false"]);
private function mylabelFunction(item:Object):String
if(item.toString() == "true")
return "yes";
else return "No";
OR
Solution2:
may be u can try making an array collection like
private var arr:ArrayCollection = new ArrayCollection([{label:"yes",value:"true"},{label:"no",value:"false"}]);
and specify labelField for the dropdownList like
<s:DropDownList labelField="label" dataProvider="{arr}" /> -
How can I display contacts in a relationship
I have companies in my CRM. I have a customers/contacts in the CRM I have tied as a relationship with each companies. How can I display all the records/contacts associated with a company? I have a already created a secure zone, so the company user would have logged in. Is this possible? If not, any workaround?
The only workaround I thought of is to use webapp to import the company data and create another web app containing the employees data. Then link both tables/webapp using datasource. But the way the client's data is structured could create a lot of problems going forward.
Any suggestion, help will be appreciatedThe relationship feature and how companies work currently in BC is really limited. It is an association and not true relationships at the moment. You cant output a company and show all its relationships at the moment.
-
How can I display & split the audio & video from the same digitized clip?
I digitized a scene into iMovie that I edited on a professional system which I don't have access to anymore. The whole scene is 1 clip. Now I see a few tweaks that I want to make, so I was hoping to do them in iMovie.
I want to "pull up" the audio in one section - meaning I want to take cut about 20 frames of audio from the end of a shot, and then move all the other audio up to fill the hole. To compensate for the missing 20 frames, I'll cut video off the head of the next shot. Some call this prelapping. Some call it an L-cut. Some call it asymmetrical trimming. Either way, I can't figure out how to do it in iMovie.
My clip appears in the timeline as one track - a single track that contains the video and 2 audio tracks. How can I display the audio that's tied to the video on its own track? Then I think I could split audio & video wherever I wanted and trim things up - but I can't figure out how to do it.
Am I asking too much of this software?
BTW, I never see the option to "Split audio clip at playhead". I'm not displaying clip volume or waveforms. Choosing to display waveforms doesn't show me anything. Maybe iMovie thinks I'd only want to see waveforms of audio that isn't tied to my video-and-audio clips?
Thanks in advance for any help...Jordon,
"Am I asking too much of this software?"
No, you're not.
You first want to select your clip(s) and choose Advanced>Extract Audio.
This will copy the audio from the video clip and place it on one of the two separate audio tracks while lowering the audio level to zero in the original video track.
You can now edit and move the audio independently of the video.
With the audio clip selected, you'll find you now have access to Edit>Split Selected Audio Clip at Playhead.
Matt -
How can i display a list of all the names stored in the Mail app?
When sending an email, the program shows a list of names according to the first and subsequent letters that I type into the To: field. There are times I cannot recall someone's email user name. How can I display a complete list of all the names Mail has stored? I know that I can go to the To: field then type in the letter A, then write down all listings under A, and then repeat for each letter of the alphabet, but there should be an easier method.
I have perhaps dozens of names in Mail, but only five names in Address Book, so the latter does me no good.On the menubar, Mail > Window > Previous Recipients
Regards,
Captfred
Maybe you are looking for
-
How can i join additional column without using a query
Hi, I created a report using a base query; Now i want to add an additional coloumn to it without using another table i.e. from no new query; That additional column is complex computed value from different tables created for each record; How can i att
-
Supervisor Desktop in 9.0 for a single user hangs
In our UCCX environment we've got 3 supervisors each with it installed on their own machine. One of these supervisors has the supervisor application stop updating information and responding to mouse clicks 2-3 times a day and has to restart the appl
-
Connecting Mac Pro to LCD and TV LCD Problems
I have a 22" Gateway LCD that works perfect with my mac and I just recently bought a Mini displayport HDMI connection that I wanted to connect to my Sony 46" HD TV. Now, everytime i connect it and I boot up my macpro it will freeze at the login and c
-
The Solution is not far away but it is a big problem for me!!
If i pull a video in my timeline each time the audio dont move with. I have to select each time the audio and videoclip to move it in my track. How can i fix that? I use Prem. CC. Please Help me!!! It makes me crazy!
-
.........bkhb