compile multiply forms in smae time
Author: urieli@gmail.com (Uriel)
hello Is there anyway to compile few forms in the same time? I changed some definition of one of my table (in PLSQL) and i have to compile all the forms that use this table. It's about 60 forms. Can you help me? thanks!
9 Comments
Local Administrator
Hi, Do you try command line /frm with form separed by ';' or '|' like /frm form1;form2 Work with 9.5. At worst, you could try the Uniface Underground Fonction like icomp ...
Cordialy .
Author: Gilles (gls.tools@free.fr)
Local Administrator
Hey thank you! the first one is working. One more question: is there anyway to compile a form from another form. I mean if i'm in form1 then by click on a button it will compile form2 (or more). thanks
Author: Uriel (urieli@gmail.com)
Local Administrator
Yes, there is. The function used for this is $ude. So for example to compile all components starting with the character 'F': $ude("compile","component","F·*") For more examples look up the ULibrary Help File:
Author: Daniel_Kurz (kurzster@gmail.com)
Local Administrator
The method described by 'UserGho' is part of the Uniface Command Line Switches and works with 'normal' semicolon, asterix etc. to create your subset of components. There is second method to achieve this: Within IDF, go to Utilities -> Preferences -> Genral and check the box 'Enable Global Actions' (or see that it is already checked). After that, go to GoTo -> Administration -> Global Actions and enter your search pattern into the first field on the left upper corner, using GOLD characters, so asterix, semicolon etc. You can test your GOLD key search pattern by clicking 'Browse' to see what set comes up. Please leave the 'Browse Component' list form by clicking Cancel, otherwise you'll only have selected one component from your set. Next, with the Global Actions window still open, do File -> Compile and your set of components will compile. Feedback in Message Line and Message Frame. A third method is that a lot of experienced Unifae developers have probably once written a form, based on the Uniface repository model that lets the developer enter the Entity (database table) that has changed, and subsequently retrieves all components that 'touch' this entity and through use of $ude("compile") compile these components on the spot. A typical place to have such a custom developer tool, would be the Additional Menu. ($ude is the new alternative for icomp, which is undocumented and will become deprecated/obsolete) (I started writing this post directly after thepost of 'UserGho', so before seeing the postings of Uriel and Daniel_Kurz. Hence some of my posting may overlay their answers)
Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Local Administrator
Only now I see that this thread is posted in the Uniface 8 subforum. The URL's in my previous posting all refer to Unifae 9.7 documentation. Some of the functionalitu around $ude may be limited in Uniface 8, please check your local Uniface Help file on this.
Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Local Administrator
With uniface 8, you must use the icomp (unofficial) function which is replaced by $ude (official) function in uniface 9 $99=0 $97=componentname $98=componenttype 0=frm-1=svc-2=rpt perform "icomp" Cordialy.
Author: Gilles (gls.tools@free.fr)
Local Administrator
Since UXGROUP contains the entity name used in components, and you know the entity name you've modified; Using icomp in 8 (or $ude in 9+);
I use this when I don't want to remember / search using global actions and component names separated by GOLD |... Knut
Author: Knut (knut.dybendahl@gmail.com)
Local Administrator
Hi Knut, Just two little considerations: an order by "UFORM" is reasonably needed in the read trigger of UXGROUP... ...and also: it's not caring of having same entity name into two different models... Anyhow, thanks for sharing! Gianni
Author: gianni (gianni.sandigliano@unifacesolutions.com)
Local Administrator
If you want to compile all forms that need compilation after the entities or fields on it have changed, I have made a tool for that a few years ago. You can download it here: http://theunifaceuniverse.blogspot.nl/2011/04/change-entity-compile-forms.html
Author: Theo Neeskens (tneeskens@itblockz.nl)