Forum

Addinf a new Form
 
Notifications
Clear all

Addinf a new Form

8 Posts
2 Users
0 Reactions
9,012 Views
 imen
(@imenkolsi)
Posts: 37
Active Member
Topic starter
 
[#878]

Hi I've added a new form to add some leaves for my ressources

I couldn't find a way to submit my form

Actually I'd like to use The save button that belongs to the project'or ria but i

couldn't get the way how to make that button works on my form

I would appreciate any help

Thanks in advance


 
Posted : 10 Jan 2013 13H58
(@babynus)
Posts: 14952
Member Admin
 

What are the symptoms ?
- javascript issue in the cosole ?
- php error in the log file ?


 
Posted : 10 Jan 2013 14H58
 imen
(@imenkolsi)
Posts: 37
Active Member
Topic starter
 

well i get this problem

Error on submitForm('../tool/saveMesImputationsLine.php', 'resultDiv', 'listForm') :
Form '${3}' is not a widget.

I've added a new view containing a form i want to save the data with the save button but when i do press the button i got that error


 
Posted : 10 Jan 2013 16H15
(@babynus)
Posts: 14952
Member Admin
 

Surely the form is not named as expected (id or name or jsid)
refer to /view/objectDetail.php


 
Posted : 10 Jan 2013 16H50
 imen
(@imenkolsi)
Posts: 37
Active Member
Topic starter
 

well for me , i copied past the cde of your model/imputationLine.php and the tool/saveImputation.php, view/imputationLine.php , view/imputationMain.php and i made the changes but it is not working

would you explain what i've to change in the ObjectDetail file


 
Posted : 10 Jan 2013 16H55
(@babynus)
Posts: 14952
Member Admin
 

if you started from imputation screen, objectDetail.php is no matter.

In imputationList.php, you find definition of From as a dijit Widget


It seems your listForm is not a dijit widget.


 
Posted : 10 Jan 2013 17H14
 imen
(@imenkolsi)
Posts: 37
Active Member
Topic starter
 

I've changed to that

well i don't get any error but yet no data is registred in the database


 
Posted : 10 Jan 2013 17H27
(@babynus)
Posts: 14952
Member Admin
 

and ? :huh:

I'm afraid I cannot remotely debug your own code :pinch:


 
Posted : 10 Jan 2013 17H56
Share:

Scroll to Top