Welcome, Guest
Username: Password: Remember me

TOPIC: using data from one form on a sub form.

using data from one form on a sub form. 10 Nov 2014 22:06 #12759

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
First Apologies. I don't know exactly what to ask or search for to make this possible " trust me I have looked" and I am a real junior when it comes to programming PHP. So I am hoping someone can just point me to the right post or can help.

I have one form that has some data in it.

I want to be able to click on a button next to one of the fields that will open a new page. The new page would be a new action entry for the event so it needs to auto populate the event number field in the action from the event id. This way any entries made from the event are related to the event.

Also another button that opens up a popup list view form of all the actions based on the current open event.

I really hope that is all the info and this makes sense.??
The administrator has disabled public write access.

using data from one form on a sub form. 12 Nov 2014 00:15 #12762

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
Lots of views so lots of people interested in how to do this. Unfortunately no one wants to share. :pinch:
The administrator has disabled public write access.

using data from one form on a sub form. 12 Nov 2014 10:27 #12766

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
You want to select a data from a modal box, right ? A page opening in a kind of popup showing a list of 'Events' (in your case)
Coding is now a piece of cake
The administrator has disabled public write access.

using data from one form on a sub form. 12 Nov 2014 18:55 #12768

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I do not have a precise answer for the moment, I must make some tests.
In the meantime, you can have a look how the menu page works.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: jonathanbell

using data from one form on a sub form. 12 Nov 2014 20:59 #12769

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
Thanks :)


. I wish I knew the coding for this.. below is hopefully a better explanation..

I want to pass the ID from an incident form currently open to an action form . This way it creates a relationship between the incident and the new action being entered.

Button: Save current data ": Open Action form popup to add a new action and auto populate the foreign field for the incident id in the action form.

And add another button under this to view the list of actions relating to the current open incident.

Button 2 Open a list of actions related to the current incident that is open - relationship incident id to action table .incident id. " so probably sets the filter...

It more than likely could be done with a bit of Java or window.onload = function() .. I just don't have the skills...
Last Edit: 12 Nov 2014 22:21 by jonathanbell. Reason: needed to add a little comment.
The administrator has disabled public write access.
Time to create page: 0.090 seconds

Get Started