HTML field in Forms6i

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
Post Reply
spernega
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 232
Joined: Tue, 19 Jun 2007 2:12 pm
Location: São Paulo - SP

Good morning friends,

I have a problem with forms 6i and text in HTML.

I have an HTML text that may or may not be stored on a table.

Ex.:

Select all

<html> 
 <head> 
  <title>Notifica&ccedil;&atildeo; Extrajudicial</title> 
 </head> 
 <body>  
    <p>&Agrave </p> 
    <p><Prezados Senhores</p> 
    <p>Vimos pela presente informar V(s). Sa(s)., na condi&ccedil;&atilde;o de representantes da empresa NNN, relativo aos t&iacute;tulos informados abaixo e notific&aacute;-lo(s)</p> 
 </body> 
</html>
I need to show the user the final result on the screen, that is:


99]] "to
we reported by this informing V (s). SA (s)., As represented by representatives of the company NNN, on the titles informed below and notify it (s)"

Does anyone know how to solve?
User avatar
tiago_pimenta
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 213
Joined: Wed, 29 Jun 2011 9:49 am
Location: Barretos / SP

Good morning Spernega,

Do you need to show you to the user in a field (text_item) or as an HTML page?
PS.: That my problem of the other topic I still can not have time to test :(
spernega
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 232
Joined: Tue, 19 Jun 2007 2:12 pm
Location: São Paulo - SP

So James,

I prefer in a text-item even, it gets better and involves less environment.

I did a provisional gambiarra, I generate a text file (.html) and I open with the browser, but it is a lot of a fixed thing in the program, if you have any different mapping, it danced ...
User avatar
tiago_pimenta
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 213
Joined: Wed, 29 Jun 2011 9:49 am
Location: Barretos / SP

I understood ... the worst thing is that I was going to tell you that if it were to visualize in a browser, to create the file in a parameterized folder and call the program also using a parameterized path ...
spernega
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 232
Joined: Tue, 19 Jun 2007 2:12 pm
Location: São Paulo - SP

Here in the company we use Windows TS for applications, if the user mapping is wrong does not come out any more.
I tried to use the OLE type, but I could not get anything.
I researched around and nothing too.

Let's see if someone has some brilliant solution for that.


Thanks!
spernega
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 232
Joined: Tue, 19 Jun 2007 2:12 pm
Location: São Paulo - SP

Personnel,

I managed to solve, more or less, creating an OCX field.
anyway has to create a file ...

I found the explanation in http://www.orafaq.com/forum/t/74388/
is a boring little thing but it worked.

Select all

In forms 6i, you can use an OCX object to navigate to an HTML page. 
The following steps may help you in doing so: 
in your form, insert an OCX element 
right-click on this object and click on "Insert Object" 
choose "Microsoft Web Browser" from the list. The object is now inserted. 
in forms menu bar, go to Programs --> Import OLE Library Interfaes. 
from the list, under OLE classes, choose Shell.Explorer.2 and under method packages, choose IWebBrowser2 then click OK. Now, a new package is added to your program units. 
in the appropriate trigger, write the following code: 
 
declare 
  handlehtml ole2.obj_type; 
BEGIN 
  synchronize; 
  handlehtml := ole2.create_obj('Shell.Explorer.2'); 
  handlehtml := forms_ole.get_interface_pointer ('<block_name>.<ocx_name>'); 
  Shell_IWebBrowser2.NAVIGATE(handlehtml,'<URL>'); 
END; 
 
run your form, and fire the trigger where you have written the code, the page specified in <URL> will be displayed in the OCX element.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests