Forum

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.

Import - Titles
 
Notifications
Clear all

Import - Titles

7 Posts
3 Users
0 Reactions
8,818 Views
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 
[#1178]

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


 
Posted : 23 May 2013 13H53
LEVA
 LEVA
(@leva)
Posts: 54
Active Member
 

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 ?


 
Posted : 23 May 2013 14H10
(@babynus)
Posts: 14952
Member Admin
 

Is it just to be flexible with the user ?

YES


 
Posted : 23 May 2013 15H36
(@babynus)
Posts: 14952
Member Admin
 

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.


 
Posted : 23 May 2013 15H40
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

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


 
Posted : 23 May 2013 16H15
(@babynus)
Posts: 14952
Member Admin
 

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 👿


 
Posted : 23 May 2013 20H01
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

Sorry for this :whistle:


 
Posted : 23 May 2013 20H07
Share:

Scroll to Top