Précédent   Forum des professionnels en informatique > Bases de données > Oracle > Outils > Forms
Forms Forum d'entraide sur Oracle Forms
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 14/10/2006, 02h23   #1
Invité de passage
 
Inscription : août 2006
Messages : 15
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 15
Points : 1
Points : 1
Par défaut [Forms]se connecter au forms via html

bonjour
je veux savoir comment lancer une form en se connectant à la BD premièrement via une page html
càd: je saisis nom user et mot de passe puis je clique sur un bouton et l'application (form) se lance
j'utilise oracle 9i comme base donnée et oracle develloper 9
j'attends une réponse
al_mer est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/10/2006, 09h31   #2
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Bonjour,

voici un exemple de page html de lancement d'une application Forms:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
<html>
<head>
<script>
FUNCTION SubmitForms(username, password, DATABASE, form){
 
	document.hidden_starter.userid.value=username+'/'+password+'@'+DATABASE
	document.hidden_starter.form.value = form;
	//document.hidden_starter.submit();
	window.open("http://my-machine:8888/forms90/f90servlet?config=MA_CONFIG","","menubar=no, status=no, scrollbars=no, menubar=no");
 
}
</script>
<title>Run Forms</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body>
<form name="hidden_starter" method="post" action="http://my-machine:8888/forms90/f90servlet?">
  <h2>
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="yes">
    <input type="hidden" name="userid" value="">
    <input type="hidden" name="form" value="">
  </h2>
  </form>
<p><b>Forms Launcher</b></p>
<form name="inputform" method="post" action="">
  <TABLE width="60%" border="1">
    <tr> 
      <td width="22%">Forms Module</td>
      <td colspan="2"><input type="text" name="form" onBlur="if(document.inputform.form.value == '') alert('value must be provided');"></td>
    </tr>
    <tr> 
      <td>Username</td>
      <td colspan="2"><input type="text" name="username" onBlur="if(document.inputform.username.value == '') alert('value must be provided');"></td>
    </tr>
    <tr> 
      <td>Password</td>
      <td colspan="2"><input type="password" name="password" onBlur="if(document.inputform.password.value == '') alert('value must be provided');"></td>
    </tr>
    <tr> 
      <td>Database</td>
      <td colspan="2"><input type="text" name="database" onBlur="if(document.inputform.database.value == '') alert('value must be provided');"></td>
    </tr>
    <tr> 
      <td> </td>
      <td width="11%"> </td>
      <td width="67%"><input type="button" name="Submit" value="Run Forms" onClick="SubmitForms(document.inputform.username.value,document.inputform.password.value,document.inputform.database.value,document.inputform.form.value);"></td>
    </tr>
  </table>
</form>
<p><b></b></p>
</body>
</html>
Tiré du Blog de Frank Nimphius
http://www.orablogs.com/fnimphius/archives/000916.html
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 17h20.


 
 
 
 
Partenaires

Hébergement Web