Re: Replacing the delete button in a D2W ListTask
Re: Replacing the delete button in a D2W ListTask
- Subject: Re: Replacing the delete button in a D2W ListTask
- From: Fabian Peters <email@hidden>
- Date: Wed, 22 Aug 2018 10:53:46 +0200
Hi Savas,
This will add a "fooAction" on the right side:
100 : pageConfiguration = 'ListAddress' => actions = {"right" =
("deleteAction", "fooAction"); } [com.webobjects.directtoweb.Assignment]
And this will tell D2W which component to use for it:
100 : propertyKey = 'fooAction' => componentName = "FooButton"
[com.webobjects.directtoweb.Assignment]
Fabian
P.S.: Please keep the mails on the list.
> Am 22.08.2018 um 10:41 schrieb Savas Celik <email@hidden>:
>
> Thank you very much Fabian,
>
> the first rule works it's replacing the delete button. But what if, I do not
> want to replace it but just add a custom button next to it? How would this
> work?
>
> Savas
>> On 22 Aug 2018, at 09:19, Fabian Peters <email@hidden> wrote:
>>
>> Hi Savas,
>>
>> That's certainly possible. This rule in ERModernLook should be the one to
>> modify:
>>
>> 20 : (look = 'ERModernLook' and propertyKey = 'deleteAction') =>
>> componentName = "ERMDDeleteButton"
>> [com.webobjects.directtoweb.Assignment]:Default modern button component names
>>
>> There's also ERMDRemoveRelatedButton, which is used in
>> ERMODEditRelationshipPage:
>>
>> 20 : (look = 'ERModernLook' and propertyKey = 'removeRelatedAction') =>
>> componentName = "ERMDRemoveRelatedButton"
>> [com.webobjects.directtoweb.Assignment]:Default modern button component names
>>
>> Fabian
>>
>>> Am 22.08.2018 um 08:18 schrieb Savas Celik <email@hidden>:
>>>
>>> Hello,
>>>
>>> how can I replace the delete button with a custom made button in a list
>>> task? or is this even possible?
>>>
>>> Thanks in advance.
>>> Savas
>>> _______________________________________________
>>> 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