Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.
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
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 ?
Is it just to be flexible with the user ?
YES
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.
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
It could be explained as "ease" for the user.
It is explained it the user manual :angry:
http://manual.projectorria.org/manual.php?page=100&tag=import
RTFM 👿
Sorry for this :whistle: