Capture event from custom.pll?
Hi friends,
I've been reading in Developers Guide about events capture (p.787) in custom.pll but I've not found anything about capture the event (or something similar) whe we close a descriptive flexfield window....
Is there any way to know from custom.pll when a window is closed? The purpose is to make diferents actions when the focus return to the original form.
Thanks.
Jose.
Does the WHEN-FORM-NAVIGATE event fire when closing one form and returning to another? However I am pretty sure that this fires when switching between forms without closing one of them as well.
Similar Messages
-
How to close a custom form from CUSTOM.pll
Dear Friends,
We need your help on the following issue related to Oracle Apps Forms.
We have a requirement to show a popup message (message should remain open and user should be able to continue working in the order entry form. User use this message as a reference while entering order details) when user enters a customer name or number in the order entry form . This is similar to the Stock Availability form which gets opened automatically when control enters into Order Entry Lines form, where the stock availability form remains open while entering line details.
To fullfil the requirement, we have designed a custom form with a single text field in which the message text (some customer information) will be shown.
We are using custom.pll to call this custom form (thru FND_FUNCTION.EXECUTE) when the control leaves customer number field. User could leave this custom form open and continue with entering order details. Till this point we could achieve what we want. i.e. we could show the popup message in the custom form after user enters a customer number.
The problem is, after the custom form is opened, when we enter a new order for different customer, we need to close the custom form (which is opened for the previous customer) if the customer is not qualified.
we could not achieve this. We tried using CLOSE_FORM, CLOSE_WINDOW, but did not help.
Any body have any suggestions on achieving this... Basically, we need your help to know how we can close the custom form from CUSTOM.pll.
Thanks,
UmaI thing you haven't any (supported) option to close a form via custom.pll.
For a long time, we have search a solution for the same problem without any result. -
Removing Product Libraries (OEXOEHDR, OEXOELIB) links from CUSTOM.PLL
Im unable to remove attached product libraries from CUSTOM.PLL. After removing (OEXOEHDR, OEXOELIB) in Oracle Forms Builder Im recompiling and saving. If I reopen the same custom.pll, deleted libraries are still attached.
Any one encountered this problem? Please reply.
Thanks,
Kishore ReddyIm unable to remove attached product libraries from CUSTOM.PLL. After removing (OEXOEHDR, OEXOELIB) in Oracle Forms Builder Im recompiling and saving. If I reopen the same custom.pll, deleted libraries are still attached.
Any one encountered this problem? Please reply.
Thanks,
Kishore Reddy -
Capturing events from a JCheckBox in a JTable cell
I am trying to capture item state changed event from a JCheckbox in a JTable. When user selects checkbox I do insert in database and on deselect I do delete from database. The item state changed event is not firing correctly...can you please tell me what I am doing wrong. My JTable uses CustomModel which is used by many other apps. So I can not really modify CustomModel only to work with my JTable. Here is my code.
public class MyClass extends JPanel
.....some code to add panel, jscorollpane, etc.
ResultSet res;
GUI gui; //Custom Class to deal with different GUI layouts
JTable myJTable = new JTable();
GUI.CustomModel custModel;
public void init()
displayJTable();
attachCheckBoxListeners();
private void displayForms()
res = //resultset from DB
Vector cols = new Vector(10);
cols.addElement(new Integer(1);
gui.DisplayResultSetinTabel(res, myJtable, cols, null);
custModel= (GUI.CustomModel) ((TableSorter) myJTable.getModel()).getModel();
custModel.setEditableColumn(0, true);
//Attach CheckBox Listener to all the checkbox in JTable
private void attachCheckBoxListeners()
for(int row = 0; row< myJTable.getRowCount(); row++)
Object val = cm.getValueAt(row, 0);
final JCheckBox jcb = (JCheckBox) gridForms.getCellEditor(row, 0).getTableCellEditorComponent(gridForms, val, true, row, 0);
jcb.addItemListener( new java.awt.event.ItemListener() // Add Item Listener to trap events
public void itemStateChanged(java.awt.event.ItemEvent event)
if(myJtable.getSelectedRow() == -1) // if no row is selected in table return
return;
try
if (res.absolute(myJtable.getSelectedRow())+1))
if(jcb.isSelected())
saveData();();
else
deleteData();
catch(Exception e)
System.out.println("ERROR ");
} //end of AttachCheckBoxListeners ()
private void SaveData() {}
private void DeleteData() {}
Okay....the problem is when JCheckBox state is changed (by user) from Selected to Deselected itemStateChanged() is fired and it does delete from database. then again itemStateChanged() called it detects Jcheckbox as selected and does inseret in database. On Jtable gui...that checkbox is still shown as desected.
Please tell me what is going on here.....
Thank you.In short - never listen to low-level events from editorComponents (low-level meaning everything below - and most of the time including - a editingStopped/editingCancelled of the cellEditor). Your problem belongs to the model realm - save if a cell value is changed - so solve it in the model realm by listening to event from the tableModel and trigger your business logic when you detect a change in that particular cell value.
Greetings
Jeanette -
Listening to event from custom component
I have a main.mxml file, and 2 custom components: component1.mxml and component2.mxml
I want to dispatch an event from component1 and handle it in component 2.
I'm able to do this by handling the event first in the main.mxml then passing it on.
But is there a way not to involve main.mxml, and to directly listen to the event from component 1 and handle it in component 2?
I need to listen the event in actionscript, not mxml.You can dig in to custom event handlers
Best Regards,
Yogesh -
Capturing events from a bluetooth remote control
I purchased a Fujitsu Remote Control RC900 and installed it on my Windows 7 computer.
Now I try to capture the remote control key events in a Java application.
I can catch some events as keyboard events (such as "Enter" or arrow keys) but for many keys I have not found a way to catch any event.
Still, some media applications can recognize the events.
I also tried listening mouse events with this swing tutorial class
http://docs.oracle.com/javase/tutorial/uiswing/examples/events/MouseEventDemoProject/src/events/MouseEventDemo.java
But no success. Any ideas?
Is there any remote control event framework for Java, apart from keyboard or mouse events?In short - never listen to low-level events from editorComponents (low-level meaning everything below - and most of the time including - a editingStopped/editingCancelled of the cellEditor). Your problem belongs to the model realm - save if a cell value is changed - so solve it in the model realm by listening to event from the tableModel and trigger your business logic when you detect a change in that particular cell value.
Greetings
Jeanette -
Capture event from mxml component
I have an accordian control in my main mxml application. Each
item in the control is a custom mxml component that I created that
consists of a label and some text. When the label is clicked, I
need to fire off a message to the containing application with a
string value. I'm not sure how to do this. Here's what I have right
now. I'm not sure if I'm going down the right track but if I am,
how do I pass the string argument with the event and then capture
this event and the argument in the main application?
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="200">
<mx:Script>
<![CDATA[
private var _title:String = "";
private var _desc:String = "";
[Inspectable(defaultValue=true)]
public function set Title(title:String):void{
_title = title;
public function set Description(desc:String):void{
_desc = desc;
private function SetMovie(url:String):void{
dispatchEvent(new Event("MovieTitle"));
[Bindable(event="MovieTitle")]
]]>
</mx:Script>
<mx:VBox>
<mx:Label id="lblTitle" text="{_title}" width="190"
click="SetMovie('testmovie.flv');/>
<mx:Text id="txtDescription" text="{_desc}"
width="190"/>
</mx:VBox>
</mx:Canvas>You have several issues, and several options here. First, a
custom event can pass any data you want, and is not very hard to
create.
However, there is a still easier way. All of the Event
objects have a "target" and "currentTarget" property which give you
a reference to the object that dispatched the event.
So, in your component, implement a public property, say like
this:
public function get Title():String{
return _title;
then in a handler function you can do:
private function onMovieTitle(event:Event):void {
var sMovieTitle:String = event.currentTarget.Title; //watch
out for reserved words, though
There are two ways to listen for an event. One easy way is to
use a bubbling event. Some folks advise against bubbling event
because of potential event name collisions, but this may not be a
concern for you. It has not yet concerned me enough to make me
avoid using bubbling.
The other way is to declare handler on the component itself.
Also, if you use a metadata tag, you can assign the handler on the
mxml tag, instead of using addEventListener():
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="200">
<mx:Metadata>
[Event(name="MovieTitle", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
Then, in you main app:
<myComp id="mc1" ... MovieTitle="onMovieTitle" ...
Without the metadata, you would do
mc1.addEventListener("MovieTitle",onMovieTitle)
Using a bubbling event:
change the dispatchEvent to this:
dispatchEvent(new Event("MovieTitle",true)); //the 'true'
makes it bubble
Then, in the main app, listen ON the main app(this):
this.addEventListener("MovieTitle",onMovieTitle);
Tracy -
Capture event from job cancelled in SM37 by workflow, is not posible.
Hi, i'm learning workflows and i want capture the event ABORT o CANCELLED form job in sm37 and send email to agent recipient but i dont know as to resolve this problem.
Please , i need help.
Thanks.Hi......
Look Job : BI_PROCESS_LOADING.........is actually the background job.............in a process chain.......when the trigger come to a load process...........first this job will run........and after completion of this job...........the actual IP will start...............we don't schedule this job.......but u r saying ur loads are fine.........if this job fails......then the IP will not start......so how ur IP s are running........As already suggested............u deschedule the chain........then again schedule it back.......
Now to check job that exactly fails at 12:00 a.m.....................
Go to SM37 ............give this job name...............date......and in the time field give the time.........
Regards,
Debjnai...... -
How to capture events from vbs script in java
Hello all
i have vbs script that executing some actions after its done running or after its fails the vbs script
returns string , my question is how can i execute this script but also capture in java the returned string from the vbs script
ThanksHello
nop im talking about java here is what i got untill now .. ( not working )
for example say i have vbscript that do only that :
myVbs.vbs :
set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "Hello World!" and i like to capture this "Hello World!" string in my java code how can it be done?
this is my java code , but its does not working ..
public class ExcVbs {
public static void main(String args[]) throws InterruptedException{
Process p = null;
try {
p = Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler myVbs.vbs" );
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
p.waitFor();
OutputStream pus = p.getOutputStream();
System.out.println(pus.toString());
System.out.println( "Code=" + p.exitValue() );
} -
Missing Action Event from Custom Component
Hi JSF Gurus,
I have two custom components, both extends UICommand and have their
own renderers. I use them on two seperate pages, say component1 on
page1 and component2 on page2. And page2 is include inside page2.
I registered an action listener on component2. When the composite page
is rendered, I clicked on component2. However, the registered action
listener was not invoked. Inside the debugging (I'm using IntelliJ
IDEA 5.0) I set a breakpoint inside the decode method of Renderer2
(renderer for component2). I do see the componen2 actually as an
actionLister method binding being set to correct value. I do queue the
new action event to component2 at the end of the decode method. But
the action listerner never invoke.
Any idea what did I miss?
Thanks,
EdmondHi Yuki,
Yeah, after I turn on detail JSF debugging as instructed by the book Core JavaServer Faces, I figured out I had a validation error. That solves the mystery.
Thanks,
Edmond -
Dispatching & listening for custom events from custom component [Flex 4.1]
I'm giving this a try for the first time and I'm not sure I have the recipe correct!
I have a custom component - it contains a data grid where I want to double click a row and dispatch an event that a row has been chosen.
I created a custom event
package oss
import flash.events.Event;
public class PersonChosenEvent extends Event
public function PersonChosenEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
super(type, bubbles, cancelable);
// Define static constant.
public static const PERSON_CHOSEN:String = "personChosen";
// Define a public variable to hold the state of the enable property.
public var isEnabled:Boolean;
// Override the inherited clone() method.
override public function clone():Event {
return new PersonChosenEvent(type);
Then I try to dispatch the event within the component when the datagrid is doubleclicked:
import oss.PersonChosenEvent
dispatchEvent(new PersonChosenEvent(PersonChosenEvent.PERSON_CHOSEN, true, false));
And in the parent application containing the component I do on creationComplete
addEventListener(PersonChosenEvent.PERSON_CHOSEN,addPersonToList);
The event does not seem to fire though. And if I try to evaluate the "new PersonChosenEvent(..." code it tells me "no such variable".
What am I doing wrong?
(It was so easy in VisualAge for Java, what have we done in the last 10 years?? )
MartinI've done this kind of thing routinely, when I want to add information to the event. I never code the "clone" method at all.
Be sure that you are listening to the event on a parent of the dispatching component.
You can also have the dispatching component listen for the event too, and use trace() to get a debug message.
I doubt if it has anything to to with "bubbles" since the default is true.
Sample code
In a child (BorderContainer)
dispatchEvent(new ActivationEvent(ActivationEvent.CREATION_COMPLETE,null,window));
In the container parent (BorderContainer)
activation.addEventListener(ActivationEvent.CREATION_COMPLETE,activationEvent);
package components.events
import components.containers.SemanticWindow;
import components.triples.SemanticActivation;
import flash.events.Event;
public class ActivationEvent extends Event
public static const LOADED:String = "ActivationEvent: loaded";
public static const CREATION_COMPLETE:String = "ActivationEvent: creation complete";
public static const RELOADED:String = "ActivationEvent: reloaded";
public static const LEFT_SIDE:String = "ActivationEvent: left side";
public static const RIGHT_SIDE:String = "ActivationEvent: right side";
private var _activation:SemanticActivation;
private var _window:SemanticWindow;
public function ActivationEvent(type:String, activation:SemanticActivation, window:SemanticWindow)
super(type);
_activation = activation;
_window = window
public function get activation():SemanticActivation {
return _activation;
public function get window():SemanticWindow{
return _window; -
How to dispatch events from custom AS3 classes to MXML
Hello,
I introduce some custom classes inside my SCRIPT tag in MXML.
These classes should dispatch custom Events (or any events for that
matter) and the listeners should be defined inside the SCRIPT tag.
In the custom class I have:
quote:
dispatchEvent(new Event("customEvent"));
And inside the script tag:
quote:
addEventListener("customEvent", testListener);
quote:
public function testListener(evt:Event):void{
Alert("Event fired successfully.");
However, this event is not handled in the listener (the alert
is not shown). What could be wrong?<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init();">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function init():void
addEventListener("customEvent", testListener);
dispatchEvent(new Event("customEvent"));
private function testListener(evt:Event):void{
Alert.show("Event fired successfully.");
Do like this
Alert is the Class Object. This is not the Function. -
Capturing events from UIImagePickerController
I'm wondering if anybody knows of a way of capturing the event that the user has taken a picture with the camera.
I'm able to be notified when the user has canceled or confirmed (through didCancel and didFinishPickingImage), but I'm interested in the stage in between, where there user has taken the picture, but hasn't yet confirmed it.
It's not even clear to me whether or not this is possible. Any help would be greatly appreciated.
Cheers.Yeah, I noticed that. It seems possible, however, as Phanfare's app does stuff once the picture has been taken, and before it is confirmed.
-
i am trying to prevent a task from deletion if the org id condition is met.
manage to use key-delrec event in custom.pll
now my question is, how i actually cancel the delete action inside the procedure?
tia
djonthis is what i have in mind
PROCEDURE key_delrec IS
l_org_id NUMBER:=FND_PROFILE.VALUE('ORG_ID');
BEGIN
IF (l_org_id = 103) THEN
MESSAGE('Task deletion is not allowed');
Raise Form_Trigger_Failure;
END IF;
END; -
Need Help on Custom.pll
hi all,
Pl tell me how is it possible to disable the Save functionality in the Forms Using Custom.pll. My requirement is to see that the SAVE functionality should not happen when the user uses CTRL-S from the keyboard.
I am able to disable the SAVE button from the Menu but I want to do the same for CTRL-S keyboard action.
Is there any property that can be used at the forms level from custom.pll to disable the commit action.
Thanks in advance.
Thanks & Regards
Sanjiv ChawanWhy wouldn't you post in the proper forum, i.e the Forms forum
Maybe you are looking for
-
System image restore new hard drive
Hard drive failed. Brought new one and are trying to do a system image restore. Boot using Win 7 repair disk. Start image recovery. Runs for a min or two and give me the following error. Windows back up failed to extend or mount the file system on th
-
i accendentaly deleted my iphoto when i empty my trash. i think 1 year ago. i want it back but they say its difficult. now i think i'll buy iphoto to apps. what do you think guys??? ty and god bless!
-
How to integrate an Edge animation in a website by hand
I created an Edge animation and published it as an .oam file. But i need to work on the website on someone elses computer who does not have creative cloud or even Dreamweaver. I am working there in a text editor. What are the requirements - what
-
I have a div tag that is set to 300px height and 'overflow: auto' to start the scroll when the content gets larger. It would be nice to have that size flexible, so it fits snug around smaller content and switches to scroll bars when it exceeds 300 pi
-
I'm NOT looking for Master Password. I DON'T want to require a password in order to start/open Fire Fox. I want anyone trying to download or install a program/software on the computer to have to enter a password, and otherwise not be able to complete