Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #20397 All Revisions ] Back to Issue ]
Summary 0020397: API broken at test 2967
Revision 2012-05-03 03:32 by dbaz
Description http://builds.openbravo.com/job/int-api/2967/ [^]

The change is needed to upgrade to Smartclient 8.3d in order to let some particular grids run properly

---------------------------------

Needed changes in code:

Javascript handling the json: replace the "." by OB.Constants.FIELDSEPARATOR
example:
  name. + OB.Constants.IDENTIFIER;
turns into
  name + OB.Constants.FIELDSEPARATOR + OB.Constants.IDENTIFIER;

Java returning the json: replace the "." by DalUtil.FIELDSEPARATOR (import org.openbravo.dal.core.DalUtil)
example:
  key + "." + + JsonConstants.IDENTIFIER
turns into
  key + DalUtil.FIELDSEPARATOR + JsonConstants.IDENTIFIER

---------------------------------

Here is the discussion with Isomorphic about why change is needed:
http://forums.smartclient.com/showthread.php?p=84881#post84881 [^]

This particular API break, is due that from now on we use "$" instead of ".". This new separator is also set in the new FIELDSEPARATOR variables, so if you use them, the separator used at the end is transparent for the developer
Revision 2012-05-03 03:25 by dbaz
Description http://builds.openbravo.com/job/int-api/2967/ [^]

Javascript handling the json: replace the "." by OB.Constants.FIELDSEPARATOR
example:
  name. + OB.Constants.IDENTIFIER;
turns into
  name + OB.Constants.FIELDSEPARATOR + OB.Constants.IDENTIFIER;

Java returning the json: replace the "." by DalUtil.FIELDSEPARATOR (import org.openbravo.dal.core.DalUtil)
example:
  key + "." + + JsonConstants.IDENTIFIER
turns into
  key + DalUtil.FIELDSEPARATOR + JsonConstants.IDENTIFIER


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker