Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: How to bring values with out loop as per selection criteria

$
0
0

It's difficult to really give steps without knowing your application better but here goes my best shot at it.

 

In terms of underlying structures on the client, I am assuming you have a questionsCT, a question object (with the desired fields to displa and a tempQuestions collection on your Main Object to hold the displayed questions.

 

1) Create an Edit Transaction on the main object with one property of the tempQuestions collection.  This property should be set to Auto-Initialize.  When this transaction is involved from an action and applied it will clear the tempQuestions collection.

 

2) On the question object, create an Add transaction to populate the object fields from the corresponding questionCT current record.  For each of the transaction properties set the Initial Value to "From a different object property" and then browse to the Complex Tables selecting your questionsCT -> current record -> field name.

 

3) Create your Add question Action to call the AddQuestion Transaction and Apply.  This will be the action called from your subaction loop.

 

4) Create your refresh action with the following steps

    a) Transaction - (#1)

    b) Apply

    c) Sub-Action

        c1) Execution Type: Loop over collection

        c2) Collection: Browse and select your questionsCT

        c3) Execution Rule: Define a new rule to return true if the current record meets your selection criteria

        c4) Action: Seelct your Add question action (#3)

 

On your detail screen, I am assuming you will have a dropdown or some similar way to set the selection criteria.  Create a button field that will call your refresh action (#4) and add a tile list control targeting the tempQuesitons collection as it's source.

 

This should hopefully get you started in the right direction.

 

--Bill


Viewing all articles
Browse latest Browse all 10482

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>