UIX event question
I've a page with 2 frame : frame1 and frame2
I want that when an event is generated from a page in frame1 (ex: submit a form), the page to load in response of this event (ex page that contains the riepilog of the choices) must be loaded into frame2.
It's possible to do this type of action? if it's so how can I do this.
Thank for your help,
Andrea
Hi Markus,
this is OK, but my problem is that the image tag have this structure:
<image source="image.jpg" ctrl:event="operation">,
because when the user click the image, the event have to do some operation on server-side and then refresh the content of the page into frame2.
If I use the structure:
<link destination="theContentForFrame2.uix"
targetFrame="frame2">
<contents>
<image source="myImage.png ctrl:event="operation"/>
</contents>
</link>
the result is the event on server-side, the page "theContentForFrame2.uix" is not loaded into frame2.
Similar Messages
-
Javascript triggering a uix event
I'm using the <uix:body onUnload="javascript commands">
Is there a way for javascript to trigger a uix <event> in this situation?
Thanks, SteveI have a suggestion on how to call a close event back to the server side. The code looks like this:
alert('Logging User Off');
window.open('/url.for.logoff.processing.htm?paramForSessionId"+sessionID+"', 'LogOff', 'top=7000,left=7000');
alert('User Logged Off');
Does anyone know how to get the information needed for the window.open command?
Thanks, Steve -
Hi,
I have one page with 2 frame : frame1,frame2
I want to show the EventResult generated from a page loaded in frame1 (Ex: submit a form), into one page in frame2
It's possible to do this type of action? If so, how can i do?
Thanks for yuor help
Andrea.Hi Markus,
this is OK, but my problem is that the image tag have this structure:
<image source="image.jpg" ctrl:event="operation">,
because when the user click the image, the event have to do some operation on server-side and then refresh the content of the page into frame2.
If I use the structure:
<link destination="theContentForFrame2.uix"
targetFrame="frame2">
<contents>
<image source="myImage.png ctrl:event="operation"/>
</contents>
</link>
the result is the event on server-side, the page "theContentForFrame2.uix" is not loaded into frame2. -
Calling javascript function within a uix event
JDeveloper Version: 9.0.3
Technology: UIX
Goal: To gracefully log out of a database connection, invalidate session, and close browser.
Currently I have a logout.uix page that contains a cancel and logout button. The cancel button redirects the user to the calling page. The logout button fires a logout event that in turn calls a servlet method that closes the user's database connection and invalidates the session.
Question: Upon returning to the logout.uix page, how do I call the self.close() javascript function that will force the user to close the browser?
Thanks in advance for any assistance you can provide.
OraTeamyes, I think it can be achieved. Something like this should suffice
<button text="Log Out" onClick="script that closes the window" >
<primaryClientAction>
<fireAction event="YourEvent goeshere" formSubmitted="true">
<parameters>
<parameter key="Session" value="closeSession"/>
</parameters>
</fireAction>
</primaryClientAction>
</button>in the event handler you should register the event that you would specify above.
<handlers>
<event name="YourEvent goeshere" >
<method class="com.test.ConnectionInvalidate" method="closeConnection" />
</event>
</handlers>In your class the method would be like this
public class ConnectionInvalidate {
public static EventResult closeConnection( BajaContext context,
Page page,
PageEvent event )
throws Throwable
//from the event get the parameters. (if required)
// code here for the close of connection
}When you click the button called "Log Out" the event is fired which closes the connection and javascript is also called which closes the window. Both will happen simultaneously.
hope this helps.
regards,
raj -
Help w/ ADF UIX event parameters
Is there any way to add a parameter when firing an event like this:
==========code=============
<link text=" Accounts "
destination="${ctrl:eventUrl(uix,'changePage')}"/>
===========================
Bellow is how I used to fire events using a link but since the production release of 10g that doesn't work anymore. Destination is now required and when specified the <fireAction> content is ignored and when it's not specified, the link is dead (not clickable)
==========code=============
<link text=" Section1 " destination="">
<primaryClientAction>
<fireAction event="changePage" formSubmitted="false"
unvalidated="true">
<parameters>
<parameter key="destPage" value="Section1Page"/>
</parameters>
</fireAction>
</primaryClientAction>
</link>
===========================Hi -
Is there any way to add a parameter when firing an
event like this:
==========code=============
<link text=" Accounts "
destination="${ctrl:eventUrl(uix,'changePage')}"/>
===========================I don't think we have a EL function which specifically deals with query parameters, but in a pinch you could do something along the lines of:
destination="${ui:concat(ctrl:eventUrl(uix,'changePage'), '&amp;destPage=Section1Page')}"/
Bellow is how I used to fire events using a link
but since the production release of 10g that doesn't
work anymore. Destination is now required and when
specified the <fireAction> content is ignored and
when it's not specified, the link is dead (not
clickable)
==========code=============
<link text=" Section1 " destination="">
<primaryClientAction>
<fireAction event="changePage"
formSubmitted="false"
unvalidated="true">
<parameters>
<parameter key="destPage" value="Section1Page"/>
</parameters>
</fireAction>
</primaryClientAction>
</link>
===========================
I was able to verify that there is a regression in fireAction behavior. A simple fireAction like this:
<link text="Test">
<primaryClientAction>
<fireAction event="changePage" formSubmitted="false"/>
</primaryClientAction>
</link>...no longer works unless a destination is specified. The same ClientAction works just fine if formSubmitted="true". I have logged a bug against UIX to track this issue. In the meantime, it seems like you could specify the empty string as your destination - in which case I believe that the event will be delivered back to the same page. Or, if you need to explicitly specify a page, perhaps you could use a combination of ctrl:pageUrl() and fireAction, eg:
<link text=" Section1 "
destination="${ctrl:pageUrl(uix,'testPage')}">">
<primaryClientAction>
<fireAction event="changePage" formSubmitted="false" unvalidated="true">
<parameters>
<parameter key="destPage" value="Section1Page"/>
</parameters>
</fireAction>
</primaryClientAction>
</link>Andy -
Hi when I drag folders containing photos into Iphoto it creates an event. What I currently do is after the event is created, I select an event, I hit the + sign in the bottom left and create an album.
I like having my albums on the left side for quick access to my library of photos. The problem is that if I add 30 folders, 30 events are then created.
I have to manually create an album out of each event one at a time. Is there any way that once an event is created it automatically creates and album. So say that 10 events are created, 10 albums will appear on the left.
If I select a couple events and hit the + option and hit create an album, it will only create one album out of the events selected. I would like to select multiple events at one time and have multiple albums created instead of just one. How do I do that?
Is what I want to do possible? thanksWell let me answer a question with a question
Why have all your Events mimicked in Albums? IF you can find the pic in an Event, you can find it in an Album.
To say nothing of all the basics: If you have the year, month, day. Title, keywords, camera a model etc etc you can use any (and all) of these to find your pics too.
To merge Events: Simply drag one to another in the iPhoto Window.
Regards
TD -
Alter system set events Question
Version 10202 on AIX
sql> alter system set events '4030 trace name heapdump level 536870917; name errorstack level 3';
Questions about this statement..
what this command is doing, i guess creating tracefile for event 4030...& the location of trace file would be the current direcotry?
& how to setup same kind of event trace for other events, any tips....& what to check in tracefile for problem?The values for level I have record are 1, 2, 3, 8, and 32 so I am guessing the number shown is the address of a specific heap to be dumped. The address of a heap would potentially change with a change in the shared pool storage parameters. Where did you get the address value?
The dump should go to the user background dump destination and not the current directory.
PS - if you have metalink look at document: #218105.1 Introduction to ORACLE Diagnostic EVENTS
HTH -- Mark D Powell --
Message was edited by: MDP add PS to Metalink Doc
mpowel01 -
Click Event Question - VB6 SDK 6.5
A quick question for you guys:
On the A/R Invoice form, I have a UDF that exists as a combo box. I can trap the et_COMBO_SELECT event on that combo box just fine, however, I would like to generate a click event on the 'Name' field on the main form from the UDF et_COMBO_SELECT event. The problem I'm running into is that because the form that contains the UDF has a different UID from the actual A/R Invoice main form, I get an error when I try to perform the click event on the 'Name' field. The code I'm using is below. Any help would be appreciated.
Thanks,
Greg
'(A/R Invoice) Change value of eqp_DivisionCode global variable when combo select event triggers
If eqp_pVal.FormType = -133 And eqp_pVal.FormMode = fm_ADD_MODE And _
eqp_pVal.ItemUID = "U_Division" And eqp_pVal.EventType = et_COMBO_SELECT Then
Set eqp_frm = SBO_Application.Forms.Item(FormUID)
Set eqp_cmbDivision = eqp_frm.Items("U_Division").Specific
eqp_DivisionCode = eqp_cmbDivision.Selected.Value
End IfHi Greg,
if you want to access a User Defined Field on a System Form but in header level you need to approach it as follows:
If (pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 And _
pVal.Before_Action = True) Then
Set oform = m_App.Forms.Item(FormUID)
Dim oUsrForm As SAPbouiCOM.Form
Dim num As Long
Dim UDFformUID As String
num = Right(FormUID, (Len(FormUID) - 2))
num = num + 1
UDFformUID = "F_" & num
Set oform = m_App.Forms.Item(UDFformUID)
oform.Items.Item("U_1").Specific.String = "Test"
End If
Regards,
Lisa Mulchinock
SAP SDK Consultant
Galway -
I'm new to iPhone, coming from Blackberry. I would like to be able to schedule an event to repeat every five weeks and another event every four weeks. Is there a way to customize this? If not, can you recommend an app which will give me a reminder every four and/or every five weeks? Thank you!
Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.
-
Hello all
I am coding Forms in 10G and i have an architectural question. If i am coding a form event with plsql that is not hitting the database how do i know that it is not making a call to the app server. I am worried about coding events that make too many calls back to the server which limits performance. I have coded in .NET and the ability to have events on everything is great for features but really bad for performance. I don't want to create features that are hindering performance due to round trips.
thanx in advanceHi,
good, question, that I don't have an answer for. I would assume it to be three round trips because the trigger fire in different times and as far as I remember Forms only bundles triggers that are on a specific item.
Forms does not know whether or not PLSQL code is associated with a trigger and this currently is discussed internally at Oracle as well as here on the forum (some month ago).
The outcome so far is that it is difficult to not ping the server about actions taking place on thw Forms client because it could be a navigation involved. This, if not reported back to the server, leads e.g. to the :system.cursor_item giving the wrong return value. As said, this is something we are discussing but haven't come to a conclusion.
For you this means that no matter if there is a PLSQL code associated with a trigger, a network round trip is made. However, keep in mind that we are not issuing a round trip for all triggers on an item but bundle all triggers that fire to the same time (e.g. all POST triggers on an item will cause one roundtrip)
Frank -
This is probably a very easy question.
If you have one event called Trips and drag photos out of that event into a few others to break them down into seperate events like Trips 2007 and Trips 2008, do the pictures you drag over to new albums get copied over so you can delete the original Trips event or does it just create a pointer from original event to new event?
I just want to be sure so I dont have multiple copies of photos taking up space if I dont have to.
Thanks in advancePatrick
You need to be really clear on your Terminology for this one.
do the pictures you drag over to new albums get copied over so you can delete the original *Trips event* or does it just create a pointer from *original event to new event* ?
Are you talking about Albums or Events?
When you drag from Event to Event the actual file is moved. Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents). You can move photos between Events, you can rename Events, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Event Name using the Info Pane, the Event Folder in iPhoto Library/Originals will also have the new name.
When you add a photo to an Album it's a reference and not moving an actual file.
So which are you talking about, Albums or Events?
Regards
TD -
UIX event handler + struts
Hi,
I'm using UIX + struts in jdev10g and im getting problems trying to handle a simple action binding event like the "Next" operation. Below is a short example of what im trying to do.
Test.uix
<submitButton text="Next" model="${bindings.Next}" id="Next2" event="next"/>
<event name="next" source="Next2">
<invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding"
instance="${bindings.Next}"/>
</event>
testAction.java
public void onNext(DataActionContext ctx)
if (ctx.getEventActionBinding() != null)
ctx.getEventActionBinding().doIt();
If i run the code above i can see that it executes ctx.getEventActionBinding().doIt(); but the action binding never gets executed, and this efect is the same for other actions like create,previous etc...
Another thing that calls my attention is that every time i drag a operation from the DataControl Palette the event name is always "action"
<submitButton text="First" model="${bindings.First}"
id="First0" event="action"/>
So how is the correct way to handle events in the UIX + Struts?????
Please i need a help on this one!!!!!
Tanks,
Eduardo M. SassoFirst of all tanks for the help.
But what i want to do is to subclass the DataForwardAction for my DataPage and let the struts controller handle the event, just like the documentation says...
About Event Handling in Applications Using Oracle ADF, UIX, and Struts
http://helponline.oracle.com/jdeveloper/help?topic=adf_auixadfevents_html
If i try to do the same thing using jsp it works great...
This is problem is getting me nuts!!! it looks to me that this problem is very easy to solve but i just cant see the solution....
tanks again -
Events question can anyone help?
I am brand new to the mac world...( bye bye PC forever!) I love it. I just have a quick question about iphoto events. I have my photos in events and I like that. when i double click on an event to open it up, I used to see thumbnails on the page of all events. For whatever reason, now when I go to open up a particular event it opens with one picture at a time. large pic. how do I get back to the thumbnails...I see thumbnails when I scroll over the event.....
thanks! NancyNancy
Welcome to the Apple Discussions.
At the bottom right of the iPhoto Window is a slider. Drag it left.
Regards
TD -
UIX: event submission with fileUpload component.
Hi,
Is it possible to have some event submission when a file is selected in a UIX file upload component.
I want to be able to trap the event and update the page to display the file name and a "Update" button.
I want to implement the ADF upload file functionality in a UIX page.
Any pointers would be be very helpful.
Thanks.Ahhh, I needed the line
<code>
myForm.setEncodingType("multipart/form-data");
</code>
I should read more!
Shame I can't reward myself the points
Patrick. -
Postmerge session event question
We have implemented a custom session event listener that utilizes the postmerge session event.
We have observed some unexpected behavior and were hoping that the product architect or manager could explain this behavior.
We have the following graph of objects:
A has a many-to-many privately owned collection of B
B in turn has a many-to-many privately owned collection of C
After commiting a transaction involving object A we observe:
postMerge event for A
postMerge event of each of A's privately owned Bs
yet NO postMerge event for any of B's privately owned Cs
Questions:
1) Is this the expected behavior?
2) Since we need to do some processing of Cs, we are using the postMerge event that occurs on Bs to update the Cs. Is this a safe/correct approach?
3) In a transaction that involved only updates to Cs, (no changes to A or B), would we see a postMerge event for each updated C?
Thanks in advance for any clarification you can provide.
...SteveYou could paste the results (tkprof ?) of the trace.
The "missing" time could be an uninstrumented wait --- i.e. a wait event that is not captured in v$session_event. Particularly because you are using external calls.
For example, see "Case Study 1" at http://blog.tanelpoder.com/2007/08/27/advanced-oracle-troubleshooting-guide-part-2-no-magic-is-needed-systematic-approach-will-do/
Hemant K Chitale
Maybe you are looking for
-
Problems in creating new portlets with WLCS3.1
Hello, I've the following problem with Weblogic Commerce Server 3.1: I have added a new portal and it worked great. I put severals predefined portlets and it worked too. But when I tried to add a new portlet (the simple welcome.html doc sample), I ju
-
Hi! We are running a weblogic 5.1 server for jsp/servlet/ejb behind an apache web server, via the wls/apache bridge. As the number of users increased we expereienced slow response times. We checked thread dumps from peak hours and saw that all servle
-
i have a selection screen where year is only input field, and in my table there is a date field, so i have to retrieve the data only of the given year only, so how do i substring the date field of that table and compare with my input in select statem
-
HELP TO VIEW PDF FILES IN NOKIA 6303i CLASSIC MOBILE
HELP TO VIEW PDF FILES IN NOKIA 6303i CLASSIC MOBILE
-
Problem with Safari 4.03 download
Help I'm new to Mac's - I bought an Apple TV box today tried to mirror with my Mac and ran into an error with Itunes (itunes requires Safari 4.03 or later) which stopped me logging into my account or using itunes. I was running Safari 4.03 so I tried