ON-LOGON does not fire in Form B, called from Form A
We have a situation like this. We are using Forms (Forms [32 Bit] Version 10.1.2.0.2 (Production)).
We migrated this application to Forms 11.2.0.1.0. Problem is that the ON-LOGON trigger does not fire in the 2nd level forms. Our application work like this.
(a.) User double-clicks URL icon.
(b.) Form A is opened without asking for un/pwd. We put a NULL; in the ON-LOGON of A.fmb.
(c.) This is the main form of the application. This has a canvas with 6 buttons. Each button will launch it's own separate application with it's own menu.
(d.) Now user presses button in A. This launches Form B. We use
Run_Product(FORMS, 'B', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL); (e.) Now, in Form B, in the ON-LOGON trigger we have put code to show the logon screen and login to the DB.
Problem is, this works in 10g Forms. But we had to replace the RUN_PRODUCT with a CALL_FORM after migrating to 11g since RUN_PRODUCT is not supported in 11g.
Problem is that when you use CALL_FORM to call Form B, the ON-LOGON of the Form B does not fire. We tried OPEN_FORM and NEW_FORM with different parameters, but the behavior is the same. i.e. ON-LOGON does not fire.
What is the solution or workaround for this please.
Edited by: user12240205 on Oct 15, 2012 4:50 AM
Edited by: user12240205 on Oct 15, 2012 4:52 AM
Michael Ferrante (Oracle) wrote:
If you need to open another form you should use CALL_FORM, OPEN_FORM, or NEW_FORM. In these cases, ON-LOGON will not automatically fire because the connect info is passed from the calling form. If you need to login from the called form then you need to need to programatically cause that to occur. Refer to the LOGON and LOGON_SCREEN built-ins in the Builder help for more info. You can fire these from almost any trigger you like, for example in a WHEN-NEW-FORM-INSTANCE trigger or where ever is appropriate for you application.Michael, we tried using the CALL_FORM, OPEN_FORM & NEW_FORM.
Also, there is NO connection to the DB, when B is called from A since we don't login to the DB in A (ON-LOGON has NULL;).
So, if there is no DB connection when B is called, shouldn't the ON-LOGON in B fire?
We tried firing the LOGON_SCREEN and LOGON in the WHEN-NEW-FORM-INSTANCE. But, for some reason, the we don't get the menu (we get a menu not found error). We tried correcting the paths and other things but still no solution.
Similar Messages
-
Flash CS4 onPeerConnect does not fire
Hi
I tryed to do Flex example for simple chat (p2p) with Stratus at Flash CS4 IDE
(adapted it of course) but onPeerConnect does not fire.
Can you take a look at my code ?
What's wrong with it ?
package {
import flash.events.*;
import flash.net.*;
import flash.display.*;
import flash.media.*;
public class stratusTest2 extends Sprite {
private const SERVER_ADDRESS:String="rtmfp://stratus.adobe.com/";
private const DEVELOPER_KEY:String="a9fb14e5b040800e8327ab51-37f33907d0c1/";
private var nc:NetConnection;
private var myPeerID:String;
private var farPeerID:String;
// streams
private var sendStream:NetStream;
private var recvStream:NetStream;
private var VideoDisplay:MyVideoDisplay;
private var FAR_PeerVideoDisplay:farPeerVideoDisplay;
private var VidDisplay:Sprite;
public function stratusTest2(){
addEventListener("addedToStage",initThis);
private function initThis(e:Event){
VidDisplay=new Sprite();
addChild(VidDisplay);
connectToStratusBTN.addEventListener("mouseDown",initConnection);
initSendStreamBTN.addEventListener("mouseDown",initSendStream);
initReceiveStreamBTN.addEventListener("mouseDown",initRecvStream);
sendDataBTN.addEventListener("mouseDown",sendDataBTNPressed);
private function initConnection(e:MouseEvent){
if (MY_peerIDText.text) {
farPeerID=MY_peerIDText.text;
nc=new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS,ncStatus);
nc.connect(SERVER_ADDRESS+DEVELOPER_KEY);
private function ncStatus(event:NetStatusEvent):void {
INF.appendText("ncStatus: "+event.info.code+"\n");
trace(event.info.code);
myPeerID=nc.nearID;
MY_peerIDText.text=myPeerID;
private function initSendStream(e:MouseEvent){
trace("initSendStream");
INF.appendText("initSendStream\n");
sendStream=new NetStream(nc,NetStream.DIRECT_CONNECTIONS);
sendStream.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
sendStream.publish("__media");
var sendStreamClient:Object=new Object();
sendStream.client=sendStreamClient;
sendStreamClient.onPeerConnect=function(callerns:NetStream):Boolean{
farPeerID = callerns.farID;
trace("onPeerConnect "+farPeerID);
INF.appendText("onPeerConnect "+farPeerID+"\n");
return true;
//VideoDisplay=new MyVideoDisplay(VidDisplay);
//var camera:Camera=Camera.getCamera();
//VideoDisplay.attachCamera(camera);
//sendStream.attachCamera(camera);
private function initRecvStream(e:MouseEvent){
recvStream=new NetStream(nc,farPeerID);
INF.appendText("start receiving from "+farPeerID+"\n");
recvStream.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
recvStream.play("__media");
recvStream.client=this;
//FAR_PeerVideoDisplay=new farPeerVideoDisplay(VidDisplay);
//FAR_PeerVideoDisplay.attachStream(recvStream);
public function receiveSomeData(str:String){
txtReceiveData.text=str;
private function sendDataBTNPressed(e:MouseEvent){
sendStream.send("receiveSomeData",txtSendData.text);
private function netStatusHandler(event:NetStatusEvent):void {
trace("netStatusHandler: "+event.info.code);
INF.appendText("netStatusHandler: "+event.info.code+"\n");
trace(event.info.code);
i have 3 input texts: MY_peerIDText, txtSendData, txtReceiveData
When i press connectToStratusBTN i get ID after than i open another
browser window with the same swf and paste this ID into MY_peerIDText
After connection i press initSendStreamBTN in first swf (it is 1st browser page)
and i press initReceiveStreamBTN in 2nd swf
After that iwrite down some text in txtSendData TextField (in 1st browser page) and press sendDataBTN
Nothing happensthis function doesn't work correctly:
private function sendDataBTNPressed(e:MouseEvent){
sendStream.send("receiveSomeData",txtSendData.text);
because you send not String, but link to the txtSendData.text, which is empty in another peer.
So, solution is following (not the one, but for example):
private function sendDataBTNPressed(e:MouseEvent){
var sendString:String = "";
sendString+=txtSendData.text;
sendStream.send("receiveSomeData",sendString); -
Reset does not fire NavigationEvent - is this intended behaviour?
Hi
I realized that the ViewObject.reset() method does not fire a NavigationEvent. I think that resetting a current row is some sort of navigation which has some effekt on dependent objects (eg. detail views will be cleared). So I'd have expected that reset() should file a NavigationEvent.
Can anyone explain me: Is this intended behaviour? Why?
Thanks
Frank Brandstetter>System Preferences>Mission Control>Show Desktop...should be F11:
If not, change it. -
I cannot get the accordion load event to fire when I have
created the accordion and load event using actionscript . Here is
some sample code:
createClassObject(mx.containers.Accordion, "acc",
getNextHighestDepth());
acc.createSegment(mx.containers.ScrollPane, "sc1", "Number
One");
acc.createSegment(mx.containers.ScrollPane, "sc2", "Number
Two");
var accLis=new Object();
accLis.load=function(evtObj) {
trace("load");
accLis.change=function(evtObj) {
trace("change");
acc.addEventListener("load", accLis);
acc.addEventListener("change", accLis);
I made sure to add the ScrollPane and Accordion components
to my library. So the load event does not fire, but the change
event does fire. And through further testing the other events do
not fire, including the draw event. Can anyone help? The only time
I can get the load event to fire on an accordion is if I put an
accordion on stage, select it and add the actionscript to the
objects actions like shown below:
on(load) {
trace("load");
on(draw) {
trace("draw");
Can somebody help? Unfortunately I must create all my
components dynamically. Thank you in advance.I'm having this issue also...but only apparently with Internet Explorer and only on some machines...ideas?
-
DidSelectRowAtIndexPath does not fire in SDK 3.0
Hi everyone!
I have iPhone application that works well in SDK 2.2.1 But in SDK 3.0 event didSelectRowAtIndexPath (as well as willSelectRowAtIndexPath) in MyTableViewController does not fire.
I've downloaded "TheElements" sample application and it works fine on 3.0. I figured out that there is a difference in UITableViewCell initialization. So I removed old initWithFrame method and created new one initWithStyle. But no luck. I put breakpoint inside didSelectRowAtIndexPath event but debugger does not stop there.
What other changes should I make to fire didSelectRowAtIndexPath event?
Any help will be appreciated.romex wrote:
Removing touchesBegan and touchesEnded methods from custom cell class resolved the problem.
When we were working on this last June, do you remember if the methods you removed had been passing the events to super? I thought we covered that, but I don't see it anywhere in the thread. In other words, did the methods look like the example below?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[super touchesBegan:touches withEvent:event]; //<-- pass to UITableViewCell
// cell does something else here
Or, was anything like the following tried?:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[[self superview] touchesBegan:touches withEvent:event]; //<-- pass to super view
// cell does something else here
I still think something about the responder chain must have changed in 3.0, but it seems like one or both of the above methods should still work. If neither of them gets the touches where they need to go, maybe nextResponder isn't the same as superview(?). In that case you might try this:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[[self nextResponder] touchesBegan:touches withEvent:event]; //<-- pass to next responder
// add extra sanity check
NSLog(@"superview=%@ nextResponder=%@", [self superview], [self nextResponder]);
// cell does something else here
Hope the above sheds more light than confusion!
- Ray -
Setter/getter does not fire
Hi,
in a class CSampleEntity, the setter function
public function set title( aValue:String ):void {
this.setKV( CSampleEntity.PROP_TITLE, aValue );
does not fire, while setKV() in CSampleEntity's super-class
defined as
protected function setKV( key:Object, value:Object ):void {
_entityData[ key ] = value;
_dirtyFlag = true;
and _entityData is defined in CSampleEntity's super-class
like this:
// The values of this entity
private var _entityData:Object = undefined;
Could someone provide insights, why this call
var sample:CSampleEntity = new CSampleEntity();
sample.title = 'Hello World'; // << THIS does not fire
the setter
does not fire the 'set title' setter?
Actually, the Flex AIR debugger show an object of class
CSampleEntity with a property 'title' - but the setter does not set
this property!"justria" <[email protected]> wrote in
message
news:gnkhoe$sk4$[email protected]..
> Hi,
>
> in a class CSampleEntity, which gets instantaiated
dynamically using
>
> public function createEntity( anObjClass:Class
):TAAbstractEntity {
> var obj:TAAbstractEntity = null;
> obj = new anObjClass();
> return obj;
> }
>
> the setter function
>
> public function set title( aValue:String ):void {
> this.setKV( CSampleEntity.PROP_TITLE, aValue );
> }
>
> does not fire.
>
> Could someone provide insights, why this call
>
> var sample:CSampleEntity = stm.createEntity(
CSampleEntity ) as
> CSampleEntity;
> sample.title = 'Hello World'; // << THIS does not
fire
>
> does not fire the 'set title' setter?
>
> Actually, the Flex AIR debugger show an object of class
CSampleEntity with
> a
> property 'title' - but the setter does not set this
property!
So, if you have
public function set title( aValue:String ):void {
trace('aValue');
You don't see the value traced out? -
JCombobox does not fire any event which should be send when typing on the keyboard. (Keypressed, keyReleased, keyTyped, caret-operations)
Is there a known bug?
I am using Netbeans 3.6 RC1 with Java 1.4.2_04 under WindowsXP.
Thanks for your help
KlausmyComboBox.getEditor().getEditorComponent().addKeyListener()
-
ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source
What model iPad do you have? If it's an iPad 1, the battery may have expired and needs replacement.
Cheers, Tom -
How can I get my itunes onto my new laptop? Do I need to download itunes again or can I just copy it? My ipod classic has since been soaked in water and does not work so I cannot copy from there. Can anyone help?
You should copy everything from your old comptuer to your new one.
-
What's wrong with my device? It does not allow me to make calls with Skype or Viber... Can someone help?
My device is a Blackberry Z30. Skype and Viber just to work fine. I had to travel abroad and turn off data services while traveling outside of the US but the applications worked just fine with Wi-Fi. Suddenly they stopped working to make calls. I can still send text messages, but when I try to do a voice or video call (in the case of skype), it only says "failed call" and when I try to call using Viber I get an error message that says the I can not use the application until I complete my GMS call which is ridiculous because I'm not using the phone other than trying to place my call through Viber. The interesting thing is that when I go the permission page in my security settings everything indicates that its on but is gray out and I do not have access to change any setting. The same in both applications. The rest of the applications are accessible to change settings. I already uninstalled skype and reinstalled it and still the same problem. I'm ready to back up everything and wipe out the device to original settings.
-
Reports are not called from form in browser plz help
Hi,
I have installed 9iAS+8.1.7 database on the same machine with NT4 server.My system's forms(.fmx) are running well but my reports are not running from my main form.i call reports from the
from as,
Run_Product(reports,'..\iReports\xglrxx12.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);
Actually want to know the report's setting when calling from the from in a browser(environment variables,virtual paths etc.).
My database is installed in drive E:\8idb_home\ and 9iAS is on
G:\9iAS_home\.My systems .fmx & .rep files are in "iforms" and "ireports" folder respectively.
Plz help!
Many thanks!Hi,
First of all thanks to Vincent Botteman for solving the prob.
Yes when i changed my call of run_product by excluding the path i have specified when calling from form it then makes a result.
Also specified the entry of your reports .rep files by giving path in reports60_path registery variable as,
Run regedit-->Hkey_Local_Machine-->Software-->Oracle here give the full path of your .rep files as an first entry in reports60_path variable.And finally not mention the path when calling reports from form as,
Run_Product(reports,'xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Correct way.
Run_Product(reports,'..\iReports\xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Wrong way.
Regards! -
Fm11 does not have the buttons to change from XML to WYSIWYG views
Hi, my Fm11 does not have the buttons to change from XML to WYSIWYG views. It only has the WYSIWYG view, and it does not have the Structure Tools,DITA, S1000D menu options.
In File>New, there is not XML option neither…. What am I doing wrong? ThanksHi Arnis, Thank you very much for your help, that was it !!! Greetings from Mexico
-
you must have connected the Time Capsule with a router that does not work with my direct cable from my ISP
I tried to answer in your other post.. please stick to one thread ..
What method of internet do you have.. is this fibre install.. if so the TC should just plug in and use dhcp in router mode.. press and hold the reset and it will go back to router mode by default. -
Not able to connect to database from Form builer
Hi ,
I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
ORA- 12154 : TNS : could not resolve service name.
Kindly do the needfull.not able to connect to database from Form builder
-
Quicktime does not allow to change video position from streamed video
I just wanted to watch the newest Apple event stream. For many ears I have watched them typically from Mac as they works from there perfectly.
Now I installed quicktime for Windows (without iTunes) and I watched 34 minutes from the event. Then suddenly the sound went off from the quicktime. I tought the system sound went and I checked the volume and other player and they worked fine.
Then I tought it was about streaming problem and I allowed it to continue to 39 minutes. Then I tought I could scroll backward to position where the sound went off. But I couldn't at all. I can drag the position slider somewhere, but it always jump back to the place where it is streaming. When I stop mouse, it jumps back to current position. So if I keep mouse cursor moving and dragging same time the slider, it moves.
Neither I can not start a video (any video, was they a trailers or Apple event videos) and jump to the known position to continue watching.
So to me if I would now like to watch the latest presentation, I should watch first 40 minutes again. As I am not allowed to rewind to wanted position.
I tried this on my laptop as well and I got exactly the same problem (the scrolling).
Is it really so that Windows Quicktime does not allow rewind/forward functions at all on quicktime videos?
Is there tweaks to get that possibility as I do not want to watch 40 minutes and be sharp when it comes so I can continue where I left and not miss the position and never could rewind back?QuickTime Pro does not allow to make video capture from desktop - only from camera. How can i solve this problem?
Use the QT X.1 Player to capture desktop video. QT 7 Pro does not and never has had this feature which was first introduced in the QT X.0 Player.
Maybe you are looking for
-
When I try to login to the website of my bank, I get the following error message: 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. I have a new MacBook Air with OS Y
-
Color a specific row in ALV GRID display when user clicks on that row
hi i have the entire code ready of how to check the line selected by the user and also to color that line but after settings those parameters for to refresh the GRID so that the row apppears coloured .plz reply soon.... points will be awarded..... wa
-
MIRO User - Exit to Change the Profit Centre..?
I need to change the Profit Centre in the Accounting document(for Vendor Line Item) and Profit Centre Accounting Document(For Payable Line Item) Created by MIRO Transaction.Can any one let me know if there is anyuser-exit or badi to achieve the same
-
Change Profit Center in Cost Center
Hi We have created new profit center and we want to assign this new profit center for the cost center which has already been assigned with some other profit center. I am geeting the warning message as follows: Field changes to field Profit Center lea
-
Out Delivery with out Order Reference
Hi guys I have a requirement that with out order reference I want to get the goods to be delivered. In standard SAP it is possible but in what process it will help full Please provide me right process relating to this process