× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You can see a sample in: https://i5.abc.com.py/fe/a_listdoc.asp

I did it using CGIDEV2 from https://www.easy400.net/ (free download)

There are two parts, a RPG program and a "web file" (like the wrkstation
file)

RPG:

Fdocs_f    IF   E           K DISK    extfile('SIFEN_DATA/DOCS_F')   
Fruc_nced  IF   E           K DISK    extfile('SIFEN_DATA/RUC_NCED') 
                                                                     
D i               s             10i 0                                
D fproc           s               d                                  
d ifshtml         c                   'lista_docu.xhtml'             
 /include sifen/qrpglesrc,cgi_init                                   
  fproc = %date();                                                   
  updhtmlvar('fproc': %char(fproc: *eur));                           
  wrtsection('top');                                                 
                                                                     
  setll (fproc) docs_f;                                              
  for i = 1 to 100;                                                  
     read docs_f;                                                    
     if %eof(docs_f);                                                
        leave;                                                       
     endif;                                                          
     updhtmlvar('RUC': %subst(cdc: 3: 8) + '-' + %subst(cdc: 11: 1));
     chain (%trimr(%subst(cdc: 3: 8): '0')) ruc_nced;      
     if %found(ruc_nced);                                  
        updhtmlvar('NomEmi': nom_ruc);                     
     else;                                                 
        updhtmlvar('NomEmi': '**** RUC no esta');          
     endif;                                                
     updhtmlvar('cdc': cdc);                               
     updhtmlvar('fechaEmi': %subst(cdc: 26: 10));          
     updhtmlvar('ndoc': %char(n_doc));                     
     wrtsection('linea');                                  
  endfor;                                                  
                                                           
  wrtsection('fintabla');                                  
                                                           
  return;                                              
                                                           
                                               

"WS FIle"  There are tree "record formats"  a header used once , the
line ,repeated, and the end of page

<!-- _top -->

<html xmlns="http://www.w3.org/1999/xhtml";>

<head>

<title>Documentos</title>

</head>

<body>

<h2>Documentos Electronicos hasta: /%fproc%/</h2> 

<table>

<thead>

<tr>

  <th>Ruc</th>

  <th>Nombre</th>

  <th>CDC</th>

  <th>Fecha</th>

</tr>

</thead>

<tbody> 

<!-- _linea -->

<tr>

<td>/%ruc%/</td>

<td>/%nomEmi%/</td>

<td>/%cdc%/</td>

<td>/%fechaEmi%/</td>

<td><a href="a_showdoc.asp?ndoc=/%ndoc%/">Kude</a></td> 

<td><a href="a_xml.asp?ndoc=/%ndoc%/">XML</a></td> 

</tr> 

<!-- _fintabla -->

</tbody>

</table>  

<hr/>Fin de pagina 

</body>

</html>

El 2019-11-25 a las 17:22, Alan Shore via MIDRANGE-L escribió:
Can you supply code on how to do this?

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
‘If you're going through hell, keep going.’
Winston Churchill


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Raul Jager
Sent: Monday, November 25, 2019 3:19 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: [EXTERNAL] Re: main difference between expandable and singlepage subfile

Using web you can do simple pages, medium, or sophisticates. Using RPG web is very fast, you will not notice any difference in speed. 

You can translate very easily a subfile program to the web, and have it similar to the green screen.

El 2019-11-25 a las 16:34, Patrik Schindler escribió:
Hello,

Am 25.11.2019 um 19:49 schrieb Raul Jager <raul@xxxxxxxxxx>:

Since a long time ago I do not have limits in sub file size, nor in the width. I have moved to the web. Highly recommended.
Depends. I'm loving text interfaces very much since they are *quick* and very clear when well designed. A browser, transferring and rendering eye-candy and more or less huge tables is often slower and invites to cram as much information in one page as reasonably possible.

Please note: I'm mostly a hobbyist user but my boss thinks alike and
so I'm developing some tools for inhouse use…

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.