View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Import - Titles - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

Import - Titles

More
23 Mai 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 Connexion or Create an account to join the conversation.

More
23 Mai 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 Connexion or Create an account to join the conversation.

More
23 Mai 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 Connexion or Create an account to join the conversation.

More
23 Mai 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 Connexion or Create an account to join the conversation.

More
23 Mai 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 Connexion or Create an account to join the conversation.

More
23 Mai 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 Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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