View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Import - Titles - ProjeQtOr
 
 

Import - Titles

More
23 May 2013 11:53 #1 by Cr0w
Import - Titles was created by Cr0w
Hi,

I'd like to understand if there is a specific reason why csv's columns' titles can have "spaces" or can forget the "id" prefix ? Is it just to be flexible with the user ?

This part of the code is located in
* /model/Importable.php
* public static function import($fileName, $class)

Thanx

Please Log in or Create an account to join the conversation.

More
23 May 2013 12:10 #2 by LEVA
Replied by LEVA on topic Re: Import - Titles
Hi,

I think that if you have no id then it will create a new object with a id created automaticly. The user does not have to guess for the id number, he'll just let the field blank (or no field at all..).

Regarding spaces, I guess it's a feature since the caption of an object cannot have spaces. A security perhaps ?
The following user(s) said Thank You: Cr0w

Please Log in or Create an account to join the conversation.

More
23 May 2013 13:36 #3 by babynus
Replied by babynus on topic Re: Import - Titles

Is it just to be flexible with the user ?

YES

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
23 May 2013 13:40 #4 by babynus
Replied by babynus on topic Re: Import - Titles

I think that if you have no id then it will create a new object with a id created automaticly

You're right.

The user does not have to guess for the id number, he'll just let the field blank (or no field at all..).

Exactly.

In addition : if id is provided but does not exist, Import will try to insert it with the given id.

egarding spaces, I guess it's a feature since the caption of an object cannot have spaces

Yes.

A security perhaps ?

No, just easing user input.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: Cr0w

Please Log in or Create an account to join the conversation.

More
23 May 2013 14:15 #5 by Cr0w
Replied by Cr0w on topic Re: Import - Titles
Regarding the id I was talking about adding additional 'id' prefix in front of a title to test if it has not been forgotten by the user.

example :
Title : "foo bar"

The import will try to find some "foobar" or "idfoobar"... (for foreign keys I think). That was just that. It could be explained as "ease" for the user.

Thank you

Please Log in or Create an account to join the conversation.

More
23 May 2013 18:01 #6 by babynus
Replied by babynus on topic Re: Import - Titles

It could be explained as "ease" for the user.

It is explained it the user manual :angry:
manual.projectorria.org/manual.php?page=100&tag=import

RTFM :evil:

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: Cr0w

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.053 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.