The problem is not in the status field, it's on any field.
I have downloaded the xataface 2.0 from
http://sourceforge.net/.
I have created two tables:
CREATE TABLE IF NOT EXISTS `province` (
`province_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(22) NOT NULL,
PRIMARY KEY (`province_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
INSERT INTO `province` (`id`, `name`) VALUES
(1, 'Test');
CREATE TABLE IF NOT EXISTS `district` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`province_id` int(11) NOT NULL,
`status` varchar(256) NOT NULL,
PRIMARY KEY (`id`),
KEY `province_id` (`province_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `district`
--
INSERT INTO `district` (`id`, `name`, `province_id`, `status`) VALUES
(1, 'Muzafar Shah', 1, 'Nothing yet'),
(5, 'Muzafar Shah', 1, 'Nothing yet just to test');
--
-- Constraints for dumped tables
--
--
-- Constraints for table `district`
--
ALTER TABLE `district`
ADD CONSTRAINT `district_ibfk_1` FOREIGN KEY (`province_id`) REFERENCES `province` (`province_id`);
Now after insertion in list:
if i come directly from the table district, then it shows all the fields in list, but if i come from the parent table, "province", then it doesn't show the district.name field. please see the attached snapshot, you will understand what i mean.
in province table relationships.ini:
[district]
district.province_id = "$province_id"
action:label = District
action:visible = 1
I have not yet configured the fields.ini.
kindly lead me.