You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the import tool in the admin center of platform ui for that. Then simply select the csv,excel,... table where you have all your categories and map the columns accordingly.
I don't know if that will work. I go to the Admin Center and find IMPORTER, select Data import rows, and it comes up with "Select data import row to change". This opens a box supposedly where you enter whatever data, but how does the program know where the data is supposed to go? I have a separate user name that I have for using InvenTree and I can't pull up my Libre Office Calc spreadsheet I have saved to a USB drive from my main user name. The USB drive won't download the file I have. Any suggestions along those lines?
I actually thought that something like this works, but after trying, I found out that this does not work. This is maybe a missing feature, e.g. see #7574 .
That doesn't look anything like my data, and so I don't know what you are trying to show. That looks like a previous posting and doesn't make any sense to me. Thanks for replying.
@LarryJoy To clarify, the post from SchrodingersGat was a reply to my comment from above.
I was thinking you could use the importer to import a tree of categories in mass, but was not sure why my testing was not working with some simple sample data like I expected it.
He now confirmed (he as a better understanding of the importer as he has developed it) that referencing importing rows (to build the tree - all levels at once) is not possible and will not be solved by #7574. So this is not really the solution to your problem currently as this is the essential part of your request.
The only thing which is currently possible is to import the categories "level by level" or by just creating them manually.
Activity
wolflu05 commentedon Sep 24, 2024
You can use the import tool in the admin center of platform ui for that. Then simply select the csv,excel,... table where you have all your categories and map the columns accordingly.
LarryJoy commentedon Sep 24, 2024
I don't know if that will work. I go to the Admin Center and find IMPORTER, select Data import rows, and it comes up with "Select data import row to change". This opens a box supposedly where you enter whatever data, but how does the program know where the data is supposed to go? I have a separate user name that I have for using InvenTree and I can't pull up my Libre Office Calc spreadsheet I have saved to a USB drive from my main user name. The USB drive won't download the file I have. Any suggestions along those lines?
wolflu05 commentedon Sep 24, 2024
You can create a file like:
And upload it here (https://your-server/platform/settings/admin/import), and select "Part Category" as model type.
I actually thought that something like this works, but after trying, I found out that this does not work. This is maybe a missing feature, e.g. see #7574 .
@SchrodingersGat any thoughts, is this supposed to work already, or can't I reference currently importing rows by their index or a separate pk column?
LarryJoy commentedon Sep 24, 2024
Here is my list. Of course it can always be added to or changed:
According to the previous postings I guess that mass entry is not ready for prime time. And as far as the path given by https://your-server/platform/settings/admin/import I don't know what that means for my OS. I guess that means hand entry for now?
SchrodingersGat commentedon Sep 25, 2024
@wolflu05 using the exact same data as you pasted above, here are my results:
Obviously
0is not a valid database ID, but there was a matching category for ID1.Note that further work will allow "natural key" import - i.e. lookup based on other fields such as "name" (etc): #7574
LarryJoy commentedon Sep 26, 2024
That doesn't look anything like my data, and so I don't know what you are trying to show. That looks like a previous posting and doesn't make any sense to me. Thanks for replying.
wolflu05 commentedon Sep 26, 2024
@LarryJoy To clarify, the post from SchrodingersGat was a reply to my comment from above.
I was thinking you could use the importer to import a tree of categories in mass, but was not sure why my testing was not working with some simple sample data like I expected it.
He now confirmed (he as a better understanding of the importer as he has developed it) that referencing importing rows (to build the tree - all levels at once) is not possible and will not be solved by #7574. So this is not really the solution to your problem currently as this is the essential part of your request.
The only thing which is currently possible is to import the categories "level by level" or by just creating them manually.
LarryJoy commentedon Sep 26, 2024
Okay, thank you. That answers that.