ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux" <jacques.le.r...@les7arts.com>
Subject Re: form action buttons
Date Mon, 03 Jan 2011 11:04:56 GMT
From: "Shereen" <sheri_ashraf@hotmail.com>
> Thanks a lot for your reply.
> I understood your point about making link a link button and hyperlink with
> target and give it parameter if I'd like.
> I'll put more information about what I want to do so that you and others can
> help
> I want to put some buttons in addition to the regular submit and each button
> should be responsible for doing 2 things:
> changing the status of the entity used in the form (changing a value
> generally)
> and doing the regular sumbit task of updating the value
> so if I used your solution that's what I expect I'll d and please anyone
> correct me
> 
> - make different versions of the update service each one will be the regular
> update plus putting extra code NOT to take the status from the parameters
> but seeting it to certain value
> 
> -make the buttons as button links and set target of each one to the suitable
> update service version that suits it and assign the parameter name the Id of
> the entity record I wish to update and change the status like the delete or
> cancel links
> 
> 
> My point was to use a hidden field in the form say (actionSelected) and when
> a certain button is pressed then I'll use the javascript to set that field
> to certain value
> 
> and do some customization in the update service to check for the value of
> actionSelected to decide to which status it will be updated 
> 
> and that will save me from creating different targets.That hidden input and
> javascript will help me decide which button was pressed and that's very
> important for me
> 
> Thanks in advance for any help


This is a good solution indeed. I think there are ever examples OOTB. At least we use it often
in custom projects

Jacques

 > 
> 
> -- 
> View this message in context: http://ofbiz.135035.n4.nabble.com/form-action-buttons-tp3170195p3170492.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Mime
View raw message