Re: SWIG framework in a WebObjects Application

2012-12-20 Thread Pascal Robert
What is your goal? To include WO into desktop apps? Greetings Ladies, Gentlemen, and Wizards of WebObjects, I am about go into development mode for the first time in a while. One consideration that I am having to make is the inclusion of the SWIG framework with the WebObjects framework to

Re: problem of accents on FR data

2012-12-20 Thread Stéphan Mertz
Hi, I subclass OracleExpression like this : public class IVOracleExpression extends OracleExpression { public IVOracleExpression(EOEntity in_entity) { super(in_entity); } public String sqlStringForCaseInsensitiveLike(String in_s, String in_s1) { String l_str =

Re: problem of accents on FR data

2012-12-20 Thread Raymond NANEON
Hi Stéphan, Thanks for your help and I want to know if it returns rawrowSql or EOEntity data? How can I use this class in my EOQualifier expression? An example I mean Ray Envoyé depuis iCloud Le 20 déc. 2012 à 15:31, Stéphan Mertz s.me...@improve.fr a écrit : Hi, I subclass

ERXRoute question

2012-12-20 Thread James Cicenia
Here is the documentation: ERXRoute encapsulates a URL path with matching values inside of it. For instance, the route /company/{company:Company}/employees/{Person}/name/{name:String} would yield an objects(..) dictionary with a Company EO mapped to the key company, a Person EO mapped to the

REST Relationship

2012-12-20 Thread gabor raz
Hi, I try to create a REST interface for a application. And my problem know is i don't understand how to set relationships. I tried it like in the ERRestRouteExample with the updateAction. ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();

Re: problem of accents on FR data

2012-12-20 Thread Stéphan Mertz
And add this in the Application init to replace the original OracleExpression (you must change the IVOracleExpression class name and package with yours): ERXJDBCAdaptor.setExpressionClassName(com.resurgences.utils.IVOracleExpression, er.extensions.jdbc.ERXJDBCAdaptor); Le 20 déc. 2012 à 15:37,

time selection

2012-12-20 Thread Theodore Petrosky
I could have sworn that there was a simple component to select time. I am talking about a text field with arrows that if you click the up arrow increments the hour field 1 hour and if you click the down arrow decrements the hour field 1 hour. Then the same thing for the minutes field. Either I

Re: Connection validation, auto reconnect FIXED

2012-12-20 Thread JR Ruggentaler
The ERXDatabaseContextDelegate class method databaseContextShouldHandleDatabaseException(EODatabaseContext databaseContext, Throwable throwable) only reconnects to the database if the exception message contains the string _obtainOpenChannel. The string looks like something from the early

Re: SWIG framework in a WebObjects Application

2012-12-20 Thread Daniel Beatty
Hi Pascal, In some cases, yes. In other cases, the machine in question maybe attached to another device like say a medical instrument or is doing something. In other cases, it may be the graphics card that is supplying its computational power via OpenCL as a kind of GPGPU cloud to feed WO.

Re: time selection

2012-12-20 Thread Chuck Hill
It has been mentioned before. I think the consensus was that a time picker is harder to use than just typing in the time. On 2012-12-20, at 8:07 AM, Theodore Petrosky wrote: I could have sworn that there was a simple component to select time. I am talking about a text field with arrows

Re: Connection validation, auto reconnect FIXED

2012-12-20 Thread Chuck Hill
See https://github.com/projectwonder/wonder/wiki/Creating-and-submitting-an-acceptable-patch On 2012-12-20, at 8:14 AM, JR Ruggentaler wrote: The ERXDatabaseContextDelegate class method databaseContextShouldHandleDatabaseException(EODatabaseContext databaseContext, Throwable throwable)

Re: time selection

2012-12-20 Thread Theodore Petrosky
As I am thinking the user will be limited to Hours and half hours, i.e.: 12:00 or 12:30, I was thinking of using popups. I want to limit the users ability to put in bad data. If they can only choose from a popup, they can not input an error that I have to validate and give good error messages

Re: REST Relationship

2012-12-20 Thread Jesse Tayler
try ERXKeyFilter filter = ERXKeyFilter.filterWithAttributesAndToOneRelationships(); On Dec 20, 2012, at 10:03 AM, gabor raz gabor@rucotec.ch wrote: Hi, I try to create a REST interface for a application. And my problem know is i don't understand how to set

[SOLVED] Re: DataBase Connection and EOUtilities.rawRowsForSQL

2012-12-20 Thread Miguel Torres
Hi Chuck. You are right, the problem is that I am using dblink to connect two different databases and have some views in my database that connect with the other database but with the name hardcoded. dblink_exec(''dbname=leviatan_application'', At the beginning of the project sound

Re: ERXRoute question

2012-12-20 Thread Pascal Robert
Le 2012-12-20 à 09:56, James Cicenia ja...@jimijon.com a écrit : Here is the documentation: ERXRoute encapsulates a URL path with matching values inside of it. For instance, the route /company/{company:Company}/employees/{Person}/name/{name:String} would yield an objects(..) dictionary

Re: REST Relationship

2012-12-20 Thread Pascal Robert
Le 2012-12-20 à 10:03, gabor raz gabor@rucotec.ch a écrit : Hi, I try to create a REST interface for a application. And my problem know is i don't understand how to set relationships. I tried it like in the ERRestRouteExample with the updateAction.

Re: SWIG framework in a WebObjects Application

2012-12-20 Thread Pascal Robert
I don't think using WO is the best solution for this… And we have far more problems to fix before that, but anyway, that's my two cents. Hi Pascal, In some cases, yes. In other cases, the machine in question maybe attached to another device like say a medical instrument or is doing

Re: Problem saving to a BLOB field after switching to ORACLE 11g driver

2012-12-20 Thread Patrick Robinson
Hi Ricardo, Resurrecting a 2.5 year old thread here, but I just became aware that we're having the same problem (with an obviously infrequently-used feature). Did you ever learn anything more about this? Did setting that oracle.jdbc.LobStreamPosStandardCompliant property result in any strange

Re: Migrations problem with FrontBase

2012-12-20 Thread Kieran Kelleher
FWIW, Not sure if this helps with Migrations or not because I still use SQL for that, but anyway. Have a look at the usage of this property: er.extensions.ERXModel.useExtendedPrototypes=true and the javadoc on ERXModel to learn how prototypes are chosen. You can turn on debug logging on

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
Even though I've created a new context it only appears to have solved the problem. clicking the button to take me to my login page is not working properly because the link it goes to is invalid. I've just found this in the html of my error page : form method=post name=firstform

Re: WOResponse HandleException problem

2012-12-20 Thread Chuck Hill
How did you create the new context? Like this: WOContext newContext = new WOContext(originalContext.request()); If not, try that. Chuck On 2012-12-20, at 1:14 PM, Calven Eggert wrote: Even though I've created a new context it only appears to have solved the problem. clicking the button

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
I tried it that way and also like this: WOContext newContext = new WOContext(null); both give the same result. :-( On 2012-12-20, at 4:18 PM, Chuck Hill wrote: How did you create the new context? Like this: WOContext newContext = new WOContext(originalContext.request()); If

Re: WOResponse HandleException problem

2012-12-20 Thread Ramsey Gurley
Maybe try ERXApplication.instantiatePage(String pageName) instead? On Dec 20, 2012, at 2:24 PM, Calven Eggert wrote: I tried it that way and also like this: WOContext newContext = new WOContext(null); both give the same result. :-( On 2012-12-20, at 4:18 PM, Chuck Hill wrote:

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
this is an old WO application that doesn't use Wonder. (yah, I know) Should I convert this app to use Wonder? would that take a lot of work? On 2012-12-20, at 4:44 PM, Ramsey Gurley wrote: Maybe try ERXApplication.instantiatePage(String pageName) instead? On Dec 20, 2012, at 2:24 PM,

Re: WOResponse HandleException problem

2012-12-20 Thread Ramsey Gurley
In my experience, more work is required by not converting a project to use Wonder. WO is just so broken without it. How much work it will take to make the conversion is dependent on the app. Ramsey On Dec 20, 2012, at 2:46 PM, Calven Eggert wrote: this is an old WO application that doesn't

Re: WOResponse HandleException problem

2012-12-20 Thread Calven Eggert
i understand. In the meantime, something here has broke and I haven't a clue how to fix it. This area of the code hasn't been touched in years and I suspect that the change in the java version might have done it. I don't know why, but that's the only major thing that has happened since we

Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
Hi list, We are developing an ERP application. We want to use the following approach: One database to storage users, access control rules, application configuration and an enterprises catalog. For each enterprise we want to set up a different database. For example: One ERP controlling

Re: Multiple databases an EOModel.

2012-12-20 Thread Pascal Robert
Use this: https://github.com/hprange/multi-tenant-prototype Hi list, We are developing an ERP application. We want to use the following approach: One database to storage users, access control rules, application configuration and an enterprises catalog. For each enterprise we want to

Re: Multiple databases an EOModel.

2012-12-20 Thread Michael Gargano
yes, I'm doing that now. just be aware that cross db joins are a b*tch. if there are to many relations to join across you will quickly hit limitations with IN clauses (which will be your best friend). unless someone else has come up with something more clever than what I'm doing -Mike On

Re: Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
Hi Micheal, Do you have any code to share that shows how to change the data base connection information of the model on the fly? On 20/12/2012, at 18:01, Michael Gargano mgarg...@escholar.com wrote: yes, I'm doing that now. just be aware that cross db joins are a b*tch. if there are

Re: Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
Thanks Pascal. I downloaded the application, I am trying to understand how it works but it is not clear to me. I will study it. Thanks for the hint. Miguel Torres. On 20/12/2012, at 17:56, Pascal Robert prob...@macti.ca wrote: Use this: https://github.com/hprange/multi-tenant-prototype

Re: Multiple databases an EOModel.

2012-12-20 Thread Ramsey Gurley
You lose FK constraints that way too. I would not break up the database if you need relationships between the models. That includes in the future. Even if you don't have relationships, think about what happens when a client with more than one enterprise wants to move data between the two

Re: Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
I think you are right Ramsey, I already have the two databases and the project works well, but now I want to implement the solution for more that one enterprise and I am facing some troubles. Maybe I should evaluate to migrate all to one database. Thanks. Miguel Torres On 20/12/2012, at

Re: Problem saving to a BLOB field after switching to ORACLE 11g driver

2012-12-20 Thread Patrick Robinson
Spoke too soon there was a followup thread, 4 months later with Subject: oracle.jdbc.LobStreamPosStandardCompliant. See: http://lists.apple.com/archives/webobjects-dev/2010/Sep/msg00548.html Thanks, Mike... 2.25 years later. :-) - Patrick On Dec 20, 2012, at 3:00 PM, Patrick Robinson

test - ignore

2012-12-20 Thread Kieran Kelleher
test - ignore ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: