Oracle apex popup using java script in tabular form select list(Am new to apex help me out... )
Hi ...
i have a tabular form
have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the 2nd column by using
java script
eg:
1st column empno-----by selecting the empno the related empname has to be popup
dept no....by selecting the deptno the related deptname has to be popup
thanks in advance,
kishore
This is a very common question, see
https://forums.oracle.com/thread/2359498
Similar Messages
-
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju. -
Tabular form (select list Query based LOV)
Hi all,
I have this situation:
a tabular form with two "select list (query based LOV)" fields.
The first one must affect elements in the second one. And so the second query based LOV field should has a "where attr1 = first_list_selected_value" in the query.
Is this possible ? Could you show me some advices ?
thanks in advance.OK, thank you.
But maybe I wasn't too clear.
I need cascading LOV for each row of my tabular form.
I have a EMP tabular form
select
"ROWID",
"EMPNO",
"ENAME",
"JOB",
"MGR",
"HIREDATE",
"SAL",
"COMM",
"DEPTNO"
from "#OWNER#"."EMP" I need a Select List for DEPTNO for each record of table. After set a value, the second "Select List" for ENAME should be affected automatically. -
HTMLDB 2.0 bug - tabular forms - select list from named LOV
Hi!
Changing a column in a tabular form to 'select list (named lov)' gets the following error in HTMLDB 2.0 when you try to add a row (to an empty table in my case):
PL/SQL error at column 133.
Create a table and then create a tabular form on it. Then change a report column to be a 'select list (named lov)'. Save and run the form and the error occurs.
Thanks!
Dave VenusBrian,
This example:
http://htmldb.oracle.com/pls/otn/f?p=31517:176
and this example:
http://htmldb.oracle.com/pls/otn/f?p=31517:160
may help you.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Tabular Form : Select list : onchange event
I need a method / example to apply an Onchange event to a Select List in Tabular form.
Whenever an item from the select list is selected, the data from other column of the same or different Table should get displayed,
in a Textfield of the Tabular form.
YogeshHi,
Here is one example
http://apex.oracle.com/pls/otn/f?p=31517:176
Br, Jari -
How to add data in datatable by popup using java script?
Hi
I have a datatable in my jsp page. Onclick of button i am opening a popup window. On the popup window I am haveing list of data. I want to select data by checking the checkbox and the selected data need to be populated on the datatable. I am not getting any clue to proceed.
Can anyone suggest me any solution for this. Its very urgent.
Regards
Rishab.The following article might provide new insights: [Using datatables|http://balusc.blogspot.com/2006/06/using-datatables.html]. Checkout the chapter titled "Select multiple rows". Make use of this knowledge to select specific rows in the popup and gather them all in the bean.
Additional note: don't use Javascript to read/add/save data. It's pointless. Only use JS to open the popup window pointing to a JSF page with the datatable inside.
Edited by: BalusC on 14-mei-2008 16:36 -
Can i use java scripts in d2k forms and reports
Good day all,
Can i use the above said, if yes any assistance or eg.
thanks in advance.Hi,
The appropriate Forum for this question would be
Forms
(Forums Home » Oracle Technology Network (OTN) » Products » Developer Suite » Forms)
Thanks
Vineet -
Condition verification in java script on Adobe form.
Hello Experts,
I am using a interactive forma text element on my view. (java web dynpro)
It's a simple application. I am trying to figure out how it works with java script.
I have a text field. which displays employ is sales or production dept
the values in the data view and its the output element of a BAPI which returns XF,TF,HF and XK,JK,HK
(record.dept)
if its XF, TF, HF on the text field in the adobe form should print sales else production.
I have never used java script on adobe form.
I figured the strip above the form in adobe designer is used for java script.
can any one, let me know how I can manipulate. the record value
Here is what I am trying record.dept = XF |TF|JF . but i dont know how to run the java script or its syntax.
Your help is highly appreciated.James,
xfa.host.messageBox should show you an alert dialog box to check data you are getting.
And yes you are right. You can set the value of textfield using code you mentioned.
if(record.dept.equalsIgnoreCase("XF")
|| record.dept.equalsIgnoreCase("TF")
record.dept.equalsIgnoreCase("JF"))
xfa.host.messageBox("The value is Sales");
<Text-field id>.value = "Sales";
else
xfa.host.messageBox("The value is Production");
<Text-field id>.value = "Production";
You can even set the texfields to be readOnly, hide some of them etc. But for that I would suggest you going thru the LiveDesigner help. It would solve most of your doubts :-).
Chintan
Edited by: Chintan Virani on Feb 19, 2008 3:37 PM -
How to use Java Script in Oracle Forms 10g
Hello,
Appreciate if anyone could help me using Java Script in Oracle Forms 10g?
Thanks
GMThank you for your reply. I was reading on the metalink that we could use the to call the java script from oracle Forms 10g (Doc ID 265863.1)
Example:
WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_blank');
I tried it but it did not open the any window as it claims. Am I missing anything? Is there any IE related setting which I need to modify for the above to work?
Regards
GM -
How to use java script when popups are blocked in browser
How to use java script when popups are blocked in browser
Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.
-
How to pass parameters to a page invoked using java script.--- Very Urgent.
Hello,
I have an advanced Table in my page. In the first column there is a
messageChoice. In the second column there is link item.On the link item i have set the following value for destination uri.
javascript:var a=window.open('OA.jsp?page=/AutoSales/oracle/apps/per/auto/webui/AutoSurrogatesPG&retainAM=Y','a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbar=yes'); a.focus();
The user selects a value from the message choice and when he clicks on the link item, the value selected from the list should go to the new page invoked using java script as a parameter. I need the value selected from choice to generates few fields in the new page. I have preferred java script because i need the base page and a model window should open. I have tried using setForwardUrl() and setting '_blank' and new window for target frame property on the link item. But it isnt working. The new page is opening in the same window.
I have also tried putting the value in a session.
Please help with any kind of suggestions or solutions.
Thank you.Uma,
You need to
- Have a PPR Action on the messageChoice (this would trigger a form submit to populate the underlying View Attribute)
- Either
- Retrive the value from the View Attribute in the pop-up page (as I could see that you are retaining the AM)
- Use a SPEL in the link (on the modal page) to use the value from the View Attribute as the parameter value (in the form ${oa.current.<ViewAttributeName>)
HTH -
Can we use Java Script in SAP BusinessObjects Web Intelligence 4.1?
Can we use Java Script or any other Script in BI 4.1 Web Intelligence? If possible please do let me know the method/process
Hi Kranthi,
You have option to read a cell content as html. else you will have to go for SDK. I think you will get better suggestions, if you can explain your requirement in a little detailed manner.
refer below links for more details about SDK.
http://bukhantsov.org/2013/04/how-to-create-a-webi-document-using-java-report-engine-sdk/
Regards,
Nikhil Joy -
How to get comparable Oracle JDBC performance using Java 1.4 vs 1.1.7?
Our application makes extensive use of JDBC to access an Oracle database. We wrote it a number of years ago using java 1.1.7 and we have been unable to move to new versions of java because of the performance degradation.
I traced the problem to JDBC calls. I can reproduce the problem using a simple program that simply connects to the database, executes a simple query and then reads the data. The same program running under java 1.4 is about 60% slower than under java 1.1.7. The query is about 80% slower and getting the data is about 150% slower!
The program is attached below. Note, I run the steps twice as the first time the times are much larger which I attribute to java doing some initializations. So the second set of values I think are more representative of the actual performance in our application where there are numerous accesses to the database. Specifically, I focus on step 4 which is the execute query command and step 5 which is the data retrieval step. The table being read has 4 columns with 170 tuples in it.
Here are the timings I get when I run this on a Sparc Ultra 5 running
SunOs 5.8 using an Oracle database running 8.1.7:
java 1.1.7 java 1.4
overall: 2.1s 3.5s
step 1: 30 200
step 2: 886 2009
step 3: 2 2
step 4: 9 17
step 5: 122 187
step 6: 1 1
step 1: 0 0
step 2: 203 161
step 3: 0 1
step 4: 8 15 <- 87% slower
step 5: 48 117 <- 143% slower
step 6: 1 2I find the same poor performance from java versions 1.2 and 1.3.
I tried using DataDirect's type 4 JDBC driver which gives a little better performance but overall it is still much slower than using java 1.1.7.
Why do the newer versions of java have such poor performance when using JDBC?
What can be done so that we can have performance similar to java 1.1.7
using java 1.4?
========================================================================
import java.util.*;
import java.io.*;
import java.sql.*;
public class test12 {
public static void main(String args[]) {
try {
long time1 = System.currentTimeMillis();
/* step 1 */ DriverManager.registerDriver(
new oracle.jdbc.driver.OracleDriver());
long time2 = System.currentTimeMillis();
/* step 2 */ Connection conn = DriverManager.getConnection (
"jdbc:oracle:thin:@dbserver1:1521:db1","user1","passwd1");
long time3 = System.currentTimeMillis();
/* step 3 */ Statement stmt = conn.createStatement();
long time4 = System.currentTimeMillis();
/* step 4 */ ResultSet rs = stmt.executeQuery("select * from table1");
long time5 = System.currentTimeMillis();
/* step 5 */ while( rs.next() ) {
int message_num = rs.getInt(1);
String message = rs.getString(2);
long time6 = System.currentTimeMillis();
/* step 6 */ rs.close(); stmt.close();
long time7 = System.currentTimeMillis();
System.out.println("step 1: " + (time2 - time1) );
System.out.println("step 2: " + (time3 - time2) );
System.out.println("step 3: " + (time4 - time3) );
System.out.println("step 4: " + (time5 - time4) );
System.out.println("step 5: " + (time6 - time5) );
System.out.println("step 6: " + (time7 - time6) );
System.out.flush();
} catch ( Exception e ) {
System.out.println( "got exception: " + e.getMessage() );
... repeat the same 6 steps again...
}If I run my sample program with the -server option, it
takes a lot longer (6.8s vs 3.5s).Which has to be expected, as the -server option optimizes for long running programs - so it shoudl go with my second suggestion, more below...
I am not certain what you mean by "just let the jvm
running". Our users issue a command (in Unix) which
invokes one of our java programs to access or update
data in a database. I think what you are suggesting
would require that I rewrite our application to have a
java program always running on the users workstation
and to also rewrite our
commands (over a hundred) to some how pass data and
receive data with this new server java program. That
does not seem a very reasonable just to move to a new
version of java. Or are you suggesting something
else?No I was just suggestion what you descript. But if this is not an option, then maybe you should merge your java-programs to C or another native language. Or you could try the IBM-JDK with the -faststart (or similar) option. If thew Unix you mention is AIX, then there would be the option of a resetable-vm. But I cannot say if this VM would solve your problem. Java is definitly not good for applications which only issue some unqiue commands because the hotspot-compiler can not be efficiently used there. You can only try to get 1.1.7 performance by experimenting with vm-parameters (execute java -X). -
Hi ,
I am trying to build a dynamic calculator in WAD which is as similar to one in Executive view in Cognos. The problem i am facing is, i can able to build a normal calculator by using java script but i am unable to read the key figure values from the analysis item on from the data provider in to by calculator by using on click function. I wanted to get the all the values in to a internal excel , so that my calculator can read the values from that. can any one help me on getting values in to internal excel by using java before the executing the web template ?...
Thanks in advance....
Jhon.
Edited by: sap bw on Jul 31, 2008 5:51 PM
Edited by: sap bw on Jul 31, 2008 5:52 PMI might not be understanding your question completely since you mention WAD and then Excel, but if you are asking how to get the key figure values using Javascript in WAD, you can go to the Dataprovider properties and enable 'Output Result Data'. This will embed an XML element into the HTML output that you can then parse using standard Javascript DOM navigation.
Hope this helps. -
Hi,
I am trying to fetch properties of all lists of "Survey Type" from my site collection in SharePoint 2013 using script editor web part. I am able to fetch properties of one list by mentioning its name explicitly in code but not all survey
list.
My task is to display Survey name , description ,Time created and URLs of all survey lists using java script in script editor web part.
And let me know , if there is any other OOB feature of SharePoint 2013 to achieve the same.
Here is the code :
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);
function sharePointReady() {
GetSurveyList();
function GetSurveyList() {
var spListTitle = " List Name";
var clientContext = new SP.ClientContext.get_current();
var oWeb = clientContext.get_web();
this.surveyList = oWeb.get_lists().getByTitle(spListTitle);
clientContext.load(surveyList);
clientContext.executeQueryAsync(Function.createDelegate(this, this.GetListProperties),Function.createDelegate(this, this.onFailure));
function GetListProperties() {
$("#SurveyList").text("");
var surveyTable = "<table border=1>";
surveyTable = surveyTable.concat("<tr><td>Survey Name</td>");
surveyTable = surveyTable.concat("<td>Survey Description</td>");
surveyTable = surveyTable.concat("<td>Time Created</td>");
surveyTable = surveyTable.concat("<tr><td>" + surveyList.get_title() + "</td>");
surveyTable = surveyTable.concat("<td>" + surveyList.get_description() + "</td>");
surveyTable = surveyTable.concat("<td>" + surveyList.get_created().format("MM/dd/yyyy hh:mm tt")+ "</td>");
surveyTable = surveyTable.concat("</table>");
$("#SurveyList").append(surveyTable);
function onFailure(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
<div id="SurveyList"></div>Shifa,
Please use search result webpart or content query webpart to list all survey list.
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.
Maybe you are looking for
-
Hi, I'm trying to install Premiere 6.0 on a 64bit PC but it isn't compatible, is there anyway round this? cheers
-
Can't see albums or library in iPhoto6
I only see one screen in iPhoto 6 with photos I just uploaded and can't see any of my albums or my library - I don't see my photos in "Pictures" on my laptop either. I see my old albums when I select "share" but can't see any pictures. I think I chan
-
Dynamic WebService client within a WebService Handler
We have a WebService running on WebLogic 10.3 that has a handler that contains a Webservice client that connects to a set of IIS WebServices. The client is called with code like this: QName qname = new QName("http://www.company.com/Webservices/", "Us
-
IPad 2 Smart Cover and Airport Xray
Is there any ill effects when you send your ipad 2 with a smart cover (which contains magnets) through the airports Xray scanners? Just curious since xray scanners use magnets to scan correct?
-
R7770-PMD1GD5 got a problem with assassin's creed 3
bought this card and got this problem with max setting. This happens when I turn AA to very high. What is the problem?