Welcome, Guest
Username: Password: Remember me

TOPIC:

Re: Version 2 - Manipulating data upon save 21 Nov 2012 08:31 #5537

  • JoomGuy
  • JoomGuy's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195

mark d wrote: Instead

e.data.myField = "constantPrefix" + e.data.myField;

use

var value = "constantPrefix" + e.get('myField');
e.set('myField', value);

model.set() is responsible to trigger necessary events, which the dataview does catch.

@mark e,

again this is irrelevant. The question was asking where in the MVC to manipulate the entered data, not how to do it client-side with JS.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started