Thanks Fabien,
You are right. I change the text like this :
{
author = 100;
class = "com.webobjects.directtoweb.Rule";
lhs = {
class = "com.webobjects.eocontrol.EOKeyValueQualifier";
key = pageConfiguration;
selectorName = isLike;
value = EditRelationshipEmbeddedHvLienCasProduit;
};
rhs = {
class = "com.webobjects.directtoweb.BooleanAssignment";
keyPath = shouldShowQueryRelatedButton;
value = false;
};
}
It mean's that the rule editor I used is not up to date or there is a
bug ....
Pierre
On 13. 01. 15 09:58, Fabian Peters wrote:
Hi Pierre,
I'd say the class on line 3 should be "com.webobjects.directtoweb.Rule".
Fabian
Am 13.01.2015 um 09:16 schrieb Pierre Gilquin <[email protected]>:
Thanks all for your help,
I try the rule from Flavio but I get the error:
** DirectToWeb could not merge d2wmodel from test.d2wmodel for reason:
<com.webobjects.directtoweb.BooleanAssignment 0xdf824a> valueForKey(): lookup
of unknown key: 'priority'.
This class does not have an instance variable of the name priority or
_priority, nor a method of the name priority, _priority, getPriority, or
_getPriority
I have no clue what is the problem.
This the rule generated by the rule editor in place (eclipse plugin) :
{
author = 100;
class = "com.webobjects.directtoweb.BooleanAssignment";
lhs = {
class = "com.webobjects.eocontrol.EOKeyValueQualifier";
key = pageConfiguration;
selectorName = isLike;
value = EditRelationshipEmbeddedHvLienCasProduit;
};
rhs = {
class = "com.webobjects.directtoweb.Assignment";
keyPath = shouldShowQueryRelatedButton;
value = false;
};
}
As I am on linux, I cannot use the RuleModeler app.
Thanks in advance for any advice
Pierre
On 12. 01. 15 15:50, Flavio Donadio wrote:
Pierre,
Try this simple rule (took me some time to find the first time I needed this):
100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' =>
shouldShowQueryRelatedButton = "false"
[com.webobjects.directtoweb.BooleanAssignment]
Cheers,
Flavio
On 12/01/2015, at 08:48, Pierre Gilquin <[email protected]> wrote:
Hi,
I have a tomany relation very similar to the RentalHistory relation in Movie DB
(Customer ->> RentalHistory -> Movie).
I created an Wonder D2W Application with my model and that's already very good.
But the component used for the relation use 2 buttons Search and New.
How can I get rid of the Search button as there is no meaning to transfer a
rental from a cutomer to an other ?
The New bouton is ok except I think that it should be "Add ...". How can I
change that ?
Thanks in advance
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]