Skip to Content
author's profile photo Former Member
Former Member

BRF - iterators, collections, recursiveness

Hello,

We have done an implementation of a project where we used BRF (BRFplus not yet release internally for us).

BRF worked just fine but we need to do a phase two which seems to be a bit more complex. What I'm interested in is whether people have used BRF in a bit more advanced way implementing operations on collection of items, doing any sort of recursive operations etc.

The main reason for asking is that I need to design an operation where I will be able to find out if among a collection of items there is at least one of certain type. The main difficulty is that the type can only be derived at run time - so the first operation would need to be mapping of all items into respective type. If not that then iterate on all items and finding out if there is a specific type among them.

Help or insight into the above will be much appreciated.

Regards,

Darek

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2011 at 12:38 PM

    The question was answered with a suggestion to use BRFplus instead of BRF.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2010 at 01:28 PM

    I'm replying to myself:) Anyway, to this day I did not find any reasonable solution for my problem other then do some special development and place the functionality in a function module.

    I will have to migrate the BRF into BRFplus soon so maybe that new version will have feature that missing functionality.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Dariusz,

      in BRFplus as of NW 7.0 EhP 2 you have an expression type for loops:

      - do until

      - do while

      - do times

      - for each entry in table

      Also you have an expression type for table operations:

      - at least one entry for condition

      - number of entries for condition

      - sum, count, average over column for condition

      - ...

      BR,

      Carsten

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.