Using URL query of database parameters
Hey,.I am currently using 11.1.1.6.0, an application framework ADF and Oracle Database 11 g Jdeveloper.
So my problem is that I have a table of information on emissions (Syscode, Version number, Date of completion, developer name) and I want to be able to bind the client to a specific database entry. So I guess the best way would be to move the two parameters in the URL, the systemCode and the versionNumber to display information. The two variables, I pass the excellent work, but I don't know how to query the database to get the rest of the information such as, date of completion, the developer name, etc. etc. Any help would be great!
Thanks in advance for your help,
Dustin
Discover the first part of the series URL: https://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl
Tags: Java
Similar Questions
-
Loading image when using URL query
I asked for help, for anyone who might be able to * cough * JRab * cough *.
.... I want to show a small gif of loading when my app is in the middle of sending a URLrequest, so it seems that my application is something, while demand happens... because when the application load it takes a few seconds to get there and also to update the content displayed...
Any help?
Hey tensioncore,.
the ActivityIndicator like all preloaded, including the image he. If you want a custom image, you will need to do the setSkin() method. but I didn't yet. Here's a sample code to test the feature. There is no need of an IF ELSE statement. the corresponding code is nice and clean, and definitely in my top 5 list QNX api hah
ActivityTest.as:
package { import flash.display.Bitmap; import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.ErrorEvent; import flash.events.Event; import flash.events.IOErrorEvent; import flash.events.MouseEvent; import flash.net.URLRequest; import qnx.ui.buttons.LabelButton; import qnx.ui.display.Image; import qnx.ui.progress.ActivityIndicator; [SWF(width="1024",height="600",backgroundColor="#e8e8e8",frameRate="30")] public class ActivityTest extends Sprite { private var _loader:Loader; private var _urlRequest:URLRequest; private var _image:Image; private var _btn:LabelButton; private var _activityIndicator:ActivityIndicator; public function ActivityTest() { super(); // support autoOrients stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; /** * Set up the image placeholder */ _image = new Image(); _image.setPosition(10,10); addChild(_image); /** * Set up the activity indicator * Make sure to do setSize so it gets created */ _activityIndicator = new ActivityIndicator(); _activityIndicator.setSize(100,100); _activityIndicator.setPosition((stage.stageWidth / 2) - (_activityIndicator.width / 2), (stage.stageHeight / 2) - (_activityIndicator.height / 2)); /** * Sample loader getting google's homepage image */ _loader = new Loader(); _urlRequest = new URLRequest("http://www.google.com/images/logos/ps_logo2.png"); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onError); /** * Button that starts things */ _btn = new LabelButton(); _btn.label = "Load Image"; _btn.setSize(150,52); _btn.setPosition(10,150); addChild(_btn); _btn.addEventListener(MouseEvent.CLICK, onClick); } private function onClick(e:MouseEvent):void { /** * Start the animation and show the indicator on screen */ _activityIndicator.animate(true); addChild(_activityIndicator); /** * Begin the image loading */ _loader.load(_urlRequest); _btn.enabled = false; } private function onComplete(e:Event):void { /** * Stop the animation after image loaded successfully * and get rid of it */ _activityIndicator.animate(false); removeChild(_activityIndicator); /** * set the image to the downloaded image */ var bitmap:Bitmap = Bitmap(LoaderInfo(e.target).content); _image.setImage(bitmap); } private function onError(e:ErrorEvent):void { /** * If there was an error. stop the indicator */ _activityIndicator.animate(false); removeChild(_activityIndicator); trace("error: " + e); } } }
There are comments throughout. Basically, this application downloads googles image when you click on load image. and then when its downloading, it displays the activity indicator and get rid of it, when it finishes / generates an error.
hope that a few things cleared up. Good luck!
-
Help, how to query the database using pagination
Hello
How to query the database using paging for large data.
any API for this?
Thank you in advance!Hello
You can specify XmlQueryContext::Lazy as the type of assessment and only call XmlResults:: next() comes as many times as you need.
John
-
retrieve the value of the URL query string parameter
It seems like it should be simple, but for some reason that I can't figure out how to get the value of a variable in a URL query string.
If it is in my address bar: http://www.whyu.com/whyplayer.html?chosenCLIP=movie
and I want just the value of 'chosenCLIP' to use in my loaded SWF file, how can I do it in AS3?
I think that the easiest way is to use SWFObject.
In your HTML code:
var flashvars = {};
If (swfobject.getQueryParamValue ("chosenCLIP")) {}
flashvars.clip = swfobject.getQueryParamValue ("chosenCLIP");
}
swfobject.embedSWF ("myMovie.swf", "myContent", "550", "400", "9.0.0"",","flashvars");And the clip variable will be available as a FlashVar to your movie:
Var loaderInfo.parameters.clip = Clip;
-
How can I use join query ANSI in Forms 10 g
Dear all,
How I use the query as mentioned below in Forms 10 g
SELECT <fields> FROM TableA a INNER JOIN TableB b ON a.key = b.key
Kind regards
Zafar Iqbal
You cannot use the SQL commands that did not exist in the 8.0 database.
Oracle Forms (and reports) has a full PL/SQL engine and (only) the SQL parser.
However, form (and reports) PL/SQL engine / SQL parser is at a level that was in the Oracle 8.0 database.
Kind regards
Zlatko
-
In my Muse created site (i.e. musesite.com), the url to the site link will be something like, www.musesite.com/homepage.html?userid=123 and I want to capture the value of username. There is documentation on the use of module_url, but documentation is vague and it's not really show in use in the Muse Awards Business Catalyst. Is there an easy way to retrieve the values of url string that does not script require extensive coding?
Muse is strictly HTML and CSS and a little Javascript. To use URL parameters as you learn on would need a kind side Server advanced such as PHP which is out of the reach of Muse. Essentially of Muse is not the right tool, you use to achieve this.
This works for you in Joomla because as Wordpress and they are written in PHP.
-
I got this banner, who plays for 4 seconds, then load a table (2 images at a time (on 6)) it randomly.
I want to go to a site when you click. But I don't know how to add the url query in my table. I created an empty square (movieclip called mouseover) which covers my entire banner. But nothing happens when I click, and I don't get any errors.
var imageArr:Array =]
[11 '.jpg', 12 '.jpg'],
[21 '.jpg', '22.jpg'],
["31.jpg',"32.jpg"]
];
var colorContainer:Loader = new Loader();
var bwContainer:Loader = new Loader();
var randNum:int = Math.round (Math.random () * 2);
colorContainer.load (new URLRequest(imageArr[randNum][1]));
bwContainer.contentLoaderInfo.addEventListener (Event.COMPLETE, bwComplete);
bwContainer.load (new URLRequest(imageArr[randNum][0]));
function bwComplete(event:Event):void
{
bwContainer.content.mask = arrow_mc;
}
MOUSE
Mouse.Hide ();
stage.addEventListener (MouseEvent.MOUSE_MOVE, followMouse);
function followMouse(evt:MouseEvent):void {}
var dx:int = arrow_mc.x - mouseX;
var dy:int = arrow_mc.y - mouseY;
FACILITATE THE MOUSE
arrow_mc.x = dx / 5;
arrow_mc.y-dy = 5;
}
GO to THE LINK - does not work
mouseover.addEventListener (MouseEvent.CLICK, ClickToGoToWebPage);
function ClickToGoToWebPage(event:MouseEvent):void {}
navigateToURL (new URLRequest ("http://www.copenhagen.dk"), '_blank');
}
Edit: After 4 seconds, I got this code to the last image:
Stop();
addChild (colorContainer);
addChild (bwContainer);
If I am interpretting your design and problem properly, using addChild place objects on top of the display list, which would have them sitting on the passage of the mouse. After you add containers of two images, you must add the passage of the mouse so it is located above them.
Stop();
addChild (colorContainer);
addChild (bwContainer);
addChild (mouseover);
-
By using the query table data pump
I am trying to perform an export of data pump on a table by using a query in a parfile and I'm getting a strange behavior. The database version is 10.2.0.4.3 and the AIX 5.3 operating system. The query looks like this.
QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "
This works, but gets 0 rows. If I run the query against the instance in a session of SQLPlus as below then I get 0 rows returned.
Select * from POSDECLARATIONQUEUE where SESSIONID in (select "B.SESSIONID" from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where "B.SESSIONID" = "C.ID" AND "C.ACCOUNTID" = 'A.ID' and 'Inform' = '10252');
If I take the columns all about apostrophes in the query on the Forum with SQLPlus, I get over 2000 rows returned.
SQL > select count (*) in the POSDECLARATIONQUEUE where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252);
COUNT (*)
----------
2098
If I remove the apostrophes in the query parfile then I get the following error in data pump export.
DEU-00014: invalid value for the parameter, "schemas".
The PATTERNS option is not specified in parfile him and the TABLES option specifies that the table POSDECLARATIONQUEUE.
Can someone help with this, I can't seem to be able to get the syntax just to work within data pump.
Kind regards.
Graeme.
Published by: user12219844 on April 14, 2010 03:34It seems that your query can be a little wrong:
That's what you have:
QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "
That's what I would have thought it should look like:
QUERY = POSDECLARATIONQUEUE: "where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252).
You want to double "around the full query and you have not need single ' around all =." The single ' treat these values as strings and he said
"B.SESSIONID" = "C.ID".
the B.SESSIONID string is the string C.IDIn your query you used in sql has been
B.SESSIONID = C.ID
that said, it is that the B.SESSIONID stored value equal to the value stored at C.ID
Which is what you want.
Dean
-
Problem in the export using the QUERY functionality
Problem in the export using the QUERY functionality
I'm trying to export some rows in a table using the query functionality
and I have some errors... I'm using the syntax is
system@orcl QUERY = scott.emp expdp: '"WHERE emp_no = 123455" '
DIRECTORY = data_pump_dir DUMPFILE = data_pump.dmp
LOGFILE = data_pump_12345.log INDEX = n
Can someone tell me please the problem with that statement
I also tried to use the simple export
exp file system@orcl = orcl_export.dmp log = orcl_export.log
tables = Scott.EMP index = QUERY = n------"WHERE emp_no\ = 123455\"
and this error
EXP-00008: ORACLE error 904
ORA-00904: identify invalid
My os is Solaris
Please let me know what the problemHello
Try to create parfile and use that, otherwise, you will need to escape each clause correctly to run exp or expdp successfully.
test.par
tables=emp query="WHERE emp_no=123455" or tables=myobjects query="WHERE owner='SYS'" $> exp username/password parfile=test.par Export: Release 10.2.0.1.0 - Production on Thu Mar 19 10:17:48 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining Scoring Engine options Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path ... . . exporting table MYOBJECTS 22650 rows exported Export terminated successfully without warnings.
Concerning
Published by: OrionNet on March 19, 2009 10:21
-
Hello
I'm trying to use Reg Query to review the contents of a registry key. More precisely
- HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify
I just want to know what are the subkeys. I expect to be
- IconStreams and
PastIconsStream
Since they are both of type reg_binary, when I do this query I have also all binary data as well, make very large output.
Is there a way to simply retrieve/request which is in the field/column name and not the column/field data ? I tried the /k options and /v who gave me errors, which I interpreted in the sense I was their use either wrong or they are not used in this instance.
There is not a lot of examples out there and most of repeat them what you find when you use /?.
Thank you.
Hello
The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.
http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues
-
Dear all,
I am a beginner in the ADF and am under Jdeveloper Studio Edition Version 12.2.1.0.0.
I have a page that consists of two taskflows.
First workflow has a fragment which is to have a table based on view object salespersons (not editable)
Second task flow contains a form of ADF from the same view object Salespersons.
As the user selecting a line in the table of the same record is displayed as no problem.
Now, I have added two buttons Activate and Deactivate that is to change the status of the sales.
I tried to use two ways an updated using the procedure of database and then put in value by programming and I have different questions with two of them:
Now, here's the code of the Java bean for activation:
Option A - the problem with this is the value of the column in the list (the first task rate displayed) is not synchronized
and Activate and Deactivate buttons are not disabled and active properly.
{} public void confirmActivation (DialogEvent dialogEvent)
If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}
DBSequence vId;
vId = dcId.getValue ((DBSequence));
Links BindingContainer = getBindings();
OperationBinding operationBinding;
operationBinding = bindings.getOperationBinding ("changeSalespersonsStatus") (OperationBinding);
operationBinding.getParamsMap () .put ("pId", vId.getValue ());
operationBinding.getParamsMap () .put ("pStatus", "A");
Object result = operationBinding.execute ();
dcStatus.setValue ("A");
} else {}
return;
}
}
Option B - the problem with this is that the value of input for status text appears in the Active form for all records in form regardless of its database.
{} public void confirmActivation (DialogEvent dialogEvent)
If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}
-no doubt this two lines are not needed here
DBSequence vId;
vId = dcId.getValue ((DBSequence));
dcStatus.setValue ("A");
BindingContainer links = getBindings();
OperationBinding operationBinding;
the operationBinding = bindings.getOperationBinding("Commit") (OperationBinding);
Object result = operationBinding.execute ();
} else {}
return;
}
}
Here's the code from the Fragment of shape for used buttons.
"< af:button text = 'Activate' id ="bActivate' icon="/icons/activate.png ' iconPosition = 'top '.
partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".
Binding = "#{pageFlowScope.salespersonsForm.buttonActivate} '"
Disabled = ' #{bindings. " Status.inputValue! {= ' n '} ">"
< af:showPopupBehavior popupId = "pActivate" / >
< / af:button >
"< af:button text = 'Disable' id = 'bDeactivate' icon="/icons/deactivate.png ' iconPosition = 'top '.
partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".
Binding = "#{pageFlowScope.salespersonsForm.buttonDeactivate} '"
Disabled = ' #{bindings. " Status.inputValue! {= 'A'} ">"
< af:showPopupBehavior popupId = "pDeactivate" / >
< / af:button >
Here's matching Popups for each of the buttons Activate and Deactivate.
< childCreation = "deferred" autoCancel af:popup = "disabled" id = "pActivate" >
< af:dialog id = "dActivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.
affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)
noTextAndAccessKey = "& amp; No '.
dialogListener = "#{pageFlowScope.salespersonsForm.confirmActivation}" >
< f: facet = 'buttonBar' name / >
< af:outputLabel value = "Are you sure you want to enable the seller?" id = "ol1" / >
< / af:dialog >
< / af:popup >
< childCreation = "deferred" autoCancel af:popup = "disabled" id = "pDeactivate" >
< af:dialog id = "dDeactivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.
affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)
noTextAndAccessKey = "& amp; No '.
dialogListener = "#{pageFlowScope.salespersonsForm.confirmDeactivation}" >
< f: facet = 'buttonBar' name / >
< af:outputLabel value = "Are you sure you want to disable the seller?" id = "ol2" / >
< / af:dialog >
< / af:popup >
Thanks in advance.
Best regards
Arif Khadas
If you bind components to a range of flow page bean. You must complete that it saves the State of the component longer than the life of the component.
To change the value of the GET value of the component of the link layer and change it.
In this way the changes are captured by the framework and you should see them.
Timo
-
Inserting data by using the query
Hello
In a book, I read the Sub statement:
Inserting data by using the query (DML)
If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.
Can someone clarify what is the significance of this (processed or unprocessed form).
Thank you.
Why don't you ask the author of the book.
How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.
I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.
-
The use of tables of database for authentication in the ADF
Hello
I need to use my user table in the database for authentication in ADF (adf 11.1.2).
I have 3 categories: agent admin and user is unique, each has its own page, logging, the application checks the type of user and directs its jsf task or the page of the jsf page flow.
I have a user with the type attribute table
HOW CAN I MAKE THIS PRAYER.
Hello
See links below.
Whatever Fusion Middleware: Tables database user to implement authentication in the ADF
Java / Oracle SOA blog: the use of tables of database as in WebLogic authentication provider
-
the search for empty cells by using the query designer
Hello
I'm trying to exclude empty cells in a field (by using the Query Builder), and I did:
xDocumentSource < match > "CDL".
< AND >
< NOT > (xRelatedMsgid < match > "" "")
but it does not work. I tried "NULL", but it does not work either. Could someone tell me how to do it (or where I can find examples of queries).
Kind regards
Iwona
https://blogs.Oracle.com/Kyle/entry/searching_for_null_values_ucm
-
RMAN DUPLICATE: Use backup or CURRENT database
Hi all
I have a database of 32 TB, and about what I've experienced so far, using backup to duplicate the database is similar to the use of the command to RESTORE and RECOVERY manually.
If I use the option of DATABASE ACTIVE, then I should be concerned about the missing log files?
Hereby, I mean, text source and target are in ARCHIVELOG MODE anyway.
Thank you
To answer your original question, yes you are worried for your missing log file.
RMAN automatically copies the file to the server in the destination host settings, start the auxiliary instance with server settings file, copy all database files needed and archived redo logs over the network to the destination host and recovers the database.
If your copy of 32 TB on the network would take more than 1 day (what is your strategy of retention according to your other thread), so what, you won't be able to recover the database.
And you must mark this thread as a response and continue in your original thread.
Maybe you are looking for
-
If Firefox is open, and I then open my MS Outlook 2000 e-mail client, if there is an email with a link inside html, if I click on this link, it doesn't do anything, but if I close Firefox and then click on this email link Firefox opens. I find that i
-
I just bought a HP OfficeJet 8620, who says that he will "Break through with automatic double-sided scanning multipage documents and an automatic document feeder to 50 pages." I can't find a reference to such an operation in the user manual and seem
-
I just bought a new HP laptop and I am trying to run a new application of video game that says I have an error AP301... apparently the driver on my system is later and only available at HP as a custom product - I would like to upgrade to the latest I
-
Error 800b0100 code during installation
Hey, I need help here. I had returned an error 800b0100 during installation code, then I tried to install the suggested such analysis tool. But it is NOT always do the trick. I use window vista Home premium. can anyone help please?
-
Internet Information Services (IIS) Manager
Error 404 need to activate the (IIS) Manager