The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
display children in parent form - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: display children in parent form (/showthread.php?tid=2214)



display children in parent form - la_saucisse - Sep 28th, 2012

Hi,

This my 1rst thread here, and excuse my english, I'm french.
I discovered FormTools today and I think I'll use it for many things.

But actually, after many tests, I'm stuck on something...

_____________________
FORM 1 : Companies
Name, adresses, phone number...

FORM 2 : People that work in this companies
Name, email, phone... and its company, selectable with a Dropdowns list linked to the FORM 1 "Name" field.
_____________________

so far, it's work : Company is the "parent" form, People is the "child" form, and each record in People is linked to one Company.

My problem : while displaying a View of a "Companies", I'd like to display all about a campany (name, adresse...), but also a list of all peoples that working for it.

to summarize : I need a subform that display some FORM 2 fields in a FORM 1 view...

Is it possible, and how ??
thanks a lot in advance,
@la_saucisse





RE: display children in parent form - la_saucisse - Sep 30th, 2012

heeeelp !!!

...or no way to do this ?? Sad


RE: display children in parent form - alexh - Sep 30th, 2012

I think I understand what you are trying to do. If you are looking for a way to view submissions from two different forms at the same time, it's not possible with formtools. You would have to build a custom script to pull the data from the database and display it on a page. It's possible, but will take some programming.


RE: display children in parent form - la_saucisse - Oct 1st, 2012

hi,

I thinked FormTools was a kind of "online Access-like", that allow complexes relations between tables.
well, I'll try do make my "app" without those relations, but... I think I'll have to find something else !

thanks for your answer ! Smile




RE: display children in parent form - la_saucisse - Oct 2nd, 2012

finally, this thread isn't (yet) closed ^^

I just discovered the "Code Hook" plugin, that allow to apply some php scripts in conditions : before, after... it's a really fantastic tool for customize the script !

so, while laoding a form view, it may be possible to apply a DB request to fill a (textarea) field with the "children" form values, with exact tables ID...? may be ? I'll try and tell you the results ! Smile