Skip to main content
Question

Listing Repository Components for $ude

  • April 7, 2026
  • 4 replies
  • 40 views

Tim Colvin
Forum|alt.badge.img+2

Currently in our version control system, we have exports of each component we generate in Uniface, which are then imported during check out and then exported during check in.  In our migration from 9.7 to 10.4, one of the things I would like to do is do a full export of everything from my 10.4 repository to put back into version control.

Individual components are pretty easy, as we can name the component we want to export and pass that to $ude, since we know the name of the component from our version control system.  What I would like to be able to do is from within Uniface, list all of the components programmatically and then for each individual component, export each component to its own XML file for check in.  

Is there a way to list all components or even all objects in the repository programmatically?

 

4 replies

Tim Colvin
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • April 7, 2026

It seems like $ude(“lookup”) might be the answer?  Unless there’s a better way to do it.


Ingo Stiller
Forum|alt.badge.img+3
  • Participating Frequently
  • April 13, 2026

Does you have access to the UnifAce-repository at the time you use $UDE?
Then you can read the components from the table UFORM


Tim Colvin
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • April 13, 2026

@Ingo Stiller - thank you for the suggestion.  I dont have direct access to the tables in my Uniface repository, so Im not sure that works.  Additionally, Im usually reluctant to interface directly with the Uniface repository tables, in case a change is made due to an update.

 

That said, I did figure out how to get the information I needed from $ude(lookup).  The following code example pulls the name of the form component from the list returned by $ude(lookup).

 

    variables
        string s_returned_list
        string s_returned_item, s_component_name
        numeric n_counter
    endvariables


    ;--Return a list of every form in the system.
    ;--------------------------------------------
    s_returned_list = $ude("lookup", "resources_outputform", "")
    
    ;--Loop through the returned list, and then extract the name of 
    ;--the form from the item list.
    ;--------------------------------------------------------------
    n_counter = 1
    getitem s_returned_item, s_returned_list, n_counter
    while($status > 0)
        getitem/id s_component_name, s_returned_item, "NAME"
    n_counter = n_counter + 1
    getitem s_returned_item, s_returned_list, n_counter
    endwhile


Tim Colvin
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • April 13, 2026

Two important notes, since the characters didnt come over (also, is there a way to paste Uniface code here so it will show up as actual Uniface code?)

 

in the $ude command, for the second parameter, there should be a GOLD semi-colon between “resources_output” and “form”.  

in the 3rd parameter, in order to get all the forms, I put in a GOLD asterisk.

Here’s a screenshot of the above code.