Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Link to download webutil_demo.fmb?

Jessica BoggiaFeb 11 2020 — edited Feb 12 2020

Hello All,

I am trying to test our webutil configuration per Doc ID 2070183.1

It mentions compiling and running webutil_demo.fmb. However, this .fmb file is nowhere to be found in $oracle_home/forms. Some sources mention that you need to download it from OTN, specifically here https://www.oracle.com/technology/products/forms/htdocs/webutil/

However, there I cannot find a link on that page to download the demo. I've tried googling around and looking on the OTN/oracle's website elsewhere, but I am not finding a link to download this.

I'm hoping I'm just tired today and it's out there somewhere, I'm just having a hiccup finding it. I found one out there for 11g, but not 12c...

If there is one out there for 12c, where would I find the download? If it was actually removed from the Oracle website, is there a different simple form out there I can use to test webutil on 12c?

Thank you,

Jessica Boggia

This post has been answered by Michael Ferrante-Oracle on Feb 11 2020
Jump to Answer

Comments

gimbal2
I can think of three ways:

1. Use ajax
2. a form submit to the servlet (set value in hidden input field, submit form all using javascript)
3. a form submit performed inside an iframe (same as 2, but the current page doesn't reload)

I would go for option 1, that is the "web 2.0" way to do it.
905759
gimbal2 wrote:
I can think of three ways:

1. Use ajax
2. a form submit to the servlet (set value in hidden input field, submit form all using javascript)
3. a form submit performed inside an iframe (same as 2, but the current page doesn't reload)

I would go for option 1, that is the "web 2.0" way to do it.
1: Yes, it seems like the logically answer but Im not too up on AJAX and even less on mixing it up with servlets. Do you mind giving me a simple add (function) sample or something similar?
2: Not possible as I have to pass several values, a array, etc
3: The iframe is similar as 2 and its problems.

Thanks for the suggestions.
DrClap
902756 wrote:
1: Yes, it seems like the logically answer but Im not too up on AJAX and even less on mixing it up with servlets. Do you mind giving me a simple add (function) sample or something similar?
You are looking at it the wrong way. What you actually want to do is to have the browser send a request (which somehow contains that Javascript data) to a URL which causes the servlet to receive the data. There's no "mixing it up" going on there. The client and the server are entirely separate.

And since that request would be an HTTP request, it's just text. There's no concept in HTTP of transmitting objects, whether they be Javascript objects or Java objects. Anything you want to transmit has to be converted into text by the sender and converted back into objects by the receiver.

So there's no such thing as "a simple add function". You're going to have to stop thinking in that way and start thinking of client-server systems in the way they actually are.
905759
DrClap wrote:
902756 wrote:
1: Yes, it seems like the logically answer but Im not too up on AJAX and even less on mixing it up with servlets. Do you mind giving me a simple add (function) sample or something similar?
You are looking at it the wrong way. What you actually want to do is to have the browser send a request (which somehow contains that Javascript data) to a URL which causes the servlet to receive the data. There's no "mixing it up" going on there. The client and the server are entirely separate.

And since that request would be an HTTP request, it's just text. There's no concept in HTTP of transmitting objects, whether they be Javascript objects or Java objects. Anything you want to transmit has to be converted into text by the sender and converted back into objects by the receiver.

So there's no such thing as "a simple add function". You're going to have to stop thinking in that way and start thinking of client-server systems in the way they actually are.
The thing is I want to start simple to grab a simple concept....


Im trying a AJAX route and I have the following:

/index.html
/js/Adding.js

Index contains:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript" src="js/Adding.js"></script>
</head>

<body>
<select name="num1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<select name="num2">
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
<form method="get" name="adding">
Do
<span id="res"></span>

</form>

</body>
</html>

Adding.js contains

var Adding = Class.create({
x: null,
y: null,

add: function()
{
var xmlHttp = new XMLHttpRequest();
var value1 = document.getElementById("num1").value;
var value2 = document.getElementById("num2").value;
xmlHttp.open("GET", "index.html", false);
xmlHttp.send(value1 + value2);
var result = document.getElementById("res");
result.innerHTML = xmlHttp.responseText;
}

});


This shows 2 comboboxes full of numbers and link saying "Do" which calls the javascript function and adds the two numbers in the comboboxs and shows them on the screen without refreshing the page. This does not work and I would like this to work before I continue onto the bigger picture.
EJP
This is clearly a Javascript question in a Java forum. Locking.
1 - 5

Post Details

Added on Feb 11 2020
6 comments
6,090 views