OpenRules Dialog Questions in Multiple Tables

If you have too many questions in your OpenRules Dialog project, you may want to split a large table “questions” into several tables. Instead of one table with the signature

Rules questions extends questionsTemplate

you may create two tables with signatures:

Rules questions1 extends questionsTemplate

Rules questions2 extends questionsTemplate

It is up to you which questions you will put in which table. You only need to add an additional method that combines these two tables:

Questions12It is important that its name of this method is still “questions“. You just need to look at the template “questionsTemplate” in the standard file “DialogRules.xls” to understand why you need to use 3 parameters. For 3 tables, you will need to add one more check:

Questions123

You may find a complete example in the sample-project DialogType4 in the file “PagesSectionsQuestionsMany.xls”.

Advertisements

About jacobfeldman

CTO at www.openrules.com http://www.linkedin.com/in/jacobfeldmanopenrules
This entry was posted in OpenRules Specific, Tools and Technologies. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s