This topic is locked

Multline slection

11/17/2006 2:29:10 PM
PHPRunner General questions
H
hammad author

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=3889&image=1&table=forumtopics' class='bbc_emoticon' alt=':wub:' /> Hello all
I HAVE TWO QUESTIONS:
1- Using multiline (IN LOOKUP WIZARD) . In the add or edit page the multiline combox inserts chosen data from the multiline selections in the MYSQL mutiline field separated by comma , but the list page displays just first value of data.

Multiline field isn't a key field.
2- How could I use the LOOKUP WIZARD for checkboxes ?
Could you help?
Thanks ion advance
HAMMAD

Sergey Kornilov admin 11/17/2006

Hammad,
I cannot reproduce error with with only first field showing on the list page. Send your files to support@xlinesoft.com for investigation.
We plan to introduces Set of checkboxes edit control in one of the next versions.

H
hammad author 11/18/2006

Hello

I have sent the files to the email support@xlinesoft.com

Thank you for your help in advance

Hammad

H
hammad author 11/20/2006

Hello Jane Endaltseva
I have received by email your response.
Thank you for your help and for fantastic software, It works as you explained, but the field countries is itself . The files I sent were just example, I do not want to lose the link field.

The real example what I want is the following:
1- The field 'Countries' in table 'Example' contains the 'Country_ID' information from table `country` for both fields `Country_english` and `Country_slovak`

2- I have two projects : first project uses `Country_english` field , Second uses `Country_slovak' field
3- Each project depends on the same field 'countries'in 'Example' table , which contains the link field .
So user can choose the language of registration , but the projects for him will be as translators.
The link field must be 'CountryID' and the display field 'County_english' for first project and 'County_slovak' for second project.
Hope I could explain thing.
Thank you very much for your time , hope you can help me.
Thanks again
Hammad
Here is the mysql script example:
--------------------------------------------------------------------------

CREATE TABLE `country` (
`Country_ID` int(11) NOT NULL auto_increment,

`Country_english` char(50) NOT NULL,

`Country_slovak` char(50) NOT NULL,

PRIMARY KEY (`Country_ID`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=176 ;
INSERT INTO `country` VALUES (2, 'Albania', 'Albansko');

INSERT INTO `country` VALUES (3, 'Algeria', 'Alzirsko');

INSERT INTO `country` VALUES (6, 'Armenia', 'Armensko');

INSERT INTO `country` VALUES (9, 'Austria', 'Rakusko');

INSERT INTO `country` VALUES (11, 'Bahrain', 'Bahrain');

INSERT INTO `country` VALUES (15, 'Belgium', 'Belgicko');

INSERT INTO `country` VALUES (24, 'Bulgaria', 'Bulharsko');

INSERT INTO `country` VALUES (38, 'Croatia', 'Chorvatsko');

INSERT INTO `country` VALUES (41, 'Czech Republic', 'Ceska republika');

INSERT INTO `country` VALUES (42, 'Denmark', 'Dansko');
CREATE TABLE `example` (

`ID` int(11) NOT NULL auto_increment,

`Name` char(50) default NULL,

`Surname` char(50) default NULL,

`Countries` longtext,

PRIMARY KEY (`ID`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
INSERT INTO `example` VALUES (1, 'Johan', 'Moore', '2,3,6,9,11,24,41');