'null' event ignored on a train selection
here is a weird problem that I have encountered.
I created a 'null' event that does some work before the data is rendered and it works just fine if you click on the tabpage. but if you select it on the train, the 'null' event is ignored.
I am using UIX web pages and version 9.0.3.3.
here is my event
<event name="null">
<bc4j:findRootAppModule name="SmStudiesBrowseAppModule">
<bc4j:findViewObject name="SmStudiesBrowse">
<method class="smart_package.FrmFilters" method="handleRdms"/>
</bc4j:findViewObject>
</bc4j:findRootAppModule>
</event>
any thoughts,help or a work around?
Hi Mike,
The "yourPackage.YourPageBroker" is an instance of the interface oracle.cabo.servlet.PageBroker.
By default, we use the "oracle.cabo.servlet.xml.UIXPageBroker" class for this, so you could subclass this page broker and override requestStarted and requestEnded.
Another solution would be to use the concept of a UIXRequestListener.
UIXRequestListener
public void eventEnded(UIXRequestEvent event)
public void eventStarted(UIXRequestEvent event)
public void renderEnded(UIXRequestEvent event)
public void renderStarted(UIXRequestEvent event)
These methods are called on every request.
Check out the Javadoc for oracle.cabo.servlet.AbstractPageBroker, to find the configuration information to register a UIXRequestListener and look at the oracle.cabo.servlet.event.UIXRequestListener and oracle.cabo.servlet.event.UIXRequestEvent Javadocs for more details the information provided in each request.
Kind Regards.
Similar Messages
-
Hi,
I am running a query and its taking a long time , when I query for session with following SQL
select sample_time, event, wait_time,BLOCKING_SESSION
from v$active_session_history t
where session_id = 20
and session_serial# = 201;
I could see the first event as "NULL EVENT" , the subsequent rows doesn't show anything in Event column. Seems like my session is hanging, any clues on what might be the problem. I am running oracle 10.2.0.3 on UNIX.SELECT DECODE(request,0,'Holder: ','Waiter: ')||sid sess,
id1, id2, lmode, request, type
FROM V$LOCK
WHERE (id1, id2, type) IN
(SELECT id1, id2, type FROM V$LOCK WHERE request>0)
ORDER BY id1, request
/What results from query above when your session appears "hung"?
Determine Session ID (SID) of hung session & then repeatedly query
SELECT * FROM V$SESS_IO WHERE SID = <sid_above>;
If the session is doing anything then values returned will be increasing. -
Is there any event listener for changing the selection of layer?
Hi all,
I am looking into an event listener which fires on changing the selection of layer. I found 'Select' event listener which fires on selecting the different object.
Actually the problem with Select event listener is that when we select an object and move it and deselect it by clicking on the document, event fires on the selection of that object. But if we again select the same object and move it, no event is fired at that time.
Is there any workaround of this? So that the event is fired every time when we select the same object.
Please help me on this..
Regards,
VG.Thanks for the reply..
Actually I want the same behaviour as in illustrator i.e
- Select a layer. (Notifier calls the listener)
- Move it.
- Click on the document.
- Again select the same layer. (Notifier calls the listener again)
- Move it.
But in photoshop,
- Select a layer. (Notifier calls the listener)
- Move it.
- Click on the document.
- Again select the same layer. (Notifier doesnot calls the listener again as the layer is already selected in panel as you explained.)
- Move it.
Is there any way to get the same behaviour of illustrator in photoshop? -
How to see the wait events info. after excute a select query
Hi
How to see the wait events info. after execute a select query. Are there any parameter to set for this option?
And also wanna see the follwing info. in trace file. For this what are the parameters I have to set right?
SELECT * FROM emp, dept
WHERE emp.deptno = dept.deptno;
call count cpu elapsed disk query current rows
Parse 1 0.16 0.29 3 13 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.03 0.26 2 2 4 14
Misses in library cache during parse: 1
Parsing user id: (8) SCOTT Regards
Arpitha$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 20 15:29:33 2011
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> SHOW PARAMETER dump
NAME TYPE VALUE
background_core_dump string partial
background_dump_dest string /user/oracle/app/oracle/admin/
orclsb/bdump
core_dump_dest string /user/oracle/app/oracle/admin/
orclsb/cdump
max_dump_file_size string UNLIMITED
shadow_core_dump string partial
user_dump_dest string /user/oracle/app/oracle/admin/
orclsb/udump
SQL> ALTER SESSION SET EVENTS='10046 trace name context forever, level 12';
Session altered.
SQL> SELECT * FROM emp WHERE deptno=20;
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800
20
7566 JONES MANAGER 7839 02-APR-81 2975
20
7788 SCOTT ANALYST 7566 19-APR-87 3000
20
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7876 ADAMS CLERK 7788 23-MAY-87 1100
20
7902 FORD ANALYST 7566 03-DEC-81 3000
20Now
$ pwd
/user/oracle/app/oracle/admin/orclsb/udump
$ ls -ltr|tail -5
-rw-r----- 1 oracle oinstall 622 Apr 20 11:35 orclsb_ora_949.trc
-rw-r----- 1 oracle oinstall 651 Apr 20 11:35 orclsb_ora_976.trc
-rw-r----- 1 oracle oinstall 1982 Apr 20 11:35 orclsb_ora_977.trc
-rw-r----- 1 oracle oinstall 1443 Apr 20 15:29 orclsb_ora_1251.trc
-rw-r----- 1 oracle oinstall 279719 Apr 20 15:30 orclsb_ora_1255.trc
$ tkprof orclsb_ora_1255.trc orclsb_ora_1255.txt
TKPROF: Release 10.2.0.2.0 - Production on Wed Apr 20 15:32:17 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
$ ls -ltr|tail -5
-rw-r----- 1 oracle oinstall 651 Apr 20 11:35 orclsb_ora_976.trc
-rw-r----- 1 oracle oinstall 1982 Apr 20 11:35 orclsb_ora_977.trc
-rw-r----- 1 oracle oinstall 1443 Apr 20 15:29 orclsb_ora_1251.trc
-rw-r----- 1 oracle oinstall 279719 Apr 20 15:30 orclsb_ora_1255.trc
-rw-r--r-- 1 oracle oinstall 26872 Apr 20 15:32 orclsb_ora_1255.txtThis orclsb_ora_1255.txt contains the required information. -
Can not trigger the null event!
Page newPage = new Page("ListAffirmSubmit_Java");
EventResult result = new EventResult(newPage);
return result;
This way can not trigger the null event in the 'newPage'.I want to call the null event to init the viewobject in the 'newPage'.
Can you tell me the reason or another way to init it?I have found a way from the help on line:
Page nextPage = new Page("ListAffirmSubmit_Java");
Page redirectPage = RedirectUtils.getRedirectPage(context, nextPage);
return new EventResult(redirectPage); -
Does the null event work in 9.0.5?
<handlers>
<event name="null">
</event>
</handlers>I have a null event and am calling a onNull event in the dataAction. The framework doesn't seem to call the onNull event.
Thanks in advance.There is conceptually no 'null' event. The 'null' event handler is a special handler that is called when no events are triggered on a page (ie: no event signal is encoded on the URL of the page). Hence I dont think you can handle this in your dataAction.
-
ALV: how to handle event for multi (lead) row selection ?
Hi,
I use editable ALV and configure it for multi (lead) selection. Works fine.
But I could not find any event handler for reading the selected lines.
There is only the Event handler ON_LEAD_SELECT: this works only for 1 line
(the lead line). But I could not read multi lines. Who can help?
Thanks in advance, ChristianHi Christian,
did you try a custom button?
Try a call
node->GET_SELECTED_ELEMENTS
I cant remember if ALV sends event when multi-selection is on for each row selection.
ie as each row is selected, do you get control ?
If so, then you should still be able to call node->GET_SELECTED_ELEMENTS .
regards
Phil. -
My iPad screen is totally frozen with a message box asking me to go to photo stream settings but when either option (ignore or settings) is selected nothing happens. I can't turn off the device either because the screen won't respond. Help please
Try a reset:
Hold the Sleep and Home button down for about 10 second until you see the Apple logo. -
Regarding Event Appraisal Functionality in Training and event management
Hi TEM gurus,
Client requirement is that an employee can give feedback for faculty daily. Suppose there is an event for 30 days and there are 5 instructors for this event. Now employee has to give feedback for all the instructor and day wise.
Is it possible for an employee to give feedback daily and for different instructors in training and event management ? How we can track the feedback given by the employee for different instructors day wise ?
I have given value as "A" in switch HAPP00 REPLA in T77S0 table. We have created different templates through OOAM.
While doing appraisal also i have to select employee individually and give event name again. Is there any way by which system can select all employees an event ID ?
kindly help me as ealry as possible.
Thanks and Best Regards
PuneetHello Puneet,
Regarding your query on appraisal for every day of the business event, I am not sure if that's possible as it's the business event appraisal we are talking of here..and not the day. But I think individiual instructor appraisal should not be a problem.
Hope this helps.
Best Regards.
Karan. -
Unable to Get Event Listener to Trigger on Select Change
I have a view that lets users hover over doc set/project names, and the properties for that project are displayed. This is OOB functionality. When a project is selected, and the edit button is clicked, the edit screen for the project's content
type is displayed. Also, a drop-down (select) for content type is at the top. If you manually change the selected value, it will change the display persenting the data as if it were the new content type. I have tried to change the value of the content
type after the page loads by client code. When I tested this code on the IE console, it worked. When I put the code in a script, the new content type is selected, but I can't get the event listener to fire.
Console code:
var xCT = 'Committee Action - IRB'; // content type to select$("SELECT[title*='Content Type'] option:contains('" + xCT + "')").prop('selected', true); // select valuevar changeAct = $("SELECT[title*='Content Type']").attr('onchange'); // get SP event handlerchangeAct = changeAct.substring(0, changeAct.indexOf("return")); // remove "return false;"eval(changeAct); // execute event handler
When I run the same code in a script, I get this error:
SCRIPT5007: The value of the property 'ChangeContentType' is null or undefined, not a Function object
Any suggestions or enlightenment would be appreciated.Hi Reetesh,
Thanks for ur reply.I have one master table and child table. I have kept child table in detail disclosure of parent table. When I click on show the child table gets expanded. I want to get the value of one of the columns of parent table. I dont have written any code for child table Implementation .I have just set viewlink for that purpose.
Thanks & Regards,
Sandip -
Mouse events ignored in custom skin
I created a custom skin for my spinner. While I managed to get the layout this time, it seems that all mouse click events are ignored.
package ch.sahits.game.javafx.control.skin;
import java.io.InputStream;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.geometry.Dimension2D;
import javafx.scene.Group;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import ch.sahits.game.javafx.control.OpenPatricianSpinner;
import ch.sahits.game.javafx.control.TextSizingUtility;
import com.sun.javafx.scene.control.skin.SkinBase;
public class OpenPatricianSpinnerSkin extends
SkinBase<OpenPatricianSpinner, OpenPatricianSpinnerBehavior> {
private TextSizingUtility sizing = new TextSizingUtility();
public OpenPatricianSpinnerSkin(final OpenPatricianSpinner spinner) {
super(spinner, new OpenPatricianSpinnerBehavior(spinner));
Dimension2D dim4heigth = sizing.calculate(1, spinner.getFont());
double width = 0;
for (String word : spinner.getOptions()) {
Dimension2D dim4width = sizing.calculate(word, spinner.getFont());
if (dim4width.getWidth() > width) {
width = dim4width.getWidth();
Dimension2D dim = new Dimension2D(width, dim4heigth.getHeight());
String firstValue = "";
if (!spinner.getOptions().isEmpty()) {
firstValue = spinner.getOptions().get(0);
spinner.selectedIndexProperty().set(0);
HBox hbox = new HBox();
final TextField textField = new TextField(firstValue);
textField.getStyleClass().add("openPatricianSpinner");
textField.setMaxSize(dim.getWidth(), dim.getHeight());
textField.setEditable(false);
InputStream is = getClass().getResourceAsStream("SlabUp.png");
Image img = new Image(is);
double imgWidth = img.getWidth();
final ImageView imgViewUp = new ImageView(img);
is = getClass().getResourceAsStream("SlabDown.png");
img = new Image(is);
final ImageView imgViewDown = new ImageView(img);
double additionalWidth = Math.max(img.getWidth(), imgWidth);
is = getClass().getResourceAsStream("InputPlank.jpg");
img = new Image(is,dim.getWidth()+additionalWidth, dim.getHeight(), false, true);
final ImageView imgViewPlank = new ImageView(img);
imgViewPlank.onMouseReleasedProperty().addListener(new ChangeListener<EventHandler<? super MouseEvent>>(){
@Override
public void changed(ObservableValue<? extends EventHandler<? super MouseEvent>> ov,
EventHandler<? super MouseEvent> oldValue,
EventHandler<? super MouseEvent> newValue) {
System.out.println("Clicked on plank");
Group textGroup = new Group(textField);
VBox vbox = new VBox();
vbox.getChildren().addAll(imgViewUp, imgViewDown);
hbox.getChildren().addAll(textGroup, vbox);
Group background = new Group(imgViewPlank,hbox);
imgViewUp.onMouseReleasedProperty().addListener(new ChangeListener<EventHandler<? super MouseEvent>>(){
@Override
public void changed(ObservableValue<? extends EventHandler<? super MouseEvent>> ov,
EventHandler<? super MouseEvent> oldValue,
EventHandler<? super MouseEvent> newValue) {
ObservableList<String> options = spinner.getOptions();
System.out.println("Clicked on slabUp");
if (!options.isEmpty()) {
if (spinner.getSelectedIndex() > 0) {
spinner.selectedIndexProperty().subtract(1);
String newDisplayValue = options.get(spinner.getSelectedIndex());
textField.setText(newDisplayValue);
} else {
System.out.println("Selected index <= 0");
} else {
System.out.println("Empty options list");
}); // end up change listener
imgViewDown.onMouseReleasedProperty().addListener(new ChangeListener<EventHandler<? super MouseEvent>>(){
@Override
public void changed(ObservableValue<? extends EventHandler<? super MouseEvent>> ov,
EventHandler<? super MouseEvent> oldValue,
EventHandler<? super MouseEvent> newValue) {
ObservableList<String> options = spinner.getOptions();
System.out.println("Clicked on slabDown");
if (!options.isEmpty()) {
if (spinner.getSelectedIndex() < options.size()) {
spinner.selectedIndexProperty().add(1);
String newDisplayValue = options.get(spinner.getSelectedIndex());
textField.setText(newDisplayValue);
} else {
System.out.println("Selected index >= options.length");
} else {
System.out.println("Empty options list");
}); // end up change listener
onMouseReleasedProperty().addListener(new ChangeListener<EventHandler<? super MouseEvent>>(){
@Override
public void changed(ObservableValue<? extends EventHandler<? super MouseEvent>> ov,
EventHandler<? super MouseEvent> oldValue,
EventHandler<? super MouseEvent> newValue) {
System.out.println("Clicked on Skin");
getChildren().add(background);
I would at least expect to see the line 134 printed out. I call this spinner from a simple test application, without any event listeners added there.
Has anyone an idea what might happen here?Hello, you don't register an event handler, you register a listener on the event handler property. So you don't listen for clicks, you listen for changing the registered click handler. You need to register the handler like this:
imgViewDown.setOnMouseReleased(new EventHandler<MouseEvent>() {
@Override public void handle(MouseEvent event) {
// your handler
This way you set the mouse release event handler which will be called on click. This code, by the way, would fire your listeners (the onMouseReleased property has changed). -
Emergency - Please Help LV6.1 win2k Wait on Event 'Ignore Previous' Doesn't work
I am using an activex control to access an OCX for IRDA communications. My
VI is setup to wait on events, The event name is 'OnDataAvailable' I have
selected 'ignore previous' on the activex wait on event subvi but both my
events fire simultaniously. I have read this is a multithreading problem in
windows 2k and XP and by changing the execution thread to user interface it
can be resolved, that didn't work. Please help any information would be
greatly appreciated. I am using the OCX to comm to an IRDA device which is
written in the IRLPT protocol. Labview doesn't support IRLPT service names
in the IRDA functions.
Franticly awaiting,
JamieCan you post a stripped down Vi? Are you using activeX events or the event structure?
Jeremy -
Ignore carriage returns in select statement
Within Oracle Report builder, I am using a select startment
select descr
from atable
"descr" contains carriage returns at the end of the input ie people have enter 'enter' when inputting the data.
how do write the select statement to ignore the carriage return 'enter' contain within "descr".
ThanksSQL> SELECT 'aa' || chr(10) || 'bb' c FROM dual;
C
aa
bb
SQL> SELECT translate('aa' || chr(10) || 'bb', chr(10),' ') c FROM dual;
C
aa bb
SQL> SELECT 'aa' || chr(13) || 'bb' c FROM dual;
C
aa
bb
SQL> SELECT translate('aa' || chr(13) || 'bb', chr(13),' ') c FROM dual;
C
aa bb
SQL> "For Windows"
Message was edited by:
mennan
Message was edited by:
mennan -
Employee get booked for an event during absence in Training and event manag
Hi ,
I am having foloowing issue :
I am able to book an employee for a period during which absence already created in system for the employee. I have checked all the settings at course type level in Course Type info infotype " Allowed in time off " is disabled.
PLOGI TIME switch is active.
Why its happening ?
Thanks and best Regards
PuneetWell Puneet,
To just review all the steps, the followingsettings are required for integration iwth Time management - only sample settings are shown below
T77S0
PLOGI TIME 1 Integration switch: Training and Event Mgmt/ Time
T77S0
SEMIN AINST 0100 Attendance type for instructor in T554S
SEMIN APART 0101 Attendance Type for Attendance in T554S
SEMIN TIMEP 100 Minimum percentage attendance
T77KA
B Event attendance 8 0800
B Event attendance 8 0900
B Event attendance 8 0901
If we do all this, I have verified, that even if employee has one day absence during a course for more than 1 day, system does not allow me to book a training course when an absence already exists.
If you are certain that the settings are all correct, then it looks as if there might be some kind of product bug in your system and it may be required to raise an OSS message for the same. I cannot think of anything else that needs to be set up for this. -
ALV-Grid list box in Cell Event when a value is selected
Hello to all,
I've got a editable alv grid with a list box in one cell.
Is there any event fired after user selection in order to update other cells?
A workaround may be to use event "data_changed" but I think this isn't a smart way.
Any ideas?
Best regards
ChristianHi Christian,
I think data_changed is right one here, as this one has is recording couple "states":
METHODS: handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed e_onf4 e_onf4_before e_onf4_after,
"these are fired up in different "state" of control during selection itself
"e_onF4
"e_onf4_before
"e_onf4_after
You can. however, try with handle_on_f4 . This works fine for input help, I didn't test it for listbox but should work as well. First you need to register this event with:
DATA: lt_fields_f4 TYPE lvc_t_f4,
ls_fields_f4 TYPE lvc_s_f4.
"activate event F4 only for particular fields
ls_fields_f4-fieldname = 'SEATSMAX_F'.
ls_fields_f4-register = 'X'.
ls_fields_f4-getbefore = 'X'.
ls_fields_f4-chngeafter = 'X'.
APPEND ls_fields_f4 TO lt_fields_f4.
CALL METHOD g_alv_grid_ref->register_f4_for_fields
EXPORTING
it_f4 = lt_fields_f4[].
...and then just method handler
METHODS: handle_on_f4 FOR EVENT onf4 OF cl_gui_alv_grid
IMPORTING e_fieldname e_fieldvalue er_event_data,
SET HANDLER ...
Regards
Marcin
Maybe you are looking for
-
OBIEE 11g bi_server2 issue
Hi, I have clustered the environment(horizontal clustering) so Admin server will be 1 and we will have 2 bi_server which is bi_server1 and bi_server2. Here i am trying to "How To Start WebLogic Admin And OBIEE 11g Managed Servers Without Prompting Ad
-
I know on the Macbook Pro you can set the iSight to capture in Widescreen in iMovie but how do you do it with the regular macbook?
-
Purchased music appears in iTunes on Mac but not on iPhone
Hi all, Have recently signed up to iTunes Match but I have a silly question. All of my songs now appear in the Music App on my iPhone except for all my purchased music which appears only in iTunes on my Mac. Am I doing something wrong? cheers Jools B
-
HT1386 My itunes is not syncing over wifi its written it will resume if ok 25aa5523a198
I had sync this before but it shows an error now : sync will resume when ok-25AA5523a198 is avaible
-
Hey Everyone - moving form Aperture to Lightroom & now back to Aperture for my digital workflow is my final decision on my workflow. This has nothing to do with the topic I just wanted to put it in writing for my own benefit...wow, I wasted a lot of