Re: D2W Noob Question

2010-11-17 Thread Joe Kramer
Thanks Henrique and David, I'm doing this as a super basic admin app to fill out some data in our model, so the easiest solution was the best :) I ended up just putting it in the ERXNavigationMenu. Thanks again! I really appreciate your quick replies! Joe Kramer On Wed, Nov 17, 2010 at 10:21

Re: D2W Noob Question

2010-11-17 Thread David Holt
Hi Joe, On 2010-11-17, at 9:15 AM, Joe Kramer wrote: > Hi All, > > I'm trying my first D2W app... This should be easy to find, and I'm almost > embarrassed to ask, but I need to get this working ASAP. Never be embarrassed to ask anything related to D2W :-) It is a complex topic that will take

Re: D2W Noob Question

2010-11-17 Thread Henrique Gomes
Hi, I also got started with D2W last month, got interrupted and about to resume Don't know I can help, but: I don't know how to change the list page, or if there is a rule to allow new entities there On my simple tests, I changed the NavigationMemu.plist to include a create action: <> An

Re: D2W Filtered search for embedded relationship

2010-10-20 Thread David Holt
Wow, now that is powerful stuff. This rule: 100 : (pageConfiguration = 'QueryEmbeddedDocument' and entity.name = 'Document') => queryDataSourceDelegate = "ca.company.delegates.SpecificDocumentsQueryDataSourceDelegate" [er.directtoweb.ERDDelayedObjectCreationAssignment] plus modifying your exa

Re: D2W Filtered search for embedded relationship

2010-10-20 Thread Ramsey Gurley
On Oct 20, 2010, at 2:46 PM, David Holt wrote: Hi all, I have a relationship on my edit page that shows "Search" and "New" buttons. The "Search" button, returns all related items, but I need it to be qualified by the logged in user (i.e. not show everyone's items). How do I do that? Da

Re: D2W issue

2010-10-18 Thread Andrew R. Kinnie
I deleted them all, then copied them all. I think I did a new ant build, but I may be mistaken. In any event, I think I am going to start fresh and kill all the extraneous versions of wonder on my box. Then do it again. On Oct 18, 2010, at 9:11 AM, David Avendasora wrote: > Hey Andrew, > >

Re: D2W issue

2010-10-18 Thread David Avendasora
Hey Andrew, Did you copy all the Wonder frameworks, or just ERCoolComponents? Make sure all the compiled frameworks are from the same build of Wonder. Dave On Oct 18, 2010, at 8:04 AM, Andrew R. Kinnie wrote: > Weird thing is, the framework and correct components are there. I was > having t

Re: D2W issue

2010-10-18 Thread Andrew R. Kinnie
Weird thing is, the framework and correct components are there. I was having trouble trying to get the wonder source building and installing the frameworks into the right place two weeks ago. However, I manually copied them into the path. And did it again yesterday. On Oct 18, 2010, at 6:4

Re: D2W issue

2010-10-18 Thread David Avendasora
You need ERCoolComponents on your build path. Some of the Ajax components that were in ERModernD2W got moved to ERCoolComponents because they weren't strictly D2W components. Not sure why it finds it in dev and not production... Dave On Oct 17, 2010, at 9:58 AM, Andrew R. Kinnie wrote: > My ap

Re: D2W issue

2010-10-17 Thread David Holt
It's not in trunk yet, but maybe the trunk versions of ModernLook are referring to it anyway. No idea. d On 2010-10-17, at 5:25 PM, Andrew R. Kinnie wrote: > It's there. David L suggests it might have something to do with me using > trunk instead of the 54 version. It works fine in dev (whic

Re: D2W & Strategy Design Pattern

2010-10-14 Thread David Avendasora
On Oct 13, 2010, at 3:48 PM, David Avendasora wrote: > Okay, bear with me. I'm a D2W-novice... > > I must be missing something. How does D2W know what Entity that this new page > configuration will be for? Okay, David Holt filled in the 1 missing rule: 50 : pageConfiguration like '*Person' =>

Re: D2W & Strategy Design Pattern

2010-10-13 Thread Mark Wardle
I have an entity called Relationship that clashes badly with the heuristics in the rule system. I need to change it. However, you could do what I do presently for these awkward spots. pageConfiguration=x entity.name=blah -- Dr. Mark Wardle Specialist registrar, Neurology (Sent from my mob

Re: D2W & Strategy Design Pattern

2010-10-13 Thread Ramsey Gurley
Ok, so maybe this will seem like a scavenger hunt, but... } else if (d2wcontext.entity() == null) { reason = "entity is null, it seems that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded!"; So it's looking in the d2wContext for your entity. So, check yo

Re: D2W & Strategy Design Pattern

2010-10-13 Thread David Avendasora
Okay, bear with me. I'm a D2W-novice... I must be missing something. How does D2W know what Entity that this new page configuration will be for? I'm currently getting: IllegalStateException: Couldn't find the dynamic page named QueryTeacherPerson in your DirectToWeb model.entity is null, it se

Re: D2W & Strategy Design Pattern

2010-10-13 Thread Anjo Krank
pageConfiguration = "QueryStudentPerson" => displayPropertyKeys = (..) pageConfiguration = "QueryTeacherPerson" => displayPropertyKeys = (..) ... > D2W.factory().pageForConfigurationNamed("QueryStudentPerson", session()) Obviously, you need to know what exactly you are looking for in advance.

Re: D2W & an Unmodeled Relationship

2010-10-07 Thread Anjo Krank
But the "embedded" part in the PC name refers to not having a wrapper. You can use the component to - say - bind a relationship in a plain page and have *it* create the wrapper. Cheers, Anjo Am 07.10.2010 um 13:48 schrieb David Avendasora: > > On Oct 7, 2010, at 6:24 AM, David Holt wrote: >

Re: D2W & an Unmodeled Relationship

2010-10-07 Thread David Avendasora
On Oct 7, 2010, at 6:24 AM, David Holt wrote: > > > On 2010-10-07, at 3:07 AM, David Avendasora wrote: > >> >> On Oct 6, 2010, at 7:38 PM, David Holt wrote: >> >>> >>> >>> >>> On 2010-10-06, at 3:09 PM, David Avendasora wrote: >>> First of all, the changes to RuleModeler rock in th

Re: D2W & an Unmodeled Relationship

2010-10-07 Thread David Avendasora
On Oct 6, 2010, at 7:38 PM, David Holt wrote: > > > > On 2010-10-06, at 3:09 PM, David Avendasora wrote: > >> First of all, the changes to RuleModeler rock in that I could just copy >> paste your rules below directly into my rule files! > > It's a new world! > >> >> Second. It doesn't qui

Re: D2W & an Unmodeled Relationship

2010-10-06 Thread Ramsey Lee Gurley
On Oct 6, 2010, at 7:38 PM, David Holt wrote: > > > > On 2010-10-06, at 3:09 PM, David Avendasora wrote: > >> First of all, the changes to RuleModeler rock in that I could just copy >> paste your rules below directly into my rule files! > > It's a new world! > >> >> Second. It doesn't qui

Re: D2W & an Unmodeled Relationship

2010-10-06 Thread David Holt
On 2010-10-06, at 3:09 PM, David Avendasora wrote: > First of all, the changes to RuleModeler rock in that I could just copy paste > your rules below directly into my rule files! It's a new world! > > Second. It doesn't quite work yet. The paging controls are there, but no > listing. Hard

Re: D2W & an Unmodeled Relationship

2010-10-06 Thread David Avendasora
First of all, the changes to RuleModeler rock in that I could just copy paste your rules below directly into my rule files!Second. It doesn't quite work yet. The paging controls are there, but no listing. Hard to explain. Here's a screen shot (yes, I have my own Skin for ERModernD2W)You can see tha

Re: D2W & an Unmodeled Relationship

2010-10-06 Thread David Holt
For details see the thread from last week: Re: [Wonder-disc] derived related non-modeled EO List display Short answer: 95 : propertyKey = 'distinctPrivileges' => componentName = ERDList [com.webobjects.directtoweb.Assignment] 95 : propertyKey = 'distinctPrivileges' => listConfigurationName = Li

Re: D2W Auto-Qualifying all listings

2010-09-22 Thread Ramsey Lee Gurley
Speaking of MySQLPlugin support from committers, let's not forget Mr. Travis Britt (^_^) He's been quite active making MySQL a first class citizen in Wonder lately. Quoting would be an excellent addition to that plugin BTW. I stumbled on that problem myself once when I used MySQL. I was tryin

Re: D2W Auto-Qualifying all listings

2010-09-22 Thread David Avendasora
On Sep 21, 2010, at 10:08 PM, Chuck Hill wrote: > FrontBase and PostgreSQL are possibly the most commonly used among Wonder > committer Don't forget, Chuck, Kieran is a committer now. Didn't think about that at WOWODC when you endorsed that, did ya? Dave __

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Chuck Hill
All of them have different reserved words. Some / all should support quoting to avoid conflicts with reserved words. Some EOF plugins may not currently support quoting. FrontBase and PostgreSQL are possibly the most commonly used among Wonder committer so more likely to have fuller implementa

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Daniel Beatty
Thanks David, Well the next question, is there another RDBMS like Postgres, Derby or some other (preferably free, cheap, etc) that does not have such trouble? Is it worth it to try one of these other RDBMS systems? Thank you, Daniel Beatty Computer Scientist, Detonation Sciences Branch Code 4743

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread David Holt
On 2010-09-21, at 4:29 PM, Daniel Beatty wrote: > Greetings Chuck, > I was looking and pecking at it, too. The MySQL Admin tool would lead a > person to believe that it is not, but seems to the be one variable that is > outstanding. The fact that the rest of the tokens in that SQL are accepted

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Chuck Hill
On Sep 21, 2010, at 4:29 PM, Daniel Beatty wrote: > Greetings Chuck, > I was looking and pecking at it, too. The MySQL Admin tool would lead a > person to believe that it is not, but seems to the be one variable that is > outstanding. The fact that the rest of the tokens in that SQL are accepte

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Daniel Beatty
Greetings Chuck, I was looking and pecking at it, too. The MySQL Admin tool would lead a person to believe that it is not, but seems to the be one variable that is outstanding. The fact that the rest of the tokens in that SQL are accepted by MySQL in other migration actions, leads me to believe t

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Chuck Hill
On Sep 21, 2010, at 2:03 PM, David LeBer wrote: > > On 2010-09-21, at 4:25 PM, Chuck Hill wrote: > >> >> On Sep 21, 2010, at 1:17 PM, Daniel Beatty wrote: >> >>> Greetings Chuck, >>> Well, I decided to try going through WOLips as opposed to Hudson. I added >>> the MySQL plugin and got a lot

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread David LeBer
On 2010-09-21, at 4:25 PM, Chuck Hill wrote: > > On Sep 21, 2010, at 1:17 PM, Daniel Beatty wrote: > >> Greetings Chuck, >> Well, I decided to try going through WOLips as opposed to Hudson. I added >> the MySQL plugin and got a lot farther, but I am still running into some >> trouble. This

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Chuck Hill
On Sep 21, 2010, at 1:17 PM, Daniel Beatty wrote: > Greetings Chuck, > Well, I decided to try going through WOLips as opposed to Hudson. I added > the MySQL plugin and got a lot farther, but I am still running into some > trouble. This time at the "Release" table. In particular, MySQL compla

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Daniel Beatty
Greetings Chuck, Well, I decided to try going through WOLips as opposed to Hudson. I added the MySQL plugin and got a lot farther, but I am still running into some trouble. This time at the "Release" table. In particular, MySQL complains about: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQL

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Chuck Hill
You need to add the plugin framework to the classpath file in App.woa/Contents/MacOs/something On Sep 21, 2010, at 12:04 PM, Daniel Beatty wrote: > Greetings David, > Looks like you are right. Here, I though I had it loaded with Hudson, but I > was mistaken.Now I have copied over to /Lib

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Daniel Beatty
Greetings David, Looks like you are right. Here, I though I had it loaded with Hudson, but I was mistaken.Now I have copied over to /Library/Frameworks. Of course, that failed. I also tried copying my properties so that I have: ( cd /Library/WebObjects/JavaApplications/BugTracker.woa ; .

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Chuck Hill
Hi Dan, The offending SQL is: > 4343 [main] INFO er.extensions.jdbc.ERXJDBCUtilities - Executing alter table > ERAttachment null available VARCHAR(5) NOT NULL It does not like the null in: > alter table ERAttachment null available VARCHAR(5) NOT NULL I guess it would prefer "add" instead of

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Pascal Robert
That's the famous MySQLPlugin bug, you have to use the one from Wonder. > Greetings David, > Just following up on one of these weirditiies. I am trying to follow the > Bug Tracker example, and I get a nasty SQL error when trying to run the bug > tracker. For example, I run a script containing

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread David LeBer
On 2010-09-21, at 1:33 PM, Daniel Beatty wrote: > Greetings David, > Just following up on one of these weirditiies. I am trying to follow the > Bug Tracker example, and I get a nasty SQL error when trying to run the bug > tracker. For example, I run a script containing the following: > #!/bi

Re: D2W Auto-Qualifying all listings

2010-09-21 Thread Daniel Beatty
Greetings David, Just following up on one of these weirditiies. I am trying to follow the Bug Tracker example, and I get a nasty SQL error when trying to run the bug tracker. For example, I run a script containing the following: #!/bin/sh ( cd /Library/WebObjects/JavaApplications/BugTracker.wo

Re: D2W - execute custom code on save changes

2010-09-14 Thread Kieran Kelleher
OK, so you can use any twisted logic you want to set a flag in ERXThreadStorage per request. Set the flag to true or false in some special logic in Session.awake maybe. I bet there is even a way to push a key in ERXThreadStorage using D2W rules based on certain logic ... maybe. ERXThreadStorage

Re: D2W - execute custom code on save changes

2010-09-14 Thread Tim Worman
Thanks Kieran. I'm gonna have to look into ERXThreadStorage. I know vaguely what it is for but haven't used it. In my case, the "doesRequireAuditTrail" will be less dependent on who the user is as what the Entity being edited is or what day it is. So, if I'm the user, the auditing may not happe

Re: D2W - execute custom code on save changes

2010-09-14 Thread Ramsey Gurley
ERCoreBusinessLogic has audit trails. You can subclass ERCAuditTrailHandler to customize it. You specify the subclass with a property: er.corebusinesslogic.ERCAuditTrailClassName=your.app.AuditTrailHandler It's very nice. Auditing happens automatically whenever save changes is called via

Re: D2W - execute custom code on save changes

2010-09-14 Thread Kieran Kelleher
One suggestion: Have a boolean attribute on user entity "doesRequireAuditTrail" and turn it on/off for users that require auditing. Put your current user EOGlobalID in ERXThreadStorage (do that in Session awake) and check the user's setting in EO state transition methods will* or did* and log a

Re: D2W Auto-Qualifying all listings

2010-09-10 Thread Tim Worman
On Sep 10, 2010, at 8:02 AM, David Avendasora wrote: > > On Sep 9, 2010, at 8:49 PM, Ramsey Lee Gurley wrote: > >> On Sep 9, 2010, at 6:03 PM, David Avendasora wrote: >> >>> Hi all D2W Gurus, >>> >>> I'm starting a new D2W app, and one of the things it needs to do is >>> automatically pre-qua

Re: D2W Auto-Qualifying all listings

2010-09-10 Thread David Holt
On 2010-09-10, at 8:02 AM, David Avendasora wrote: > > On Sep 9, 2010, at 8:49 PM, Ramsey Lee Gurley wrote: > >> On Sep 9, 2010, at 6:03 PM, David Avendasora wrote: >> >>> Hi all D2W Gurus, >>> >>> I'm starting a new D2W app, and one of the things it needs to do is >>> automatically pre-qua

Re: D2W Auto-Qualifying all listings

2010-09-10 Thread David Avendasora
On Sep 9, 2010, at 8:49 PM, Ramsey Lee Gurley wrote: > On Sep 9, 2010, at 6:03 PM, David Avendasora wrote: > >> Hi all D2W Gurus, >> >> I'm starting a new D2W app, and one of the things it needs to do is >> automatically pre-qualify all listings of of entities to filter down to only >> the EO

Re: D2W Auto-Qualifying all listings

2010-09-09 Thread Ramsey Lee Gurley
On Sep 9, 2010, at 6:03 PM, David Avendasora wrote: > Hi all D2W Gurus, > > I'm starting a new D2W app, and one of the things it needs to do is > automatically pre-qualify all listings of of entities to filter down to only > the EOs that the user is allowed to see. The logic to tell if a user i

Re: D2W Auto-Qualifying all listings

2010-09-09 Thread David Holt
Hi David! On 2010-09-09, at 3:03 PM, David Avendasora wrote: > Hi all D2W Gurus, > > I'm starting a new D2W app, and one of the things it needs to do is > automatically pre-qualify all listings of of entities to filter down to only > the EOs that the user is allowed to see. Bug Tracker does s

Re: D2W/ERModernLook in non D2W app

2010-08-24 Thread Tim Worman
On Aug 24, 2010, at 5:57 AM, David LeBer wrote: > > On 2010-08-24, at 3:26 AM, Tim Worman wrote: > >> On Jun 10, 2010, at 7:56 AM, David Holt wrote: >> >>> On 2010-06-10, at 7:44 AM, "Andrew R. Kinnie" wrote: >>> OK . . . I started typing that in, and realized something I missed . . . I

Re: D2W/ERModernLook in non D2W app

2010-08-24 Thread David LeBer
On 2010-08-24, at 3:26 AM, Tim Worman wrote: > On Jun 10, 2010, at 7:56 AM, David Holt wrote: > >> On 2010-06-10, at 7:44 AM, "Andrew R. Kinnie" wrote: >> >>> OK . . . I started typing that in, and realized something I missed . . . I >>> copied the ERModernMoviesDemo d2w.d2wmodel file, but di

Re: D2W/ERModernLook in non D2W app

2010-08-24 Thread Tim Worman
On Jun 10, 2010, at 7:56 AM, David Holt wrote: > On 2010-06-10, at 7:44 AM, "Andrew R. Kinnie" wrote: > >> OK . . . I started typing that in, and realized something I missed . . . I >> copied the ERModernMoviesDemo d2w.d2wmodel file, but did not copy the >> ERModernDefaultSkin d2w.d2wmodel fil

Re: D2W rule to set the display key for recursive relationship

2010-07-30 Thread Ramsey Gurley
On Jul 30, 2010, at 4:27 PM, David Holt wrote: On 2010-07-30, at 1:04 PM, Ramsey Gurley wrote: On Jul 30, 2010, at 3:58 PM, David Holt wrote: On 2010-07-30, at 12:26 PM, Ramsey Gurley wrote: On Jul 30, 2010, at 2:51 PM, David Holt wrote: Hi all, I would like to display one propertyK

Re: D2W rule to set the display key for recursive relationship

2010-07-30 Thread David Holt
On 2010-07-30, at 1:04 PM, Ramsey Gurley wrote: > > On Jul 30, 2010, at 3:58 PM, David Holt wrote: > >> >> On 2010-07-30, at 12:26 PM, Ramsey Gurley wrote: >> >>> On Jul 30, 2010, at 2:51 PM, David Holt wrote: >>> Hi all, I would like to display one propertyKey for a recursiv

Re: D2W rule to set the display key for recursive relationship

2010-07-30 Thread Ramsey Gurley
On Jul 30, 2010, at 3:58 PM, David Holt wrote: On 2010-07-30, at 12:26 PM, Ramsey Gurley wrote: On Jul 30, 2010, at 2:51 PM, David Holt wrote: Hi all, I would like to display one propertyKey for a recursive relationship and the rule doesn't seem to work as it does for a normal relatio

Re: D2W rule to set the display key for recursive relationship

2010-07-30 Thread David Holt
On 2010-07-30, at 12:26 PM, Ramsey Gurley wrote: > On Jul 30, 2010, at 2:51 PM, David Holt wrote: > >> Hi all, >> >> I would like to display one propertyKey for a recursive relationship and the >> rule doesn't seem to work as it does for a normal relationship to a >> different entity. Do I ne

Re: D2W rule to set the display key for recursive relationship

2010-07-30 Thread Ramsey Gurley
On Jul 30, 2010, at 2:51 PM, David Holt wrote: Hi all, I would like to display one propertyKey for a recursive relationship and the rule doesn't seem to work as it does for a normal relationship to a different entity. Do I need to do something special for this case? The rule I am using ha

Re: D2W How does one use a variable in the RHS of a rule?

2010-06-30 Thread Ramsey Lee Gurley
I don't think you'd actually use @@ in your localized key. That template string would go into your Localizable.strings file like "blahblah.userPurchaseList.whatever" = ""@@object.fullname@@ Purchase List"; and then in your rule you'd use blah => displayNameForPageConfiguration = "blahblah.use

Re: D2W How does one use a variable in the RHS of a rule?

2010-06-28 Thread David Holt
As soon as I enter the @@ string in RuleModeler, the cursor disappears and RuleModeler hangs and won't let me continue to save the file unless I delete those characters. Is there a special way to enter these @@? David On 25-Jun-10, at 11:29 PM, Anjo Krank wrote: Using a delayed localized

Re: D2W How does one use a variable in the RHS of a rule?

2010-06-26 Thread David Holt
Thanks for tip. Is there another technique if you need access to an EO other than the object in the d2wcontext? David On 2010-06-25, at 11:29 PM, Anjo Krank wrote: > Using a delayed localized assigment and a pattern. Like > > bla => displayNameForPageConfiguration = "@@object.fullName@@ Purch

Re: D2W How does one use a variable in the RHS of a rule?

2010-06-25 Thread Anjo Krank
Using a delayed localized assigment and a pattern. Like bla => displayNameForPageConfiguration = "@@object.fullName@@ Purchases List" [ERDDelayedLocalizedAssigment] (untestet, but should work if the page actually inspects the user). Cheers, Anjo Am 26.06.2010 um 01:33 schrieb David Holt: >

Re: D2W Editing Non-Model Arrays

2010-06-21 Thread Ramsey Gurley
I think you should be able to use your custom accessors in your displayPropertyKeys array just as you would any normal propertyKey. You may need to specify a few extra rules like componentName for instance, since it isn't really a relationship. You probably can't use an edit relationship

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread Andrew R. Kinnie
Yeah, the problem is I saw that, and actually also copied the English.lproj directory (I had forgotten that, did it a while ago) and edited the Localizable.strings { "Nav.Entity1s" = "Entity1"; ... "ERD2W.advancedFindButtonLabel" = "Advanced..."; } I also tried it with Entity1 rather

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread David Holt
On 2010-06-10, at 7:44 AM, "Andrew R. Kinnie" wrote: > OK . . . I started typing that in, and realized something I missed . . . I > copied the ERModernMoviesDemo d2w.d2wmodel file, but did not copy the > ERModernDefaultSkin d2w.d2wmodel file into the skin. > > Now it works. Mostly. The tab

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread Ramsey Gurley
On Jun 10, 2010, at 10:36 AM, Ramsey Gurley wrote: Instead of thinking of it as embedding D2W into your app, I think it may help if you look at as embedding your app into D2W. Let me explain that. You say you want to take your existing wrapper and embed the D2W admin stuff into the ajax u

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread Andrew R. Kinnie
OK . . . I started typing that in, and realized something I missed . . . I copied the ERModernMoviesDemo d2w.d2wmodel file, but did not copy the ERModernDefaultSkin d2w.d2wmodel file into the skin. Now it works. Mostly. The tab panel's tabs are not tabs, but rather strings running together.

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread Ramsey Gurley
Instead of thinking of it as embedding D2W into your app, I think it may help if you look at as embedding your app into D2W. Let me explain that. You say you want to take your existing wrapper and embed the D2W admin stuff into the ajax update container. The thing is, the wrapper is a sub

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread David Holt
On 2010-06-10, at 6:51 AM, "Andrew R. Kinnie" wrote: > OK, I just redid everything, Can you tell us what steps this means? David > and got back to exactly the same error. I have essentially no idea at all > what to even look at at this point. > > Andrew > > On Jun 9, 2010, at 7:07 PM,

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread Andrew R. Kinnie
OK, I just redid everything, and got back to exactly the same error. I have essentially no idea at all what to even look at at this point. Andrew On Jun 9, 2010, at 7:07 PM, David Holt wrote: > Hi Andrew, > > On 9-Jun-10, at 3:34 PM, akinnie wrote: > >> OK, that all makes sense. > > :-) >

Re: D2W/ERModernLook in non D2W app

2010-06-10 Thread Andrew R. Kinnie
Well, evidently, I need to start from scratch, because none of these changes made a whit of difference. I still get no d2wcontext, and get the same NPE. I wish I knew what it was that I broke, so this would seem less like black box magic and I had any understanding of it to fix my own issues.

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread Jim Murry
This worked perfectly. Try something like D2WPage page = (D2WPage)D2W.factory().defaultPage(session()); D2WContext c = page.d2wContext(); EODatabaseDataSource ds = new EODatabaseDataSource(session().defaultEditingContext(), c.entity().name()); page.setDataSource(ds); return page; Thank

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread Ramsey Lee Gurley
On Jun 9, 2010, at 8:31 PM, Jim Murry wrote: > > On Jun 9, 2010, at 4:07 PM, David Holt wrote: > >> Hi Andrew, >> >> On 9-Jun-10, at 3:34 PM, akinnie wrote: >> >>> OK, that all makes sense. >> >> :-) >> >>> I didn't think I needed a home() method as I was putting it in a >>> subcomponent,

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread David Holt
Hi Jim, On 2010-06-09, at 5:31 PM, Jim Murry wrote: >> If you prefer a different task to be your beginning task, set your new >> 'startupTask' at a higher priority in the rules and make sure that you >> specify a 'startupEntityName' as well (any task other than queryAll acts on >> an entity).

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread David Holt
Hi Andrew, On 9-Jun-10, at 3:34 PM, akinnie wrote: OK, that all makes sense. :-) I didn't think I needed a home() method as I was putting it in a subcomponent, so I commented it out. homeAction() is just a name. Don't be confused by that. In this case, David arbitrarily made the choice

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread akinnie
OK, that all makes sense. I didn't think I needed a home() method as I was putting it in a subcomponent, so I commented it out. I think. I am in school at the moment, so I do have it in front of me. Hopefully, if I'm not a zombie, I'll be able to look at it after 10:30 tonight. Thanks to y

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread Ramsey Gurley
On Jun 9, 2010, at 3:49 PM, Andrew R. Kinnie wrote: Sorry, didn't reply all with my last reply. Begin forwarded message: Thanks David and Ramsey. I seem to be having issues, unfortunately. To clarify, originally, I was planning to have the admin component be a subcomponent within the nor

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread David Holt
How are you calling the Admin page? David On 9-Jun-10, at 12:49 PM, Andrew R. Kinnie wrote: Sorry, didn't reply all with my last reply. Begin forwarded message: Thanks David and Ramsey. I seem to be having issues, unfortunately. To clarify, originally, I was planning to have the admin com

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread David Holt
Hi Andrew, In order to minimize the work that you need to do, I would consider rethinking your approach to the admin side. Instead of it opening inside your AUC, why don't you have the admin link open up a nice full page completely outside your current pagewrapper with the unchanged ERMod

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread Ramsey Gurley
On Jun 9, 2010, at 2:10 PM, Andrew R. Kinnie wrote: Thanks. I added a rule in the d2wmodel file for pageWrapperName. However, I managed to discover several other problems. My page wrapper was for a non-d2w page and site, and I want the d2w stuff to be a subcomponent of this. It is very

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread Andrew R. Kinnie
Thanks. I added a rule in the d2wmodel file for pageWrapperName. However, I managed to discover several other problems. My page wrapper was for a non-d2w page and site, and I want the d2w stuff to be a subcomponent of this. It is very simple, I have a header, sidebar navigation, and an AjaxU

Re: D2W/ERModernLook in non D2W app

2010-06-09 Thread Ramsey Gurley
On Jun 9, 2010, at 9:22 AM, Andrew R. Kinnie wrote: I am again attempting to use D2W for the admin portion of an existing app. Basically, I have an existing site, and wanted to add an admin link to the home page navigation bar, based on whether the user has logged in and has admin privil

Re: D2W String Formatting

2010-05-17 Thread David Avendasora
LOL. Thanks. Bookmarked. Dave On May 17, 2010, at 5:40 PM, Guido Neitzer wrote: > http://tinyurl.com/2dfekmz > > First link, search for "preformat" on that page. ;-) > > Guido > > On 17. May, 2010, at 14:29 , David Avendasora wrote: > >> That's Perfect! I knew there had to be one, I just cou

Re: D2W String Formatting

2010-05-17 Thread Chuck Hill
The Google-fu is strong in this one! :-P On May 17, 2010, at 2:40 PM, Guido Neitzer wrote: http://tinyurl.com/2dfekmz First link, search for "preformat" on that page. ;-) Guido On 17. May, 2010, at 14:29 , David Avendasora wrote: That's Perfect! I knew there had to be one, I just couldn'

Re: D2W String Formatting

2010-05-17 Thread Guido Neitzer
http://tinyurl.com/2dfekmz First link, search for "preformat" on that page. ;-) Guido On 17. May, 2010, at 14:29 , David Avendasora wrote: > That's Perfect! I knew there had to be one, I just couldn't find it. > > Is there a resource you used to look that up? > > Dave > > On May 17, 2010, at

Re: D2W String Formatting

2010-05-17 Thread David Avendasora
That's Perfect! I knew there had to be one, I just couldn't find it. Is there a resource you used to look that up? Dave On May 17, 2010, at 5:18 PM, Guido Neitzer wrote: > Haven't used it, but can you set the attribute to be shown with: > > er.directtoweb.components.strings.ERD2WDisplayPreform

Re: D2W String Formatting

2010-05-17 Thread Chuck Hill
Make a custom formatter? On May 17, 2010, at 2:06 PM, David Avendasora wrote: Hi all, I'm displaying some pre-formatted XML code in a ERModernD2W inspect page. I see how to use "formatter" to format a number for display, but how do I simply tell it to surround the property with pre> - Or

Re: D2W String Formatting

2010-05-17 Thread Guido Neitzer
Haven't used it, but can you set the attribute to be shown with: er.directtoweb.components.strings.ERD2WDisplayPreformattedString Take care, Guido On 17. May, 2010, at 14:06 , David Avendasora wrote: > Hi all, > > I'm displaying some pre-formatted XML code in a ERModernD2W inspect page. I > s

Re: D2W - Do the pros use "dummy" tables?

2010-04-20 Thread Anjo Krank
The contexts are (sub-)page specific, they don't have anything to do with the flow. You need to be able to navigate to and from your "plain" pages. Either through the menu wrapper, the Factory, custom action components or an action delegate. I'd recommend at least subclasses ERD2WPage, as you g

Re: D2W - Do the pros use "dummy" tables?

2010-04-20 Thread James Cicenia
Ok - So I guess my next question. I can then go in and out of D2W? What do I need to know about the context's then? Say my login page is custom and say a few others. Page A Custom Page B Custom Page C D2W Page D D2w Page E Custom Say I needed to move through all five pages. What do I need to

Re: D2W - Do the pros use "dummy" tables?

2010-04-20 Thread David LeBer
On 2010-04-20, at 2:44 AM, Mark Wardle wrote: > I've got so many different structured medical questionnaires / forms mapped > as entities that it would be burdensome to create a component to edt and and > every one. D2W is the solution! > > However, for custom complex pages - particularly land

Re: D2W - Do the pros use "dummy" tables?

2010-04-19 Thread Mark Wardle
I've got so many different structured medical questionnaires / forms mapped as entities that it would be burdensome to create a component to edt and and every one. D2W is the solution! However, for custom complex pages - particularly landing pages or integration pages, I use a normal compon

Re: D2W - Do the pros use "dummy" tables?

2010-04-19 Thread Ramsey Lee Gurley
On Apr 19, 2010, at 8:01 PM, James Cicenia wrote: > well say let's talk hypothetical. > > In portion we have some dynamic graphs and in the other > are we have a dynamic spreadsheet of changing values. > > All of this is read only data compiled from many different EO sets. > > James Well, if

Re: D2W - Do the pros use "dummy" tables?

2010-04-19 Thread James Cicenia
well say let's talk hypothetical. In portion we have some dynamic graphs and in the other are we have a dynamic spreadsheet of changing values. All of this is read only data compiled from many different EO sets. James On Apr 19, 2010, at 5:47 PM, Ramsey Lee Gurley wrote: > > On Apr 19, 2010,

Re: D2W - Do the pros use "dummy" tables?

2010-04-19 Thread Ramsey Lee Gurley
On Apr 19, 2010, at 5:06 PM, James Cicenia wrote: > Hello - > > This has baffled me about D2W. It definitely seems to need to have an entity. > > So my question is ... how do you model custom screens? > > Do you create a dummy entity with dummy attributes associated with the > "areas" on the

Re: D2W toMany relationship problem

2010-04-19 Thread David Holt
Yeah, check out this page: http://wiki.objectstyle.org/confluence/display/WO/D2W+Rules+Reference+-+Cookbook+-+FAQ I think item 3 applies... David On 2010-04-19, at 1:44 PM, David Avendasora wrote: > Okay, I was missing something simple. A rule. > > { > rules = ( > { >

Re: D2W toMany relationship problem

2010-04-19 Thread David Avendasora
Okay, I was missing something simple. A rule. { rules = ( { author = 100; class = "com.webobjects.directtoweb.Rule"; lhs = { class = "com.webobjects.eocontrol.EOAndQualifier"; qualifiers =

Re: D2W How to a tab out the edit fields ?

2010-01-27 Thread David LeBer
On 2010-01-27, at 5:51 PM, James Cicenia wrote: > I got my new page appearing. But now I was wondering how to embed > edit pages inside... > > Tab 1: > Edit Group with say 1/3 the fields > > Tab 2: > Edit group with another set > > Tab3 > > My Ajax Grid > > > I can't seem to figure out whic

Re: D2W EditRelationshipPage (Solved Sort of....)

2010-01-21 Thread James Cicenia
In my non-stop carousel of trying to understand the rules, the classes, the templates, the imports, the.. Anyway. I have set my rule to show the proper page. What I did not see or find was that the ERDiVEditRelationshipPage has some booleans inside that turn on and off the display of NEW, an

Re: D2W EditRelationshipPage

2010-01-21 Thread Ramsey Gurley
On Jan 21, 2010, at 10:07 AM, James Cicenia wrote: OK - I did that with a rule. First I assigned the property: ERD2WEditToManyFault Then I created another rule that if the pageConfiguration like 'editRelationship*' to show pageName = ERD2WEditRelationshipPage. I'm surprised you get anyt

Re: D2W EditRelationshipPage

2010-01-21 Thread Ramsey Gurley
Forgot to reply to list too... sorry Begin forwarded message: From: Ramsey Gurley Date: January 21, 2010 9:48:00 AM EST To: James Cicenia Subject: Re: D2W EditRelationshipPage http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/directtoweb/pages/ERD2WEditRelationshipPage.html

Re: D2W EditRelationshipPage

2010-01-21 Thread James Cicenia
OK - I did that with a rule. First I assigned the property: ERD2WEditToManyFault Then I created another rule that if the pageConfiguration like 'editRelationship*' to show pageName = ERD2WEditRelationshipPage. HOWEVER, that only gives me a "Query" screen with no cancel.. just search. Am I mi

<    2   3   4   5   6   7   8   9   >