• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: D2w - toMany relation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2w - toMany relation


  • Subject: Re: D2w - toMany relation
  • From: Pierre Gilquin <email@hidden>
  • Date: Fri, 23 Jan 2015 12:25:14 +0100

In some circonstance, I need also to get rid of the "New" button of a toMany relation
I look in the ERMODEditRelationshipPage component but I didnot find any way

        <webobject name = "IsEntityWritable">
          <li><webobject name = "NewButton" /></li>
        </webobject>

IsEntityWritable: WOConditional {
    _unroll = true;
    condition = isEntityCreatable;
}


NewButton: CCSmartAjaxButton {
    alt = "Creates a new Object to add to the relationship";
    action = newObjectAction;
    class = "Button PageButton CreatePageButton";
    value = d2wContext.newRelationshipButtonLabel;
    useAjax = d2wContext.useAjaxControls;
    updateContainerID = d2wContext.idForMainContainer;
    dontSubmitForm = true;
}

Thanks in advance for any idea
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@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: D2w - toMany relation
      • From: Theodore Petrosky <email@hidden>
References: 
 >D2w - toMany relation (From: Pierre Gilquin <email@hidden>)
 >Re: D2w - toMany relation (From: Flavio Donadio <email@hidden>)

  • Prev by Date: ERXMigraton and er.migration.skipModelNames
  • Next by Date: Re: D2w - toMany relation
  • Previous by thread: Re: D2w - toMany relation
  • Next by thread: Re: D2w - toMany relation
  • Index(es):
    • Date
    • Thread