Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Pass a value to an input zone when creating new 04 Jan 2015 22:58 #12812

  • koenvdz
  • koenvdz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
I have been creating my basic framework for my first application in j-cook, and now I have to do some of finetuning of the coding. I have been looking through the forum but I could not find an answer to the following questions:

1.I would like to fill in some fields in a form on the front end, when they create a new record. I thought I could fool the system by inserting the value into the $data part of the models\xxxx.php loadFormData() ( // Prime some default values), but that does not seem to work, I have been trying to figure it out all afternoon, but no luck. and I guess I have to be in this file because on the return I can set the value as I wish in the function prepareTable. But I would rally like to have the value displayed on the NEW form for the enduser, can anybody give me a hint on where I have to work on this.

2. This one is more a question to put me on the right track, I have 2 foreign keys in a table, I would like to change the values of the drop down menus on the input from another field: example: I have choose the country code in a dropdown list and than II would like the second drop down list to have only the names of the states of the country chosen in the first dropdown.
Koen

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

Pass a value to an input zone when creating new 13 May 2015 13:08 #12981

Hi Koen,

1) Can't you just set the default value in the table definition and then check "Prefills form"?
2) On your combo, check Ajax loading. (I actually never used this so I do not know if it works like I expect)
-> check this: www.j-cook.pro/index.php/forum/coding-in...down-with-cook#12540
The following user(s) said Thank You: koenvdz

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

  • Page:
  • 1
Time to create page: 0.324 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started