depselect problem.

A place for users and developers of the Xataface to discuss and receive support.

depselect problem.

Postby muzafar » Mon Feb 27, 2012 10:19 am

Greetings,

I am using depselect, I hve copied the depselect module from svn and copied in modules/depselect.I have tried to copied to in xataface module directory and not work and then i copied in my site directory and still not working. I am getting this error.

Fatal error: Uncaught exception 'Exception' with message '[html_quickform_error: message="unregistered element" code=-5 mode=return level=notice prefix="QuickForm Error: " info="Element 'depselect' does not exist in HTML_QuickForm::_loadElement()"]' in D:\xampp\htdocs\www\xata\Dataface\FormTool.php:437 Stack trace: #0 D:\xampp\htdocs\www\xata\Dataface\QuickForm.php(347): Dataface_FormTool->buildWidget(Object(Dataface_Record), Array, Object(Dataface_QuickForm), 'granteeName', true, Array) #1 D:\xampp\htdocs\www\xata\Dataface\QuickForm.php(488): Dataface_QuickForm->_buildWidget(Array, Array) #2 D:\xampp\htdocs\www\xata\actions\new.php(53): Dataface_QuickForm->_build() #3 D:\xampp\htdocs\www\xata\Dataface\Application.php(1323): dataface_actions_new->handle(Array) #4 D:\xampp\htdocs\www\xata\Dataface\Application.php(1774): Dataface_Application->handleRequest() #5 D:\xampp\htdocs\www\grants\index.php(7): Dataface_Application->display() #6 {main} thrown in D:\xampp\htdocs\www\xata\Dataface\FormTool.php on line 437


I am taking guidence from this url: http://xataface.com/dox/modules/depselect/latest/

and i am using xataface 1.5x. in conf.ini i have put the modules/depselect path. And in fields.ini i am using this, because i have data in one table.in fields.ini i have:

[granteeName]
widget:type=depselect
widget:table=tbl_application
widget:label = "Grantee Name"
order=1

[applicationNumber]
widget:type=depselect
widget:table=tbl_application
widget:filters:organizationName="$organizationName"
widget:label = "Application Number"
order=3

I am trying to get ApplicationNumber from the table through organizationName because each for each organization we have more than one records. so i want to get the records on selection of organizationName
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: depselect problem.

Postby shannah » Mon Feb 27, 2012 10:50 am

Did you add the appropriate line in the conf.ini file to enable the module? (i.e. what does the [_modules] section of your conf.ini file look like?
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: depselect problem.

Postby muzafar » Mon Feb 27, 2012 9:55 pm

yes I have added the below line in conf.ini..

modules_depselect=/www/xata/modules/depselect/depselect.php

also I have tried this path.

modules_depselect=modules/depselect/depselect.php

but it doesn't work.. kindly lead me.

your help will be greatly appreciated.

thanks.
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: depselect problem.

Postby shannah » Tue Feb 28, 2012 10:34 am

First path won't work. 2nd path should work.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: depselect problem.

Postby muzafar » Tue Feb 28, 2012 11:10 am

thanks Shannah,

I Have many fields in table in which I want to just display Organization Name in first dropdown list, and when I select organizationName from dropdown, it effects on 2nd dropdown and show applicationNumber related to organizationName from the same table. i.e each organization has more than one applicationsNumbers.

i am doing it like this.
write now in organization dropdown menu, its show records like this ->

abc-01-11-1-1<br> Organization: Transparency Watch Organization, where abc-01-11-1-1 is the applicationNumber.

what I want is that first dropdown means organization dropdown show only organizationName i.e Transparency Watch Organization, and when i select this, it show abc-01-11-1-1 in another dropdown.

[granteeName]
widget:type=depselect
widget:table=tbl_application
widget:label = "Grantee Name"
order=1

[applicationNumber]
widget:type=depselect
widget:table=tbl_application
widget:filters:organizationName="$organizationName"
widget:label = "Application Number"
order=3

so kindly lead me that how can i do it?
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: depselect problem.

Postby shannah » Tue Feb 28, 2012 11:22 am

The error indicates that it's not picking up the depselect module at all. So the problem is in the installation of the module. Nothing you do in the fields.in i file will make a difference until you get the module installed correctly.

I'm not too sure what to suggest, except that the problem lies somewhere in:
1. Where the depselect module is installed (and whether there are appropriate file permissions).
2. How the depselect module is referenced in the conf.ini file.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: depselect problem.

Postby muzafar » Tue Feb 28, 2012 11:41 am

the depselect is now working, but it's not displaying the record what i mentioned in earlier message to you. check the snapshot. it is showing both the organization name and appllicationNumber in first dropdown. what i want is, that it show organizationName is Grantee Name dropdown and when we select orgName it show its related application Number in the below dropdown. right now in ApplicationNumber there is nothing show.
Attachments
Untitled.gif
Untitled.gif (5.53 KiB) Viewed 8209 times
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 15 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved