on 02-06-2012 9:47 AM
Hi Experts,
I want to import a table as context, cange one field and then output it.
What is your recommendation for the best solution ?
Do i need 2 tables ( same structure ) ; one for context , one for result ?
How do i change to field in the best way ??
Thank you for your help !
Add table to context (not result).
Hand over data.
In BRFplus maybe loop the table and do your changes.
After BRFplus execution read your table from the context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Guys,
the problem is solved.
After the first rule in the loop expression where i do the decision table and cange the context field's value, you have to initialize the ruleset-variable in the next 'loop rule'. Ohterwise it won't work.
Thank's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I should have added these lines:
I have added some rows and filled the fields during the simulaiton !
But nevertheless it stops with this message!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Carsten,
now its all clear. All Objects are active and consistent.
Last Steps:
I did now a function in eventmode.
I assigned a ruleset to this function.
My first rule is " Change TABLE afterprocessing LOOP ".
In LOOP-Expression:
first rule "Change RULESET-VARIABLE" after processing Decision Table
In this decision table there is one field is one condition-field ( the field i want to change ) and a copie of this field as result (RULESET-VARIABLE).
second rule "Change value of CONTEXT-FIELD from value of RULESET-VARIABLE
Now i did a Simulation of this function, but it stops with this message:
Access via 'NULL' object reference not possible.
What could have raised this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Carsten, i'm a beginer in this context.
I did now a function in eventmode.
I assigned a ruleset to this function.
My first rule is " Change TABLE afterprocessing LOOP ".
In LOOP-Expression:
first rule "Change no available context" after processing Decision Table
In this decision table there is one field is one condition-field ( the field i want to change ) and a copie of this field as result.
second rule "Change value of context-field to [...]"
Here i can't select the field which i filled in the decision table.
Need Help- 😃
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Carsten,
now i did exactly what you said.
I have a function in event mode, a ruleset assigned to this function, one rule in this ruleset. This is my LOOP-Expression and in the loop expression, i have only one rule( first i do the decision table -result is a ruleset variable- and then i change the field in the table with the value from ruleset-variable).
But during the simulation this message come again and again: Acces via 'NULL' object reference not possible
What's wrong ?
I understood the way you want to solve it, but how shall i change the context?
I want to do it by a decision table, but i can't define the same field as "context and result" !
Do you know a better way ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.