Preferences and callouts

December 2, 2009 at 4:10 pm 1 comment

The Openbravo platform’s flexibility is based on many capabilities: modularity, application dictionary, auxiliary inputs, preferences, callouts, validations, etc.

Using them separately is easy and not complex, but when using more than one together requires a execution sequence knowledge in order to achieve your development design.

A couple of days ago, developing a new module I included an auxiliary input, some preferences, more than a callout and many validations on the same WAD generated window. Furthermore, all where related to just one database column.

I mean, there was a column including a validation based on a auxiliary input with a callout. And the field on top of this column was affected by a preference.

How do all these functionalities work together? What is the execution sequence?

    – Auxiliary input is included on html generation time.
    – Validation is done on execution time, when loading data for drop down list (based on a global variable o auxiliar input).
    – Preferences are loaded, so a change is performed on this field.
    – Callout is executed based on the preference value change.

As callouts might be tricky if are not properly developed, it is important to know when they are executed and when not. It took me a while to realize there was a preference interfering with my callout.

Take it into account!

Advertisements

Entry filed under: Openbravo.

ScrapBook Reference dataset: easy to export, easy to import

1 Comment Add your own

  • 1. Dovic  |  April 28, 2010 at 8:38 pm

    Good article..I’ve a similar problem with some messages launched by a trigger and some messages launched by a callout (on the same window).
    Have you ever had this kind of problem?

    Reply

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

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

December 2009
M T W T F S S
« Nov   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts


%d bloggers like this: