Forum

Addinf a new Form
 
Notifications
Retirer tout

Addinf a new Form

8 Posts
2 Utilisateurs
0 Reactions
9,011 Vu
 imen
(@imenkolsi)
Posts: 37
Active Member
Début du sujet
 
[#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


 
Posté : 10 Jan PM 13:011
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 10 Jan PM 14:011
 imen
(@imenkolsi)
Posts: 37
Active Member
Début du sujet
 

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


 
Posté : 10 Jan PM 16:011
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 10 Jan PM 16:011
 imen
(@imenkolsi)
Posts: 37
Active Member
Début du sujet
 

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


 
Posté : 10 Jan PM 16:011
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 10 Jan PM 17:011
 imen
(@imenkolsi)
Posts: 37
Active Member
Début du sujet
 

I've changed to that

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


 
Posté : 10 Jan PM 17:011
(@babynus)
Posts: 14952
Membre Admin
 

and ? :huh:

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


 
Posté : 10 Jan PM 17:011
Share:
Retour en haut