external wish filfilled: Shell script to take uniface export

a little step for me, a big leap for dITo. export file can be found on TURF

Source: http://hosted.byjones.net/turf/viewtopic.php?f=2&t=1217

Posted: 20.01.10 09:28 by conundrum
Hi all,I have a requirement to create shell script that could be used to take the uniface export of all the components.
can such a shell script be possible. My application is installed on HP-Unix.

If yes can somebody provide me with some pointers

Thanks
Conundrum

Posted: 27.01.10 18:30   by Uli
Hi Conundrum,if you are on Uniface 7, you can not use the $ude,
but you can do the same job with

perform “ICOMP”
As I heard (and tested!!), ICOMP is working even within Uniface 9;
because TRX is no longer supported as an export format, all you have to change is 

$98 = “xml:%%$2%%%_EXP_COMP9.xml” ; the filename
Success, Ulidocumentation for icomp from http://www.puuu.org => underground (sidebar) => ufo => perform => icomp

The code for the form will be (i will build and test the component, but if you want to try on your own):

Lets create a new form EXP_COMP78 and
put the following lines in the EXEC-trigger to export components and startup shells
(<;> is GOLD; <*> is GOLD*)

 

putitem $2, 1, $datim ; get yymmddhhnnsstt
$2 = $2[3:10] ; get a timestamp yymmddhhnn
$99 = 192 ; export to trx
$98 = “%%$2%%%_EXP_COMP78.exp” ; the filename
$97 = 1 ; supersede (should be append)$96 = 18 ; startup shells
$95 = “” ; all
perform “ICOMP”

$96 = 16 ; components
$95 = “” ; all
perform “ICOMP”

; if you use component templates, you have to export the default codes as well
$96 = 26 ; component templates texts
$95 = “I” ; included procs
$94 = “” ; all components (libraries)
$93 = “!DEFPARAM” ; <gold>! so we exclude constants
$92 = “P”
perform “ICOMP”

Leave a Reply