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

TOPIC: [FIXED] pre fill form

pre fill form 25 Nov 2017 19:13 #15458

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
I think you need to remove <?php echo JUri::base(); ?>
Please check your page and see what the actual url is, but you do not need it anyway.
The administrator has disabled public write access.
The following user(s) said Thank You: Nicolas

pre fill form 27 Nov 2017 23:05 #15460

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
I removed it but unfortunately it does not work.
I think the problem is that I do not go through a form but by my javascript calendar.

In fact I have a function that, when I drag and drop an event, calls the new variables. I would like to save them instead of the old ones.

the calendar is on the grid list of my events.

Is there a solution for me? or should I abandon this way ??
Last Edit: 27 Nov 2017 23:06 by Nicolas.
The administrator has disabled public write access.

pre fill form 01 Dec 2017 10:03 #15462

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
It's hard to say what is wrong without the context of your component.
I use the method quite often, so it is possible.,

If you want, you can send me you zipped component + sample data and forks and I can take a look :)
The administrator has disabled public write access.

pre fill form 05 Dec 2017 22:02 #15469

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
I really tried to understand but I can not do it.
So I leave the pros ... here is the zipped component:

For information :
The "lib" folder contains the fullcalendar program.
The code I created is in the fork> views> requests> tmpl> default.php
the public function UPDATE () is in the controller in fork> controllers> demande.php
I created data for example in database
i would like to drag and drop events and update it in database (so without form but the xml already exist)

What I would like is to understand why it does not work ... I do this to learn in first time and foremost.

i try to send the component but the size is over the limit allowed... (0.98Mo)

Nicolas
Last Edit: 05 Dec 2017 22:02 by Nicolas.
The administrator has disabled public write access.

pre fill form 06 Dec 2017 08:21 #15470

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Just upload to my dropbox via this link:
file recieved
Last Edit: 06 Dec 2017 09:02 by Romkabouter.
The administrator has disabled public write access.

pre fill form 06 Dec 2017 09:02 #15471

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Thnx, got it!
The administrator has disabled public write access.

pre fill form 06 Dec 2017 09:39 #15472

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
well, If you have some question.
Dont hesitate to ask me.


I keep looking for the problem from my side
The administrator has disabled public write access.

pre fill form 06 Dec 2017 14:05 #15473

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Hi Nicolas,

The link for the working component: www.dropbox.com/s/sleb97lj2d4eyu6/Nicola...com_litsupp.zip?dl=0

I have changed some things:
  • removed not used fork code: you probably just renamed the _fork folder, you only need the files you fork
  • the controller was the original, not the forked empty class
  • in the frontend code, some variable names where wrong (or not the same as used in the controller)
  • in the controller code, the model was not instantiated

When you check into the forked files, look for //PR: to see my updates.
You will quickly see what went wrong.

Good luck!

EDIT: Let me know when you have downloaded the file, I can remove the link after that
Last Edit: 06 Dec 2017 14:11 by Romkabouter.
The administrator has disabled public write access.
The following user(s) said Thank You: Nicolas

pre fill form 06 Dec 2017 22:57 #15474

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
I just downloaded.
I have carefully watched your work and it is really perfect! I will learn from my mistakes.
I'm going to look at the instantiation of the model because I did not understand everything.
I thank you again for your patience.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.100 seconds

Get Started